/frameworks/base/services/core/java/com/android/server/firewall/ |
D | SenderFilter.java | 40 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 …]
|
D | IntentFirewall.java | 127 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 …]
|
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()
|
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()
|
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()
|
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()
|
D | SenderPackageFilter.java | 42 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument 56 return UserHandle.isSameApp(packageUid, callerUid); in matches()
|
D | Filter.java | 35 int callerUid, int callerPid, String resolvedType, int receivingUid); in matches() argument
|
D | CategoryFilter.java | 38 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
|
D | PortFilter.java | 45 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
|
D | StringFilter.java | 122 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
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()
|
D | IntentFilterVerificationResponse.java | 23 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()
|
D | IntentFilterVerificationState.java | 104 public boolean setVerifierResponse(int callerUid, int code) { in setVerifierResponse() argument 105 if (mRequiredVerifierUid == callerUid) { in setVerifierResponse() 116 Slog.d(TAG, "Cannot set verifier response with callerUid:" + callerUid + " and code:" + in setVerifierResponse()
|
/frameworks/base/core/java/android/speech/tts/ |
D | TextToSpeechService.java | 744 public SpeechItem(Object caller, int callerUid, int callerPid) { in SpeechItem() argument 746 mCallerUid = callerUid; in SpeechItem() 820 public UtteranceSpeechItem(Object caller, int callerUid, int callerPid) { in UtteranceSpeechItem() argument 821 super(caller, callerUid, callerPid); in UtteranceSpeechItem() 880 SpeechItemV1(Object callerIdentity, int callerUid, int callerPid, in SpeechItemV1() argument 882 super(callerIdentity, callerUid, callerPid); in SpeechItemV1() 920 public SynthesisSpeechItemV1(Object callerIdentity, int callerUid, int callerPid, in SynthesisSpeechItemV1() argument 922 super(callerIdentity, callerUid, callerPid, params, utteranceId); in SynthesisSpeechItemV1() 924 mCallerUid = callerUid; in SynthesisSpeechItemV1() 928 mEventLogger = new EventLoggerV1(mSynthesisRequest, callerUid, callerPid, in SynthesisSpeechItemV1() [all …]
|
D | AbstractEventLogger.java | 40 AbstractEventLogger(int callerUid, int callerPid, String serviceApp) { in AbstractEventLogger() argument 41 mCallerUid = callerUid; in AbstractEventLogger()
|
D | EventLoggerV1.java | 28 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/ |
D | NetworkStatsCollection.java | 140 final int callerUid = Binder.getCallingUid(); in getRelevantUids() local 144 if (isAccessibleToUser(key.uid, callerUid)) { in getRelevantUids() 171 final int callerUid = Binder.getCallingUid(); in getHistory() local 172 if (!isAccessibleToUser(uid, callerUid)) { in getHistory() 174 + " is forbidden for caller " + callerUid); in getHistory() 208 final int callerUid = Binder.getCallingUid(); in getSummary() local 211 if (templateMatches(template, key.ident) && isAccessibleToUser(key.uid, callerUid) in getSummary() 573 private static boolean isAccessibleToUser(int uid, int callerUid) { in isAccessibleToUser() argument 574 return UserHandle.getAppId(callerUid) == android.os.Process.SYSTEM_UID || in isAccessibleToUser() 576 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); in isAccessibleToUser()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 279 protected boolean inSystemImage(int callerUid) { in inSystemImage() argument 280 return callerUid == SYSTEM_IMAGE_UID; in inSystemImage()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 1405 int callerUid = Binder.getCallingUid(); in invalidateAuthToken() local 1408 + ", caller's uid " + callerUid in invalidateAuthToken() 1858 final int callerUid = Binder.getCallingUid(); in getAuthToken() local 1860 customTokens || permissionIsGranted(account, authTokenType, callerUid, userId); in getAuthToken() 1867 callerOwnedPackageNames = Arrays.asList(mPackageManager.getPackagesForUid(callerUid)); in getAuthToken() 1874 callerUid, in getAuthToken() 1880 loginOptions.putInt(AccountManager.KEY_CALLER_UID, callerUid); in getAuthToken() 1961 callerUid, in getAuthToken() 3756 Account account, String authTokenType, int callerUid, int userId) { in permissionIsGranted() argument 3757 final boolean isPrivileged = isPrivileged(callerUid); in permissionIsGranted() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 410 private MediaSessionRecord createSessionInternal(int callerPid, int callerUid, int userId, in createSessionInternal() argument 413 return createSessionLocked(callerPid, callerUid, userId, callerPackageName, cb, tag); in createSessionInternal() 424 private MediaSessionRecord createSessionLocked(int callerPid, int callerUid, int userId, in createSessionLocked() argument 427 final MediaSessionRecord session = new MediaSessionRecord(callerPid, callerUid, userId, in createSessionLocked()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 383 int callerUid = Binder.getCallingUid(); in syncAsUser() local 415 request.getAccount(), userId, callerUid, request.getProvider(), extras, in syncAsUser() local 845 int callerUid = Binder.getCallingUid(); in getSyncStatusAsUser() local 875 int callerUid = Binder.getCallingUid(); in isSyncPendingAsUser() local
|
/frameworks/base/core/java/android/content/pm/ |
D | RegisteredServicesCache.java | 346 protected boolean inSystemImage(int callerUid) { in inSystemImage() argument 347 String[] packages = mContext.getPackageManager().getPackagesForUid(callerUid); in inSystemImage()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MountService.java | 2237 private boolean isUidOwnerOfPackageOrSystem(String packageName, int callerUid) { in isUidOwnerOfPackageOrSystem() argument 2238 if (callerUid == android.os.Process.SYSTEM_UID) { in isUidOwnerOfPackageOrSystem() 2246 final int packageUid = mPms.getPackageUid(packageName, UserHandle.getUserId(callerUid)); in isUidOwnerOfPackageOrSystem() 2250 packageUid + ", callerUid = " + callerUid); in isUidOwnerOfPackageOrSystem() 2253 return callerUid == packageUid; in isUidOwnerOfPackageOrSystem()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 6352 private boolean isCallerDeviceOwnerOrInitializer(int callerUid) { in isCallerDeviceOwnerOrInitializer() argument 6353 String[] pkgs = mContext.getPackageManager().getPackagesForUid(callerUid); in isCallerDeviceOwnerOrInitializer()
|