Home
last modified time | relevance | path

Searched refs:getPackageUid (Results 1 – 25 of 52) sorted by relevance

123

/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/
DBypassDatabaseOperationsTest.java117 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/
DUtils.java64 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/
DApplicationVisibilityCrossUserTest.java209 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/
DAppIdMigrationTest.kt71 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>()
DSharedUserMigrationTest.kt134 val uid = mPm.getPackageUid(Const.INSTALL_TEST_PKG, FLAG_ZERO) in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/SharedUidInstall/src/com/android/cts/shareduidinstall/
DSharedUidPackageTest.java28 final int uidForSharedUser = pm.getPackageUid(getContext().getPackageName(), 0); in testSelfIsOnlyMemberOfSharedUserIdPackages()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java611 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 …]
DCrossUserPackageVisibilityTests.java268 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()
DMediaSessionEnumerationTests.java68 final int targetUid = sPm.getPackageUid( in isTrustedForMediaControl()
/cts/tests/tests/attributionsource/BlamedPermissionApp/src/android/attributionsource/cts/blamed/
DBringToForegroundActivity.kt36 packageManager.getPackageUid(RECEIVER2_PACKAGE_NAME, 0)) in onCreate()
/cts/tests/tests/appop/src/android/app/appops/cts/
DRuntimeMessageCollectionTest.kt44 appUid = context.packageManager.getPackageUid(APP_PKG, 0) in installApk()
DAttributionTest.kt54 private val appUid by lazy { context.packageManager.getPackageUid(APP_PKG, 0) } in <lambda>()
82 val uid = context.packageManager.getPackageUid(PKG, 0) in manifestReceiverTagging()
DForegroundModeAndActiveTest.kt82 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/
DRuntimePermissionsAppOpTrackingTest.kt290 .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>()
DPermissionCheckerTest.kt40 private val helperUid = packageManager.getPackageUid(HELPER_PACKAGE_NAME, 0)
/cts/tests/tests/settings/src/android/settings/cts/
DWifiSliceTest.java138 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/
DPermissionUtils.java143 getTargetContext().getPackageManager().getPackageUid( in getAppOp()
174 .getPackageUid(packageName, 0), mode)); in setAppOpByName()
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/
DV3RotationTest.java300 int uid = pm.getPackageUid(PKG, 0); in testHasSigningCertificateByUid()
313 int uid = pm.getPackageUid(PKG, 0); in testHasSigningCertificateByUidSha256()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java433 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/
DPerformanceHintManagerStatsTests.java151 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/
DImageProvider.java65 return packageManager.getPackageUid(activityInfo.packageName, in getChooserUid()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInstallerArchiveMultiUserTest.java178 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/
DContactsContract_DirectoryTest.java166 int uid = getContext().getPackageManager().getPackageUid(pkg, 0); in isGalProviderVisible()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java550 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/
DActivityManagerAppStartInfoTest.java124 mStubPackageUid = mPackageManager.getPackageUid(STUB_PACKAGE_NAME, 0); in setUp()
477 assertEquals(packageUid, info.getPackageUid()); in verifyIds()

123