Home
last modified time | relevance | path

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

1234

/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/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()
87 assertTrue(mDevicePolicyManager.removeUser(AdminReceiver.getComponentName(mContext), in testCanRemoveManagedProfile()
92 ComponentName admin = AdminReceiver.getComponentName(mContext); in testCreateSecondaryUser()
99 AdminReceiver.getComponentName(mContext))); in testNoBindDeviceAdminTargetUsers()
106 mDevicePolicyManager.startUserInBackground(AdminReceiver.getComponentName(mContext), in testCannotStartManagedProfileInBackground()
114 mDevicePolicyManager.stopUser(AdminReceiver.getComponentName(mContext), in testCannotStopManagedProfile()
[all …]
DBindDeviceAdminServiceFailsTest.java54 AdminReceiver.getComponentName(mContext)); in testNoBindDeviceAdminTargetUsers()
80 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext), in bind()
DBindDeviceAdminServiceGoodSetupTest.java71 mTargetUsers = mDpm.getBindDeviceAdminTargetUsers(AdminReceiver.getComponentName(mContext)); in setUp()
76 if (!mDpm.isDeviceOwnerApp(AdminReceiver.getComponentName(mContext).getPackageName())) { in testOnlyDeviceOwnerCanHaveMoreThanOneTargetUser()
219 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext), in bind()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleFreeformTests.java79 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()
144 waitAndAssertActivityState(getComponentName(FirstActivity.class), STATE_STOPPED, in testLaunchOccludingInFreeform()
147 waitAndAssertActivityState(getComponentName(SecondActivity.class), STATE_RESUMED, message); in testLaunchOccludingInFreeform()
148 waitAndAssertActivityState(getComponentName(ThirdActivity.class), STATE_RESUMED, message); in testLaunchOccludingInFreeform()
162 mAmWmState.waitForActivityRemoved(getComponentName(SecondActivity.class)); in testLaunchOccludingInFreeform()
163 waitAndAssertActivityState(getComponentName(FirstActivity.class), STATE_RESUMED, in testLaunchOccludingInFreeform()
167 mAmWmState.getAmState().containsActivity(getComponentName(SecondActivity.class))); in testLaunchOccludingInFreeform()
[all …]
DActivityStarterTests.java52 = getComponentName(StandardActivity.class);
54 = getComponentName(SecondStandardActivity.class);
56 = getComponentName(SingleTopActivity.class);
58 = getComponentName(SingleInstanceActivity.class);
60 = getComponentName(SingleTaskActivity.class);
62 = getComponentName(StandardWithSingleTopActivity.class);
64 = getComponentName(TestLaunchingActivity.class);
66 = getComponentName(LaunchingAndFinishActivity.class);
90 mAmWmState.waitForActivityState(secondLaunchActivity.getComponentName(), STATE_RESUMED); in testClearTopNewTaskResetTask()
92 getActivityName(secondLaunchActivity.getComponentName()), in testClearTopNewTaskResetTask()
DActivityLifecycleSplitScreenTests.java119 final ComponentName firstActivityName = getComponentName(FirstActivity.class); in testOccludingMovedBetweenStacks()
143 moveActivityToStack(getComponentName(ThirdActivity.class), primarySplitStack); in testOccludingMovedBetweenStacks()
163 final ComponentName firstActivityName = getComponentName(FirstActivity.class); in testTranslucentMovedBetweenStacks()
188 moveActivityToStack(getComponentName(TranslucentActivity.class), primarySplitStack); in testTranslucentMovedBetweenStacks()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiScreenLoginTest.java167 assertThat(component1).isEqualTo(mActivity.getComponentName());
196 assertThat(component2).isEqualTo(passwordActivity.getComponentName());
217 assertThat(componentPrevious).isEqualTo(mActivity.getComponentName());
224 assertThat(componentCurrent).isEqualTo(passwordActivity.getComponentName());
253 assertThat(component1).isEqualTo(mActivity.getComponentName());
287 assertThat(component2).isEqualTo(passwordActivity.getComponentName());
309 assertThat(componentPrevious).isEqualTo(mActivity.getComponentName());
316 assertThat(componentCurrent).isEqualTo(passwordActivity.getComponentName());
352 assertThat(component1).isEqualTo(mActivity.getComponentName());
400 assertThat(component2).isEqualTo(passwordActivity.getComponentName());
DMultiScreenDifferentActivitiesTest.java134 assertThat(component1).isEqualTo(activity1.getComponentName()); in testDelayedActivityIsMerged()
142 assertThat(component2).isEqualTo(activity2.getComponentName()); in testDelayedActivityIsMerged()
/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/hostsidetests/devicepolicy/app/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
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()
DCrossProfileAppsStartActivityTest.java98 MainActivity.getComponentName(mContext), mTargetUser)); in testCanStartMainActivity()
116 NonMainActivity.getComponentName(mContext), mTargetUser)); in testCanStartNonMainActivity()
132 NonExportedActivity.getComponentName(mContext), mTargetUser); in testCannotStartNotExportedActivity()
DNonExportedActivity.java24 public static ComponentName getComponentName(Context context ){ in getComponentName() method in NonExportedActivity
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java509 assertThat(testResult.getComponentName(), in testStartExposed01()
530 assertThat(testResult.getComponentName(), in testStartExposed02()
552 assertThat(testResult.getComponentName(), in testStartExposed03()
604 assertThat(testResult.getComponentName(), in testStartExposed06()
624 assertThat(testResult.getComponentName(), in testStartExposed07()
649 assertThat(testResult.getComponentName(), in testStartExposed08()
678 assertThat(testResult.getComponentName(), in testStartExposed09()
713 assertThat(testResult.getComponentName(), in testStartExposed10()
734 assertThat(testResult.getComponentName(), in testStartEphemeral()
752 assertThat(testResult.getComponentName(), in testStartEphemeral()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DLaunchRunner.java277 final ComponentName testActivityName = activity.getComponentName(); in waitAndAssertActivityLaunched()
292 mTestBase.getAmWmState().waitForValidState(activity.getComponentName()); in waitDumpAndTrim()
296 mTestBase.getAmWmState().computeState(activity.getComponentName()); in waitDumpAndTrim()
314 mTestBase.getAmWmState().waitForValidState(activity.getComponentName()); in waitDumpAndTrimForVerification()
321 mTestBase.getAmWmState().computeState(activity.getComponentName()); in waitDumpAndTrimForVerification()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DManagedProfileProvisioningTest.java34 AdminReceiver.getComponentName(getContext())) in testProvisioningCorpOwnedManagedProfile()
49 dpm.setProfileEnabled(AdminReceiver.getComponentName(getContext())); in testEnableProfile()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DStartActivityTests.java60 mAmWmState.computeState(testActivity2.getComponentName()); in testStartActivityContexts()
66 testActivity2.getComponentName()); in testStartActivityContexts()
/cts/tests/app/src/android/app/cts/
DAppTaskTests.java100 assertTrue(appTasks.get(0).getTaskInfo().topActivity.equals(a1.getComponentName())); in testSingleAppTask()
116 activities.get(i).getComponentName())); in testMultipleAppTasks()
168 assertTrue(taskInfo.baseActivity.equals(a1.getComponentName())); in testStartActivityInTask_NoNewTask()
187 assertTrue(taskInfo.baseActivity.equals(a1.getComponentName())); in testStartActivityInTask_NewTask()
DTileServiceTest.java76 toggleServiceAccess(TestTileService.getComponentName().flattenToString(), false); in tearDown()
145 clickTile(TestTileService.getComponentName().flattenToString()); in testShowDialog()
169 toggleServiceAccess(TestTileService.getComponentName().flattenToString(), true); in startTileService()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DDeviceOwnerProvisioningTest.java79 mDevicePolicyManager.enableSystemApp(BasicAdminReceiver.getComponentName(getContext()), in enableUninstalledApp()
87 BasicAdminReceiver.getComponentName(getContext())) in getBaseProvisioningIntent()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java126 if (activity.getComponentName().getPackageName().equals( in testSimpleAppInstalledForUser()
307 + " package name: " + activity.getComponentName().getPackageName() in testNoSystemAppHasSyntheticAppDetailsActivityInjected()
347 ComponentName compName = activity.getComponentName(); in assertActivityInjected()
480 ComponentName compName = activity.getComponentName(); in assertInjectedActivityNotFound()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorDeviceAdminReceiver.java31 public static ComponentName getComponentName(Context context) { in getComponentName() method in SensorDeviceAdminReceiver
/cts/apps/EmptyDeviceOwner/src/com/android/cts/emptydeviceowner/
DEmptyDeviceAdmin.java27 public static ComponentName getComponentName(Context context) { in getComponentName() method in EmptyDeviceAdmin
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java304 assertThat(testResult.getComponentName(), in testStartNormal()
319 assertThat(testResult.getComponentName(), in testStartNormal()
335 assertThat(testResult.getComponentName(), in testStartNormal()
433 assertThat("EphemeralActivity", is(testResult.getComponentName())); in testStartEphemeral()

1234