/frameworks/base/services/core/java/com/android/server/location/ |
D | AppOpsHelper.java | 120 public boolean checkLocationAccess(CallerIdentity callerIdentity) { in checkLocationAccess() argument 128 CallerIdentity.asAppOp(callerIdentity.permissionLevel), in checkLocationAccess() 129 callerIdentity.uid, in checkLocationAccess() 130 callerIdentity.packageName) == AppOpsManager.MODE_ALLOWED; in checkLocationAccess() 181 public boolean noteMockLocationAccess(CallerIdentity callerIdentity) { in noteMockLocationAccess() argument 191 callerIdentity.uid, in noteMockLocationAccess() 192 callerIdentity.packageName, in noteMockLocationAccess() 193 callerIdentity.featureId, in noteMockLocationAccess() 194 callerIdentity.listenerId) == AppOpsManager.MODE_ALLOWED; in noteMockLocationAccess() 200 private boolean startLocationMonitoring(int appOp, CallerIdentity callerIdentity) { in startLocationMonitoring() argument [all …]
|
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.pid, callerIdentity.uid) == PackageManager.PERMISSION_GRANTED; in hasPermissionLocationHardware() 56 CallerIdentity callerIdentity) { in hasPermissionUpdateAppOpsStats() argument 58 callerIdentity.pid, callerIdentity.uid) == PackageManager.PERMISSION_GRANTED; in hasPermissionUpdateAppOpsStats()
|
D | RemoteListenerHelper.java | 81 CallerIdentity callerIdentity) { in addListener() argument 91 callerIdentity); in addListener() 138 void execute(TListener listener, CallerIdentity callerIdentity) throws RemoteException; in execute() argument 178 protected boolean hasPermission(Context context, CallerIdentity callerIdentity) { in hasPermission() argument 179 if (LocationPermissionUtil.doesCallerReportToAppOps(context, callerIdentity)) { in hasPermission() 182 return mAppOps.checkOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.uid, in hasPermission() 183 callerIdentity.packageName) == AppOpsManager.MODE_ALLOWED; in hasPermission() 186 return mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.uid, in hasPermission() 187 callerIdentity.packageName, callerIdentity.featureId, null) in hasPermission() 268 CallerIdentity callerIdentity) { in IdentifiedListener() argument [all …]
|
D | LocationManagerServiceUtils.java | 46 @NonNull CallerIdentity callerIdentity, in LinkedListener() argument 48 super(callerIdentity); in LinkedListener() 71 LinkedListenerBase(@NonNull CallerIdentity callerIdentity) { in LinkedListenerBase() argument 72 mCallerIdentity = callerIdentity; in LinkedListenerBase()
|
D | LocationManagerService.java | 1666 private boolean isThrottlingExempt(CallerIdentity callerIdentity) { in isThrottlingExempt() argument 1667 if (callerIdentity.uid == Process.SYSTEM_UID) { in isThrottlingExempt() 1672 callerIdentity.packageName)) { in isThrottlingExempt() 1676 return mLocalService.isProviderPackage(callerIdentity.packageName); in isThrottlingExempt()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssStatusListenerHelper.java | 55 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onStatusChanged() argument 59 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onStatusChanged() argument 66 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onFirstFix() argument 80 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onSvStatusChanged() argument 81 if (!hasPermission(mContext, callerIdentity)) { in onSvStatusChanged() 82 logPermissionDisabledEventNotReported(TAG, callerIdentity.packageName, in onSvStatusChanged() 92 foreach((IGnssStatusListener listener, CallerIdentity callerIdentity) -> { in onNmeaReceived() argument 93 if (!hasPermission(mContext, callerIdentity)) { in onNmeaReceived() 94 logPermissionDisabledEventNotReported(TAG, callerIdentity.packageName, "NMEA"); in onNmeaReceived()
|
D | GnssAntennaInfoProvider.java | 105 CallerIdentity callerIdentity) -> { in getHandlerOperation() 112 foreach((IGnssAntennaInfoListener listener, CallerIdentity callerIdentity) -> { in onGnssAntennaInfoAvailable() argument 113 if (!hasPermission(mContext, callerIdentity)) { in onGnssAntennaInfoAvailable() 115 TAG, callerIdentity.packageName, "GNSS antenna info"); in onGnssAntennaInfoAvailable()
|
D | GnssMeasurementsProvider.java | 117 foreach((IGnssMeasurementsListener listener, CallerIdentity callerIdentity) -> { in onMeasurementsAvailable() argument 118 if (!hasPermission(mContext, callerIdentity)) { in onMeasurementsAvailable() 120 TAG, callerIdentity.packageName, "GNSS measurements"); in onMeasurementsAvailable() 175 CallerIdentity callerIdentity) throws RemoteException { in execute() argument
|
D | GnssManagerService.java | 360 CallerIdentity callerIdentity = linkedListener.getCallerIdentity(); in updateListenersOnForegroundChangedLocked() local 362 if (callerIdentity.uid != uid) { in updateListenersOnForegroundChangedLocked() 367 if (foreground || isThrottlingExempt(callerIdentity)) { in updateListenersOnForegroundChangedLocked() 368 gnssDataProvider.addListener(request, listener, callerIdentity); in updateListenersOnForegroundChangedLocked() 626 private boolean isThrottlingExempt(CallerIdentity callerIdentity) { in isThrottlingExempt() argument 627 if (callerIdentity.uid == Process.SYSTEM_UID) { in isThrottlingExempt() 632 callerIdentity.packageName)) { in isThrottlingExempt() 639 return mLocationManagerInternal.isProviderPackage(callerIdentity.packageName); in isThrottlingExempt()
|
D | GnssNavigationMessageProvider.java | 90 foreach((IGnssNavigationMessageListener listener, CallerIdentity callerIdentity) -> { in onNavigationMessageAvailable() argument 141 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()
|