/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerLauncherApiTest.java | 88 mPackageContext1.getPackageName(), in testPinShortcuts() 91 mPackageContext2.getPackageName(), in testPinShortcuts() 179 mPackageContext1.getPackageName(), in testGetShortcuts() 187 mPackageContext1.getPackageName(), in testGetShortcuts() 195 mPackageContext1.getPackageName(), in testGetShortcuts() 204 mPackageContext1.getPackageName(), in testGetShortcuts() 213 mPackageContext1.getPackageName(), in testGetShortcuts() 222 mPackageContext1.getPackageName(), in testGetShortcuts() 230 mPackageContext1.getPackageName(), in testGetShortcuts() 239 mPackageContext1.getPackageName(), in testGetShortcuts() [all …]
|
D | ShortcutManagerMultiLauncherTest.java | 90 mPackageContext1.getPackageName(), in testPinShortcuts() 93 mPackageContext2.getPackageName(), in testPinShortcuts() 101 mPackageContext1.getPackageName(), in testPinShortcuts() 104 mPackageContext2.getPackageName(), in testPinShortcuts() 181 mPackageContext1.getPackageName())) in testPinShortcuts() 186 mPackageContext1.getPackageName())) in testPinShortcuts() 191 mPackageContext1.getPackageName())) in testPinShortcuts() 204 mPackageContext2.getPackageName())) in testPinShortcuts() 209 mPackageContext2.getPackageName())) in testPinShortcuts() 214 mPackageContext2.getPackageName())) in testPinShortcuts() [all …]
|
D | ShortcutManagerUsageTest.java | 45 appOps(getInstrumentation(), getTestContext().getPackageName(), in setUp() 51 appOps(getInstrumentation(), getTestContext().getPackageName(), in tearDown() 71 && packageName.equals(e.getPackageName()) in hasEvent() 117 mPackageContext2.getPackageName(), id3), "Events weren't populated"); in testReportShortcutUsed() 126 mPackageContext1.getPackageName(), id1), "Events weren't populated"); in testReportShortcutUsed() 136 mPackageContext1.getPackageName(), idManifest), "Events weren't populated"); in testReportShortcutUsed() 139 mPackageContext1.getPackageName(), idNonexistance)); in testReportShortcutUsed()
|
D | ShortcutManagerClientApiTest.java | 73 getTestContext().getPackageName(), "android.content.pm.cts.shortcutmanager.main"); in testShortcutInfoMissingMandatoryFields() 192 getTestContext().getPackageName(), in testShortcutInfoMissingMandatoryFields() 220 getTestContext().getPackageName(), in testShortcutInfoMissingMandatoryFields() 404 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details() 432 getIconAsLauncher(mLauncherContext1, mPackageContext1.getPackageName(), "s1")); in testSetDynamicShortcuts_details() 464 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details() 484 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details() 503 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details() 523 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details() 541 assertIconDimensions(mLauncherContext1, mPackageContext1.getPackageName(), "s1", in testSetDynamicShortcuts_details() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | CommandReceiverActivity.java | 249 new String[] {getPackageName(), getCurrentLauncherPackage()}); in onCreate() 251 mDpm.setLockTaskPackages(mAdmin, new String[] {getPackageName()}); in onCreate() 270 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate() 274 mDpm.clearDeviceOwnerApp(getPackageName()); in onCreate() 277 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate() 291 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate() 297 if (!mDpm.isProfileOwnerApp(getPackageName())) { in onCreate() 305 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate() 313 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate() 321 if (!mDpm.isDeviceOwnerApp(getPackageName())) { in onCreate() [all …]
|
/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/ |
D | AppComponentFactoryTest.java | 42 .setComponent(new ComponentName(mContext.getPackageName(), in testActivity() 43 mContext.getPackageName() + ".inject.MyActivity")) in testActivity() 50 .setComponent(new ComponentName(mContext.getPackageName(), in testReceiver() 51 mContext.getPackageName() + ".inject.MyReceiver"))); in testReceiver() 57 .setComponent(new ComponentName(mContext.getPackageName(), in testService() 58 mContext.getPackageName() + ".inject.MyService"))); in testService()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PermissionFeatureTest.java | 29 getContext().getPackageName())); in testPermissionRequiredFeatureDefined() 36 getContext().getPackageName())); in testPermissionRequiredFeatureUndefined() 43 getContext().getPackageName())); in testPermissionRequiredNotFeatureDefined() 50 getContext().getPackageName())); in testPermissionRequiredNotFeatureUndefined() 57 getContext().getPackageName())); in testPermissionRequiredMultiDeny() 64 getContext().getPackageName())); in testPermissionRequiredMultiGrant()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 131 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 161 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 191 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 225 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 255 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 285 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 347 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription() 377 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription() 407 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription() 441 && event.getPackageName().equals(mActivity.getPackageName()) in testActionNextAndPreviousAtGranularityWordOverContentDescription() [all …]
|
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/ |
D | UseSharedLibraryTest.java | 65 + InstrumentationRegistry.getInstrumentation().getContext().getPackageName() in testSharedLibrariesProperlyReported() 96 assertEquals(PLATFORM_PACKAGE, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported() 103 assertNotNull(declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported() 110 assertNotNull(declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported() 117 assertEquals(STATIC_LIB_PROVIDER_PKG, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported() 122 assertEquals(RECURSIVE_LIB_PROVIDER_NAME, declaringPackage.getPackageName()); in testSharedLibrariesProperlyReported() 138 assertEquals(STATIC_LIB_CONSUMER1_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported() 149 assertEquals(STATIC_LIB_CONSUMER2_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported() 156 assertEquals(STATIC_LIB_PROVIDER_PKG, dependentPackage.getPackageName()); in testSharedLibrariesProperlyReported() 168 + InstrumentationRegistry.getInstrumentation().getContext().getPackageName() in testSharedLibrariesProperlyReported()
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | Rollback.java | 68 return mFrom.getPackageName().equals(r.mFrom.getPackageName()) in equals() 70 && mTo.getPackageName().equals(r.mTo.getPackageName()) in equals()
|
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ |
D | ShortcutManagerManagedUserTest.java | 74 .setPackage(getContext().getPackageName()) in test04_getAndLaunch_primary() 92 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary() 96 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test04_getAndLaunch_primary() 109 .setPackage(getContext().getPackageName()) in test05_getAndLaunch_managed() 125 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed() 130 getLauncherApps().startShortcut(getContext().getPackageName(), "s1", null, null, in test05_getAndLaunch_managed()
|
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/ |
D | Components.java | 46 getPackageName() + ".LAUNCH_BROADCAST_ACTION"; 52 private static String getPackageName() { in getPackageName() method in Components 53 return getPackageName(Components.class); in getPackageName()
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 104 toggleNotificationPolicyAccess(mContext.getPackageName(), in testPrePCannotToggleAlarmsAndMediaTest() 138 toggleNotificationPolicyAccess(mContext.getPackageName(), in testPrePCannotToggleAlarmsAndMediaTest() 147 toggleNotificationPolicyAccess(mContext.getPackageName(), in testSetNotificationPolicy_preP_setOldFields() 170 toggleNotificationPolicyAccess(mContext.getPackageName(), in testSetNotificationPolicy_preP_setNewFields() 184 toggleNotificationPolicyAccess(mContext.getPackageName(), in testSetNotificationPolicy_preP_setNewFields() 206 suspendPackage(mContext.getPackageName(), InstrumentationRegistry.getInstrumentation(), in testSuspendPackage() 212 suspendPackage(mContext.getPackageName(), InstrumentationRegistry.getInstrumentation(), in testSuspendPackage() 236 suspendPackage(mContext.getPackageName(), InstrumentationRegistry.getInstrumentation(), in testSuspendedPackageSendNotification() 245 suspendPackage(mContext.getPackageName(), InstrumentationRegistry.getInstrumentation(), in testSuspendedPackageSendNotification() 313 toggleNotificationPolicyAccess(mContext.getPackageName(), in testSetNotificationPolicy_preP_setOldNewFields() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioManagerTest.java | 101 Utils.enableAppOps(mContext.getPackageName(), APPOPS_OP_STR, getInstrumentation()); in setUp() 137 mContext.getPackageName(), getInstrumentation(), true); in setUp() 143 mContext.getPackageName(), getInstrumentation(), false); in setUp() 155 mContext.getPackageName(), getInstrumentation(), true); in tearDown() 167 mContext.getPackageName(), getInstrumentation(), false); in tearDown() 304 Utils.toggleNotificationPolicyAccess(mContext.getPackageName(), getInstrumentation(), in testCheckingZenModeBlockDoesNotRequireNotificationPolicyAccess() 310 Utils.toggleNotificationPolicyAccess(mContext.getPackageName(), getInstrumentation(), in testCheckingZenModeBlockDoesNotRequireNotificationPolicyAccess() 316 Utils.toggleNotificationPolicyAccess(mContext.getPackageName(), getInstrumentation(), in testCheckingZenModeBlockDoesNotRequireNotificationPolicyAccess() 319 Utils.toggleNotificationPolicyAccess(mContext.getPackageName(), getInstrumentation(), in testCheckingZenModeBlockDoesNotRequireNotificationPolicyAccess() 396 mContext.getPackageName(), getInstrumentation(), true); in testVibrateNotification() [all …]
|
D | RingtoneManagerTest.java | 65 Utils.enableAppOps(mContext.getPackageName(), "android:write_settings", mInstrumentation); in setUp() 77 mContext.getPackageName(), getInstrumentation(), true); in setUp() 83 mContext.getPackageName(), getInstrumentation(), false); in setUp() 93 mContext.getPackageName(), getInstrumentation(), true); in tearDown() 101 mContext.getPackageName(), getInstrumentation(), false); in tearDown() 106 Utils.disableAppOps(mContext.getPackageName(), "android:write_settings", mInstrumentation); in tearDown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 43 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo() 46 + context.getPackageName()); in getPackageInfo() 54 context.getPackageName(), PackageManager.GET_META_DATA); in getMetadata()
|
/cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/ |
D | ErrorsTests.java | 64 "appops set " + mContext.getPackageName() + " android:get_usage_stats allow"); in setUp() 72 mContext.getPackageName() + ":TestProcess", in testException() 88 mContext.getPackageName() + ":TestProcess", in testANR() 107 mContext.getPackageName() + ":TestProcess", "backtrace:"); in testNativeCrash() 121 mContext.getPackageName() + ":TestProcess", "backtrace:"); in testTombstone()
|
/cts/hostsidetests/shortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ |
D | ShortcutManagerPostUpgradeTest.java | 57 assertIconDimensions(getContext().getPackageName(), "s1", icon1); in testPostUpgrade() 58 assertIconDimensions(getContext().getPackageName(), "s2", icon2); in testPostUpgrade() 63 assertIconDimensions(getContext().getPackageName(), "s1", icon2); in testPostUpgrade()
|
D | ShortcutManagerPreUpgradeTest.java | 64 assertIconDimensions(getContext().getPackageName(), "s1", icon1); in testPreUpgrade() 65 assertIconDimensions(getContext().getPackageName(), "s2", icon2); in testPreUpgrade() 70 assertIconDimensions(getContext().getPackageName(), "s1", icon2); in testPreUpgrade()
|
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | BaseDeviceAdminTest.java | 41 mPackageName = mContext.getPackageName(); in setUp() 54 final String packageName = mContext.getPackageName(); in getTargetApiLevel() 59 return dpm.isDeviceOwnerApp(mAdminComponent.getPackageName()); in isDeviceOwner()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/ |
D | DefaultDialerChanger.java | 67 if (telecomManager.getDefaultDialerPackage().equals(mActivity.getPackageName())) { in DefaultDialerChanger() 83 if (!telecomManager.getDefaultDialerPackage().equals(mActivity.getPackageName())) { in DefaultDialerChanger() 111 if (packageName.equals(mActivity.getPackageName())) { 123 if (packageName.equals(mActivity.getPackageName())) { in updateSetDefaultDialerState()
|
/cts/hostsidetests/appsecurity/test-apps/SharedUidInstall/src/com/android/cts/shareduidinstall/ |
D | SharedUidPackageTest.java | 28 final int uidForSharedUser = pm.getPackageUid(getContext().getPackageName(), 0); in testSelfIsOnlyMemberOfSharedUserIdPackages() 31 assertEquals(getContext().getPackageName(), packagesForUid[0]); in testSelfIsOnlyMemberOfSharedUserIdPackages()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsTests.java | 97 stopTestPackage(ALERT_WINDOW_TEST_ACTIVITY.getPackageName()); in tearDown() 98 stopTestPackage(SDK25_ALERT_WINDOW_TEST_ACTIVITY.getPackageName()); in tearDown() 147 final String packageName = activityName.getPackageName(); in assertAlertWindows() 217 AppOpsUtils.reset(activityName.getPackageName()); in resetPermissionState() 223 AppOpsUtils.setOpMode(activityName.getPackageName(), OPSTR_SYSTEM_ALERT_WINDOW, mode); in setAlertWindowPermission()
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
D | ExternalServiceTest.java | 138 assertEquals(getContext().getPackageName(), mConnection.name.getPackageName()); in testBindExternalService() 139 assertNotSame(sServicePackage, mConnection.name.getPackageName()); in testBindExternalService() 149 assertEquals(getContext().getPackageName(), id.packageName); in testBindExternalService() 220 String myPkg = getContext().getPackageName(); in testBindExternalServiceWithRunningOwn() 285 assertEquals(getContext().getPackageName(), idOne.packageName); in testBindExternalAboveClient() 303 assertEquals(getContext().getPackageName(), mConnection.name.getPackageName()); in testBindExternalServiceWithZygote() 304 assertNotSame(sServicePackage, mConnection.name.getPackageName()); in testBindExternalServiceWithZygote() 314 assertEquals(getContext().getPackageName(), id.packageName); in testBindExternalServiceWithZygote() 392 String myPkg = getContext().getPackageName(); in testBindExternalServiceWithZygoteWithRunningOwn()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 96 assertEquals(getInstrumentation().getTargetContext().getPackageName(), in verifyInstalledProviders() 97 provider.configure.getPackageName()); in verifyInstalledProviders() 125 assertEquals(getInstrumentation().getTargetContext().getPackageName(), in verifyInstalledProviders() 126 provider.configure.getPackageName()); in verifyInstalledProviders() 159 getInstrumentation().getTargetContext().getPackageName(), in getFirstWidgetComponent() 165 getInstrumentation().getTargetContext().getPackageName(), in getSecondWidgetComponent()
|