/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationPermissionUtil.java | 44 public static boolean doesCallerReportToAppOps(Context context, CallerIdentity callerIdentity) { in doesCallerReportToAppOps() argument 45 return hasPermissionLocationHardware(context, callerIdentity) in doesCallerReportToAppOps() 46 && hasPermissionUpdateAppOpsStats(context, callerIdentity); in doesCallerReportToAppOps() 50 CallerIdentity callerIdentity) { in hasPermissionLocationHardware() argument 52 callerIdentity.mPid, callerIdentity.mUid) == PackageManager.PERMISSION_GRANTED; in hasPermissionLocationHardware() 56 CallerIdentity callerIdentity) { in hasPermissionUpdateAppOpsStats() argument 58 callerIdentity.mPid, callerIdentity.mUid) == PackageManager.PERMISSION_GRANTED; in hasPermissionUpdateAppOpsStats()
|
D | GnssStatusListenerHelper.java | 51 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onStatusChanged() argument 55 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onStatusChanged() argument 62 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onFirstFix() argument 75 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onSvStatusChanged() argument 76 if (!hasPermission(mContext, callerIdentity)) { in onSvStatusChanged() 77 logPermissionDisabledEventNotReported(TAG, callerIdentity.mPackageName, in onSvStatusChanged() 87 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onNmeaReceived() argument 88 if (!hasPermission(mContext, callerIdentity)) { in onNmeaReceived() 89 logPermissionDisabledEventNotReported(TAG, callerIdentity.mPackageName, "NMEA"); in onNmeaReceived()
|
D | RemoteListenerHelper.java | 79 public void addListener(@NonNull TListener listener, CallerIdentity callerIdentity) { in addListener() argument 89 callerIdentity); in addListener() 136 void execute(TListener listener, CallerIdentity callerIdentity) throws RemoteException; in execute() argument 176 protected boolean hasPermission(Context context, CallerIdentity callerIdentity) { in hasPermission() argument 177 if (LocationPermissionUtil.doesCallerReportToAppOps(context, callerIdentity)) { in hasPermission() 180 return mAppOps.checkOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.mUid, in hasPermission() 181 callerIdentity.mPackageName) == AppOpsManager.MODE_ALLOWED; in hasPermission() 184 return mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.mUid, in hasPermission() 185 callerIdentity.mPackageName) == AppOpsManager.MODE_ALLOWED; in hasPermission() 263 private IdentifiedListener(@NonNull TListener listener, CallerIdentity callerIdentity) { in IdentifiedListener() argument [all …]
|
D | GnssMeasurementsProvider.java | 97 foreach((IGnssMeasurementsListener listener, CallerIdentity callerIdentity) -> { in onMeasurementsAvailable() argument 98 if (!hasPermission(mContext, callerIdentity)) { in onMeasurementsAvailable() 100 TAG, callerIdentity.mPackageName, "GNSS measurements"); in onMeasurementsAvailable() 155 CallerIdentity callerIdentity) throws RemoteException { in execute() argument
|
D | GnssNavigationMessageProvider.java | 88 foreach((IGnssNavigationMessageListener listener, CallerIdentity callerIdentity) -> { in onNavigationMessageAvailable() argument 139 CallerIdentity callerIdentity) throws RemoteException { in execute() argument
|
/frameworks/base/core/java/android/speech/tts/ |
D | TextToSpeechService.java | 477 private void startFlushingSpeechItems(Object callerIdentity) { in startFlushingSpeechItems() argument 479 if (callerIdentity == null) { in startFlushingSpeechItems() 482 mFlushedObjects.add(callerIdentity); in startFlushingSpeechItems() 486 private void endFlushingSpeechItems(Object callerIdentity) { in endFlushingSpeechItems() argument 488 if (callerIdentity == null) { in endFlushingSpeechItems() 491 mFlushedObjects.remove(callerIdentity); in endFlushingSpeechItems() 529 private synchronized SpeechItem maybeRemoveCurrentSpeechItem(Object callerIdentity) { in maybeRemoveCurrentSpeechItem() argument 531 (mCurrentSpeechItem.getCallerIdentity() == callerIdentity)) { in maybeRemoveCurrentSpeechItem() 616 public int stopForApp(final Object callerIdentity) { in stopForApp() argument 617 if (callerIdentity == null) { in stopForApp() [all …]
|
D | AudioPlaybackHandler.java | 58 public void stopForApp(Object callerIdentity) { in stopForApp() argument 59 if (DBG) Log.d(TAG, "Removing all callback items for : " + callerIdentity); in stopForApp() 60 removeWorkItemsFor(callerIdentity); in stopForApp() 63 if (current != null && (current.getCallerIdentity() == callerIdentity)) { in stopForApp() 102 private void removeWorkItemsFor(Object callerIdentity) { in removeWorkItemsFor() argument 107 if (item.getCallerIdentity() == callerIdentity) { in removeWorkItemsFor()
|
D | PlaybackQueueItem.java | 12 Object callerIdentity) { in PlaybackQueueItem() argument 14 mCallerIdentity = callerIdentity; in PlaybackQueueItem()
|
D | SilencePlaybackQueueItem.java | 26 Object callerIdentity, long silenceDurationMs) { in SilencePlaybackQueueItem() argument 27 super(dispatcher, callerIdentity); in SilencePlaybackQueueItem()
|
D | AudioPlaybackQueueItem.java | 39 Object callerIdentity, in AudioPlaybackQueueItem() argument 41 super(dispatcher, callerIdentity); in AudioPlaybackQueueItem()
|
D | SynthesisPlaybackQueueItem.java | 81 Object callerIdentity, AbstractEventLogger logger) { in SynthesisPlaybackQueueItem() argument 82 super(dispatcher, callerIdentity); in SynthesisPlaybackQueueItem()
|
D | PlaybackSynthesisCallback.java | 57 @NonNull UtteranceProgressDispatcher dispatcher, @NonNull Object callerIdentity, in PlaybackSynthesisCallback() argument 63 mCallerIdentity = callerIdentity; in PlaybackSynthesisCallback()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationManagerService.java | 613 CallerIdentity callerIdentity = linkedListener.mCallerIdentity; in updateGnssDataProviderOnUidImportanceChangedLocked() local 614 if (callerIdentity.mUid != uid) { in updateGnssDataProviderOnUidImportanceChangedLocked() 624 if (foreground || isThrottlingExemptLocked(callerIdentity)) { in updateGnssDataProviderOnUidImportanceChangedLocked() 625 gnssDataProvider.addListener(listener, callerIdentity); in updateGnssDataProviderOnUidImportanceChangedLocked() 1752 CallerIdentity callerIdentity = new CallerIdentity(Binder.getCallingUid(), in addGnssBatchingCallback() local 1757 "BatchedLocationCallback", callerIdentity, in addGnssBatchingCallback() 2273 private boolean isThrottlingExemptLocked(CallerIdentity callerIdentity) { in isThrottlingExemptLocked() argument 2274 if (callerIdentity.mUid == Process.SYSTEM_UID) { in isThrottlingExemptLocked() 2278 if (mBackgroundThrottlePackageWhitelist.contains(callerIdentity.mPackageName)) { in isThrottlingExemptLocked() 2282 return isProviderPackage(callerIdentity.mPackageName); in isThrottlingExemptLocked() [all …]
|