Home
last modified time | relevance | path

Searched refs:callingAppId (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DAppsFilterLocked.java55 protected boolean isQueryableViaPackage(int callingAppId, int targetAppId) { in isQueryableViaPackage() argument
57 return super.isQueryableViaPackage(callingAppId, targetAppId); in isQueryableViaPackage()
62 protected boolean isQueryableViaComponent(int callingAppId, int targetAppId) { in isQueryableViaComponent() argument
64 return super.isQueryableViaComponent(callingAppId, targetAppId); in isQueryableViaComponent()
83 protected boolean isQueryableViaUsesLibrary(int callingAppId, int targetAppId) { in isQueryableViaUsesLibrary() argument
85 return super.isQueryableViaUsesLibrary(callingAppId, targetAppId); in isQueryableViaUsesLibrary()
90 protected boolean isQueryableViaUsesPermission(int callingAppId, int targetAppId) { in isQueryableViaUsesPermission() argument
92 return super.isQueryableViaUsesPermission(callingAppId, targetAppId); in isQueryableViaUsesPermission()
H A DAppsFilterBase.java205 protected boolean isForceQueryable(int callingAppId) { in isForceQueryable() argument
206 return mForceQueryable.contains(callingAppId); in isForceQueryable()
210 return mQueriesViaPackage.contains(callingAppId, targetAppId); in isQueryableViaPackage()
238 int callingAppId, int targetAppId) { in isQueryableViaComponentWhenRequireRecompute() argument
332 int callingAppId = UserHandle.getAppId(callingUid); in shouldFilterApplication() local
333 if (callingAppId < Process.FIRST_APPLICATION_UID in shouldFilterApplication()
335 || callingAppId == targetPkgSetting.getAppId()) { in shouldFilterApplication()
337 } else if (Process.isSdkSandboxUid(callingAppId)) { in shouldFilterApplication()
411 if (callingAppId == targetAppId in shouldFilterApplicationInternal()
412 || callingAppId < Process.FIRST_APPLICATION_UID in shouldFilterApplicationInternal()
[all …]
H A DAppsFilterImpl.java993 int callingAppId, int targetAppId) { in isQueryableViaComponentWhenRequireRecompute() argument
996 return isQueryableViaComponent(callingAppId, targetAppId); in isQueryableViaComponentWhenRequireRecompute()
H A DPackageManagerService.java5393 final int callingAppId = UserHandle.getAppId(callingUid);
5399 if (!PackageManagerServiceUtils.isSystemOrRoot(callingAppId)
5922 final int callingAppId = UserHandle.getAppId(callingUid);
5928 if (!PackageManagerServiceUtils.isSystemOrRoot(callingAppId)
6112 final int callingAppId = UserHandle.getAppId(callingUid);
6114 if (callingAppId != Process.SYSTEM_UID
6115 && callingAppId != Process.SHELL_UID
6116 && callingAppId != targetUpdateOwnerAppId) {
H A DComputerEngine.java1860 final int callingAppId = UserHandle.getAppId(callingUid); in resolveInternalPackageNameInternalLocked() local
1861 if (!PackageManagerServiceUtils.isSystemOrRootOrShell(callingAppId)) { in resolveInternalPackageNameInternalLocked()
5582 final int callingAppId = UserHandle.getAppId(callingUid); in getHarmfulAppWarning() local
5587 if (!PackageManagerServiceUtils.isSystemOrRoot(callingAppId) in getHarmfulAppWarning()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DBackgroundActivityStartController.java205 final int callingAppId = UserHandle.getAppId(callingUid); in checkBackgroundActivityStart() local
213 || callingAppId == Process.SYSTEM_UID in checkBackgroundActivityStart()
214 || callingAppId == Process.NFC_UID) { in checkBackgroundActivityStart()
229 if (imeWindow != null && callingAppId == imeWindow.mOwnerUid) { in checkBackgroundActivityStart()
/aosp14/frameworks/base/services/print/java/com/android/server/print/
H A DPrintManagerService.java1115 final int callingAppId = UserHandle.getAppId(callingUid); in resolveCallingAppEnforcingPermissions() local
1116 if (appId == callingAppId || callingAppId == SHELL_UID in resolveCallingAppEnforcingPermissions()
1117 || callingAppId == Process.SYSTEM_UID) { in resolveCallingAppEnforcingPermissions()
1123 throw new SecurityException("Call from app " + callingAppId + " as app " in resolveCallingAppEnforcingPermissions()
/aosp14/frameworks/base/services/core/java/com/android/server/uri/
H A DUriGrantsManagerService.java1101 final int callingAppId = UserHandle.getAppId(callingUid); in checkGrantUriPermissionUnlocked() local
1102 if ((callingAppId == SYSTEM_UID) || (callingAppId == ROOT_UID)) { in checkGrantUriPermissionUnlocked()
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsState.java1608 final int callingAppId = UserHandle.getAppId(callingUid); in isCalledFromSystem() local
1609 return (callingAppId < FIRST_APPLICATION_UID); in isCalledFromSystem()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java3502 int callingAppId = UserHandle.getAppId(Binder.getCallingUid()); in enforceExternalStorageService() local
3503 if (callingAppId != mMediaStoreAuthorityAppId) { in enforceExternalStorageService()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DActiveServices.java7665 final int callingAppId = UserHandle.getAppId(callingUid); in shouldAllowFgsWhileInUsePermissionLocked() local
7667 switch (callingAppId) { in shouldAllowFgsWhileInUsePermissionLocked()
H A DActivityManagerService.java3717 final int callingAppId = UserHandle.getAppId(callingUid); in killBackgroundProcesses() local
3734 if (appId == -1 || (!hasKillAllPermission && appId != callingAppId)) { in killBackgroundProcesses()