Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/firewall/
DSenderFilter.java40 static boolean isPrivilegedApp(int callerUid, int callerPid) { in isPrivilegedApp() argument
41 if (callerUid == Process.SYSTEM_UID || callerUid == 0 || in isPrivilegedApp()
48 return (pm.getPrivateFlagsForUid(callerUid) & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) in isPrivilegedApp()
83 int callerUid, int callerPid, String resolvedType, int receivingUid) {
84 return ifw.signaturesMatch(callerUid, receivingUid);
91 int callerUid, int callerPid, String resolvedType, int receivingUid) {
92 return isPrivilegedApp(callerUid, callerPid);
99 int callerUid, int callerPid, String resolvedType, int receivingUid) {
100 return isPrivilegedApp(callerUid, callerPid) ||
101 ifw.signaturesMatch(callerUid, receivingUid);
[all …]
DIntentFirewall.java127 public boolean checkStartActivity(Intent intent, int callerUid, int callerPid, in checkStartActivity() argument
130 callerUid, callerPid, resolvedType, resolvedApp.uid); in checkStartActivity()
133 public boolean checkService(ComponentName resolvedService, Intent intent, int callerUid, in checkService() argument
135 return checkIntent(mServiceResolver, resolvedService, TYPE_SERVICE, intent, callerUid, in checkService()
139 public boolean checkBroadcast(Intent intent, int callerUid, int callerPid, in checkBroadcast() argument
142 callerUid, callerPid, resolvedType, receivingUid); in checkBroadcast()
146 int intentType, Intent intent, int callerUid, int callerPid, String resolvedType, in checkIntent() argument
164 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType, in checkIntent()
178 logIntent(intentType, intent, callerUid, resolvedType); in checkIntent()
184 private static void logIntent(int intentType, Intent intent, int callerUid, in logIntent() argument
[all …]
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()
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()
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
DCategoryFilter.java38 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
DPortFilter.java45 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
DStringFilter.java122 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()
DIntentFilterVerificationResponse.java23 public final int callerUid; field in IntentFilterVerificationResponse
27 public IntentFilterVerificationResponse(int callerUid, int code, List<String> failedDomains) { in IntentFilterVerificationResponse() argument
28 this.callerUid = callerUid; in IntentFilterVerificationResponse()
DIntentFilterVerificationState.java109 public boolean setVerifierResponse(int callerUid, int code) { in setVerifierResponse() argument
110 if (mRequiredVerifierUid == callerUid) { in setVerifierResponse()
121 Slog.d(TAG, "Cannot set verifier response with callerUid:" + callerUid + " and code:" + in setVerifierResponse()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java756 public SpeechItem(Object caller, int callerUid, int callerPid) { in SpeechItem() argument
758 mCallerUid = callerUid; in SpeechItem()
832 public UtteranceSpeechItem(Object caller, int callerUid, int callerPid) { in UtteranceSpeechItem() argument
833 super(caller, callerUid, callerPid); in UtteranceSpeechItem()
908 SpeechItemV1(Object callerIdentity, int callerUid, int callerPid, in SpeechItemV1() argument
910 super(callerIdentity, callerUid, callerPid); in SpeechItemV1()
948 public SynthesisSpeechItemV1(Object callerIdentity, int callerUid, int callerPid, in SynthesisSpeechItemV1() argument
950 super(callerIdentity, callerUid, callerPid, params, utteranceId); in SynthesisSpeechItemV1()
952 mCallerUid = callerUid; in SynthesisSpeechItemV1()
956 mEventLogger = new EventLoggerV1(mSynthesisRequest, callerUid, callerPid, in SynthesisSpeechItemV1()
[all …]
DAbstractEventLogger.java40 AbstractEventLogger(int callerUid, int callerPid, String serviceApp) { in AbstractEventLogger() argument
41 mCallerUid = callerUid; in AbstractEventLogger()
DEventLoggerV1.java28 EventLoggerV1(SynthesisRequest request, int callerUid, int callerPid, String serviceApp) { in EventLoggerV1() argument
29 super(callerUid, callerPid, serviceApp); in EventLoggerV1()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java145 public static boolean isAccessibleToUser(int uid, int callerUid, in isAccessibleToUser() argument
157 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); in isAccessibleToUser()
163 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); in isAccessibleToUser()
167 return uid == callerUid; in isAccessibleToUser()
DNetworkStatsCollection.java142 final int callerUid) { in getRelevantUids() argument
146 if (NetworkStatsAccess.isAccessibleToUser(key.uid, callerUid, accessLevel)) { in getRelevantUids()
186 @NetworkStatsAccess.Level int accessLevel, int callerUid) { in getHistory() argument
187 if (!NetworkStatsAccess.isAccessibleToUser(uid, callerUid, accessLevel)) { in getHistory()
189 + " is forbidden for caller " + callerUid); in getHistory()
223 @NetworkStatsAccess.Level int accessLevel, int callerUid) { in getSummary() argument
236 && NetworkStatsAccess.isAccessibleToUser(key.uid, callerUid, accessLevel) in getSummary()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DRegisteredServicesCacheTest.java282 protected boolean inSystemImage(int callerUid) { in inSystemImage() argument
283 return callerUid == SYSTEM_IMAGE_UID; in inSystemImage()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java427 private MediaSessionRecord createSessionInternal(int callerPid, int callerUid, int userId, in createSessionInternal() argument
430 return createSessionLocked(callerPid, callerUid, userId, callerPackageName, cb, tag); in createSessionInternal()
441 private MediaSessionRecord createSessionLocked(int callerPid, int callerUid, int userId, in createSessionLocked() argument
450 final MediaSessionRecord session = new MediaSessionRecord(callerPid, callerUid, userId, in createSessionLocked()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java1730 int callerUid = Binder.getCallingUid(); in invalidateAuthToken() local
1733 + ", caller's uid " + callerUid in invalidateAuthToken()
2212 final int callerUid = Binder.getCallingUid(); in getAuthToken() local
2214 customTokens || permissionIsGranted(account, authTokenType, callerUid, userId); in getAuthToken()
2221 callerOwnedPackageNames = Arrays.asList(mPackageManager.getPackagesForUid(callerUid)); in getAuthToken()
2228 callerUid, in getAuthToken()
2234 loginOptions.putInt(AccountManager.KEY_CALLER_UID, callerUid); in getAuthToken()
2321 callerUid, in getAuthToken()
5044 Account account, String authTokenType, int callerUid, int userId) { in permissionIsGranted() argument
5045 final boolean isPrivileged = isPrivileged(callerUid); in permissionIsGranted()
[all …]
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java391 protected boolean inSystemImage(int callerUid) { in inSystemImage() argument
392 String[] packages = mContext.getPackageManager().getPackagesForUid(callerUid); in inSystemImage()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java1625 final int callerUid = Binder.getCallingUid(); in scheduleAsPackage() local
1627 Slog.d(TAG, "Caller uid " + callerUid + " scheduling job: " + job.toString() in scheduleAsPackage()
1638 throw new SecurityException("Caller uid " + callerUid in scheduleAsPackage()
1649 return JobSchedulerService.this.scheduleAsPackage(job, callerUid, in scheduleAsPackage()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java524 int callerUid = Binder.getCallingUid(); in syncAsUser() local
553 request.getAccount(), userId, callerUid, request.getProvider(), extras, in syncAsUser() local

12