Home
last modified time | relevance | path

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

/aosp12/frameworks/base/test-runner/src/android/test/
H A 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()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
H A DTestInstrumentationRunner.java47 Class<? extends Activity> newActivity) { in registerReplacedActivity() argument
49 (classLoader, className, intent) -> newActivity.newInstance()); in registerReplacedActivity()
57 public Activity newActivity(ClassLoader cl, String className, Intent intent) in newActivity() method in TestInstrumentationRunner
63 return super.newActivity(cl, className, intent); in newActivity()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DActivityThreadTest.java159 final Activity newActivity = activityThread.getActivity(token); in testCustomIntentPreservedOnRelaunch()
161 initIntent.filterEquals(newActivity.getIntent())); in testCustomIntentPreservedOnRelaunch()
166 newActivity.setIntent(customIntent); in testCustomIntentPreservedOnRelaunch()
207 final Activity[] newActivity = new Activity[1]; in relaunchActivityAndAssertPreserveWindow() local
210 newActivity[0] = activityThread.getActivity(token[0]); in relaunchActivityAndAssertPreserveWindow()
211 newDecorView[0] = newActivity[0].getWindow().getDecorView(); in relaunchActivityAndAssertPreserveWindow()
214 assertNotEquals("Activity must be relaunched", activity, newActivity[0]); in relaunchActivityAndAssertPreserveWindow()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DSizeCompatTests.java1510 verify(mTask).onDescendantOrientationChanged(same(newActivity)); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox()
1514 final Rect newActivityBounds = new Rect(newActivity.getBounds()); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox()
1518 assertTrue(newActivity.isLetterboxedForFixedOrientationAndAspectRatio()); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox()
1519 assertFalse(newActivity.inSizeCompatMode()); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox()
1521 assertThat(newActivity.getConfiguration().windowConfiguration.getMaxBounds()) in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox()
1522 .isEqualTo(newActivity.getWindowConfiguration().getBounds()); in testDisplayIgnoreOrientationRequest_newLaunchedOrientationAppInLetterbox()
1554 verify(mTask).onDescendantOrientationChanged(same(newActivity)); in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp()
1558 final Rect newActivityBounds = new Rect(newActivity.getBounds()); in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp()
1564 assertThat(newActivity.getConfiguration().windowConfiguration.getMaxBounds()) in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp()
1570 assertFalse(newActivity.inSizeCompatMode()); in testDisplayIgnoreOrientationRequest_newLaunchedMaxAspectApp()
[all …]
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
H A DDrawingTestHelper.java46 instrumentation.newActivity( in createCanvasActivity()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/security/
H A DSecurityDashboardActivityTest.java60 .getInstrumentation().newActivity( in setUp()
/aosp12/packages/apps/Car/RotaryController/src/com/android/car/rotary/
H A DRotaryService.java1947 ComponentName newActivity = packageName != null && className != null in onForegroundActivityChanged() local
1950 if (newActivity != null && newActivity.equals(mForegroundActivity)) { in onForegroundActivityChanged()
1953 mForegroundActivity = newActivity; in onForegroundActivityChanged()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcTracker.java4960 DctConstants.Activity newActivity; in updateDataActivity() local
4979 newActivity = DctConstants.Activity.DATAINANDOUT; in updateDataActivity()
4981 newActivity = DctConstants.Activity.DATAOUT; in updateDataActivity()
4983 newActivity = DctConstants.Activity.DATAIN; in updateDataActivity()
4985 newActivity = (mActivity == DctConstants.Activity.DORMANT) ? in updateDataActivity()
4989 if (mActivity != newActivity && mIsScreenOn) { in updateDataActivity()
4991 log("updateDataActivity: newActivity=" + newActivity); in updateDataActivity()
4992 mActivity = newActivity; in updateDataActivity()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutPackage.java1445 final ComponentName newActivity = newShortcut.getActivity(); in enforceShortcutCountsBeforeOperation() local
1446 if (newActivity == null) { in enforceShortcutCountsBeforeOperation()
1461 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
1478 incrementCountForActivity(counts, newActivity, 1); in enforceShortcutCountsBeforeOperation()
/aosp12/frameworks/base/core/java/android/app/
H A DInstrumentation.java1247 public Activity newActivity(Class<?> clazz, Context context, in newActivity() method in Instrumentation
1279 public Activity newActivity(ClassLoader cl, String className, in newActivity() method in Instrumentation
H A DActivityThread.java3600 activity = mInstrumentation.newActivity( in performLaunchActivity()
/aosp12/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DSession.java949 void switchActivity(@NonNull IBinder newActivity, @NonNull IBinder newClient) {
956 mActivityToken = newActivity;
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DTask.java5240 ActivityRecord resetTaskIfNeeded(ActivityRecord taskTop, ActivityRecord newActivity) {
5242 (newActivity.info.flags & ActivityInfo.FLAG_CLEAR_TASK_ON_LAUNCH) != 0;
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/aosp12/frameworks/base/core/api/
H A Dcurrent.txt5420 …method public android.app.Activity newActivity(Class<?>, android.content.Context, android.os.IBind…
5421 …method public android.app.Activity newActivity(ClassLoader, String, android.content.Intent) throws…
/aosp12/frameworks/opt/setupwizard/tools/docs/
H A 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…
/aosp12/frameworks/base/boot/
H A Dboot-image-profile.txt1946 HSPLandroid/app/Instrumentation;->newActivity(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/con…
/aosp12/frameworks/base/config/
H A Dboot-image-profile.txt1946 HSPLandroid/app/Instrumentation;->newActivity(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/con…