/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RoleObserverTest.java | 198 when(mPm.getPackageUid("dialer", MATCH_ALL, 0)).thenReturn(30); in testInit_forNonBlockableDefaultApps() 202 when(mPm.getPackageUid("emergency", MATCH_ALL, 0)).thenReturn(40); in testInit_forNonBlockableDefaultApps() 238 when(mPm.getPackageUid("com.browser", MATCH_ALL, 0)).thenReturn(30); in testInit_forTrampolines() 270 when(mPm.getPackageUid("phone", MATCH_ALL, 0)).thenReturn(30); in testSwapDefault_forNonBlockableDefaultApps() 286 when(mPm.getPackageUid("com.browser", MATCH_ALL, 0)).thenReturn(30); in testSwapDefault_forTrampolines() 287 when(mPm.getPackageUid("com.browser2", MATCH_ALL, 0)).thenReturn(31); in testSwapDefault_forTrampolines() 338 when(mPm.getPackageUid("emerPhone", MATCH_ALL, 0)).thenReturn(30); in testSwapDefault_multipleOverlappingApps_forNonBlockableDefaultApps() 372 when(mPm.getPackageUid("phone", MATCH_ALL, 10)).thenReturn(30); in testSwapDefault_newUser_forNonBlockableDefaultApps() 390 when(mPm.getPackageUid("com.browser", MATCH_ALL, 0)).thenReturn(30); in testSwapDefault_newUser_forTrampolines() 391 when(mPm.getPackageUid("com.browser2", MATCH_ALL, 10)).thenReturn(1031); in testSwapDefault_newUser_forTrampolines()
|
D | ZenModeEventLoggerFake.java | 110 public int getPackageUid(int i) throws IllegalArgumentException { in getPackageUid() method in ZenModeEventLoggerFake 112 return mChanges.get(i).getPackageUid(); in getPackageUid()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiverTest.kt | 87 `when`(packageManager.getPackageUid(anyString(), anyInt())) in testPackageVerification_nonExistentPackage() 95 `when`(packageManager.getPackageUid(anyString(), anyInt())).thenReturn(12345) in testPackageVerification_uidNotInForeground() 104 `when`(packageManager.getPackageUid(anyString(), anyInt())).thenReturn(12345) in testPackageVerification_OK() 114 `when`(packageManager.getPackageUid(eq(componentName.packageName), anyInt())) in testOnReceive_packageNotVerified_nameNotFound() 124 `when`(packageManager.getPackageUid(eq(componentName.packageName), anyInt())) in testOnReceive_packageNotVerified_notForeground() 136 `when`(packageManager.getPackageUid(eq(componentName.packageName), anyInt())) in testOnReceive_OK()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/ |
D | UriGrantsMockContext.java | 116 when(mPmInternal.getPackageUid(eq(PKG_SOCIAL), anyLong(), eq(userId))) in UriGrantsMockContext() 118 when(mPmInternal.getPackageUid(eq(PKG_CAMERA), anyLong(), eq(userId))) in UriGrantsMockContext() 120 when(mPmInternal.getPackageUid(eq(PKG_PRIVATE), anyLong(), eq(userId))) in UriGrantsMockContext() 122 when(mPmInternal.getPackageUid(eq(PKG_PUBLIC), anyLong(), eq(userId))) in UriGrantsMockContext() 124 when(mPmInternal.getPackageUid(eq(PKG_FORCE), anyLong(), eq(userId))) in UriGrantsMockContext() 126 when(mPmInternal.getPackageUid(eq(PKG_COMPLEX), anyLong(), eq(userId))) in UriGrantsMockContext()
|
/frameworks/native/libs/binder/ |
D | PermissionController.cpp | 82 int PermissionController::getPackageUid(const String16& package, int flags) in getPackageUid() function in android::PermissionController 85 return service != nullptr ? service->getPackageUid(package, flags) : -1; in getPackageUid()
|
D | IPermissionController.cpp | 93 virtual int getPackageUid(const String16& package, int flags) in getPackageUid() function in android::BpPermissionController 164 const int uid = getPackageUid(package, flags); in onTransact()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 787 when(mPackageManager.getPackageUid(eq(PACKAGE_1), anyInt())).thenReturn(UID_1); in testPackageDisabledAndThenEnabled() 788 when(mPackageManager.getPackageUid(eq(PACKAGE_2), anyInt())).thenReturn(UID_2); in testPackageDisabledAndThenEnabled() 939 when(mPackageManager.getPackageUid(eq(PACKAGE_1), anyInt())).thenReturn(UID_1); in testGetCarrierService_haveCarrierServiceWithSimCarrierPrivileges() 940 when(mPackageManager.getPackageUid(eq(PACKAGE_2), anyInt())).thenReturn(UID_2); in testGetCarrierService_haveCarrierServiceWithSimCarrierPrivileges() 941 when(mPackageManager.getPackageUid(eq(PACKAGE_3), anyInt())).thenReturn(UID_1); in testGetCarrierService_haveCarrierServiceWithSimCarrierPrivileges() 984 when(mPackageManager.getPackageUid(eq(PACKAGE_1), anyInt())).thenReturn(UID_1); in testGetCarrierService_haveCarrierServiceWithoutSimCarrierPrivileges() 985 when(mPackageManager.getPackageUid(eq(PACKAGE_2), anyInt())).thenReturn(UID_2); in testGetCarrierService_haveCarrierServiceWithoutSimCarrierPrivileges() 986 when(mPackageManager.getPackageUid(eq(PACKAGE_3), anyInt())).thenReturn(UID_1); in testGetCarrierService_haveCarrierServiceWithoutSimCarrierPrivileges() 1013 when(mPackageManager.getPackageUid(eq(PACKAGE_1), anyInt())).thenReturn(UID_1); in testGetCarrierService_haveNoCarrierService() 1014 when(mPackageManager.getPackageUid(eq(PACKAGE_2), anyInt())).thenReturn(UID_2); in testGetCarrierService_haveNoCarrierService() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/trace/ |
D | InputTracingPerfettoBackend.cpp | 64 gui::Uid getPackageUid(const sp<content::pm::IPackageManagerNative>& pm, in getPackageUid() function 67 if (auto status = pm->getPackageUid(package, /*flags=*/0, AID_SYSTEM, &outUid); in getPackageUid() 116 mUidMap->emplace(package, getPackageUid(packageManager, package)); in initializeUidMap() 119 mUidMap->emplace(package, getPackageUid(packageManager, package)); in initializeUidMap()
|
/frameworks/base/core/java/android/os/ |
D | IPermissionController.aidl | 26 int getPackageUid(String packageName, int flags); in getPackageUid() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerTest.java | 163 uid = pm.getPackageUid(TEST_APP1, 0); in runOnce() 270 int uid = pm.getPackageUid(TEST_APP1, 0); in testFgsProcStatsTracker() 361 final int uid1 = pm.getPackageUid(TEST_APP1, 0); in testAppFreezerWithAllowOomAdj() 362 final int uid2 = pm.getPackageUid(TEST_APP2, 0); in testAppFreezerWithAllowOomAdj() 515 final int uid = pm.getPackageUid(TEST_APP1, 0); in testKillAppIfBgRestrictedCachedIdle() 716 final int uid1 = pm.getPackageUid(TEST_APP1, 0); in testKillPids() 717 final int uid2 = pm.getPackageUid(TEST_APP2, 0); in testKillPids() 718 final int uid3 = pm.getPackageUid(TEST_APP3, 0); in testKillPids() 789 final int uid1 = pm.getPackageUid(TEST_APP1, 0); in testGetIsolatedProcesses() 790 final int uid2 = pm.getPackageUid(TEST_APP2, 0); in testGetIsolatedProcesses() [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | PermissionController.h | 51 LIBBINDER_EXPORTED int getPackageUid(const String16& package, int flags);
|
D | IPermissionController.h | 41 virtual int getPackageUid(const String16& package, int flags) = 0;
|
/frameworks/base/apct-tests/perftests/core/src/android/permission/ |
D | AppOpsPerfTest.kt | 46 opPackageUid = context.getPackageManager().getPackageUid(opPackageName, 0) in setUp()
|
/frameworks/base/apct-tests/perftests/permission/src/android/perftests/permission/ |
D | AppOpsPerfTest.kt | 41 opPackageUid = context.getPackageManager().getPackageUid(opPackageName, 0) in setUp()
|
/frameworks/native/libs/binder/aidl/android/content/pm/ |
D | IPackageManagerNative.aidl | 55 int getPackageUid(in @utf8InCpp String packageName, in long flags, in int userId); in getPackageUid() method
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerNative.java | 72 public int getPackageUid(String packageName, long flags, int userId) throws RemoteException { in getPackageUid() method in PackageManagerNative 73 return mPm.snapshotComputer().getPackageUid(packageName, flags, userId); in getPackageUid()
|
D | DumpHelper.java | 336 pw.print(snapshot.getPackageUid(requiredVerifierPackage, in doDump() 343 pw.println(snapshot.getPackageUid(requiredVerifierPackage, in doDump() 363 pw.print(snapshot.getPackageUid(verifierPackageName, in doDump() 370 pw.println(snapshot.getPackageUid(verifierPackageName, in doDump() 670 snapshot.getPackageUid( in dumpProto() 686 snapshot.getPackageUid( in dumpProto()
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | SenderPackageFilter.java | 50 packageUid = pm.getPackageUid(mPackageName, PackageManager.MATCH_ANY_USER, in matches()
|
/frameworks/base/services/incremental/ |
D | IncrementalServiceValidation.cpp | 60 if (auto packageUid = pc.getPackageUid(packageName, 0); packageUid != uid) { in CheckPermissionForDataDelivery()
|
/frameworks/base/services/credentials/java/com/android/server/credentials/ |
D | MetricUtilities.java | 73 protected static int getPackageUid(Context context, ComponentName componentName, in getPackageUid() method in MetricUtilities 78 return getPackageUid(context, componentName.getPackageName(), userId); in getPackageUid() 82 public static int getPackageUid(Context context, String packageName, in getPackageUid() method in MetricUtilities
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerAllowlistBackend.java | 205 uid = mAppContext.getSystemService(PackageManager.class).getPackageUid(pkg, 0); in addApp() 247 uid = mAppContext.getSystemService(PackageManager.class).getPackageUid(pkg, 0); in removeApp()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | Owners.java | 183 final int profileOwnerUid = mPackageManagerInternal.getPackageUid( in pushToActivityManagerLocked() 197 return mPackageManagerInternal.getPackageUid(mData.mDeviceOwner.packageName, in getDeviceOwnerUidLocked() 211 uids.add(mPackageManagerInternal.getPackageUid(info.packageName, in getProfileOwnerUidsLocked() 688 final int uid = mPackageManagerInternal.getPackageUid( in pushToAppOpsLocked()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/ |
D | TvPipTestBase.kt | 65 private val systemUiUid = packageManager.getPackageUid(SYSTEM_UI_PACKAGE_NAME, 0) in fail()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiver.kt | 42 context.packageManager.getPackageUid(packageName, 0) in isPackageInForeground()
|
/frameworks/base/services/companion/java/com/android/server/companion/association/ |
D | AssociationRequestsProcessor.java | 162 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in processNewAssociationRequest() 229 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in buildAssociationCancellationIntent() 246 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in processAssociationRequestApproval()
|