Home
last modified time | relevance | path

Searched refs:getPackagesForUid (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/uidmigration/src/android/uidmigration/cts/
DSharedUserMigrationTest.kt58 val pkgs = mPm.getPackagesForUid(uid).assertNotNull() in reset()
73 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testNewInstallOnly()
85 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testNewInstallOnly()
102 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testBestEffort()
113 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testBestEffort()
124 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testBestEffort()
135 val pkgs = mPm.getPackagesForUid(uid).assertNotNull() in <lambda>()
DAppIdMigrationTest.kt72 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in <lambda>()
80 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/SharedUidInstall/src/com/android/cts/shareduidinstall/
DSharedUidPackageTest.java29 final String[] packagesForUid = pm.getPackagesForUid(uidForSharedUser); in testSelfIsOnlyMemberOfSharedUserIdPackages()
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java167 found = isAppInPackageNamesArray(TINY_PKG, pm.getPackagesForUid(appUid)); in testGetPackagesForUidVisibility_currentUser()
181 found = isAppInPackageNamesArray(TINY_PKG, pm.getPackagesForUid(appUid)); in testGetPackagesForUidVisibility_anotherUserCrossUserGrant()
196 isAppInPackageNamesArray(TINY_PKG, pm.getPackagesForUid(appUid)); in testGetPackagesForUidVisibility_anotherUserCrossUserNoGrant()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/bluetooth/
DBluetooth.java153 var allPackages = packageManager.getPackagesForUid(BLUETOOTH_UID); in findPackageName()
/cts/tests/security/src/android/keystore/cts/
DAttestationApplicationId.java43 String[] packageNames = pm.getPackagesForUid(uid); in AttestationApplicationId()
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/
DCtsGroupCallService.java73 String[] packageNames = getPackageManager().getPackagesForUid(packageUid); in initialize()
DCtsStreamingService.java108 String[] packageNames = getPackageManager().getPackagesForUid(packageUid);
DCtsDownloadService.java154 String[] packageNames = getPackageManager().getPackagesForUid(packageUid);
/cts/hostsidetests/appcompat/compatchanges/app/src/com/android/cts/appcompat/compatchanges/
DCompatChangesTest.java260 String[] packages = context.getPackageManager().getPackagesForUid(SYSTEM_UID); in testAllPackagesSharingSystemUidTargetLatestSdk()
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/
DListeningPortsTest.java188 packages = pm.getPackagesForUid(uid); in uidToPackage()
/cts/tests/tests/os/src/android/os/cts/
DProcessTest.java345 final String[] packages = pm.getPackagesForUid(Process.SDK_SANDBOX_VIRTUAL_UID); in testReservedVirtualUid()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java613 Assert.assertNull(getPackagesForUid(QUERIES_NOTHING, targetSharedUid)); in queriesNothing_getPackagesForUid_consistentVisibility()
614 Assert.assertNull(getPackagesForUid(QUERIES_NOTHING, targetUid)); in queriesNothing_getPackagesForUid_consistentVisibility()
622 Assert.assertNotNull(getPackagesForUid(QUERIES_NOTHING_PERM, targetSharedUid)); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility()
623 Assert.assertNotNull(getPackagesForUid(QUERIES_NOTHING_PERM, targetUid)); in queriesNothingHasPermission_getPackagesForUid_consistentVisibility()
1497 private String[] getPackagesForUid(String sourcePackageName, int targetUid) in getPackagesForUid() method in AppEnumerationTests
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java256 final String[] sharesUidWith = pm.getPackagesForUid(uid); in sharesUidWithInstallerPackage()
/cts/tests/tests/car/src/android/car/cts/
DCarAppFocusManagerTest.java133 String[] myPackages = mContext.getPackageManager().getPackagesForUid(Process.myUid()); in testGetAppTypeOwner()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DMockSatelliteServiceManager.java297 final String[] callerPackages = pm.getPackagesForUid(uid); in onUidImportance()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandIncrementalTest.java911 String[] packages = pm.getPackagesForUid(uid); in testInstallWithIdSigNoDigesting()
DPackageManagerTest.java587 checkPackagesNameForUid(PACKAGE_NAME, mPackageManager.getPackagesForUid(appInfo.uid)); in testGetInfo()
2769 final String[] pkgs = pm.getPackagesForUid(Process.toSdkSandboxUid(10239)); in testGetPackagesForUid_sdkSandboxUid()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java730 final String[] packages = getPackageManager().getPackagesForUid(uid); in sendPackagesForUid()
/cts/tools/release-parser/tests/resources/
DShell.apk.pb.txt4936 name: "getPackagesForUid"
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt12992 method @Nullable public abstract String[] getPackagesForUid(int);