/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountsDbTest.java | 377 String packageName2 = "com.example.two"; in testVisibilityFindSetDelete() local 389 mAccountsDb.setAccountVisibility(accId, packageName2, 2); in testVisibilityFindSetDelete() 390 assertEquals(mAccountsDb.findAccountVisibility(accId, packageName2), Integer.valueOf(2)); in testVisibilityFindSetDelete() 392 mAccountsDb.setAccountVisibility(accId, packageName2, 3); in testVisibilityFindSetDelete() 393 assertEquals(mAccountsDb.findAccountVisibility(accId, packageName2), Integer.valueOf(3)); in testVisibilityFindSetDelete() 398 assertEquals(vis.get(packageName2), Integer.valueOf(3)); in testVisibilityFindSetDelete() 410 String packageName2 = "com.example.two"; in testFindAllVisibilityValues() local 421 mAccountsDb.setAccountVisibility(accId, packageName2, 2); in testFindAllVisibilityValues() 429 assertEquals(accnt1Visibility.get(packageName2), Integer.valueOf(2)); in testFindAllVisibilityValues() 434 mAccountsDb.setAccountVisibility(accId2, packageName2, 3); in testFindAllVisibilityValues() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserSystemPackageInstallerTest.java | 247 final String packageName2 = "pkg2"; // allowlisted and denylisted in testShouldInstallPackage() local 254 pkgBitSetMap.put(packageName2, 0L); in testShouldInstallPackage() 263 final AndroidPackage pkg2 = ((ParsedPackage) PackageImpl.forTesting(packageName2) in testShouldInstallPackage() 307 final String packageName2 = "pkg2"; // denylisted whenever allowlisted in testGetWhitelistedPackagesForUserType() local 313 pkgBitSetMap.put(packageName2, 0L); in testGetWhitelistedPackagesForUserType() 393 final String packageName2 = "nonWhitelistedPkg"; in testInstallOverlayPackagesExplicitMode() local 395 final String overlayName2 = String.format("%s.auto_generated_rro_product__", packageName2); in testInstallOverlayPackagesExplicitMode() 410 .setOverlayTarget(packageName2) in testInstallOverlayPackagesExplicitMode()
|
/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 | 619 final String packageName2 = SplitScreenUtils.getPackageName(taskId, mTaskOrganizer); in startShortcutAndTaskWithLegacyTransition() local 622 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startShortcutAndTaskWithLegacyTransition() 651 final String packageName2 = SplitScreenUtils.getPackageName(taskId, mTaskOrganizer); in startShortcutAndTask() local 654 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startShortcutAndTask() 691 final String packageName2 = SplitScreenUtils.getPackageName(taskId, mTaskOrganizer); in startIntentAndTaskWithLegacyTransition() local 693 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startIntentAndTaskWithLegacyTransition() 720 final String packageName2 = SplitScreenUtils.getPackageName(taskId, mTaskOrganizer); in startIntentAndTask() local 723 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startIntentAndTask() 757 final String packageName2 = SplitScreenUtils.getPackageName(pendingIntent2); in startIntentsWithLegacyTransition() local 758 if (samePackage(packageName1, packageName2, userId1, userId2)) { in startIntentsWithLegacyTransition() [all …]
|
D | StageCoordinator.java | 3320 final String packageName2 = SplitScreenUtils.getPackageName(mSplitRequest.mStartIntent2); in getActivateSplitPosition() local 3321 if (packageName2 != null && packageName2.equals(basePackageName)) { in getActivateSplitPosition()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 330 final String packageName2 = "com.some.package2"; in testInstallerCanAddOverridesForMultiplePackages() local 341 .withPackageName(packageName2) in testInstallerCanAddOverridesForMultiplePackages() 347 when(packageManager.getApplicationInfo(eq(packageName2), anyInt())) in testInstallerCanAddOverridesForMultiplePackages() 360 packageNameToOverrides.put(packageName2, new CompatibilityOverrideConfig(overrides2)); in testInstallerCanAddOverridesForMultiplePackages() 712 final String packageName2 = "com.some.package2"; in testInstallerCanRemoveOverridesForMultiplePackages() local 725 .withPackageName(packageName2) in testInstallerCanRemoveOverridesForMultiplePackages() 731 when(packageManager.getApplicationInfo(eq(packageName2), anyInt())) in testInstallerCanRemoveOverridesForMultiplePackages() 737 assertThat(compatConfig.addOverride(disabledChangeId1, packageName2, true)).isTrue(); in testInstallerCanRemoveOverridesForMultiplePackages() 738 assertThat(compatConfig.addOverride(disabledChangeId2, packageName2, true)).isTrue(); in testInstallerCanRemoveOverridesForMultiplePackages() 739 assertThat(compatConfig.addOverride(enabledChangeId, packageName2, false)).isTrue(); in testInstallerCanRemoveOverridesForMultiplePackages() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsUiControllerImplTest.kt | 257 val packageName2 = "pkg" in testMultipleAppHeaderIsClickable() constant 258 val panel2 = SelectedItem.PanelItem("App name 2", ComponentName(packageName2, "cls")) in testMultipleAppHeaderIsClickable() 262 .thenReturn(setOf(packageName1, packageName2)) in testMultipleAppHeaderIsClickable()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 418 @NonNull String packageName2, int userId) { in signaturesMatching() argument 420 final FakeDeviceState.Package pkg2 = mState.select(packageName2, userId); in signaturesMatching()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerService.java | 1309 @NonNull final String packageName2, final int userId) { 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 | 3148 final String packageName2 = "pkg2.name"; in testScreenTimeoutOverrideWakeLockFullWakeLock() local 3151 mService.getBinderServiceInstance().acquireWakeLock(token2, flags2, tag2, packageName2, in testScreenTimeoutOverrideWakeLockFullWakeLock() 3189 final String packageName2 = "pkg2.name"; in testScreenTimeoutOverrideWakeLockMultiClients() local 3192 mService.getBinderServiceInstance().acquireWakeLock(token2, flags2, tag2, packageName2, in testScreenTimeoutOverrideWakeLockMultiClients()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManager.java | 7108 @NonNull String packageName2); in checkSignatures() argument
|