/aosp14/frameworks/base/services/core/java/com/android/server/firewall/ |
H A D | SenderFilter.java | 37 static boolean isPrivilegedApp(PackageManagerInternal pmi, int callerUid, int callerPid) { in isPrivilegedApp() argument 38 if (callerUid == Process.SYSTEM_UID || callerUid == 0 || in isPrivilegedApp() 42 return pmi.isUidPrivileged(callerUid); in isPrivilegedApp() 70 int callerUid, int callerPid, String resolvedType, int receivingUid) { 71 return ifw.signaturesMatch(callerUid, receivingUid); 78 int callerUid, int callerPid, String resolvedType, int receivingUid) { 79 return isPrivilegedApp(ifw.getPackageManager(), callerUid, callerPid); 86 int callerUid, int callerPid, String resolvedType, int receivingUid) { 87 return isPrivilegedApp(ifw.getPackageManager(), callerUid, callerPid) 88 || ifw.signaturesMatch(callerUid, receivingUid); [all …]
|
H A D | IntentFirewall.java | 144 public boolean checkStartActivity(Intent intent, int callerUid, int callerPid, in checkStartActivity() argument 147 callerUid, callerPid, resolvedType, resolvedApp.uid); in checkStartActivity() 150 public boolean checkService(ComponentName resolvedService, Intent intent, int callerUid, in checkService() argument 152 return checkIntent(mServiceResolver, resolvedService, TYPE_SERVICE, intent, callerUid, in checkService() 156 public boolean checkBroadcast(Intent intent, int callerUid, int callerPid, in checkBroadcast() argument 159 callerUid, callerPid, resolvedType, receivingUid); in checkBroadcast() 163 int intentType, Intent intent, int callerUid, int callerPid, String resolvedType, in checkIntent() argument 196 logIntent(intentType, intent, callerUid, resolvedType); in checkIntent() 202 private static void logIntent(int intentType, Intent intent, int callerUid, in logIntent() argument 216 String[] callerPackagesArray = pm.getPackagesForUid(callerUid); in logIntent() [all …]
|
H A D | AndFilter.java | 29 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument 31 if (!children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid, in matches()
|
H A D | OrFilter.java | 29 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument 31 if (children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid, in matches()
|
H A D | SenderPermissionFilter.java | 37 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument 41 return ifw.checkComponentPermission(mPermission, callerPid, callerUid, receivingUid, in matches()
|
H A D | NotFilter.java | 36 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument 37 return !mChild.matches(ifw, resolvedComponent, intent, callerUid, callerPid, resolvedType, in matches()
|
H A D | SenderPackageFilter.java | 43 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument 60 return UserHandle.isSameApp(packageUid, callerUid); in matches()
|
H A D | Filter.java | 35 int callerUid, int callerPid, String resolvedType, int receivingUid); in matches() argument
|
H A D | CategoryFilter.java | 38 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
|
H A D | PortFilter.java | 45 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageVerificationResponse.java | 22 public final int callerUid; field in PackageVerificationResponse 24 public PackageVerificationResponse(int code, int callerUid) { in PackageVerificationResponse() argument 26 this.callerUid = callerUid; in PackageVerificationResponse()
|
H A D | VerificationUtils.java | 107 state.setVerifierResponseOnTimeout(response.callerUid, response.code); in processVerificationResponseOnTimeout() 115 state.setVerifierResponse(response.callerUid, response.code); in processVerificationResponse()
|
H A D | LauncherAppsService.java | 186 public abstract boolean startShortcut(int callerUid, int callerPid, String callingPackage, in startShortcut() argument 456 void verifyCallingPackage(String callingPackage, int callerUid) { in verifyCallingPackage() argument 463 UserHandle.getUserId(callerUid)); in verifyCallingPackage() 469 if (packageUid != callerUid) { in verifyCallingPackage() 880 private void ensureShortcutPermission(int callerUid, int callerPid, in ensureShortcutPermission() argument 882 verifyCallingPackage(callingPackage, callerUid); in ensureShortcutPermission() 884 callingPackage, callerPid, callerUid)) { in ensureShortcutPermission() 1175 private boolean startShortcutInner(int callerUid, int callerPid, int callingUserId, in startShortcutInner() argument 1178 verifyCallingPackage(callingPackage, callerUid); in startShortcutInner() 1186 ensureShortcutPermission(callerUid, callerPid, callingPackage); in startShortcutInner() [all …]
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | ForegroundServiceTypePolicy.java | 937 public boolean isTypeDisabled(int callerUid) { in isTypeDisabled() argument 939 && CompatChanges.isChangeEnabled(mDisabledChangeId, callerUid); in isTypeDisabled() 970 boolean isTypeDeprecated(int callerUid) { in isTypeDeprecated() argument 1150 callerPid, callerUid, packageName); in checkPermission() 1229 UserHandle.getUserHandleForUid(callerUid)); in checkPermission() 1364 int callerUid, int callerPid, boolean allowWhileInUse, in checkForegroundServiceTypePolicy() argument 1367 if (policy.isTypeDisabled(callerUid)) { in checkForegroundServiceTypePolicy() 1374 callerUid, callerPid, packageName, allowWhileInUse); in checkForegroundServiceTypePolicy() 1382 callerUid, callerPid, packageName, allowWhileInUse); in checkForegroundServiceTypePolicy() 1391 callerUid, callerPid, packageName, allowWhileInUse); in checkForegroundServiceTypePolicy() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
H A D | WorkSourceUidPreservingRunnableTest.java | 38 int callerUid = 1234; in preservesAndRestoresWorkSourceUid() local 41 Binder.setCallingWorkSourceUid(callerUid); in preservesAndRestoresWorkSourceUid() 51 assertEquals(Optional.of(callerUid), uidReadingRunnable.getWorkSourceUid()); in preservesAndRestoresWorkSourceUid()
|
H A D | HdmiCecAtomLoggingTest.java | 178 int callerUid = 1234; in testMessageReported_calledWithUid() local 184 Binder.setCallingWorkSourceUid(callerUid); in testMessageReported_calledWithUid() 196 eq(callerUid), in testMessageReported_calledWithUid()
|
H A D | HdmiCecControllerTest.java | 327 int callerUid = 1234; in runOnIoThread_preservesAndRestoresWorkSourceUid() local 330 Binder.setCallingWorkSourceUid(callerUid); in runOnIoThread_preservesAndRestoresWorkSourceUid() 337 TestCase.assertEquals(Optional.of(callerUid), uidReadingRunnable.getWorkSourceUid()); in runOnIoThread_preservesAndRestoresWorkSourceUid()
|
/aosp14/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeechService.java | 784 mCallerUid = callerUid; in SpeechItem() 859 super(caller, callerUid, callerPid); in UtteranceSpeechItem() 944 int callerUid, in UtteranceSpeechItemWithParams() argument 948 super(callerIdentity, callerUid, callerPid); in UtteranceSpeechItemWithParams() 988 int callerUid, in SynthesisSpeechItem() argument 995 mCallerUid = callerUid; in SynthesisSpeechItem() 1098 int callerUid, in SynthesisToFileOutputStreamSpeechItem() argument 1129 int callerUid, in AudioSpeechItem() argument 1171 super(callerIdentity, callerUid, callerPid); in SilenceSpeechItem() 1208 super(callerIdentity, callerUid, callerPid); in LoadLanguageItem() [all …]
|
H A D | AbstractEventLogger.java | 40 AbstractEventLogger(int callerUid, int callerPid, String serviceApp) { in AbstractEventLogger() argument 41 mCallerUid = callerUid; in AbstractEventLogger()
|
H A D | EventLogger.java | 28 EventLogger(SynthesisRequest request, int callerUid, int callerPid, String serviceApp) { in EventLogger() argument 29 super(callerUid, callerPid, serviceApp); in EventLogger()
|
/aosp14/frameworks/base/services/credentials/java/com/android/server/credentials/metrics/ |
H A D | InitialPhaseMetric.java | 99 public void setCallerUid(int callerUid) { in setCallerUid() argument 100 mCallerUid = callerUid; in setCallerUid()
|
/aosp14/frameworks/base/services/core/java/com/android/server/security/rkp/ |
H A D | RemoteProvisioningService.java | 92 final int callerUid = Binder.getCallingUidOrThrow(); in getRegistration() local 97 RegistrationProxy.createAsync(getContext(), callerUid, irpcName, in getRegistration() local
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | BinderCallHeavyHitterWatcher.java | 337 public void onTransaction(final int callerUid, @NonNull final Class clazz, in onTransaction() argument 354 final int hashCode = HeavyHitterContainer.hashCode(callerUid, clazz, code); in onTransaction() 372 container.mUid = callerUid; in onTransaction()
|
/aosp14/frameworks/base/core/java/android/app/admin/ |
H A D | DevicePolicyManagerInternal.java | 160 public abstract boolean canSilentlyInstallPackage(String callerPackage, int callerUid); in canSilentlyInstallPackage() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DragDropController.java | 99 IBinder performDrag(int callerPid, int callerUid, IWindow window, int flags, in performDrag() argument 158 mDragState.mUid = callerUid; in performDrag()
|