This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.annotation.TargetApi | |
import android.content.Context | |
import android.content.Intent | |
import android.provider.Settings | |
import androidx.test.platform.app.InstrumentationRegistry | |
import androidx.test.uiautomator.By | |
import androidx.test.uiautomator.StaleObjectException | |
import androidx.test.uiautomator.UiDevice | |
import androidx.test.uiautomator.UiObject2 | |
import androidx.test.uiautomator.Until |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.os.Handler; | |
import android.os.Looper; | |
import android.util.AttributeSet; | |
import com.twilio.video.I420Frame; | |
import com.twilio.video.VideoTextureView; | |
/* | |
* VideoTextureView that notifies Listener of the first frame rendered and the first frame after a reset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.os.Handler; | |
import android.os.Looper; | |
import android.util.AttributeSet; | |
import com.twilio.video.I420Frame; | |
import com.twilio.video.VideoView; | |
/* | |
* VideoView that notifies Listener of the first frame rendered and the first frame after a reset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.support.annotation.NonNull; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.TextView; | |
import com.twilio.video.LocalVideoTrack; | |
import com.twilio.video.VideoScaleType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.webrtc.EglBase; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
/* | |
* Uses reflection to interact with non public class EglBaseProvider. | |
*/ | |
public class EglBaseProviderReflectionUtils { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void canBeRenderedToView() throws InterruptedException { | |
VideoView localVideo = (VideoView) cameraCapturerActivity.findViewById(R.id.local_video); | |
VideoView localVideoTwo = (VideoView) cameraCapturerActivity.findViewById(R.id.local_video_two); | |
VideoView localVideoThree = (VideoView) cameraCapturerActivity.findViewById(R.id.local_video_three); | |
VideoView localVideoFour = (VideoView) cameraCapturerActivity.findViewById(R.id.local_video_four); | |
VideoView localVideoFive = (VideoView) cameraCapturerActivity.findViewById(R.id.local_video_five); | |
final CountDownLatch renderedFirstFrame = new CountDownLatch(5); | |
VideoRenderer.Listener rendererListener = new VideoRenderer.Listener() { | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LinkerFlagsRuleSource extends RuleSource { | |
@Mutate | |
void modifyLinkerFlags(@Path('tasks.linkMy_moduleArmeabi-v7aDebugSharedLibrary') Task linkTask) { | |
linkTask.doFirst { | |
def newLinkerArgs = [] | |
properties["linkerArgs"].each { linkerArg -> | |
def newLinkerArg = linkerArg.replaceAll(/ARCH/, 'armeabi-v7a') | |
newLinkerArgs.add(newLinkerArg) | |
} | |
setProperty("linkerArgs", newLinkerArgs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; | |
import io.realm.RealmObject; | |
import io.realm.RealmResults; | |
public abstract class RealmAdapter<E extends RealmObject, VH extends RealmAdapter.ViewHolder> | |
extends BaseAdapter { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WORKING_DIR=`pwd` | |
# Download the jdk 1.6 | |
wget http://ghaffarian.net/downloads/Java/JDK/jdk-6u45-linux-x64.bin | |
# Install the jdk | |
sudo mkdir /usr/lib/jvm | |
cd /usr/lib/jvm && sudo sh $WORKING_DIR/jdk-6u45-linux-x64.bin -noregister | |
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 50000 | |
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 50000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install to home directory | |
cd ~ | |
# Extract the package | |
wget http://mirror.metrocast.net/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz | |
tar -xf apache-maven-3.1.1-bin.tar.gz | |
# Install mvn to path | |
M2_HOME=$HOME/apache-maven-3.1.1 | |
echo -e "\n# Maven 3.1.1 Setup" >> ~/.bashrc |
NewerOlder