Home
last modified time | relevance | path

Searched refs:MainActivity (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/core/tests/FileSystemUtilsTest/apk_extract_native_libs/src/android/test/extract/
DPunchExtractedLibTest.java45 IntentFilter intentFilter = new IntentFilter(MainActivity.INTENT_TYPE); in testPunchedNativeLibs_extractedLib()
51 int result = intent.getIntExtra(MainActivity.KEY_RESULT, 1000); in testPunchedNativeLibs_extractedLib()
59 launchIntent.putExtra(MainActivity.KEY_OPERAND_1, op1); in testPunchedNativeLibs_extractedLib()
60 launchIntent.putExtra(MainActivity.KEY_OPERAND_2, op2); in testPunchedNativeLibs_extractedLib()
/frameworks/base/core/tests/FileSystemUtilsTest/apk_embedded_native_libs/src/android/test/embedded/
DPunchEmbeddedLibTest.java45 IntentFilter intentFilter = new IntentFilter(MainActivity.INTENT_TYPE); in testPunchedNativeLibs_embeddedLib()
51 int result = intent.getIntExtra(MainActivity.KEY_RESULT, 1000); in testPunchedNativeLibs_embeddedLib()
60 launchIntent.putExtra(MainActivity.KEY_OPERAND_1, op1); in testPunchedNativeLibs_embeddedLib()
61 launchIntent.putExtra(MainActivity.KEY_OPERAND_2, op2); in testPunchedNativeLibs_embeddedLib()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DScreenRecordTestBase.kt36 var mActivityRule = ActivityTestRule(MainActivity::class.java)
38 private lateinit var mActivity: MainActivity
59 fun runOnUiThread(predicate: (it: MainActivity) -> Unit) { in runOnUiThread()
68 predicate: (it: MainActivity) -> Unit in withScreenRecording()
DSurfaceTracingTestBase.kt39 var scenarioRule: ActivityScenarioRule<MainActivity> = in <lambda>()
40 ActivityScenarioRule<MainActivity>(MainActivity::class.java) in <lambda>()
55 fun withTrace(predicate: (it: MainActivity) -> Unit): LayersTrace { in <lambda>()
69 fun runOnUiThread(predicate: (it: MainActivity) -> Unit) { in <lambda>()
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMainActivity.java73 public class MainActivity extends AppCompatActivity class
189 mOutputVideoPath = getVideoPath(MainActivity.this); in onClick()
199 private final WeakReference<MainActivity> activityReference;
201 MediaCodecSurfaceAsync(MainActivity context) { in MediaCodecSurfaceAsync()
207 MainActivity mainActivity = activityReference.get(); in doInBackground()
225 MainActivity mainActivity = activityReference.get(); in onPostExecute()
294 Activity activity = MainActivity.this;
338 final Activity activity = MainActivity.this; in openCamera()
423 if (ActivityCompat.checkSelfPermission(MainActivity.this, permission) != in hasPermissionGranted()
468 Toast.makeText(MainActivity.this, "Cannot start recording.", Toast.LENGTH_SHORT).show(); in startRecordingVideo()
[all …]
DNalUnitUtil.java23 import static com.android.media.samplevideoencoder.MainActivity.FRAME_TYPE_B;
24 import static com.android.media.samplevideoencoder.MainActivity.FRAME_TYPE_I;
25 import static com.android.media.samplevideoencoder.MainActivity.FRAME_TYPE_P;
/frameworks/base/tests/inputmethod/ConcurrentMultiSessionImeTest/src/com/android/server/inputmethod/multisessiontest/
DConcurrentMultiUserTest.java57 MainActivity.class.getName());
59 private ActivityScenario<MainActivity> mActivityScenario;
60 private MainActivity mActivity;
70 mActivityScenario = ActivityScenario.launch(MainActivity.class); in setUp()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v1/src/com/android/framework/multidexlegacyversionedtestapp/
DMultiDexUpdateTest.java25 public class MultiDexUpdateTest extends ActivityInstrumentationTestCase2<MainActivity>
28 super(MainActivity.class); in MultiDexUpdateTest()
DMainActivity.java22 public class MainActivity extends Activity { class
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v2/src/com/android/framework/multidexlegacyversionedtestapp/
DMultiDexUpdateTest.java25 public class MultiDexUpdateTest extends ActivityInstrumentationTestCase2<MainActivity>
28 super(MainActivity.class); in MultiDexUpdateTest()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyVersionedTestApp_v3/src/com/android/framework/multidexlegacyversionedtestapp/
DMultiDexUpdateTest.java25 public class MultiDexUpdateTest extends ActivityInstrumentationTestCase2<MainActivity>
28 super(MainActivity.class); in MultiDexUpdateTest()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/service/
DTestJobService.java34 import com.android.demo.jobSchedulerApp.MainActivity;
72 m.what = MainActivity.MSG_SERVICE_OBJ; in onStartCommand()
112 MainActivity mActivity;
116 public void setUiCallback(MainActivity activity) { in setUiCallback()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/
DActivityTest.java26 import com.android.multidexlegacyandexception.MainActivity;
39 public class ActivityTest extends android.test.ActivityInstrumentationTestCase2<MainActivity> {
41 super(MainActivity.class); in ActivityTest()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/
DMainActivity.java21 public class MainActivity extends Activity { class
23 public MainActivity() { in MainActivity() method in MainActivity
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppWithCorruptedDex/src/com/android/framework/multidexlegacycorrupteddex/
DCorruptedDexTest.java28 public class CorruptedDexTest extends ActivityInstrumentationTestCase2<MainActivity>
32 super(MainActivity.class); in CorruptedDexTest()
DMainActivity.java22 public class MainActivity extends Activity { class
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/
DTest.java25 public class Test extends ActivityInstrumentationTestCase2<MainActivity> {
27 super(MainActivity.class); in Test()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DMainActivityTest.java13 public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> {
14 private MainActivity mActivity;
19 super(MainActivity.class); in MainActivityTest()
/frameworks/base/tests/graphics/RenderThreadTest/src/com/example/renderthread/
DSubActivity.java48 child.animate().translationX(0).setDuration(MainActivity.DURATION); in onResume()
52 bg.animate().alpha(1f).setDuration(MainActivity.DURATION); in onResume()
DMainActivity.java20 public class MainActivity extends Activity implements OnItemClickListener { class
90 startActivity(new Intent(MainActivity.this, SubActivity.class));
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DServiceCrashTest.java69 intent.setClass(ctx, MainActivity.class); in testCrashQuickly()
72 assertTrue(MainActivity.sBindingDiedLatch.await(200, TimeUnit.SECONDS)); in testCrashQuickly()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
DMainActivity.java41 public class MainActivity extends Activity { class
112 mTestService.setUiCallback(MainActivity.this);
119 Toast.makeText(MainActivity.this, "Service null, never got callback?", in ensureTestService()
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/
DMainActivity.java45 public class MainActivity extends Activity { class
51 static final String ACTION_NAME = MainActivity.class.getName();
105 runOnUiThread(() -> Toast.makeText(MainActivity.this, message, Toast.LENGTH_LONG).show()); in makeToast()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DMainActivity.java35 public class MainActivity extends Activity { class
111 v = new BitmapView(MainActivity.this); in getView()
/frameworks/base/tests/MotionPrediction/src/test/motionprediction/
DMainActivity.kt22 class MainActivity : Activity() { class

123