Home
last modified time | relevance | path

Searched refs:activityClass (Results 1 – 25 of 39) sorted by relevance

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DLifecycleVerifier.java55 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 …]
DLifecycleTracker.java52 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()
DActivityLifecycleClientTestBase.java141 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 …]
DLifecycleLog.java112 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/
DActivityInfo.java37 .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/
DAutofillActivityTestRule.java28 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/
DTestAppActivitiesTest.java63 .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/
DActivityLauncher.java39 @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/
DEventLibActivityTest.java73 .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/
DMultiDisplayClientTests.java91 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/
DCustomDescriptionWithLinkTestCase.java62 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/
DActivityInfoTest.java39 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/
DSuspendPackageTest.java52 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/
DGLUtils.cpp62 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/
DActivityDestroyedEventTest.java58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityRestartedEventTest.java58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityStoppedEventTest.java58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityPausedEventTest.java58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityResumedEventTest.java58 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
74 .whereActivity().activityClass().className().isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityStartedEventTest.java58 .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/
DAbstractContentCaptureIntegrationAutoActivityLaunchTest.java46 @NonNull Class<A> activityClass) { in AbstractContentCaptureIntegrationAutoActivityLaunchTest()
47 mActivityClass = activityClass; in AbstractContentCaptureIntegrationAutoActivityLaunchTest()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DActivityQueryHelperTest.java69 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/
DTestAppActivityReference.java77 … .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/
DActivityQuery.java31 ClassQuery<E> activityClass(); in activityClass() method
DActivityQueryHelper.java42 public ClassQuery<E> activityClass() { in activityClass() method in ActivityQueryHelper

12