Home
last modified time | relevance | path

Searched refs:newActivity (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/test-runner/src/android/test/
DActivityUnitTestCase.java137 T newActivity = null; in startActivity() local
151 newActivity = (T) getInstrumentation().newActivity(mActivityClass, mActivityContext, in startActivity()
156 assertNotNull(newActivity); in startActivity()
159 assertNotNull(newActivity); in startActivity()
160 setActivity(newActivity); in startActivity()
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DImeOpenCloseStressTest.java546 TestActivity newActivity = TestActivity.getLastCreatedInstance(); in verifyRotateBehavior() local
547 assertThat(newActivity).isNotNull(); in verifyRotateBehavior()
548 assertThat(newActivity).isNotEqualTo(activity); in verifyRotateBehavior()
550 EditText newEditText = newActivity.getEditText(); in verifyRotateBehavior()
551 int softInputMode = newActivity.getWindow().getAttributes().softInputMode; in verifyRotateBehavior()
554 if (hasUnfocusableWindowFlags(newActivity)) { in verifyRotateBehavior()
555 verifyImeAlwaysHiddenWithWindowFlagSet(newActivity); in verifyRotateBehavior()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DWakefulnessSessionObserverTest.java125 int newActivity = PowerManager.USER_ACTIVITY_EVENT_ATTENTION; in testOnUserActivity_updateActivity() local
129 newActivityTimestamp, powerGroupId, newActivity); in testOnUserActivity_updateActivity()
131 .mCurrentUserActivityEvent).isEqualTo(newActivity); in testOnUserActivity_updateActivity()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTransparentPolicyTest.java359 final ActivityRecord newActivity = activityBuilder.build(); in launchActivity() local
361 mTask.addChild(newActivity); in launchActivity()
363 spyOn(newActivity.mTransparentPolicy); in launchActivity()
364 mActivityStack.pushActivity(newActivity); in launchActivity()
DSizeCompatTests.java2767 final ActivityRecord newActivity = new ActivityBuilder(display.mWmService.mAtmService)
2775 verify(mTask).onDescendantOrientationChanged(same(newActivity));
2779 final Rect newActivityBounds = new Rect(newActivity.getBounds());
2783 assertTrue(newActivity.isLetterboxedForFixedOrientationAndAspectRatio());
2784 assertFalse(newActivity.inSizeCompatMode());
2786 assertThat(newActivity.getConfiguration().windowConfiguration.getMaxBounds())
2787 .isEqualTo(newActivity.getWindowConfiguration().getBounds());
2831 final ActivityRecord newActivity = new ActivityBuilder(display.mWmService.mAtmService)
2840 verify(mTask).onDescendantOrientationChanged(same(newActivity));
2844 final Rect newActivityBounds = new Rect(newActivity.getBounds());
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DDrawingTestHelper.java46 instrumentation.newActivity( in createCanvasActivity()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java215 final Activity newActivity = activityThread.getActivity(token); in testCustomIntentPreservedOnRelaunch() local
217 initIntent.filterEquals(newActivity.getIntent())); in testCustomIntentPreservedOnRelaunch()
222 newActivity.setIntent(customIntent); in testCustomIntentPreservedOnRelaunch()
351 final Activity[] newActivity = new Activity[1]; in relaunchActivityAndAssertPreserveWindow() local
354 newActivity[0] = activityThread.getActivity(token[0]); in relaunchActivityAndAssertPreserveWindow()
355 newDecorView[0] = newActivity[0].getWindow().getDecorView(); in relaunchActivityAndAssertPreserveWindow()
358 assertNotEquals("Activity must be relaunched", activity, newActivity[0]); in relaunchActivityAndAssertPreserveWindow()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java1522 final ComponentName newActivity = newShortcut.getActivity(); in enforceShortcutCountsBeforeOperation() local
1523 if (newActivity == null) { in enforceShortcutCountsBeforeOperation()
1538 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
1555 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
/frameworks/base/core/java/android/app/
DInstrumentation.java1410 public Activity newActivity(Class<?> clazz, Context context, in newActivity() method in Instrumentation
1442 public Activity newActivity(ClassLoader cl, String className, in newActivity() method in Instrumentation
DActivityThread.java3941 activity = mInstrumentation.newActivity( in performLaunchActivity()
/frameworks/base/services/core/java/com/android/server/wm/
DTask.java5451 ActivityRecord resetTaskIfNeeded(ActivityRecord taskTop, ActivityRecord newActivity) {
5453 (newActivity.info.flags & ActivityInfo.FLAG_CLEAR_TASK_ON_LAUNCH) != 0;
/frameworks/base/services/autofill/java/com/android/server/autofill/
DSession.java1605 void switchActivity(@NonNull IBinder newActivity, @NonNull IBinder newClient) { in switchActivity() argument
1612 mActivityToken = newActivity; in switchActivity()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt4357 …method public android.app.Activity newActivity(java.lang.Class<?>, android.content.Context, androi…
4358 …method public android.app.Activity newActivity(java.lang.ClassLoader, java.lang.String, android.co…
/frameworks/base/core/api/
Dcurrent.txt6126 …method public android.app.Activity newActivity(Class<?>, android.content.Context, android.os.IBind…
6127 …method public android.app.Activity newActivity(ClassLoader, String, android.content.Intent) throws…
/frameworks/base/boot/
Dboot-image-profile.txt2002 HSPLandroid/app/Instrumentation;->newActivity(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/con…
/frameworks/base/config/
Dboot-image-profile.txt2002 HSPLandroid/app/Instrumentation;->newActivity(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/con…