/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemAppOpsHelper.java | 60 public boolean startOpNoThrow(int appOp, CallerIdentity callerIdentity) { in startOpNoThrow() argument 67 callerIdentity.getUid(), in startOpNoThrow() 68 callerIdentity.getPackageName(), in startOpNoThrow() 70 callerIdentity.getAttributionTag(), in startOpNoThrow() 71 callerIdentity.getListenerId()) == AppOpsManager.MODE_ALLOWED; in startOpNoThrow() 78 public void finishOp(int appOp, CallerIdentity callerIdentity) { in finishOp() argument 85 callerIdentity.getUid(), in finishOp() 86 callerIdentity.getPackageName(), in finishOp() 87 callerIdentity.getAttributionTag()); in finishOp() 94 public boolean checkOpNoThrow(int appOp, CallerIdentity callerIdentity) { in checkOpNoThrow() argument [all …]
|
D | AppOpsHelper.java | 68 public abstract boolean startOpNoThrow(int appOp, CallerIdentity callerIdentity); in startOpNoThrow() argument 73 public abstract void finishOp(int appOp, CallerIdentity callerIdentity); in finishOp() argument 78 public abstract boolean checkOpNoThrow(int appOp, CallerIdentity callerIdentity); in checkOpNoThrow() argument 83 public abstract boolean noteOp(int appOp, CallerIdentity callerIdentity); in noteOp() argument 88 public abstract boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity); in noteOpNoThrow() argument
|
D | SystemLocationPermissionsHelper.java | 56 protected boolean hasPermission(String permission, CallerIdentity callerIdentity) { in hasPermission() argument 59 return mContext.checkPermission(permission, callerIdentity.getPid(), in hasPermission() 60 callerIdentity.getUid()) == PERMISSION_GRANTED; in hasPermission()
|
D | LocationPermissionsHelper.java | 106 protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity); in hasPermission() argument
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | FakeAppOpsHelper.java | 61 public boolean startOpNoThrow(int appOp, CallerIdentity callerIdentity) { in startOpNoThrow() argument 62 AppOp myAppOp = getOp(callerIdentity.getPackageName(), appOp); in startOpNoThrow() 72 public void finishOp(int appOp, CallerIdentity callerIdentity) { in finishOp() argument 73 AppOp myAppOp = getOp(callerIdentity.getPackageName(), appOp); in finishOp() 79 public boolean checkOpNoThrow(int appOp, CallerIdentity callerIdentity) { in checkOpNoThrow() argument 80 AppOp myAppOp = getOp(callerIdentity.getPackageName(), appOp); in checkOpNoThrow() 85 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() argument 86 if (!noteOpNoThrow(appOp, callerIdentity)) { in noteOp() 88 "noteOp not allowed for op " + appOp + " and caller " + callerIdentity); in noteOp() 95 public boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity) { in noteOpNoThrow() argument [all …]
|
/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/location/java/android/location/util/identity/ |
D | CallerIdentity.java | 62 public static CallerIdentity forAggregation(CallerIdentity callerIdentity) { in forAggregation() argument 63 if (callerIdentity.getPid() == 0 && callerIdentity.getListenerId() == null) { in forAggregation() 64 return callerIdentity; in forAggregation() 67 return new CallerIdentity(callerIdentity.getUid(), 0, callerIdentity.getPackageName(), in forAggregation() 68 callerIdentity.getAttributionTag(), null); in forAggregation()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssNavigationMessageProvider.java | 48 CallerIdentity callerIdentity, in GnssNavigationMessageListenerRegistration() argument 50 super(null, callerIdentity, listener); in GnssNavigationMessageListenerRegistration() 84 CallerIdentity callerIdentity, IGnssNavigationMessageListener listener) { in createRegistration() argument 85 return new GnssNavigationMessageListenerRegistration(callerIdentity, listener); in createRegistration()
|
D | GnssAntennaInfoProvider.java | 50 protected AntennaInfoListenerRegistration(CallerIdentity callerIdentity, in AntennaInfoListenerRegistration() argument 52 super(null, callerIdentity, listener); in AntennaInfoListenerRegistration() 84 public void addListener(CallerIdentity callerIdentity, IGnssAntennaInfoListener listener) { in addListener() argument 88 new AntennaInfoListenerRegistration(callerIdentity, listener)); in addListener()
|
D | GnssListenerMultiplexer.java | 78 CallerIdentity callerIdentity, TListener listener) { in GnssListenerRegistration() argument 79 super(request, callerIdentity, listener); in GnssListenerRegistration() 246 protected void addListener(TRequest request, CallerIdentity callerIdentity, in addListener() argument 251 createRegistration(request, callerIdentity, listener)); in addListener() 261 CallerIdentity callerIdentity, TListener listener) { in createRegistration() argument 262 return new GnssListenerRegistration(request, callerIdentity, listener); in createRegistration()
|
D | GnssMeasurementsProvider.java | 59 CallerIdentity callerIdentity, in GnssMeasurementListenerRegistration() argument 61 super(request, callerIdentity, listener); in GnssMeasurementListenerRegistration() 114 CallerIdentity callerIdentity, IGnssMeasurementsListener listener) { in createRegistration() argument 115 return new GnssMeasurementListenerRegistration(request, callerIdentity, listener); in createRegistration()
|
/frameworks/base/services/core/java/com/android/server/location/listeners/ |
D | PendingIntentListenerRegistration.java | 46 CallerIdentity callerIdentity, TListener listener) { in PendingIntentListenerRegistration() argument 47 super(request, callerIdentity, listener); in PendingIntentListenerRegistration()
|
D | BinderListenerRegistration.java | 47 protected BinderListenerRegistration(@Nullable TRequest request, CallerIdentity callerIdentity, in BinderListenerRegistration() argument 49 super(request, callerIdentity, listener); in BinderListenerRegistration()
|
/frameworks/base/services/core/java/com/android/server/location/provider/ |
D | LocationProviderManager.java | 1780 public void registerLocationRequest(LocationRequest request, CallerIdentity callerIdentity, 1784 callerIdentity,
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 1192 CallerIdentity callerIdentity = getCallerIdentity(); in setDevicePolicySafetyChecker() local 1193 Preconditions.checkCallAuthorization(mIsAutomotive || isAdb(callerIdentity), "can only set " in setDevicePolicySafetyChecker() 1195 callerIdentity); in setDevicePolicySafetyChecker() 10680 CallerIdentity callerIdentity = getCallerIdentity(); 10681 canManageUsers(callerIdentity); 10683 setShowNewUserDisclaimer(callerIdentity.getUserId(),
|