/frameworks/base/core/tests/coretests/src/android/content/ |
D | PermissionCheckerTest.java | 23 import android.os.Binder; 55 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_DEFAULT); in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted() 58 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted() 59 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted() 67 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_DEFAULT); in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied() 70 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied() 71 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied() 79 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted() 82 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted() 83 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderWorkSourceTest.java | 105 Binder.setProxyTransactListener(null); in tearDown() 111 Binder.setCallingWorkSourceUid(UID); in setWorkSource() 113 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource() 118 Binder.setCallingWorkSourceUid(UID); in clearWorkSource() 119 Binder.clearCallingWorkSource(); in clearWorkSource() 121 assertEquals(UID_NONE, Binder.getCallingWorkSourceUid()); in clearWorkSource() 126 Binder.setCallingWorkSourceUid(UID); in setWorkSource_propagatedForMultipleCalls() 130 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() 135 Binder.setProxyTransactListener(new Binder.PropagateWorkSourceTransactListener()); in setWorkSource_propagatedFromBinderProxyListener() 136 Binder.clearCallingWorkSource(); in setWorkSource_propagatedFromBinderProxyListener() [all …]
|
D | BinderTest.java | 48 Binder.setCallingWorkSourceUid(UID); in testSetWorkSource() 49 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testSetWorkSource() 55 Binder.setCallingWorkSourceUid(UID); in testClearWorkSource() 56 Binder.clearCallingWorkSource(); in testClearWorkSource() 57 assertEquals(-1, Binder.getCallingWorkSourceUid()); in testClearWorkSource() 63 Binder.setCallingWorkSourceUid(UID); in testRestoreWorkSource() 64 long token = Binder.clearCallingWorkSource(); in testRestoreWorkSource() 65 Binder.restoreCallingWorkSource(token); in testRestoreWorkSource() 66 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testRestoreWorkSource() 72 assertThrows(IllegalStateException.class, () -> Binder.getCallingUidOrThrow()); in testGetCallingUidOrThrow_throws() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CallbackProxies.java | 18 import android.os.Binder; 51 final long ident = Binder.clearCallingIdentity(); in onConfigured() 55 Binder.restoreCallingIdentity(ident); in onConfigured() 62 final long ident = Binder.clearCallingIdentity(); in onConfigureFailed() 66 Binder.restoreCallingIdentity(ident); in onConfigureFailed() 72 final long ident = Binder.clearCallingIdentity(); in onReady() 76 Binder.restoreCallingIdentity(ident); in onReady() 82 final long ident = Binder.clearCallingIdentity(); in onActive() 86 Binder.restoreCallingIdentity(ident); in onActive() 92 final long ident = Binder.clearCallingIdentity(); in onCaptureQueueEmpty() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/interactive/ |
D | TvInteractiveAppManagerService.java | 62 import android.os.Binder; 918 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvAdServiceList() 919 Binder.getCallingUid(), userId, "getTvAdServiceList"); in getTvAdServiceList() 920 final long identity = Binder.clearCallingIdentity(); in getTvAdServiceList() 935 Binder.restoreCallingIdentity(identity); in getTvAdServiceList() 941 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in sendAppLinkCommand() 942 Binder.getCallingUid(), userId, "sendAppLinkCommand"); in sendAppLinkCommand() 943 final long identity = Binder.clearCallingIdentity(); in sendAppLinkCommand() 970 Binder.restoreCallingIdentity(identity); in sendAppLinkCommand() 977 final int callingUid = Binder.getCallingUid(); in createSession() [all …]
|
/frameworks/base/core/java/android/app/ |
D | UiAutomationConnection.java | 32 import android.os.Binder; 93 private final Binder mToken = new Binder(); 118 mOwningUid = Binder.getCallingUid(); in connect() 120 Binder.getCallingUserHandle().getIdentifier(), flags); in connect() 160 final long identity = Binder.clearCallingIdentity(); in injectInputEvent() 177 Binder.restoreCallingIdentity(identity); in injectInputEvent() 213 final long identity = Binder.clearCallingIdentity(); in setRotation() 225 Binder.restoreCallingIdentity(identity); in setRotation() 238 final long identity = Binder.clearCallingIdentity(); in takeScreenshot() 247 Binder.restoreCallingIdentity(identity); in takeScreenshot() [all …]
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | InternalStreamingServiceCallback.java | 19 import android.os.Binder; 42 final long token = Binder.clearCallingIdentity(); in onError() 51 Binder.restoreCallingIdentity(token); in onError() 61 final long token = Binder.clearCallingIdentity(); in onStreamStateUpdated() 70 Binder.restoreCallingIdentity(token); in onStreamStateUpdated() 80 final long token = Binder.clearCallingIdentity(); in onMediaDescriptionUpdated() 89 Binder.restoreCallingIdentity(token); in onMediaDescriptionUpdated() 99 final long token = Binder.clearCallingIdentity(); in onBroadcastSignalStrengthUpdated() 108 Binder.restoreCallingIdentity(token); in onBroadcastSignalStrengthUpdated() 118 final long token = Binder.clearCallingIdentity(); in onStreamMethodUpdated() [all …]
|
D | InternalGroupCallSessionCallback.java | 19 import android.os.Binder; 42 final long token = Binder.clearCallingIdentity(); in onError() 51 Binder.restoreCallingIdentity(token); in onError() 61 final long token = Binder.clearCallingIdentity(); in onAvailableSaisUpdated() 70 Binder.restoreCallingIdentity(token); in onAvailableSaisUpdated() 80 final long token = Binder.clearCallingIdentity(); in onServiceInterfaceAvailable() 89 Binder.restoreCallingIdentity(token); in onServiceInterfaceAvailable() 99 final long token = Binder.clearCallingIdentity(); in onMiddlewareReady() 108 Binder.restoreCallingIdentity(token); in onMiddlewareReady()
|
D | InternalStreamingSessionCallback.java | 19 import android.os.Binder; 43 final long token = Binder.clearCallingIdentity(); in onError() 52 Binder.restoreCallingIdentity(token); in onError() 63 final long token = Binder.clearCallingIdentity(); in onStreamingServicesUpdated() 72 Binder.restoreCallingIdentity(token); in onStreamingServicesUpdated() 82 final long token = Binder.clearCallingIdentity(); in onMiddlewareReady() 91 Binder.restoreCallingIdentity(token); in onMiddlewareReady()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteServiceInput.java | 21 import android.os.Binder; 60 final long idToken = Binder.clearCallingIdentity(); in openInputBridge() 78 Binder.restoreCallingIdentity(idToken); in openInputBridge() 102 final long idToken = Binder.clearCallingIdentity(); in openGamepadBridge() 119 Binder.restoreCallingIdentity(idToken); in openGamepadBridge() 144 final long idToken = Binder.clearCallingIdentity(); in closeInputBridge() 148 Binder.restoreCallingIdentity(idToken); in closeInputBridge() 166 final long idToken = Binder.clearCallingIdentity(); in clearInputBridge() 170 Binder.restoreCallingIdentity(idToken); in clearInputBridge() 195 final long idToken = Binder.clearCallingIdentity(); in sendKeyDown() [all …]
|
D | TvInputManagerService.java | 77 import android.os.Binder; 1186 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputList() 1187 Binder.getCallingUid(), userId, "getTvInputList"); in getTvInputList() 1188 final long identity = Binder.clearCallingIdentity(); in getTvInputList() 1199 Binder.restoreCallingIdentity(identity); in getTvInputList() 1205 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputInfo() 1206 Binder.getCallingUid(), userId, "getTvInputInfo"); in getTvInputInfo() 1207 final long identity = Binder.clearCallingIdentity(); in getTvInputInfo() 1215 Binder.restoreCallingIdentity(identity); in getTvInputInfo() 1231 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in updateTvInputInfo() [all …]
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | PrintManagerService.java | 38 import android.os.Binder; 148 final long identity = Binder.clearCallingIdentity(); in print() 157 Binder.restoreCallingIdentity(identity); in print() 187 final long identity = Binder.clearCallingIdentity(); in print() 192 Binder.restoreCallingIdentity(identity); in print() 209 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfos() 213 Binder.restoreCallingIdentity(identity); in getPrintJobInfos() 234 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfo() 238 Binder.restoreCallingIdentity(identity); in getPrintJobInfo() 255 final long identity = Binder.clearCallingIdentity(); in getCustomPrinterIcon() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTaskImpl.java | 29 import android.os.Binder; 57 if (mCallingUid != Binder.getCallingUid() && Process.SYSTEM_UID != Binder.getCallingUid() in checkCallerOrSystemOrRoot() 58 && Process.ROOT_UID != Binder.getCallingUid()) { in checkCallerOrSystemOrRoot() 60 + " does not match caller of getAppTasks(): " + Binder.getCallingUid()); in checkCallerOrSystemOrRoot() 79 int origCallingUid = Binder.getCallingUid(); in finishAndRemoveTask() 80 int origCallingPid = Binder.getCallingPid(); in finishAndRemoveTask() 81 final long callingIdentity = Binder.clearCallingIdentity(); in finishAndRemoveTask() 90 Binder.restoreCallingIdentity(callingIdentity); in finishAndRemoveTask() 100 final long origId = Binder.clearCallingIdentity(); in getTaskInfo() 110 Binder.restoreCallingIdentity(origId); in getTaskInfo() [all …]
|
D | ActivityClientController.java | 86 import android.os.Binder; 177 final long origId = Binder.clearCallingIdentity(); in activityIdle() 193 Binder.restoreCallingIdentity(origId); in activityIdle() 199 final long origId = Binder.clearCallingIdentity(); in activityResumed() 203 Binder.restoreCallingIdentity(origId); in activityResumed() 208 final long origId = Binder.clearCallingIdentity(); in activityRefreshed() 212 Binder.restoreCallingIdentity(origId); in activityRefreshed() 217 final long origId = Binder.clearCallingIdentity(); in activityTopResumedStateLost() 221 Binder.restoreCallingIdentity(origId); in activityTopResumedStateLost() 226 final long origId = Binder.clearCallingIdentity(); in activityPaused() [all …]
|
/frameworks/base/telephony/java/android/telephony/euicc/ |
D | EuiccCardManager.java | 26 import android.os.Binder; 197 final long token = Binder.clearCallingIdentity(); in requestAllProfiles() 201 Binder.restoreCallingIdentity(token); in requestAllProfiles() 229 final long token = Binder.clearCallingIdentity(); in requestProfile() 233 Binder.restoreCallingIdentity(token); in requestProfile() 266 final long token = Binder.clearCallingIdentity(); in requestEnabledProfileForPort() 270 Binder.restoreCallingIdentity(token); in requestEnabledProfileForPort() 299 final long token = Binder.clearCallingIdentity(); in disableProfile() 303 Binder.restoreCallingIdentity(token); in disableProfile() 337 final long token = Binder.clearCallingIdentity(); in switchToProfile() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemAppOpsHelper.java | 22 import android.os.Binder; 63 final long identity = Binder.clearCallingIdentity(); in startOpNoThrow() 73 Binder.restoreCallingIdentity(identity); in startOpNoThrow() 81 final long identity = Binder.clearCallingIdentity(); in finishOp() 89 Binder.restoreCallingIdentity(identity); in finishOp() 97 final long identity = Binder.clearCallingIdentity(); in checkOpNoThrow() 104 Binder.restoreCallingIdentity(identity); in checkOpNoThrow() 112 final long identity = Binder.clearCallingIdentity(); in noteOp() 121 Binder.restoreCallingIdentity(identity); in noteOp() 129 final long identity = Binder.clearCallingIdentity(); in noteOpNoThrow() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareService.java | 25 import android.os.Binder; 104 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 114 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 124 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 134 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 145 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 157 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
|
/frameworks/base/media/lib/tvremote/tests/src/com/android/media/tv/remoteprovider/ |
D | TvRemoteProviderTest.java | 29 import android.os.Binder; 42 Binder tokenA = new Binder(); in testOpenRemoteInputBridge() 43 Binder tokenB = new Binder(); in testOpenRemoteInputBridge() 44 Binder tokenC = new Binder(); in testOpenRemoteInputBridge() 90 Binder tokenA = new Binder(); in testOpenGamepadRemoteInputBridge() 91 Binder tokenB = new Binder(); in testOpenGamepadRemoteInputBridge() 92 Binder tokenC = new Binder(); in testOpenGamepadRemoteInputBridge()
|
/frameworks/base/telephony/java/android/telephony/ims/aidl/ |
D | SipDelegateConnectionAidlWrapper.java | 19 import android.os.Binder; 60 final long token = Binder.clearCallingIdentity(); 65 Binder.restoreCallingIdentity(token); 72 final long token = Binder.clearCallingIdentity(); 78 Binder.restoreCallingIdentity(token); 84 final long token = Binder.clearCallingIdentity(); 89 Binder.restoreCallingIdentity(token); 95 final long token = Binder.clearCallingIdentity(); 100 Binder.restoreCallingIdentity(token); 107 final long token = Binder.clearCallingIdentity(); [all …]
|
/frameworks/base/services/core/java/com/android/server/oemlock/ |
D | OemLockService.java | 28 import android.os.Binder; 127 final long token = Binder.clearCallingIdentity(); 131 Binder.restoreCallingIdentity(token); 142 final long token = Binder.clearCallingIdentity(); 146 Binder.restoreCallingIdentity(token); 155 final long token = Binder.clearCallingIdentity(); 159 Binder.restoreCallingIdentity(token); 176 final long token = Binder.clearCallingIdentity(); 189 Binder.restoreCallingIdentity(token); 198 final long token = Binder.clearCallingIdentity(); [all …]
|
/frameworks/base/core/java/android/credentials/ |
D | CredentialManager.java | 36 import android.os.Binder; 655 final long identity = Binder.clearCallingIdentity(); in onResponse() 660 Binder.restoreCallingIdentity(identity); in onResponse() 666 final long identity = Binder.clearCallingIdentity(); in onError() 671 Binder.restoreCallingIdentity(identity); in onError() 705 final long identity = Binder.clearCallingIdentity(); in onResponse() 709 Binder.restoreCallingIdentity(identity); in onResponse() 719 final long identity = Binder.clearCallingIdentity(); in onError() 723 Binder.restoreCallingIdentity(identity); in onError() 748 final long identity = Binder.clearCallingIdentity(); in onResponse() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 49 import android.os.Binder; 323 int uid = Binder.getCallingUid(); in openDevice() 324 int pid = Binder.getCallingPid(); in openDevice() 361 int uid = Binder.getCallingUid(); in openAccessory() 362 int pid = Binder.getCallingPid(); in openAccessory() 399 final long token = Binder.clearCallingIdentity(); in setDevicePackage() 404 Binder.restoreCallingIdentity(token); in setDevicePackage() 416 final long token = Binder.clearCallingIdentity(); in setAccessoryPackage() 421 Binder.restoreCallingIdentity(token); in setAccessoryPackage() 434 final long token = Binder.clearCallingIdentity(); in addDevicePackagesToPreferenceDenied() [all …]
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | IncidentCompanionService.java | 27 import android.os.Binder; 89 final long ident = Binder.clearCallingIdentity(); in authorizeReport() 94 Binder.restoreCallingIdentity(ident); in authorizeReport() 111 final long ident = Binder.clearCallingIdentity(); in cancelAuthorization() 115 Binder.restoreCallingIdentity(ident); in cancelAuthorization() 126 final long ident = Binder.clearCallingIdentity(); in sendReportReadyBroadcast() 147 Binder.restoreCallingIdentity(ident); in sendReportReadyBroadcast() 168 final long ident = Binder.clearCallingIdentity(); in approveReport() 172 Binder.restoreCallingIdentity(ident); in approveReport() 183 final long ident = Binder.clearCallingIdentity(); in denyReport() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | CaptioningManagerImpl.java | 20 import android.os.Binder; 44 final long identity = Binder.clearCallingIdentity(); in setSystemAudioCaptioningEnabled() 49 Binder.restoreCallingIdentity(identity); in setSystemAudioCaptioningEnabled() 61 final long identity = Binder.clearCallingIdentity(); in isSystemAudioCaptioningUiEnabled() 67 Binder.restoreCallingIdentity(identity); in isSystemAudioCaptioningUiEnabled() 79 final long identity = Binder.clearCallingIdentity(); in setSystemAudioCaptioningUiEnabled() 84 Binder.restoreCallingIdentity(identity); in setSystemAudioCaptioningUiEnabled()
|
/frameworks/native/libs/binder/rust/src/ |
D | native.rs | 37 pub struct Binder<T: Remotable> { struct 52 unsafe impl<T: Remotable> Send for Binder<T> {} implementation 71 unsafe impl<T: Remotable> Sync for Binder<T> {} implementation 73 impl<T: Remotable> Binder<T> { impl 78 pub fn new(rust_object: T) -> Binder<T> { in new() 86 pub fn new_with_stability(rust_object: T, stability: Stability) -> Binder<T> { in new_with_stability() 96 let mut binder = Binder { ibinder, rust_object }; in new_with_stability() 228 impl<T: Remotable> Interface for Binder<T> { implementation 249 impl<T: Remotable> InterfaceClassMethods for Binder<T> { implementation 390 impl<T: Remotable> Drop for Binder<T> { implementation [all …]
|