/cts/tests/tests/content/src/android/content/cts/ |
D | ComponentNameTest.java | 81 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/ |
D | ManagementTest.java | 41 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 …]
|
D | BindDeviceAdminServiceFailsTest.java | 54 AdminReceiver.getComponentName(mContext)); in testNoBindDeviceAdminTargetUsers() 80 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext), in bind()
|
D | BindDeviceAdminServiceGoodSetupTest.java | 71 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()
|
D | AdminReceiver.java | 31 public static ComponentName getComponentName(Context context) { in getComponentName() method in AdminReceiver
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityLifecycleFreeformTests.java | 79 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 …]
|
D | ActivityStarterTests.java | 52 = 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()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsPhoneAccountSuggestionService.java | 44 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
|
D | MockCallScreeningService.java | 93 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/ |
D | MultiScreenLoginTest.java | 167 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());
|
D | MultiScreenDifferentActivitiesTest.java | 134 assertThat(component1).isEqualTo(activity1.getComponentName()); in testDelayedActivityIsMerged() 142 assertThat(component2).isEqualTo(activity2.getComponentName()); in testDelayedActivityIsMerged()
|
/cts/hostsidetests/devicepolicy/app/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/ |
D | CrossProfileAppsTargetUserTest.java | 103 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()
|
D | CrossProfileAppsStartActivityTest.java | 98 MainActivity.getComponentName(mContext), mTargetUser)); in testCanStartMainActivity() 116 NonMainActivity.getComponentName(mContext), mTargetUser)); in testCanStartNonMainActivity() 132 NonExportedActivity.getComponentName(mContext), mTargetUser); in testCannotStartNotExportedActivity()
|
D | NonExportedActivity.java | 24 public static ComponentName getComponentName(Context context ){ in getComponentName() method in NonExportedActivity
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | LockTaskHostDrivenTest.java | 143 BasicAdminReceiver.getComponentName(mContext), in clearDefaultHomeIntentReceiver() 145 mDevicePolicyManager.setLockTaskPackages(BasicAdminReceiver.getComponentName(mContext), in clearDefaultHomeIntentReceiver() 168 mDevicePolicyManager.setLockTaskPackages(BasicAdminReceiver.getComponentName(mContext), in setDefaultHomeIntentReceiver() 174 BasicAdminReceiver.getComponentName(mContext), intentFilter, in setDefaultHomeIntentReceiver()
|
D | DeviceOwnerProvisioningTest.java | 79 mDevicePolicyManager.enableSystemApp(BasicAdminReceiver.getComponentName(getContext()), in enableUninstalledApp() 87 BasicAdminReceiver.getComponentName(getContext())) in getBaseProvisioningIntent()
|
D | BaseAffiliatedProfileOwnerTest.java | 52 return BasicAdminReceiver.getComponentName(mContext); in getWho()
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ |
D | ManagedProfileProvisioningTest.java | 34 AdminReceiver.getComponentName(getContext())) in testProvisioningCorpOwnedManagedProfile() 49 dpm.setProfileEnabled(AdminReceiver.getComponentName(getContext())); in testEnableProfile()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 509 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/ |
D | StartActivityTests.java | 60 mAmWmState.computeState(testActivity2.getComponentName()); in testStartActivityContexts() 66 testActivity2.getComponentName()); in testStartActivityContexts()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | LaunchRunner.java | 277 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/tests/app/src/android/app/cts/ |
D | AppTaskTests.java | 100 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()
|
D | TileServiceTest.java | 76 toggleServiceAccess(TestTileService.getComponentName().flattenToString(), false); in tearDown() 145 clickTile(TestTileService.getComponentName().flattenToString()); in testShowDialog() 169 toggleServiceAccess(TestTileService.getComponentName().flattenToString(), true); in startTileService()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | SensorDeviceAdminReceiver.java | 31 public static ComponentName getComponentName(Context context) { in getComponentName() method in SensorDeviceAdminReceiver
|
/cts/apps/EmptyDeviceOwner/src/com/android/cts/emptydeviceowner/ |
D | EmptyDeviceAdmin.java | 27 public static ComponentName getComponentName(Context context) { in getComponentName() method in EmptyDeviceAdmin
|