Home
last modified time | relevance | path

Searched refs:callerUid (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/firewall/
DSenderFilter.java37 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 …]
DIntentFirewall.java144 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
182 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType, in checkIntent()
196 logIntent(intentType, intent, callerUid, resolvedType); in checkIntent()
202 private static void logIntent(int intentType, Intent intent, int callerUid, in logIntent() argument
[all …]
DOrFilter.java29 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
31 if (children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid, in matches()
DAndFilter.java29 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
31 if (!children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid, in matches()
DSenderPermissionFilter.java37 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
41 return ifw.checkComponentPermission(mPermission, callerPid, callerUid, receivingUid, in matches()
DNotFilter.java36 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
37 return !mChild.matches(ifw, resolvedComponent, intent, callerUid, callerPid, resolvedType, in matches()
DSenderPackageFilter.java43 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
60 return UserHandle.isSameApp(packageUid, callerUid); in matches()
DFilter.java35 int callerUid, int callerPid, String resolvedType, int receivingUid); in matches() argument
/frameworks/base/services/core/java/com/android/server/pm/
DPackageVerificationResponse.java22 public final int callerUid; field in PackageVerificationResponse
24 public PackageVerificationResponse(int code, int callerUid) { in PackageVerificationResponse() argument
26 this.callerUid = callerUid; in PackageVerificationResponse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsPermissions.java138 int callerUid = Binder.getCallingUid(); in checkCallingOrSelfCanGetSmscAddress() local
141 isDefaultSmsPackage = isCallerDefaultSmsPackage(callingPackage, callerUid); in checkCallingOrSelfCanGetSmscAddress()
166 int callerUid = Binder.getCallingUid(); in checkCallingOrSelfCanSetSmscAddress() local
169 isDefaultSmsPackage = isCallerDefaultSmsPackage(callingPackage, callerUid); in checkCallingOrSelfCanSetSmscAddress()
184 public boolean isCallerDefaultSmsPackage(String packageName, int callerUid) { in isCallerDefaultSmsPackage() argument
185 if (packageNameMatchesCallingUid(packageName, callerUid)) { in isCallerDefaultSmsPackage()
204 public boolean packageNameMatchesCallingUid(String packageName, int callerUid) { in packageNameMatchesCallingUid() argument
207 .checkPackage(callerUid, packageName); in packageNameMatchesCallingUid()
/frameworks/base/core/java/android/app/
DForegroundServiceTypePolicy.java720 @NonNull String packageName, int callerUid, int callerPid, boolean allowWhileInUse, in checkForegroundServiceTypePolicy() argument
958 public boolean isTypeDisabled(int callerUid) { in isTypeDisabled() argument
960 && CompatChanges.isChangeEnabled(mDisabledChangeId, callerUid); in isTypeDisabled()
991 boolean isTypeDeprecated(int callerUid) { in isTypeDeprecated() argument
993 && CompatChanges.isChangeEnabled(mDeprecationChangeId, callerUid); in isTypeDeprecated()
1062 public int checkPermissions(@NonNull Context context, int callerUid, int callerPid, in checkPermissions() argument
1066 final int result = perm.checkPermission(context, callerUid, callerPid, in checkPermissions()
1076 final int result = perm.checkPermission(context, callerUid, callerPid, in checkPermissions()
1135 public abstract int checkPermission(@NonNull Context context, int callerUid, int callerPid, in checkPermission() argument
1159 public int checkPermission(@NonNull Context context, int callerUid, int callerPid, in checkPermission() argument
[all …]
/frameworks/base/services/core/java/com/android/server/security/rkp/
DRemoteProvisioningService.java92 final int callerUid = Binder.getCallingUidOrThrow(); in getRegistration() local
97 RegistrationProxy.createAsync(getContext(), callerUid, irpcName, in getRegistration() local
108 final int callerUid = Binder.getCallingUidOrThrow(); in dump() local
111 new RemoteProvisioningShellCommand(getContext(), callerUid).dump(pw); in dump()
120 final int callerUid = Binder.getCallingUidOrThrow(); in handleShellCommand() local
123 return new RemoteProvisioningShellCommand(getContext(), callerUid).exec(this, in handleShellCommand()
DRemoteProvisioningShellCommand.java93 RemoteProvisioningShellCommand(Context context, int callerUid) { in RemoteProvisioningShellCommand() argument
94 this(context, callerUid, new Injector()); in RemoteProvisioningShellCommand()
97 RemoteProvisioningShellCommand(Context context, int callerUid, Injector injector) { in RemoteProvisioningShellCommand() argument
99 mCallerUid = callerUid; in RemoteProvisioningShellCommand()
308 Context context, int callerUid, String name, Executor executor) { in getRegistrationProxy() argument
312 context, callerUid, irpc, BIND_TIMEOUT, executor, registration); in getRegistrationProxy()
/frameworks/base/core/java/android/service/ondeviceintelligence/
DIOnDeviceIntelligenceService.aidl39 void getFeature(int callerUid, int featureId, in IFeatureCallback featureCallback); in getFeature() argument
40 void listFeatures(int callerUid, in IListFeaturesCallback listFeaturesCallback); in listFeatures() argument
41 …void getFeatureDetails(int callerUid, in Feature feature, in IFeatureDetailsCallback featureDetail… in getFeatureDetails() argument
44 void requestFeatureDownload(int callerUid, in Feature feature, in requestFeatureDownload() argument
DOnDeviceIntelligenceService.java150 public void listFeatures(int callerUid, in onBind() argument
156 OnDeviceIntelligenceService.this, callerUid, in onBind()
161 public void getFeature(int callerUid, int id, IFeatureCallback featureCallback) { in onBind() argument
166 OnDeviceIntelligenceService.this, callerUid, in onBind()
172 public void getFeatureDetails(int callerUid, Feature feature, in onBind() argument
179 OnDeviceIntelligenceService.this, callerUid, in onBind()
184 public void requestFeatureDownload(int callerUid, Feature feature, in onBind() argument
197 OnDeviceIntelligenceService.this, callerUid, in onBind()
511 int callerUid, @NonNull Feature feature,
524 public abstract void onGetFeatureDetails(int callerUid, @NonNull Feature feature,
[all …]
DIOnDeviceSandboxedInferenceService.aidl40 void requestTokenInfo(int callerUid, in Feature feature, in Bundle request, in requestTokenInfo() argument
43 void processRequest(int callerUid, in Feature feature, in Bundle request, in int requestType, in processRequest() argument
47 …void processRequestStreaming(int callerUid, in Feature feature, in Bundle request, in int requestT… in processRequestStreaming() argument
DOnDeviceSandboxedInferenceService.java166 public void requestTokenInfo(int callerUid, Feature feature, Bundle request, in onBind() argument
181 callerUid, feature, in onBind()
188 public void processRequestStreaming(int callerUid, Feature feature, Bundle request, in onBind() argument
211 OnDeviceSandboxedInferenceService.this, callerUid, in onBind()
221 public void processRequest(int callerUid, Feature feature, Bundle request, in onBind() argument
241 OnDeviceSandboxedInferenceService.this, callerUid, feature, in onBind()
281 int callerUid, @NonNull Feature feature,
308 int callerUid, @NonNull Feature feature,
334 int callerUid, @NonNull Feature feature,
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DWorkSourceUidPreservingRunnableTest.java38 int callerUid = 1234; in preservesAndRestoresWorkSourceUid() local
41 Binder.setCallingWorkSourceUid(callerUid); in preservesAndRestoresWorkSourceUid()
51 assertEquals(Optional.of(callerUid), uidReadingRunnable.getWorkSourceUid()); in preservesAndRestoresWorkSourceUid()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DClientController.java59 IRemoteInputConnection inputConnection, int selfReportedDisplayId, int callerUid, in addClient() argument
72 if (state.mUid == callerUid && state.mPid == callerPid in addClient()
74 throw new SecurityException("uid=" + callerUid + "/pid=" + callerPid in addClient()
94 callerUid, callerPid, selfReportedDisplayId, deathRecipient); in addClient()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java782 public SpeechItem(Object caller, int callerUid, int callerPid) { in SpeechItem() argument
784 mCallerUid = callerUid; in SpeechItem()
858 public UtteranceSpeechItem(Object caller, int callerUid, int callerPid) { in UtteranceSpeechItem() argument
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
993 super(callerIdentity, callerUid, callerPid, params, utteranceId); in SynthesisSpeechItem()
995 mCallerUid = callerUid; in SynthesisSpeechItem()
999 mEventLogger = new EventLogger(mSynthesisRequest, callerUid, callerPid, mPackageName); in SynthesisSpeechItem()
[all …]
DAbstractEventLogger.java40 AbstractEventLogger(int callerUid, int callerPid, String serviceApp) { in AbstractEventLogger() argument
41 mCallerUid = callerUid; in AbstractEventLogger()
DEventLogger.java28 EventLogger(SynthesisRequest request, int callerUid, int callerPid, String serviceApp) { in EventLogger() argument
29 super(callerUid, callerPid, serviceApp); in EventLogger()
/frameworks/base/services/core/java/com/android/server/ondeviceintelligence/
DOnDeviceIntelligenceManagerService.java276 int callerUid = Binder.getCallingUid(); in getOnDeviceIntelligenceManagerService() local
280 service.getFeature(callerUid, id, new IFeatureCallback.Stub() { in getOnDeviceIntelligenceManagerService()
314 int callerUid = Binder.getCallingUid(); in getOnDeviceIntelligenceManagerService() local
318 service.listFeatures(callerUid, in getOnDeviceIntelligenceManagerService()
358 int callerUid = Binder.getCallingUid(); in getOnDeviceIntelligenceManagerService() local
362 service.getFeatureDetails(callerUid, feature, in getOnDeviceIntelligenceManagerService()
401 int callerUid = Binder.getCallingUid(); in getOnDeviceIntelligenceManagerService() local
409 service.requestFeatureDownload(callerUid, feature, in getOnDeviceIntelligenceManagerService()
441 int callerUid = Binder.getCallingUid(); in getOnDeviceIntelligenceManagerService() local
445 service.requestTokenInfo(callerUid, feature, in getOnDeviceIntelligenceManagerService()
[all …]
/frameworks/base/services/credentials/java/com/android/server/credentials/metrics/
DInitialPhaseMetric.java105 public void setCallerUid(int callerUid) { in setCallerUid() argument
106 mCallerUid = callerUid; in setCallerUid()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityCallerState.java104 void computeCallerInfo(IBinder callerToken, Intent intent, int callerUid, in computeCallerInfo() argument
106 final CallerInfo callerInfo = new CallerInfo(callerUid, callerPackageName, in computeCallerInfo()
114 final boolean hasRead = addContentUriIfUidHasPermission(contentUri, callerUid, in computeCallerInfo()
117 final boolean hasWrite = addContentUriIfUidHasPermission(contentUri, callerUid, in computeCallerInfo()
122 /* modeFlags */ 0, callerUid)); in computeCallerInfo()

123