Skip to content

Instantly share code, notes, and snippets.

@aaalaniz
aaalaniz / EglBaseProviderReflectionUtils.java
Last active November 30, 2020 17:25
Rendering with a TextureView
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 {
@aaalaniz
aaalaniz / install_mvn_3_1_1.sh
Created October 13, 2014 18:09
Install Maven 3.1.1
# 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
@aaalaniz
aaalaniz / UiInternetConnectivitySettingsPanel.kt
Created July 8, 2021 19:10
Toggling Internet Connectivity in Android Instrumentation Test
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