Skip to content

Instantly share code, notes, and snippets.

@aaalaniz
aaalaniz / CustomVideoView.java
Created February 15, 2018 15:54
VideoView that notifies of a frame rendered after requesting a reset
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
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
@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