Home
last modified time | relevance | path

Searched refs:getPackageUidAsUser (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java118 doReturn(ai.uid).when(mMockContext.packageManager).getPackageUidAsUser( in markPackageAsInstalled()
DDevicePolicyManagerTest.java967 … doReturn(DpmMockContext.CALLER_SYSTEM_USER_UID).when(mContext.packageManager).getPackageUidAsUser( in testClearDeviceOwner()
1035 doReturn(DpmMockContext.CALLER_UID).when(mContext.packageManager).getPackageUidAsUser( in testClearDeviceOwner_fromDifferentUser()
1261 doReturn(uid).when(mContext.packageManager).getPackageUidAsUser( in setupPackageInPackageManager()
3185 .getPackageUidAsUser(eq(admin1.getPackageName()), anyInt()); in clearDeviceOwner()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java514 .getPackageUidAsUser(packageName, mContext.getUserId()); in grantPermission()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java130 … public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { in getPackageUidAsUser() method in BridgePackageManager
135 …public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundE… in getPackageUidAsUser() method in BridgePackageManager
/frameworks/base/test-runner/src/android/test/mock/
DMockPackageManager.java127 public int getPackageUidAsUser(String packageName, int flags, int userHandle) in getPackageUidAsUser() method in MockPackageManager
134 public int getPackageUidAsUser(String packageName, int userHandle) in getPackageUidAsUser() method in MockPackageManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java144 int uid = mContext.getPackageManager().getPackageUidAsUser(packageName, in verifyCaller()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java106 allowedUid = pm.getPackageUidAsUser(allowedPackage, in getAllowedUid()
DBluetoothManagerService.java406 systemUiUid = mContext.getPackageManager().getPackageUidAsUser("com.android.systemui", in BluetoothManagerService()
DDeviceIdleController.java1688 int uid = getContext().getPackageManager().getPackageUidAsUser(packageName, userId); in addPowerSaveTempWhitelistAppInternal()
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java178 uid = mPm.getPackageUidAsUser(name, UserHandle.USER_SYSTEM); in readXml()
1112 r.uid = mPm.getPackageUidAsUser(r.pkg, changeUserId); in onPackagesChanged()
1125 mPm.getPackageUidAsUser(pkg, changeUserId)); in onPackagesChanged()
DNotificationManagerService.java2499 int uid = getContext().getPackageManager().getPackageUidAsUser(
3256 .getPackageUidAsUser(opPackageName, userId); in resolveNotificationUid()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java343 }).when(mPackageManager).getPackageUidAsUser(anyString(), anyInt()); in setMockedPackages()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java257 return getPackageUidAsUser(packageName, flags, mContext.getUserId()); in getPackageUid()
261 public int getPackageUidAsUser(String packageName, int userId) throws NameNotFoundException { in getPackageUidAsUser() method in ApplicationPackageManager
262 return getPackageUidAsUser(packageName, 0, userId); in getPackageUidAsUser()
266 public int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() method in ApplicationPackageManager
/frameworks/base/core/java/android/content/pm/
DPackageManager.java3006 public abstract int getPackageUidAsUser(String packageName, @UserIdInt int userId) in getPackageUidAsUser() method in PackageManager
3023 public abstract int getPackageUidAsUser(String packageName, @PackageInfoFlags int flags, in getPackageUidAsUser() method in PackageManager
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java339 final int uid = mPackageManager.getPackageUidAsUser(packageName, userId); in AccountManagerService()
641 uid = mPackageManager.getPackageUidAsUser(packageName, accounts.userId); in resolveAccountVisibility()
1009 mPackageManager.getPackageUidAsUser(packageName, userId); in packageExistsForUser()
1345 mPackageManager.getPackageUidAsUser(packageName, accounts.userId); in removeVisibilityValuesForPackage()
3892 int uid = mPackageManager.getPackageUidAsUser(packageName, userId); in hasAccountAccess()
3969 uid = mPackageManager.getPackageUidAsUser(packageName, userId); in createRequestAccountAccessIntentSenderAsUser()
4420 packageUid = mPackageManager.getPackageUidAsUser(packageName, userId);
6058 uid = mPackageManager.getPackageUidAsUser(packageName, userId);
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java290 mContext.getPackageManager().getPackageUidAsUser( in setPrintServiceEnabled()
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DRankingHelperTest.java123 when(mPm.getPackageUidAsUser(eq(PKG), anyInt())).thenReturn(UID); in setUp()
124 when(mPm.getPackageUidAsUser(eq(UPDATED_PKG), anyInt())).thenReturn(UID2); in setUp()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java1055 uid = context.getPackageManager().getPackageUidAsUser(packageName, 0, in isSystemPackage()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java1286 reqUid = mContext.getPackageManager().getPackageUidAsUser(arg, in dump()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java599 result = pm.getPackageUidAsUser(app, userHandle); in getAppUid()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java605 final int uid = mPackageManager.getPackageUidAsUser(packageName, in notifyBatteryStats()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java372 mSystemUiUid = mContext.getPackageManager().getPackageUidAsUser(SYSUI_PACKAGE_NAME, in WifiConfigManager()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java5061 .getPackageUidAsUser(delegatePackage, userId); in getDelegatedScopes()
5144 .getPackageUidAsUser(callerPackage, userId); in isCallerDelegate()
6669 int uid = mInjector.getPackageManager().getPackageUidAsUser(packageName, in clearDeviceOwner()
9628 final int uidForPackage = mInjector.getPackageManager().getPackageUidAsUser( in isProvisioningAllowed()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java168 }).when(mPackageManager).getPackageUidAsUser(anyString(), anyInt(), anyInt()); in setUp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java3507 final int uid = mContext.getPackageManager().getPackageUidAsUser(packageName, in onAppIdleStateChanged()

12