Home
last modified time | relevance | path

Searched refs:getComponentName (Results 1 – 25 of 111) sorted by relevance

12345

/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityEventsImpl.java32 mActivity.getComponentName().getPackageName()) in activityCreated()
34 mActivity.getComponentName().getClassName()) in activityCreated()
41 mActivity.getComponentName().getPackageName()) in activityDestroyed()
43 mActivity.getComponentName().getClassName()) in activityDestroyed()
50 mActivity.getComponentName().getPackageName()) in activityPaused()
52 mActivity.getComponentName().getClassName()) in activityPaused()
59 mActivity.getComponentName().getPackageName()) in activityRestarted()
61 mActivity.getComponentName().getClassName()) in activityRestarted()
68 mActivity.getComponentName().getPackageName()) in activityResumed()
70 mActivity.getComponentName().getClassName()) in activityResumed()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DComponentNameTest.java81 final ComponentName componentName = getComponentName(); in testConstructor()
89 getComponentName().flattenToString()); in testFlattenToString()
94 String actual = getComponentName().getShortClassName(); in testGetShortClassName()
109 ComponentName expected = getComponentName(); in testReadFromParcel()
123 final String actual = getComponentName().getPackageName(); in testGetPackageName()
128 final ComponentName componentName = getComponentName(); in testUnflattenFromString()
129 final String flattenString = getComponentName().flattenToString(); in testUnflattenFromString()
137 String actual = getComponentName().flattenToShortString(); in testFlattenToShortString()
153 final ComponentName componentName1 = getComponentName(); in testEquals()
165 assertNotNull(getComponentName().toString()); in testToString()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowMetricsActivityTests.java90 mWmState.computeState(activity.getComponentName()); in testMetricsMatchesActivityBoundsOnNonresizableActivity()
105 waitForEnterPipAnimationComplete(activity.getComponentName()); in testMetricsMatchesLayoutOnPipActivity()
120 waitForEnterPipAnimationComplete(activity.getComponentName()); in testMetricsMatchesDisplayAreaOnPipActivity()
161 mWmState.computeState(activity.getComponentName()); in testMetricsMatchesLayoutOnSplitActivity()
162 putActivityInPrimarySplit(activity.getComponentName()); in testMetricsMatchesLayoutOnSplitActivity()
164 mWmState.computeState(activity.getComponentName()); in testMetricsMatchesLayoutOnSplitActivity()
165 assertTrue(mWmState.getActivity(activity.getComponentName()).getWindowingMode() in testMetricsMatchesLayoutOnSplitActivity()
180 mWmState.computeState(activity.getComponentName()); in testMetricsMatchesDisplayAreaOnSplitActivity()
181 putActivityInPrimarySplit(activity.getComponentName()); in testMetricsMatchesDisplayAreaOnSplitActivity()
183 mWmState.computeState(activity.getComponentName()); in testMetricsMatchesDisplayAreaOnSplitActivity()
[all …]
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DManagementTest.java41 AdminReceiver.getComponentName(getContext()))); in testIsManagedProfile()
44 AdminReceiver.getComponentName(getContext()))); in testIsManagedProfile()
50 AdminReceiver.getComponentName(getContext()))); in testIsDeviceOwner()
53 AdminReceiver.getComponentName(getContext()))); in testIsDeviceOwner()
65 AdminReceiver.getComponentName(mContext)); in testOtherProfilesEqualsBindTargetUsers()
76 ComponentName admin = AdminReceiver.getComponentName(mContext); in testCreateSecondaryUser()
83 AdminReceiver.getComponentName(mContext))); in testNoBindDeviceAdminTargetUsers()
DBindDeviceAdminServiceFailsTest.java54 AdminReceiver.getComponentName(mContext)); in testNoBindDeviceAdminTargetUsers()
80 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext), in bind()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleFreeformTests.java77 waitAndAssertActivityState(getComponentName(FirstActivity.class), STATE_RESUMED, in testLaunchInFreeform()
110 waitAndAssertActivityState(getComponentName(FirstActivity.class), STATE_RESUMED, message); in testMultiLaunchInFreeform()
111 waitAndAssertActivityState(getComponentName(SecondActivity.class), STATE_RESUMED, message); in testMultiLaunchInFreeform()
112 waitAndAssertActivityState(getComponentName(ThirdActivity.class), STATE_RESUMED, message); in testMultiLaunchInFreeform()
145 waitAndAssertActivityState(getComponentName(FirstActivity.class), STATE_STOPPED, in testLaunchOccludingInFreeform()
148 waitAndAssertActivityState(getComponentName(SecondActivity.class), STATE_RESUMED, message); in testLaunchOccludingInFreeform()
149 waitAndAssertActivityState(getComponentName(ThirdActivity.class), STATE_RESUMED, message); in testLaunchOccludingInFreeform()
163 mWmState.waitForActivityRemoved(getComponentName(SecondActivity.class)); in testLaunchOccludingInFreeform()
164 waitAndAssertActivityState(getComponentName(FirstActivity.class), STATE_RESUMED, in testLaunchOccludingInFreeform()
168 mWmState.containsActivity(getComponentName(SecondActivity.class))); in testLaunchOccludingInFreeform()
[all …]
DActivityStarterTests.java68 = getComponentName(StandardActivity.class);
70 = getComponentName(SecondStandardActivity.class);
72 = getComponentName(SingleTopActivity.class);
74 = getComponentName(SingleInstanceActivity.class);
76 = getComponentName(SingleTaskActivity.class);
78 = getComponentName(StandardWithSingleTopActivity.class);
80 = getComponentName(TestLaunchingActivity.class);
82 = getComponentName(LaunchingAndFinishActivity.class);
84 = getComponentName(ClearTaskOnLaunchActivity.class);
86 = getComponentName(FinishOnTaskLaunchActivity.class);
[all …]
DActivityLifecycleLegacySplitScreenTests.java249 mWmState.computeState(firstActivity.getComponentName()); in testResumedTranslucentWhenRestartedFromInNonFocusedTask()
250 moveActivitiesToSplitScreen(firstActivity.getComponentName(), in testResumedTranslucentWhenRestartedFromInNonFocusedTask()
251 sideActivity.getComponentName()); in testResumedTranslucentWhenRestartedFromInNonFocusedTask()
316 setTargetActivity(getComponentName(ConfigChangeHandlingActivity.class)), in testLifecycleOnMoveToFromSplitScreenNoRelaunch()
318 setTargetActivity(getComponentName(SecondActivity.class))); in testLifecycleOnMoveToFromSplitScreenNoRelaunch()
321 getComponentName(ConfigChangeHandlingActivity.class)); in testLifecycleOnMoveToFromSplitScreenNoRelaunch()
361 .setTargetActivity(getComponentName(ConfigChangeHandlingActivity.class)), in testOnUserLeaveHint()
365 .setTargetActivity(getComponentName(FirstActivity.class))); in testOnUserLeaveHint()
DActivityLifecycleTopResumedStateTests.java95 mWmState.waitForActivityRemoved(getComponentName(CallbackTrackingActivity.class)); in testTopPositionLostOnFinish()
753 waitAndAssertTopResumedActivity(getComponentName(CallbackTrackingActivity.class), in testTopPositionSwitchAcrossDisplays()
770 waitAndAssertTopResumedActivity(getComponentName(SingleTopActivity.class), in testTopPositionSwitchAcrossDisplays()
805 waitAndAssertTopResumedActivity(getComponentName(CallbackTrackingActivity.class), in testTopPositionSwitchAcrossDisplaysOnTap()
820 waitAndAssertTopResumedActivity(getComponentName(SingleTopActivity.class), in testTopPositionSwitchAcrossDisplaysOnTap()
827 .getTaskByActivity(getComponentName(CallbackTrackingActivity.class)); in testTopPositionSwitchAcrossDisplaysOnTap()
844 .getTaskByActivity(getComponentName(SingleTopActivity.class)); in testTopPositionSwitchAcrossDisplaysOnTap()
892 waitAndAssertTopResumedActivity(getComponentName(SlowActivity.class), in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
906 .getTaskByActivity(getComponentName(SecondProcessCallbackTrackingActivity.class)); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
920 .getTaskByActivity(getComponentName(defaultActivityClass)); in testTopPositionSwitchAcrossDisplaysOnTapSlowDifferentProcess()
[all …]
/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DCrossProfileAppsStartActivityTest.java107 intent.setComponent(MainActivity.getComponentName(mContext)); in testCannotStartActivityByIntentWithNoPermissions()
116 intent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartActivityByIntentWithInteractAcrossProfilesPermission()
136 intent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartActivityByIntentWithInteractAcrossUsersPermission()
156 intent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartActivityByIntentWithInteractAcrossUsersFullPermission()
188 mainActivityIntent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartMainActivityByIntent()
210 mainActivityIntent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartMainActivityByIntent_withOptionsBundle()
236 nonMainActivityIntent.setComponent(NonMainActivity.getComponentName(mContext)); in testCanStartNonMainActivityByIntent()
265 CrossProfileSameTaskLauncherActivity.getComponentName(mContext)); in testStartActivityIntent_sameTaskByDefault()
305 nonMainActivityIntent.setComponent(NonMainActivity.getComponentName(mContext)); in testStartActivityByIntent_noAsserts()
318 MainActivity.getComponentName(mContext), mTargetUser)); in testCanStartMainActivityByComponent()
[all …]
DCrossProfileAppsTargetUserTest.java103 MainActivity.getComponentName(mContext), mTargetUser); in testCanStartMainActivity()
119 NonExportedActivity.getComponentName(mContext), mTargetUser); in testCannotStartNotExportedActivity()
125 NonMainActivity.getComponentName(mContext), mTargetUser); in testCannotStartNonMainActivity()
151 MainActivity.getComponentName(mContext), mTargetUser); in testStartMainActivity_noAsserts()
DCrossProfileSameTaskLauncherActivity.java56 nonMainActivityIntent.setComponent(NonMainActivity.getComponentName(this)); in onCreate()
63 static ComponentName getComponentName(Context context) { in getComponentName() method in CrossProfileSameTaskLauncherActivity
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsPhoneAccountSuggestionService.java44 context.getPackageManager().setComponentEnabledSetting(getComponentName(context), in enableService()
50 context.getPackageManager().setComponentEnabledSetting(getComponentName(context), in disableService()
55 private static ComponentName getComponentName(Context context) { in getComponentName() method in CtsPhoneAccountSuggestionService
DMockCallScreeningService.java93 context.getPackageManager().setComponentEnabledSetting(getComponentName(context), in enableService()
99 context.getPackageManager().setComponentEnabledSetting(getComponentName(context), in disableService()
104 private static ComponentName getComponentName(Context context) { in getComponentName() method in MockCallScreeningService
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DMultiScreenLoginTest.java174 assertThat(component1).isEqualTo(mActivity.getComponentName());
203 assertThat(component2).isEqualTo(passwordActivity.getComponentName());
224 assertThat(componentPrevious).isEqualTo(mActivity.getComponentName());
231 assertThat(componentCurrent).isEqualTo(passwordActivity.getComponentName());
260 assertThat(component1).isEqualTo(mActivity.getComponentName());
294 assertThat(component2).isEqualTo(passwordActivity.getComponentName());
316 assertThat(componentPrevious).isEqualTo(mActivity.getComponentName());
323 assertThat(componentCurrent).isEqualTo(passwordActivity.getComponentName());
359 assertThat(component1).isEqualTo(mActivity.getComponentName());
407 assertThat(component2).isEqualTo(passwordActivity.getComponentName());
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricSecurityTests.java181 final ComponentName componentName = getComponentName(requestedStrength); in testBiometricStrength_forSensor_authAllowed()
192 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrength_forSensor_authAllowed()
228 final ComponentName componentName = getComponentName(requestedStrength); in testBiometricStrength_forSensor_authDisallowed()
238 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrength_forSensor_authDisallowed()
364 final ComponentName componentName = getComponentName(requestedStrength); in testBiometricStrengthDowngraded_forSensor()
372 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrengthDowngraded_forSensor()
529 final ComponentName componentName = getComponentName(requestedStrength); in testBiometricStrengthUpgraded_forSensor()
539 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrengthUpgraded_forSensor()
583 private static ComponentName getComponentName(int requestedStrength) { in getComponentName() method in BiometricSecurityTests
DActivitySession.java48 ComponentName getComponentName() { in getComponentName() method in ActivitySession
DBiometricActivityTests.java78 .get(activitySession.getComponentName()); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
133 TestJournalProvider.TestJournalContainer.get(activitySession.getComponentName()); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
200 TestJournalProvider.TestJournalContainer.get(activitySession.getComponentName()); in testBiometricOnly_rejectThenAuthenticate_forSensor()
204 mWmState.waitForActivityState(activitySession.getComponentName(), in testBiometricOnly_rejectThenAuthenticate_forSensor()
265 .get(activitySession.getComponentName()); in testBiometricOnly_negativeButtonInvoked_forSensor()
361 .get(activitySession.getComponentName()); in testBiometricOrCredential_credentialButtonInvoked_forConfiguration()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java515 assertThat(testResult.getComponentName(), in testStartExposed01()
536 assertThat(testResult.getComponentName(), in testStartExposed02()
558 assertThat(testResult.getComponentName(), in testStartExposed03()
610 assertThat(testResult.getComponentName(), in testStartExposed06()
630 assertThat(testResult.getComponentName(), in testStartExposed07()
655 assertThat(testResult.getComponentName(), in testStartExposed08()
684 assertThat(testResult.getComponentName(), in testStartExposed09()
719 assertThat(testResult.getComponentName(), in testStartExposed10()
742 assertThat(testResult.getComponentName(), in testStartExposed11()
763 assertThat(testResult.getComponentName(), in testStartEphemeral()
[all …]
/cts/tests/app/src/android/app/cts/
DTileServiceTest.java97 clickTile(TestTileService.getComponentName().flattenToString()); in testShowDialog()
188 protected String getComponentName() { in getComponentName() method in TileServiceTest
189 return TestTileService.getComponentName().flattenToString(); in getComponentName()
DBooleanTileServiceTest.java93 protected String getComponentName() { in getComponentName() method in BooleanTileServiceTest
94 return ToggleableTestTileService.getComponentName().flattenToString(); in getComponentName()
DAppTaskTests.java102 assertTrue(appTasks.get(0).getTaskInfo().topActivity.equals(a1.getComponentName())); in testSingleAppTask()
118 activities.get(i).getComponentName())); in testMultipleAppTasks()
179 assertTrue(taskInfo.baseActivity.equals(a1.getComponentName())); in testStartActivityInTask_NoNewTask()
198 assertTrue(taskInfo.baseActivity.equals(a1.getComponentName())); in testStartActivityInTask_NewTask()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorDeviceAdminReceiver.java31 public static ComponentName getComponentName(Context context) { in getComponentName() method in SensorDeviceAdminReceiver
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DLaunchRunner.java286 final ComponentName testActivityName = activity.getComponentName(); in waitAndAssertActivityLaunched()
301 mTestBase.getWmState().waitForValidState(activity.getComponentName()); in waitDumpAndTrim()
305 mTestBase.getWmState().computeState(activity.getComponentName()); in waitDumpAndTrim()
323 mTestBase.getWmState().waitForValidState(activity.getComponentName()); in waitDumpAndTrimForVerification()
327 mTestBase.getWmState().computeState(activity.getComponentName()); in waitDumpAndTrimForVerification()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/
DEventLibActivity.java57 public ComponentName getComponentName() { in getComponentName() method in EventLibActivity
84 mActivityInfo = packageManager.getActivityInfo(getComponentName(), /* flags= */ 0); in activityInfo()

12345