/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/ |
H A D | SystemAppOpsHelper.java | 67 callerIdentity.getUid(), in startOpNoThrow() 68 callerIdentity.getPackageName(), in startOpNoThrow() 70 callerIdentity.getAttributionTag(), in startOpNoThrow() 85 callerIdentity.getUid(), in finishOp() 86 callerIdentity.getPackageName(), in finishOp() 101 callerIdentity.getUid(), in checkOpNoThrow() 116 callerIdentity.getUid(), in noteOp() 117 callerIdentity.getPackageName(), in noteOp() 118 callerIdentity.getAttributionTag(), in noteOp() 133 callerIdentity.getUid(), in noteOpNoThrow() [all …]
|
H A 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
|
H A 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()
|
H A D | LocationPermissionsHelper.java | 108 protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity); in hasPermission() argument
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | FakeAppOpsHelper.java | 61 public boolean startOpNoThrow(int appOp, CallerIdentity callerIdentity) { in startOpNoThrow() argument 62 AppOp myAppOp = getOp(callerIdentity.getPackageName(), appOp); in startOpNoThrow() 71 public void finishOp(int appOp, CallerIdentity callerIdentity) { in finishOp() argument 72 AppOp myAppOp = getOp(callerIdentity.getPackageName(), appOp); in finishOp() 78 public boolean checkOpNoThrow(int appOp, CallerIdentity callerIdentity) { in checkOpNoThrow() argument 79 AppOp myAppOp = getOp(callerIdentity.getPackageName(), appOp); in checkOpNoThrow() 84 public boolean noteOp(int appOp, CallerIdentity callerIdentity) { in noteOp() argument 85 if (!noteOpNoThrow(appOp, callerIdentity)) { in noteOp() 87 "noteOp not allowed for op " + appOp + " and caller " + callerIdentity); in noteOp() 94 public boolean noteOpNoThrow(int appOp, CallerIdentity callerIdentity) { in noteOpNoThrow() argument [all …]
|
/aosp14/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeechService.java | 479 if (callerIdentity == null) { in startFlushingSpeechItems() 482 mFlushedObjects.add(callerIdentity); in startFlushingSpeechItems() 488 if (callerIdentity == null) { in endFlushingSpeechItems() 617 if (callerIdentity == null) { in stopForApp() 623 startFlushingSpeechItems(callerIdentity); in stopForApp() 943 Object callerIdentity, in UtteranceSpeechItemWithParams() argument 948 super(callerIdentity, callerUid, callerPid); in UtteranceSpeechItemWithParams() 987 Object callerIdentity, in SynthesisSpeechItem() argument 1097 Object callerIdentity, in SynthesisToFileOutputStreamSpeechItem() argument 1128 Object callerIdentity, in AudioSpeechItem() argument [all …]
|
H A 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()
|
H A D | PlaybackQueueItem.java | 12 Object callerIdentity) { in PlaybackQueueItem() argument 14 mCallerIdentity = callerIdentity; in PlaybackQueueItem()
|
H A D | SilencePlaybackQueueItem.java | 26 Object callerIdentity, long silenceDurationMs) { in SilencePlaybackQueueItem() argument 27 super(dispatcher, callerIdentity); in SilencePlaybackQueueItem()
|
H A D | AudioPlaybackQueueItem.java | 39 Object callerIdentity, in AudioPlaybackQueueItem() argument 41 super(dispatcher, callerIdentity); in AudioPlaybackQueueItem()
|
H A D | SynthesisPlaybackQueueItem.java | 81 Object callerIdentity, AbstractEventLogger logger) { in SynthesisPlaybackQueueItem() argument 82 super(dispatcher, callerIdentity); in SynthesisPlaybackQueueItem()
|
H A D | PlaybackSynthesisCallback.java | 57 @NonNull UtteranceProgressDispatcher dispatcher, @NonNull Object callerIdentity, in PlaybackSynthesisCallback() argument 63 mCallerIdentity = callerIdentity; in PlaybackSynthesisCallback()
|
/aosp14/frameworks/base/location/java/android/location/util/identity/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/ |
H A D | GnssNavigationMessageProvider.java | 44 CallerIdentity callerIdentity, in GnssNavigationMessageListenerRegistration() argument 46 super(null, callerIdentity, listener); in GnssNavigationMessageListenerRegistration() 82 CallerIdentity callerIdentity, IGnssNavigationMessageListener listener) { in createRegistration() argument 83 return new GnssNavigationMessageListenerRegistration(callerIdentity, listener); in createRegistration()
|
H A D | GnssMeasurementsProvider.java | 57 CallerIdentity callerIdentity, in GnssMeasurementListenerRegistration() argument 59 super(request, callerIdentity, listener); in GnssMeasurementListenerRegistration() 110 CallerIdentity callerIdentity, IGnssMeasurementsListener listener) { in createRegistration() argument 111 return new GnssMeasurementListenerRegistration(request, callerIdentity, listener); in createRegistration()
|
H A D | GnssListenerMultiplexer.java | 266 protected void addListener(TRequest request, CallerIdentity callerIdentity, in addListener() argument 271 createRegistration(request, callerIdentity, listener)); in addListener() 281 CallerIdentity callerIdentity, TListener listener) { in createRegistration() argument 282 return new GnssListenerRegistration(request, callerIdentity, listener); in createRegistration()
|
H A D | GnssAntennaInfoProvider.java | 99 public void addListener(CallerIdentity callerIdentity, IGnssAntennaInfoListener listener) { in addListener() argument 103 new AntennaInfoListenerRegistration(callerIdentity, listener)); in addListener()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/provider/ |
H A D | LocationProviderManager.java | 1949 public void registerLocationRequest(LocationRequest request, CallerIdentity callerIdentity, 1953 callerIdentity,
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | LauncherAppsService.java | 1122 final long callerIdentity = Binder.clearCallingIdentity(); in getActivityOverrides() local 1151 Binder.restoreCallingIdentity(callerIdentity); in getActivityOverrides()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 1506 CallerIdentity callerIdentity = getCallerIdentity(); in setDevicePolicySafetyChecker() local 1507 Preconditions.checkCallAuthorization(mIsAutomotive || isAdb(callerIdentity), "can only set " in setDevicePolicySafetyChecker() 1509 callerIdentity); in setDevicePolicySafetyChecker() 12816 CallerIdentity callerIdentity = getCallerIdentity(); 12817 Preconditions.checkCallAuthorization(canManageUsers(callerIdentity) 12854 CallerIdentity callerIdentity = getCallerIdentity(); 12855 Preconditions.checkCallAuthorization(canManageUsers(callerIdentity)
|