/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | LifecycleVerifier.java | 55 static void assertLaunchSequence(Class<? extends Activity> activityClass, in assertLaunchSequence() argument 58 lifecycleLog.getActivityLog(activityClass); in assertLaunchSequence() 60 final String errorMessage = errorDuringTransition(activityClass, "launch"); in assertLaunchSequence() 62 final List<LifecycleLog.ActivityCallback> launchSequence = getLaunchSequence(activityClass); in assertLaunchSequence() 72 Class<? extends Activity> activityClass) { in getLaunchSequence() argument 73 return CALLBACK_TRACKING_CLASS.isAssignableFrom(activityClass) in getLaunchSequence() 80 Class<? extends Activity> activityClass) { in getLaunchAndDestroySequence() argument 82 expectedTransitions.addAll(getLaunchSequence(activityClass)); in getLaunchAndDestroySequence() 83 expectedTransitions.addAll(getResumeToDestroySequence(activityClass)); in getLaunchAndDestroySequence() 131 static void assertLaunchAndStopSequence(Class<? extends Activity> activityClass, in assertLaunchAndStopSequence() argument [all …]
|
D | LifecycleTracker.java | 52 void waitAndAssertActivityCurrentState(Class<? extends Activity> activityClass, in waitAndAssertActivityCurrentState() argument 55 List<ActivityCallback> activityLog = mLifecycleLog.getActivityLog(activityClass); in waitAndAssertActivityCurrentState() 62 + expectedState + " : " + mLifecycleLog.getActivityLog(activityClass)); in waitAndAssertActivityCurrentState() 72 void waitForActivityTransitions(Class<? extends Activity> activityClass, in waitForActivityTransitions() argument 75 () -> mLifecycleLog.getActivityLog(activityClass).equals(expectedTransitions), in waitForActivityTransitions() 91 final Class<? extends Activity> activityClass = callbackPair.first; in pendingCallbacks() local 93 mLifecycleLog.getActivityLog(activityClass); in pendingCallbacks()
|
D | ActivityLifecycleClientTestBase.java | 141 Launcher(@NonNull Class<? extends Activity> activityClass) { in Launcher() argument 142 mActivityClass = activityClass; in Launcher() 255 <T extends Activity> T launchActivityAndWait(Class<? extends Activity> activityClass) in launchActivityAndWait() argument 257 return (T) new Launcher(activityClass).launch(); in launchActivityAndWait() 275 Class<? extends Activity> activityClass, ActivityCallback expectedState) { in waitAndAssertActivityCurrentState() argument 277 mLifecycleTracker.waitAndAssertActivityCurrentState(activityClass, expectedState); in waitAndAssertActivityCurrentState() 284 final void waitForActivityTransitions(Class<? extends Activity> activityClass, in waitForActivityTransitions() argument 287 mLifecycleTracker.waitForActivityTransitions(activityClass, expectedTransitions); in waitForActivityTransitions() 295 final void waitAndAssertActivityTransitions(Class<? extends Activity> activityClass, in waitAndAssertActivityTransitions() argument 298 mLifecycleTracker.waitForActivityTransitions(activityClass, expectedTransitions); in waitAndAssertActivityTransitions() [all …]
|
D | LifecycleLog.java | 112 List<ActivityCallback> getActivityLog(Class<? extends Activity> activityClass) { in getActivityLog() argument 113 final String activityName = activityClass.getCanonicalName(); in getActivityLog()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/ |
D | ActivityInfo.java | 37 .activityClass(activityInfo.name) in builder() 41 private ActivityInfo(String activityClass, boolean exported) { in ActivityInfo() argument 42 super(activityClass); in ActivityInfo() 63 public Builder activityClass(String activityClassName) { in activityClass() method in ActivityInfo.Builder 68 public Builder activityClass(Activity activity) { in activityClass() method in ActivityInfo.Builder 69 return activityClass(activity.getClass()); in activityClass() 72 public Builder activityClass(Class<? extends Activity> activityClass) { in activityClass() argument 73 return activityClass(activityClass.getName()); in activityClass()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | AutofillActivityTestRule.java | 28 public AutofillActivityTestRule(Class<T> activityClass) { in AutofillActivityTestRule() argument 29 super(activityClass); in AutofillActivityTestRule() 32 public AutofillActivityTestRule(Class<T> activityClass, boolean launchActivity) { in AutofillActivityTestRule() argument 33 super(activityClass, false, launchActivity); in AutofillActivityTestRule()
|
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppActivitiesTest.java | 63 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesActivity_returnsActivity() 72 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesPreviouslyReturnedActivity_throwsException() 77 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesPreviouslyReturnedActivity_throwsException() 85 .whereActivity().activityClass().className() in query_doesNotMatchActivity_throwsException() 100 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesActivityPreviouslyReturnedByDifferentInstance_returnsActivity() 107 .whereActivity().activityClass().className().isEqualTo(EXISTING_ACTIVITY) in query_matchesActivityPreviouslyReturnedByDifferentInstance_returnsActivity()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ActivityLauncher.java | 39 @NonNull Class<A> activityClass) { in ActivityLauncher() argument 40 mWatcher = watcher.watch(activityClass); in ActivityLauncher() 41 mActivityTestRule = new ActivityTestRule<>(activityClass); in ActivityLauncher() 42 mLaunchIntent = new Intent(context, activityClass); in ActivityLauncher()
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/ |
D | EventLibActivityTest.java | 73 .whereActivity().activityClass().isSameClassAs(EventLibActivity.class); in launchEventLibActivity_logsActivityCreatedEvent() 87 … .whereActivity().activityClass().className().isEqualTo(GENERATED_ACTIVITY_CLASS_NAME); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName() 104 .whereActivity().activityClass().isSameClassAs(EventLibActivity.class); in startEventLibActivity_logsActivityStartedEvent() 121 … .whereActivity().activityClass().className().isEqualTo(GENERATED_ACTIVITY_CLASS_NAME); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName() 138 .whereActivity().activityClass().isSameClassAs(EventLibActivity.class); in stopEventLibActivity_logsActivityStoppedEvent() 155 … .whereActivity().activityClass().className().isEqualTo(GENERATED_ACTIVITY_CLASS_NAME); in stopEventLibActivity_withGeneratedActivityClass_logsActivityStoppedEventWithCorrectClassName() 172 .whereActivity().activityClass().isSameClassAs(EventLibActivity.class); in destroyEventLibActivity_logsActivityDestroyedEvent() 189 … .whereActivity().activityClass().className().isEqualTo(GENERATED_ACTIVITY_CLASS_NAME); in destroyEventLibActivity_withGeneratedActivityClass_logsActivityDestroyedEventWithCorrectClassName() 208 .whereActivity().activityClass().isSameClassAs(EventLibActivity.class); in pauseEventLibActivity_logsActivityPausedEvent() 227 … .whereActivity().activityClass().className().isEqualTo(GENERATED_ACTIVITY_CLASS_NAME); in pauseEventLibActivity_withGeneratedActivityClass_logsActivityPausedEventWithCorrectClassName() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplayClientTests.java | 91 private <T extends Activity> void testDisplayIdUpdateOnMove(Class<T> activityClass, in testDisplayIdUpdateOnMove() argument 94 activityClass, true /* initialTouchMode */, false /* launchActivity */); in testDisplayIdUpdateOnMove() 112 final Intent newDisplayIntent = new Intent(mContext, activityClass); in testDisplayIdUpdateOnMove() 152 private void testDisplayIdUpdateWhenImeMove(Class<? extends ImeTestActivity> activityClass) in testDisplayIdUpdateWhenImeMove() argument 160 activityClass, mockImeSession, DEFAULT_DISPLAY); in testDisplayIdUpdateWhenImeMove() 170 activityClass, mockImeSession, newDisplay.mId); in testDisplayIdUpdateWhenImeMove() 173 private void assertImeShownAndMatchesDisplayId(Class<? extends ImeTestActivity> activityClass, in assertImeShownAndMatchesDisplayId() argument 177 final Intent intent = new Intent(mContext, activityClass) in assertImeShownAndMatchesDisplayId()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/ |
D | CustomDescriptionWithLinkTestCase.java | 62 protected CustomDescriptionWithLinkTestCase(@NonNull Class<A> activityClass) { in CustomDescriptionWithLinkTestCase() argument 63 mActivityClass = activityClass; in CustomDescriptionWithLinkTestCase() 283 Class<? extends Activity> activityClass) { in newCustomDescriptionBuilder() argument 284 final Intent intent = new Intent(mContext, activityClass); in newCustomDescriptionBuilder() 290 Class<? extends Activity> activityClass) { in newCustomDescription() argument 291 return newCustomDescriptionBuilder(activityClass).build(); in newCustomDescription()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/info/ |
D | ActivityInfoTest.java | 39 ActivityInfo activityInfo = ActivityInfo.builder().activityClass(TEST_CLASS).build(); in classConstructor_setsClass() 47 ActivityInfo.builder().activityClass(c).build()); in instanceConstructor_setsClass() 54 ActivityInfo activityInfo = ActivityInfo.builder().activityClass(TEST_CLASS_NAME).build(); in stringConstructor_setsClass()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | SuspendPackageTest.java | 52 Class<IntentSenderActivity> activityClass = IntentSenderActivity.class; in setUp() local 54 Log.w(TAG, "setup(): not launching " + activityClass + " on user " + userId in setUp() 57 Log.d(TAG, "setup(): launching " + activityClass + " on user " + userId); in setUp() 58 mActivity = launchActivity(packageName, activityClass, null); in setUp() 60 activityClass, packageName, userId).that(mActivity).isNotNull(); in setUp()
|
/cts/tests/openglperf2/jni/graphics/ |
D | GLUtils.cpp | 62 jclass activityClass = sEnv->FindClass("android/opengl2/cts/reference/GLGameActivity"); in loadTexture() local 63 if (activityClass == NULL) { in loadTexture() 67 jmethodID loadTexture = sEnv->GetStaticMethodID(activityClass, "loadTexture", in loadTexture() 74 textureId = sEnv->CallStaticIntMethod(activityClass, loadTexture, sAssetManager, pathStr); in loadTexture()
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/ |
D | ActivityDestroyedEventTest.java | 58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works() 74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
|
D | ActivityRestartedEventTest.java | 58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works() 74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
|
D | ActivityStoppedEventTest.java | 58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works() 74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
|
D | ActivityPausedEventTest.java | 58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works() 74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
|
D | ActivityResumedEventTest.java | 58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works() 74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
|
D | ActivityStartedEventTest.java | 58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works() 74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | AbstractContentCaptureIntegrationAutoActivityLaunchTest.java | 46 @NonNull Class<A> activityClass) { in AbstractContentCaptureIntegrationAutoActivityLaunchTest() 47 mActivityClass = activityClass; in AbstractContentCaptureIntegrationAutoActivityLaunchTest()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/ |
D | ActivityQueryHelperTest.java | 69 activityQueryHelper.activityClass().isSameClassAs(CLASS_1); in matches_activityClass_doesMatch_returnsTrue() 78 activityQueryHelper.activityClass().isSameClassAs(CLASS_1); in matches_activityClass_doesNotMatch_returnsFalse()
|
/cts/common/device-side/bedstead/testapp/src/main/library/java/com/android/bedstead/testapp/ |
D | TestAppActivityReference.java | 77 … .whereActivity().activityClass().className().isEqualTo(mComponent.className()).waitForEvent(); in start() 98 … .whereActivity().activityClass().className().isEqualTo(mComponent.className()).waitForEvent(); in start()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/ |
D | ActivityQuery.java | 31 ClassQuery<E> activityClass(); in activityClass() method
|
D | ActivityQueryHelper.java | 42 public ClassQuery<E> activityClass() { in activityClass() method in ActivityQueryHelper
|