/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/ |
D | BypassDatabaseOperationsTest.java | 117 getContext().getPackageManager().getPackageUid( in setupApps() 155 final int fmUid = getContext().getPackageManager().getPackageUid( in testManageExternalStorage_WithBypassFlag_BypassesDatabase() 167 final int fmUid = getContext().getPackageManager().getPackageUid( in testManageExternalStorage_targets30_BypassesDatabase() 180 getContext().getPackageManager().getPackageUid( in testSystemGallery_DoesntBypassDatabase() 199 final int sgUid = getContext().getPackageManager().getPackageUid( in testSystemGallery_WithBypassFlag_BypassesDatabase() 211 final int sgUid = getContext().getPackageManager().getPackageUid( in testSystemGallery_targets30_DoesntBypassDatabase() 225 final int sgUid = getContext().getPackageManager().getPackageUid( in testSystemGallery_targets30_WithBypassFlag_BypassesDatabase()
|
/cts/tests/AlarmManager/util/src/android/alarmmanager/util/ |
D | Utils.java | 64 public static int getPackageUid(String packageName) { in getPackageUid() method in Utils 66 return sContext.getPackageManager().getPackageUid(packageName, 0); in getPackageUid()
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 209 pm.getPackageUid(TINY_PKG, 0 /*flags*/); in testGetPackageUidVisibility_currentUser() 225 pm.getPackageUid(TINY_PKG, MATCH_KNOWN_PACKAGES); in testGetPackageUidVisibility_anotherUserCrossUserGrant() 242 pm.getPackageUid(TINY_PKG, MATCH_KNOWN_PACKAGES); in testGetPackageUidVisibility_anotherUserCrossUserNoGrant() 272 pm.getPackageUid(TINY_PKG, MATCH_KNOWN_PACKAGES); in testGetPackageGidsVisibility_anotherUserCrossUserGrant() 289 pm.getPackageUid(TINY_PKG, MATCH_KNOWN_PACKAGES); in testGetPackageGidsVisibility_anotherUserCrossUserNoGrant()
|
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/ |
D | AppIdMigrationTest.kt | 71 val uid = mPm.getPackageUid(Const.INSTALL_TEST_PKG, PackageInfoFlags.of(0)) in <lambda>() 126 val oldUid = mPm.getPackageUid(Const.DATA_TEST_PKG, PackageInfoFlags.of(0)) in <lambda>() 136 val newUid = mPm.getPackageUid(Const.DATA_TEST_PKG, PackageInfoFlags.of(0)) in <lambda>()
|
D | SharedUserMigrationTest.kt | 134 val uid = mPm.getPackageUid(Const.INSTALL_TEST_PKG, FLAG_ZERO) in <lambda>()
|
/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()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AppEnumerationTests.java | 611 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothing_getPackagesForUid_consistentVisibility() 612 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothing_getPackagesForUid_consistentVisibility() 620 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility() 621 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility() 629 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothing_getNameForUid_consistentVisibility() 630 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothing_getNameForUid_consistentVisibility() 638 final int targetSharedUid = sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getNameForUid_consistentVisibility() 639 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothingHasPermission_getNameForUid_consistentVisibility() 651 sPm.getPackageUid(TARGET_SHARED_USER, PackageInfoFlags.of(0)); in queriesNothing_getNamesForUids_consistentVisibility() 652 final int targetUid = sPm.getPackageUid(TARGET_FILTERS, PackageInfoFlags.of(0)); in queriesNothing_getNamesForUids_consistentVisibility() [all …]
|
D | CrossUserPackageVisibilityTests.java | 268 final int uidStub = mPackageManager.getPackageUid( in testCheckUidSignatures_cannotDetectStubPkgs() 270 final int uidStubSharedUser = mPackageManager.getPackageUid( in testCheckUidSignatures_cannotDetectStubPkgs() 308 final int uidStub = mPackageManager.getPackageUid( in testGetNameForUid_cannotDetectStubPkgs() 310 final int uidStubSharedUser = mPackageManager.getPackageUid( in testGetNameForUid_cannotDetectStubPkgs() 324 final int uidStub = mPackageManager.getPackageUid( in testGetNamesForUids_cannotDetectStubPkgs() 326 final int uidStubSharedUser = mPackageManager.getPackageUid( in testGetNamesForUids_cannotDetectStubPkgs() 554 final int uid = mPackageManager.getPackageUid(TARGET_STUB, PackageInfoFlags.of(0)); in testQueryContentProviders_cannotDetectStubPkg()
|
D | MediaSessionEnumerationTests.java | 68 final int targetUid = sPm.getPackageUid( in isTrustedForMediaControl()
|
/cts/tests/tests/attributionsource/BlamedPermissionApp/src/android/attributionsource/cts/blamed/ |
D | BringToForegroundActivity.kt | 36 packageManager.getPackageUid(RECEIVER2_PACKAGE_NAME, 0)) in onCreate()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | RuntimeMessageCollectionTest.kt | 44 appUid = context.packageManager.getPackageUid(APP_PKG, 0) in installApk()
|
D | AttributionTest.kt | 54 private val appUid by lazy { context.packageManager.getPackageUid(APP_PKG, 0) } in <lambda>() 82 val uid = context.packageManager.getPackageUid(PKG, 0) in manifestReceiverTagging()
|
D | ForegroundModeAndActiveTest.kt | 82 private val testPkgUid = context.packageManager.getPackageUid(TEST_SERVICE_PKG, 0) in <lambda>() 531 val uid = context.packageManager.getPackageUid(TEST_SERVICE_PKG, 0) in <lambda>()
|
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/ |
D | RuntimePermissionsAppOpTrackingTest.kt | 290 .packageManager.getPackageUid(RECEIVER2_PACKAGE_NAME, 0), in <lambda>() 292 context.packageManager.getPackageUid(RECEIVER_PACKAGE_NAME, 0), in <lambda>() 307 .packageManager.getPackageUid(RECEIVER2_PACKAGE_NAME, 0), in <lambda>() 443 AttributionSource(context.packageManager.getPackageUid( in <lambda>() 463 val recognizerUid = context.packageManager.getPackageUid( in <lambda>() 490 val receiverUid = context.packageManager.getPackageUid( in <lambda>() 595 AttributionSource(context.packageManager.getPackageUid( in <lambda>() 615 val recognizerUid = context.packageManager.getPackageUid( in <lambda>() 642 val receiverUid = context.packageManager.getPackageUid( in <lambda>() 1230 context.packageManager.getPackageUid(receiverPackageName, 0)) in <lambda>()
|
D | PermissionCheckerTest.kt | 40 private val helperUid = packageManager.getPackageUid(HELPER_PACKAGE_NAME, 0)
|
/cts/tests/tests/settings/src/android/settings/cts/ |
D | WifiSliceTest.java | 138 final int testUid = pm.getPackageUid(packageName, 0); in wifiSlice_grantedPermissionToDefaultAssistant() 169 final int testUid = pm.getPackageUid(packageName, 0); in wifiSlice_grantedPermissionToDefaultVoiceAssistant()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PermissionUtils.java | 143 getTargetContext().getPackageManager().getPackageUid( in getAppOp() 174 .getPackageUid(packageName, 0), mode)); in setAppOpByName()
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 300 int uid = pm.getPackageUid(PKG, 0); in testHasSigningCertificateByUid() 313 int uid = pm.getPackageUid(PKG, 0); in testHasSigningCertificateByUidSha256()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 433 sContext.getPackageManager().getPackageUid(app, 0), mode)); in setAppOp() 441 sContext.getPackageManager().getPackageUid(app, 0), app)); in getAppOp()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/performancehintmanager/ |
D | PerformanceHintManagerStatsTests.java | 151 assertThat(a0.getPackageUid()).isGreaterThan(10000); // Not a system service UID. in testCreateHintSessionStatsdApp() 201 assertThat(a0.getPackageUid()).isGreaterThan(10000); // Not a system service UID. in testCreateHintSessionStatsdGame()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-261036568/content-provider/src/android/security/cts/BUG_261036568_provider/ |
D | ImageProvider.java | 65 return packageManager.getPackageUid(activityInfo.packageName, in getChooserUid()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInstallerArchiveMultiUserTest.java | 178 final int uidPrimaryUser = contextPrimaryUser.getPackageManager().getPackageUid( in archiveApp_broadcast_multiuser() 180 final int uidSecondaryUser = contextSecondaryUser.getPackageManager().getPackageUid( in archiveApp_broadcast_multiuser()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_DirectoryTest.java | 166 int uid = getContext().getPackageManager().getPackageUid(pkg, 0); in isGalProviderVisible()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SmsManagerTest.java | 550 getPackageUid(ctsPackageName), ctsPackageName); in testContentProviderAccessRestriction() 603 int uid = getPackageUid(pkg); in setModeForOps() 612 private int getPackageUid(String pkg) throws PackageManager.NameNotFoundException { in getPackageUid() method in SmsManagerTest 613 return getInstrumentation().getContext().getPackageManager().getPackageUid(pkg, 0); in getPackageUid()
|
/cts/tests/app/AppStartTest/src/android/app/cts/ |
D | ActivityManagerAppStartInfoTest.java | 124 mStubPackageUid = mPackageManager.getPackageUid(STUB_PACKAGE_NAME, 0); in setUp() 477 assertEquals(packageUid, info.getPackageUid()); in verifyIds()
|