/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | AccessChecker.java | 88 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 …]
|
D | AsyncPickerFileOpener.java | 71 @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 …]
|
D | ConfigStore.java | 629 final long callingIdentity = Binder.clearCallingIdentity(); 633 Binder.restoreCallingIdentity(callingIdentity);
|
D | PickerUriResolver.java | 615 final long callingIdentity = Binder.clearCallingIdentity(); in openThumbnailFromProvider() local 619 Binder.restoreCallingIdentity(callingIdentity); in openThumbnailFromProvider()
|
/packages/modules/ImsMedia/framework/src/android/telephony/imsmedia/ |
D | AudioSessionCallback.java | 62 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 …]
|
D | VideoSessionCallback.java | 59 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 …]
|
D | TextSessionCallback.java | 57 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/ |
D | AccessCheckerTest.java | 263 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/ |
D | BinderUtils.java | 43 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/ |
D | EmbeddedPhotopickerImpl.kt | 85 val callingIdentity = Binder.clearCallingIdentity() in openSession() constant 103 Binder.restoreCallingIdentity(callingIdentity) in openSession()
|
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/ |
D | BtPermissionUtils.java | 248 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()
|
D | BluetoothServerProxy.java | 73 final long callingIdentity = Binder.clearCallingIdentity(); in setBluetoothPersistedState() local 77 Binder.restoreCallingIdentity(callingIdentity); in setBluetoothPersistedState()
|
D | BluetoothManagerService.java | 2004 final long callingIdentity = Binder.clearCallingIdentity(); in isBluetoothDisallowed() local 2009 Binder.restoreCallingIdentity(callingIdentity); in isBluetoothDisallowed()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/ |
D | ServiceImplHelper.java | 208 long callingIdentity = Binder.clearCallingIdentity(); in verifyIncomingCall() local 217 Binder.restoreCallingIdentity(callingIdentity); in verifyIncomingCall()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 1228 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/ |
D | ImsProvisioningController.java | 853 final long callingIdentity = Binder.clearCallingIdentity(); in onIntConfigChanged() local 860 Binder.restoreCallingIdentity(callingIdentity); in onIntConfigChanged()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/ |
D | AppSearchManagerService.java | 2703 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/ |
D | LeAudioService.java | 5341 final long callingIdentity = Binder.clearCallingIdentity(); in updateFallbackUnicastGroupIdForBroadcast() local 5352 Binder.restoreCallingIdentity(callingIdentity); in updateFallbackUnicastGroupIdForBroadcast()
|