Home
last modified time | relevance | path

Searched refs:callerIdentity (Results 1 – 20 of 20) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/
H A DSystemAppOpsHelper.java67 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 DAppOpsHelper.java68 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 DSystemLocationPermissionsHelper.java56 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 DLocationPermissionsHelper.java108 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 DFakeAppOpsHelper.java61 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 DTextToSpeechService.java479 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 DAudioPlaybackHandler.java58 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 DPlaybackQueueItem.java12 Object callerIdentity) { in PlaybackQueueItem() argument
14 mCallerIdentity = callerIdentity; in PlaybackQueueItem()
H A DSilencePlaybackQueueItem.java26 Object callerIdentity, long silenceDurationMs) { in SilencePlaybackQueueItem() argument
27 super(dispatcher, callerIdentity); in SilencePlaybackQueueItem()
H A DAudioPlaybackQueueItem.java39 Object callerIdentity, in AudioPlaybackQueueItem() argument
41 super(dispatcher, callerIdentity); in AudioPlaybackQueueItem()
H A DSynthesisPlaybackQueueItem.java81 Object callerIdentity, AbstractEventLogger logger) { in SynthesisPlaybackQueueItem() argument
82 super(dispatcher, callerIdentity); in SynthesisPlaybackQueueItem()
H A DPlaybackSynthesisCallback.java57 @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 DCallerIdentity.java62 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 DGnssNavigationMessageProvider.java44 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 DGnssMeasurementsProvider.java57 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 DGnssListenerMultiplexer.java266 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 DGnssAntennaInfoProvider.java99 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 DLocationProviderManager.java1949 public void registerLocationRequest(LocationRequest request, CallerIdentity callerIdentity,
1953 callerIdentity,
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DLauncherAppsService.java1122 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 DDevicePolicyManagerService.java1506 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)