Home
last modified time | relevance | path

Searched refs:callingIdentity (Results 1 – 18 of 18) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/
DAccessChecker.java88 public static boolean hasAccessToCollection(LocalCallingIdentity callingIdentity, int uriType, in hasAccessToCollection() argument
110 return callingIdentity.checkCallingPermissionAudio(forWrite, in hasAccessToCollection()
117 return callingIdentity.checkCallingPermissionImages(forWrite, in hasAccessToCollection()
124 return callingIdentity.checkCallingPermissionVideo(forWrite, in hasAccessToCollection()
133 && callingIdentity.isCallingPackageLegacyRead(); in hasAccessToCollection()
151 public static boolean hasUserSelectedAccess(@NonNull LocalCallingIdentity callingIdentity, in hasUserSelectedAccess() argument
172 return callingIdentity.checkCallingPermissionUserSelected( in hasUserSelectedAccess()
187 @NonNull LocalCallingIdentity callingIdentity, int uriType) { in getWhereForUserSelectedAccess()
197 return getWhereForUserSelectedMatch(callingIdentity, MediaColumns._ID); in getWhereForUserSelectedAccess()
201 return getWhereForUserSelectedMatch(callingIdentity, "image_id"); in getWhereForUserSelectedAccess()
[all …]
DAsyncPickerFileOpener.java71 @NonNull LocalCallingIdentity callingIdentity) { in scheduleOpenFileAsync() argument
75 callingIdentity); in scheduleOpenFileAsync() local
76 mPickerUriResolver.checkUriPermission(request.getUri(), callingIdentity.pid, in scheduleOpenFileAsync()
77 callingIdentity.uid); in scheduleOpenFileAsync()
80 sExecutor.execute(() -> openFileAsync(request, callingIdentity)); in scheduleOpenFileAsync()
84 @NonNull LocalCallingIdentity callingIdentity) { in openFileAsync() argument
96 Log.d(TAG, "Caller with uid " + callingIdentity.uid + " that requested opening " in openFileAsync()
102 mMediaProvider.addToPendingOpenMap(tid, callingIdentity.uid); in openFileAsync()
108 request.getUri(), "r", cancellationSignal, callingIdentity); in openFileAsync()
134 @NonNull LocalCallingIdentity callingIdentity) { in scheduleOpenAssetFileAsync() argument
[all …]
DConfigStore.java629 final long callingIdentity = Binder.clearCallingIdentity();
633 Binder.restoreCallingIdentity(callingIdentity);
DPickerUriResolver.java615 final long callingIdentity = Binder.clearCallingIdentity(); in openThumbnailFromProvider() local
619 Binder.restoreCallingIdentity(callingIdentity); in openThumbnailFromProvider()
/packages/modules/ImsMedia/framework/src/android/telephony/imsmedia/
DAudioSessionCallback.java62 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionSuccess() local
67 restoreCallingIdentity(callingIdentity); in onOpenSessionSuccess()
75 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionFailure() local
79 restoreCallingIdentity(callingIdentity); in onOpenSessionFailure()
87 final long callingIdentity = Binder.clearCallingIdentity(); in onSessionClosed() local
91 restoreCallingIdentity(callingIdentity); in onSessionClosed()
100 final long callingIdentity = Binder.clearCallingIdentity(); in onModifySessionResponse() local
104 restoreCallingIdentity(callingIdentity); in onModifySessionResponse()
113 final long callingIdentity = Binder.clearCallingIdentity(); in onAddConfigResponse() local
117 restoreCallingIdentity(callingIdentity); in onAddConfigResponse()
[all …]
DVideoSessionCallback.java59 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionSuccess() local
64 restoreCallingIdentity(callingIdentity); in onOpenSessionSuccess()
72 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionFailure() local
76 restoreCallingIdentity(callingIdentity); in onOpenSessionFailure()
84 final long callingIdentity = Binder.clearCallingIdentity(); in onSessionClosed() local
88 restoreCallingIdentity(callingIdentity); in onSessionClosed()
97 final long callingIdentity = Binder.clearCallingIdentity(); in onModifySessionResponse() local
101 restoreCallingIdentity(callingIdentity); in onModifySessionResponse()
109 final long callingIdentity = Binder.clearCallingIdentity(); in onFirstMediaPacketReceived() local
113 restoreCallingIdentity(callingIdentity); in onFirstMediaPacketReceived()
[all …]
DTextSessionCallback.java57 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionSuccess() local
62 restoreCallingIdentity(callingIdentity); in onOpenSessionSuccess()
70 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionFailure() local
74 restoreCallingIdentity(callingIdentity); in onOpenSessionFailure()
82 final long callingIdentity = Binder.clearCallingIdentity(); in onSessionClosed() local
86 restoreCallingIdentity(callingIdentity); in onSessionClosed()
95 final long callingIdentity = Binder.clearCallingIdentity(); in onModifySessionResponse() local
99 restoreCallingIdentity(callingIdentity); in onModifySessionResponse()
107 final long callingIdentity = Binder.clearCallingIdentity(); in notifyMediaInactivity() local
111 restoreCallingIdentity(callingIdentity); in notifyMediaInactivity()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DAccessCheckerTest.java263 LocalCallingIdentity callingIdentity = LocalCallingIdentity.forTest( in testGetWhereForUserSelectedAccess() local
276 .that(getWhereForUserSelectedAccess(callingIdentity, collection)) in testGetWhereForUserSelectedAccess()
278 + getWhereForOwnerPackageMatch(callingIdentity) in testGetWhereForUserSelectedAccess()
280 + getWhereForUserIdMatch(callingIdentity) in testGetWhereForUserSelectedAccess()
288 .that(getWhereForUserSelectedAccess(callingIdentity, collection)) in testGetWhereForUserSelectedAccess()
290 + getWhereForOwnerPackageMatch(callingIdentity) in testGetWhereForUserSelectedAccess()
292 + getWhereForUserIdMatch(callingIdentity) in testGetWhereForUserSelectedAccess()
300 .that(getWhereForUserSelectedAccess(callingIdentity, collection)) in testGetWhereForUserSelectedAccess()
302 + getWhereForOwnerPackageMatch(callingIdentity) in testGetWhereForUserSelectedAccess()
304 + getWhereForUserIdMatch(callingIdentity) in testGetWhereForUserSelectedAccess()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DBinderUtils.java43 final long callingIdentity = Binder.clearCallingIdentity(); in withCleanCallingIdentity() local
47 Binder.restoreCallingIdentity(callingIdentity); in withCleanCallingIdentity()
77 final long callingIdentity = Binder.clearCallingIdentity(); in withCleanCallingIdentity() local
81 Binder.restoreCallingIdentity(callingIdentity); in withCleanCallingIdentity()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/embedded/
DEmbeddedPhotopickerImpl.kt85 val callingIdentity = Binder.clearCallingIdentity() in openSession() constant
103 Binder.restoreCallingIdentity(callingIdentity) in openSession()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBtPermissionUtils.java248 final long callingIdentity = Binder.clearCallingIdentity(); in isBluetoothDisallowed() local
253 Binder.restoreCallingIdentity(callingIdentity); in isBluetoothDisallowed()
282 final long callingIdentity = Binder.clearCallingIdentity(); in checkIfCallerIsForegroundUser() local
291 Binder.restoreCallingIdentity(callingIdentity); in checkIfCallerIsForegroundUser()
DBluetoothServerProxy.java73 final long callingIdentity = Binder.clearCallingIdentity(); in setBluetoothPersistedState() local
77 Binder.restoreCallingIdentity(callingIdentity); in setBluetoothPersistedState()
DBluetoothManagerService.java2004 final long callingIdentity = Binder.clearCallingIdentity(); in isBluetoothDisallowed() local
2009 Binder.restoreCallingIdentity(callingIdentity); in isBluetoothDisallowed()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DServiceImplHelper.java208 long callingIdentity = Binder.clearCallingIdentity(); in verifyIncomingCall() local
217 Binder.restoreCallingIdentity(callingIdentity); in verifyIncomingCall()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1228 long callingIdentity = Binder.clearCallingIdentity(); in sendFailedScanBroadcast() local
1238 Binder.restoreCallingIdentity(callingIdentity); in sendFailedScanBroadcast()
7566 long callingIdentity = Binder.clearCallingIdentity();
7574 Binder.restoreCallingIdentity(callingIdentity);
7596 long callingIdentity = Binder.clearCallingIdentity();
7604 Binder.restoreCallingIdentity(callingIdentity);
7915 long callingIdentity = Binder.clearCallingIdentity();
7923 Binder.restoreCallingIdentity(callingIdentity);
7943 long callingIdentity = Binder.clearCallingIdentity();
7951 Binder.restoreCallingIdentity(callingIdentity);
/packages/services/Telephony/src/com/android/phone/
DImsProvisioningController.java853 final long callingIdentity = Binder.clearCallingIdentity(); in onIntConfigChanged() local
860 Binder.restoreCallingIdentity(callingIdentity); in onIntConfigChanged()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java2703 long callingIdentity = Binder.clearCallingIdentity(); in registerObserverCallback() local
2732 Binder.restoreCallingIdentity(callingIdentity); in registerObserverCallback()
2788 long callingIdentity = Binder.clearCallingIdentity(); in unregisterObserverCallback() local
2797 Binder.restoreCallingIdentity(callingIdentity); in unregisterObserverCallback()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java5341 final long callingIdentity = Binder.clearCallingIdentity(); in updateFallbackUnicastGroupIdForBroadcast() local
5352 Binder.restoreCallingIdentity(callingIdentity); in updateFallbackUnicastGroupIdForBroadcast()