/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountsDbTest.java | 376 String packageName1 = "com.example.one"; in testVisibilityFindSetDelete() local 379 assertNull(mAccountsDb.findAccountVisibility(account, packageName1)); in testVisibilityFindSetDelete() 382 assertNull(mAccountsDb.findAccountVisibility(account, packageName1)); in testVisibilityFindSetDelete() 383 assertNull(mAccountsDb.findAccountVisibility(accId, packageName1)); in testVisibilityFindSetDelete() 385 mAccountsDb.setAccountVisibility(accId, packageName1, 1); in testVisibilityFindSetDelete() 386 assertEquals(mAccountsDb.findAccountVisibility(account, packageName1), Integer.valueOf(1)); in testVisibilityFindSetDelete() 387 assertEquals(mAccountsDb.findAccountVisibility(accId, packageName1), Integer.valueOf(1)); in testVisibilityFindSetDelete() 397 assertEquals(vis.get(packageName1), Integer.valueOf(1)); in testVisibilityFindSetDelete() 400 assertTrue(mAccountsDb.deleteAccountVisibilityForPackage(packageName1)); in testVisibilityFindSetDelete() 401 assertNull(mAccountsDb.findAccountVisibility(accId, packageName1)); in testVisibilityFindSetDelete() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserSystemPackageInstallerTest.java | 246 final String packageName1 = "pkg1"; // allowlisted in testShouldInstallPackage() local 253 pkgBitSetMap.put(packageName1, 0b01L); in testShouldInstallPackage() 259 userWhitelist.add(packageName1); in testShouldInstallPackage() 261 final AndroidPackage pkg1 = ((ParsedPackage) PackageImpl.forTesting(packageName1) in testShouldInstallPackage() 306 final String packageName1 = "pkg1"; // allowlisted for user type A in testGetWhitelistedPackagesForUserType() local 312 pkgBitSetMap.put(packageName1, maskOfTypeA); in testGetWhitelistedPackagesForUserType() 322 assertTrue("Whitelist for A doesn't contain pkg1", output.contains(packageName1)); in testGetWhitelistedPackagesForUserType() 392 final String packageName1 = "whitelistedPkg"; in testInstallOverlayPackagesExplicitMode() local 394 final String overlayName1 = String.format("%s.auto_generated_rro_product__", packageName1); in testInstallOverlayPackagesExplicitMode() 396 final String overlayName3 = String.format("%s.non_static_overlay", packageName1); in testInstallOverlayPackagesExplicitMode() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | MultiInstanceHelper.kt | 123 fun samePackage(packageName1: String?, packageName2: String?, in samePackage() 125 return (packageName1 != null && packageName1 == packageName2) && (userId1 == userId2) in samePackage()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/ |
D | SplitScreenController.java | 618 final String packageName1 = shortcutInfo.getPackage(); in startShortcutAndTaskWithLegacyTransition() local 622 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startShortcutAndTaskWithLegacyTransition() 631 "app package " + packageName1 + " does not support multi-instance")); in startShortcutAndTaskWithLegacyTransition() 648 final String packageName1 = shortcutInfo.getPackage(); in startShortcutAndTask() local 654 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startShortcutAndTask() 666 "app package " + packageName1 + " does not support multi-instance")); in startShortcutAndTask() 690 final String packageName1 = SplitScreenUtils.getPackageName(pendingIntent); in startIntentAndTaskWithLegacyTransition() local 693 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startIntentAndTaskWithLegacyTransition() 703 "app package " + packageName1 + " does not support multi-instance")); in startIntentAndTaskWithLegacyTransition() 717 final String packageName1 = SplitScreenUtils.getPackageName(pendingIntent); in startIntentAndTask() local [all …]
|
D | StageCoordinator.java | 3315 final String packageName1 = SplitScreenUtils.getPackageName(mSplitRequest.mStartIntent); in getActivateSplitPosition() local 3317 if (packageName1 != null && packageName1.equals(basePackageName)) { in getActivateSplitPosition()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 329 final String packageName1 = "com.some.package1"; in testInstallerCanAddOverridesForMultiplePackages() local 338 .withPackageName(packageName1) in testInstallerCanAddOverridesForMultiplePackages() 345 when(packageManager.getApplicationInfo(eq(packageName1), anyInt())) in testInstallerCanAddOverridesForMultiplePackages() 359 packageNameToOverrides.put(packageName1, new CompatibilityOverrideConfig(overrides1)); in testInstallerCanAddOverridesForMultiplePackages() 711 final String packageName1 = "com.some.package1"; in testInstallerCanRemoveOverridesForMultiplePackages() local 722 .withPackageName(packageName1) in testInstallerCanRemoveOverridesForMultiplePackages() 729 when(packageManager.getApplicationInfo(eq(packageName1), anyInt())) in testInstallerCanRemoveOverridesForMultiplePackages() 734 assertThat(compatConfig.addOverride(disabledChangeId1, packageName1, true)).isTrue(); in testInstallerCanRemoveOverridesForMultiplePackages() 735 assertThat(compatConfig.addOverride(disabledChangeId2, packageName1, true)).isTrue(); in testInstallerCanRemoveOverridesForMultiplePackages() 736 assertThat(compatConfig.addOverride(enabledChangeId, packageName1, false)).isTrue(); in testInstallerCanRemoveOverridesForMultiplePackages() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsUiControllerImplTest.kt | 253 val packageName1 = "pkg" in testMultipleAppHeaderIsClickable() constant 254 val panel1 = SelectedItem.PanelItem("App name 1", ComponentName(packageName1, "cls")) in testMultipleAppHeaderIsClickable() 262 .thenReturn(setOf(packageName1, packageName2)) in testMultipleAppHeaderIsClickable()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 417 public boolean signaturesMatching(@NonNull String packageName1, in signaturesMatching() argument 419 final FakeDeviceState.Package pkg1 = mState.select(packageName1, userId); in signaturesMatching()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerService.java | 1308 public boolean signaturesMatching(@NonNull final String packageName1, in signaturesMatching() argument 1314 packageName1, packageName2, userId) == SIGNATURE_MATCH; in signaturesMatching()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/app/ |
D | MockPackageManager.java | 297 public int checkSignatures(@NonNull String packageName1, @NonNull String packageName2) { in checkSignatures() argument
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 3136 final String packageName1 = "pkg.name"; in testScreenTimeoutOverrideWakeLockFullWakeLock() local 3139 mService.getBinderServiceInstance().acquireWakeLock(token1, flags, tag1, packageName1, in testScreenTimeoutOverrideWakeLockFullWakeLock() 3180 final String packageName1 = "pkg.name"; in testScreenTimeoutOverrideWakeLockMultiClients() local 3183 mService.getBinderServiceInstance().acquireWakeLock(token1, flags, tag1, packageName1, in testScreenTimeoutOverrideWakeLockMultiClients()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManager.java | 7107 public abstract int checkSignatures(@NonNull String packageName1, in checkSignatures() argument
|