Home
last modified time | relevance | path

Searched refs:Binder (Results 1 – 25 of 511) sorted by relevance

12345678910>>...21

/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ip/
DIpClientManager.java29 import android.os.Binder;
69 final long token = Binder.clearCallingIdentity(); in completedPreDhcpAction()
77 Binder.restoreCallingIdentity(token); in completedPreDhcpAction()
85 final long token = Binder.clearCallingIdentity(); in confirmConfiguration()
93 Binder.restoreCallingIdentity(token); in confirmConfiguration()
101 final long token = Binder.clearCallingIdentity(); in readPacketFilterComplete()
109 Binder.restoreCallingIdentity(token); in readPacketFilterComplete()
117 final long token = Binder.clearCallingIdentity(); in shutdown()
125 Binder.restoreCallingIdentity(token); in shutdown()
133 final long token = Binder.clearCallingIdentity(); in startProvisioning()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallAdapter.java20 import android.os.Binder;
58 long token = Binder.clearCallingIdentity(); in answerCall()
70 Binder.restoreCallingIdentity(token); in answerCall()
81 long token = Binder.clearCallingIdentity(); in deflectCall()
93 Binder.restoreCallingIdentity(token); in deflectCall()
105 int callingUid = Binder.getCallingUid(); in rejectCall()
106 long token = Binder.clearCallingIdentity(); in rejectCall()
126 Binder.restoreCallingIdentity(token); in rejectCall()
139 int callingUid = Binder.getCallingUid(); in rejectCallWithReason()
140 long token = Binder.clearCallingIdentity(); in rejectCallWithReason()
[all …]
DTelecomServiceImpl.java52 import android.os.Binder;
210 extras.putInt(CallAttributes.CALLER_UID_KEY, Binder.getCallingUid());
211 extras.putInt(CallAttributes.CALLER_PID_KEY, Binder.getCallingPid());
299 final UserHandle callingUserHandle = Binder.getCallingUserHandle();
300 long token = Binder.clearCallingIdentity();
308 Binder.restoreCallingIdentity(token);
333 final UserHandle callingUserHandle = Binder.getCallingUserHandle();
351 UserHandle callingUserHandle = Binder.getCallingUserHandle();
352 long token = Binder.clearCallingIdentity();
362 Binder.restoreCallingIdentity(token);
[all …]
DConnectionServiceWrapper.java31 import android.os.Binder;
126 UserHandle callingUserHandle = Binder.getCallingUserHandle(); in handleCreateConnectionComplete()
127 long token = Binder.clearCallingIdentity(); in handleCreateConnectionComplete()
160 Binder.restoreCallingIdentity(token); in handleCreateConnectionComplete()
170 UserHandle callingUserHandle = Binder.getCallingUserHandle(); in handleCreateConferenceComplete()
171 long token = Binder.clearCallingIdentity(); in handleCreateConferenceComplete()
203 Binder.restoreCallingIdentity(token); in handleCreateConferenceComplete()
213 long token = Binder.clearCallingIdentity(); in setActive()
228 Binder.restoreCallingIdentity(token); in setActive()
236 long token = Binder.clearCallingIdentity(); in setRinging()
[all …]
DCallDiagnosticServiceAdapter.java20 import android.os.Binder;
59 long token = Binder.clearCallingIdentity(); in displayDiagnosticMessage()
67 Binder.restoreCallingIdentity(token); in displayDiagnosticMessage()
78 long token = Binder.clearCallingIdentity(); in clearDiagnosticMessage()
85 Binder.restoreCallingIdentity(token); in clearDiagnosticMessage()
98 long token = Binder.clearCallingIdentity(); in sendDeviceToDeviceMessage()
106 Binder.restoreCallingIdentity(token); in sendDeviceToDeviceMessage()
118 long token = Binder.clearCallingIdentity(); in overrideDisconnectMessage()
125 Binder.restoreCallingIdentity(token); in overrideDisconnectMessage()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DNetworkMonitorManager.java22 import android.os.Binder;
61 final long token = Binder.clearCallingIdentity(); in start()
69 Binder.restoreCallingIdentity(token); in start()
74 final long token = Binder.clearCallingIdentity(); in launchCaptivePortalApp()
82 Binder.restoreCallingIdentity(token); in launchCaptivePortalApp()
87 final long token = Binder.clearCallingIdentity(); in notifyCaptivePortalAppFinished()
95 Binder.restoreCallingIdentity(token); in notifyCaptivePortalAppFinished()
100 final long token = Binder.clearCallingIdentity(); in setAcceptPartialConnectivity()
108 Binder.restoreCallingIdentity(token); in setAcceptPartialConnectivity()
113 final long token = Binder.clearCallingIdentity(); in forceReevaluation()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DBinderUtilTest.java22 import android.os.Binder;
44 mToken = Binder.clearCallingIdentity(); in setUp()
52 Binder.restoreCallingIdentity(mToken); in cleanUp()
60 final int pid = Binder.getCallingPid(); in setUid()
61 final int uid = Binder.getCallingUid(); in setUid()
66 assertEquals(pid, Binder.getCallingPid()); in setUid()
67 assertEquals(FAKE_UID, Binder.getCallingUid()); in setUid()
72 assertEquals(pid, Binder.getCallingPid()); in setUid()
73 assertEquals(uid, Binder.getCallingUid()); in setUid()
82 final int pid = Binder.getCallingPid(); in setUidAndRestoreCallingIdentity()
[all …]
DWifiShellCommandTest.java60 import android.os.Binder;
155 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testSetIpReachDisconnect()
160 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testSetIpReachDisconnect()
166 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testSetIpReachDisconnect()
176 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testGetIpReachDisconnect()
182 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testGetIpReachDisconnect()
191 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testSetPollRssiIntervalMsecs()
199 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testSetPollRssiIntervalMsecs()
205 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testSetPollRssiIntervalMsecs()
215 new Binder(), new FileDescriptor(), new FileDescriptor(), new FileDescriptor(), in testGetPollRssiIntervalMsecs()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java60 import android.os.Binder;
2602 final long identity = Binder.clearCallingIdentity(); in dialForSubscriber()
2617 Binder.restoreCallingIdentity(identity); in dialForSubscriber()
2633 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber()
2641 final long identity = Binder.clearCallingIdentity(); in callForSubscriber()
2667 Binder.restoreCallingIdentity(identity); in callForSubscriber()
2688 final long identity = Binder.clearCallingIdentity(); in supplyPinReportResultForSubscriber()
2695 Binder.restoreCallingIdentity(identity); in supplyPinReportResultForSubscriber()
2705 final long identity = Binder.clearCallingIdentity(); in supplyPukReportResultForSubscriber()
2712 Binder.restoreCallingIdentity(identity); in supplyPukReportResultForSubscriber()
[all …]
DImsRcsController.java31 import android.os.Binder;
140 final long token = Binder.clearCallingIdentity(); in registerImsRegistrationCallback()
147 Binder.restoreCallingIdentity(token); in registerImsRegistrationCallback()
162 final long token = Binder.clearCallingIdentity(); in unregisterImsRegistrationCallback()
168 Binder.restoreCallingIdentity(token); in unregisterImsRegistrationCallback()
183 final long token = Binder.clearCallingIdentity(); in getImsRcsRegistrationState()
194 Binder.restoreCallingIdentity(token); in getImsRcsRegistrationState()
209 final long token = Binder.clearCallingIdentity(); in getImsRcsRegistrationTransportType()
224 Binder.restoreCallingIdentity(token); in getImsRcsRegistrationTransportType()
242 final long token = Binder.clearCallingIdentity(); in registerRcsAvailabilityCallback()
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastAssistantCallback.java20 import android.os.Binder;
107 final long identity = Binder.clearCallingIdentity(); in onSearchStarted()
111 Binder.restoreCallingIdentity(identity); in onSearchStarted()
122 final long identity = Binder.clearCallingIdentity(); in onSearchStartFailed()
126 Binder.restoreCallingIdentity(identity); in onSearchStartFailed()
137 final long identity = Binder.clearCallingIdentity(); in onSearchStopped()
141 Binder.restoreCallingIdentity(identity); in onSearchStopped()
152 final long identity = Binder.clearCallingIdentity(); in onSearchStopFailed()
156 Binder.restoreCallingIdentity(identity); in onSearchStopFailed()
167 final long identity = Binder.clearCallingIdentity(); in onSourceFound()
[all …]
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java26 import android.os.Binder;
224 int callingUid = Binder.getCallingUid(); in registerPullAtomCallback()
240 final long token = Binder.clearCallingIdentity(); in registerPullAtomCallback()
247 Binder.restoreCallingIdentity(token); in registerPullAtomCallback()
254 int callingUid = Binder.getCallingUid(); in unregisterPullAtomCallback()
268 final long token = Binder.clearCallingIdentity(); in unregisterPullAtomCallback()
274 Binder.restoreCallingIdentity(token); in unregisterPullAtomCallback()
282 int callingUid = Binder.getCallingUid(); in setDataFetchOperation()
283 final long token = Binder.clearCallingIdentity(); in setDataFetchOperation()
298 Binder.restoreCallingIdentity(token); in setDataFetchOperation()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java173 import android.os.Binder;
924 int callingUid = Binder.getCallingUid(); in startScan()
927 long ident = Binder.clearCallingIdentity(); in startScan()
947 callingUid, Binder.getCallingPid(), packageName, true); in startScan()
964 Binder.restoreCallingIdentity(ident); in startScan()
972 long callingIdentity = Binder.clearCallingIdentity(); in sendFailedScanBroadcast()
982 Binder.restoreCallingIdentity(callingIdentity); in sendFailedScanBroadcast()
996 .c(Binder.getCallingUid()).flush(); in getCurrentNetworkWpsNfcConfigurationToken()
1156 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceChangePermission()
1157 if (checkNetworkSettingsPermission(Binder.getCallingPid(), Binder.getCallingUid())) { in enforceChangePermission()
[all …]
/packages/modules/ImsMedia/framework/src/android/telephony/imsmedia/
DAudioSessionCallback.java19 import android.os.Binder;
62 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionSuccess()
75 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionFailure()
87 final long callingIdentity = Binder.clearCallingIdentity(); in onSessionClosed()
100 final long callingIdentity = Binder.clearCallingIdentity(); in onModifySessionResponse()
113 final long callingIdentity = Binder.clearCallingIdentity(); in onAddConfigResponse()
126 final long callingIdentity = Binder.clearCallingIdentity(); in onConfirmConfigResponse()
138 final long callingIdentity = Binder.clearCallingIdentity(); in onFirstMediaPacketReceived()
150 final long callingIdentity = Binder.clearCallingIdentity(); in onHeaderExtensionReceived()
162 final long callingIdentity = Binder.clearCallingIdentity(); in notifyMediaQualityStatus()
[all …]
DVideoSessionCallback.java19 import android.os.Binder;
59 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionSuccess()
72 final long callingIdentity = Binder.clearCallingIdentity(); in onOpenSessionFailure()
84 final long callingIdentity = Binder.clearCallingIdentity(); in onSessionClosed()
97 final long callingIdentity = Binder.clearCallingIdentity(); in onModifySessionResponse()
109 final long callingIdentity = Binder.clearCallingIdentity(); in onFirstMediaPacketReceived()
121 final long callingIdentity = Binder.clearCallingIdentity(); in onPeerDimensionChanged()
133 final long callingIdentity = Binder.clearCallingIdentity(); in onHeaderExtensionReceived()
145 final long callingIdentity = Binder.clearCallingIdentity(); in notifyMediaInactivity()
157 final long callingIdentity = Binder.clearCallingIdentity(); in notifyBitrate()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DSocketKeepalive.java26 import android.os.Binder;
268 final long token = Binder.clearCallingIdentity(); in SocketKeepalive()
274 Binder.restoreCallingIdentity(token); in SocketKeepalive()
280 final long token = Binder.clearCallingIdentity(); in SocketKeepalive()
286 Binder.restoreCallingIdentity(token); in SocketKeepalive()
292 final long token = Binder.clearCallingIdentity(); in SocketKeepalive()
298 Binder.restoreCallingIdentity(token); in SocketKeepalive()
304 final long token = Binder.clearCallingIdentity(); in SocketKeepalive()
310 Binder.restoreCallingIdentity(token); in SocketKeepalive()
316 final long token = Binder.clearCallingIdentity(); in SocketKeepalive()
[all …]
/packages/modules/Permission/service/java/com/android/permission/util/
DUserUtils.java22 import android.os.Binder;
45 final int callingUid = Binder.getCallingUid(); in enforceCrossUserPermission()
76 final long identity = Binder.clearCallingIdentity(); in getUserHandles()
80 Binder.restoreCallingIdentity(identity); in getUserHandles()
88 final long identity = Binder.clearCallingIdentity(); in isManagedProfile()
92 Binder.restoreCallingIdentity(identity); in isManagedProfile()
108 final long identity = Binder.clearCallingIdentity(); in isPrivateProfile()
115 Binder.restoreCallingIdentity(identity); in isPrivateProfile()
136 final long identity = Binder.clearCallingIdentity(); in isProfileRunning()
141 Binder.restoreCallingIdentity(identity); in isProfileRunning()
/packages/modules/Media/apex/framework/java/android/media/
DController2Link.java19 import android.os.Binder;
167 final long token = Binder.clearCallingIdentity(); in notifyConnected()
171 Binder.restoreCallingIdentity(token); in notifyConnected()
177 final long token = Binder.clearCallingIdentity(); in notifyDisconnected()
181 Binder.restoreCallingIdentity(token); in notifyDisconnected()
187 final long token = Binder.clearCallingIdentity(); in notifyPlaybackActiveChanged()
191 Binder.restoreCallingIdentity(token); in notifyPlaybackActiveChanged()
198 final long token = Binder.clearCallingIdentity(); in sendSessionCommand()
202 Binder.restoreCallingIdentity(token); in sendSessionCommand()
208 final long token = Binder.clearCallingIdentity(); in cancelSessionCommand()
[all …]
DSession2Link.java20 import android.os.Binder;
176 final int pid = Binder.getCallingPid(); in connect()
177 final int uid = Binder.getCallingUid(); in connect()
178 final long token = Binder.clearCallingIdentity(); in connect()
182 Binder.restoreCallingIdentity(token); in connect()
191 final long token = Binder.clearCallingIdentity(); in disconnect()
195 Binder.restoreCallingIdentity(token); in disconnect()
205 final long token = Binder.clearCallingIdentity(); in sendSessionCommand()
209 Binder.restoreCallingIdentity(token); in sendSessionCommand()
218 final long token = Binder.clearCallingIdentity(); in cancelSessionCommand()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkUnitTest.java25 import android.os.Binder;
52 SandboxedSdk sandboxedSdk = new SandboxedSdk(new Binder()); in testAttachSharedLibraryInfoFailsWhenCalledAgain()
63 Binder binder = new Binder(); in testGetInterface()
70 SandboxedSdk sandboxedSdk = new SandboxedSdk(new Binder()); in testGetSharedLibraryInfo()
77 SandboxedSdk sandboxedSdk = new SandboxedSdk(new Binder()); in testGetSharedLibraryInfoNull()
83 SandboxedSdk sandboxedSdk = new SandboxedSdk(new Binder()); in testDescribeContents()
90 SandboxedSdk sandboxedSdk = new SandboxedSdk(new Binder()); in testWriteToParcel()
103 SandboxedSdk sandboxedSdk = new SandboxedSdk(new Binder()); in testWriteToParcelWithSharedLibraryInfo()
/packages/services/Car/car-lib/src/android/car/occupantconnection/
DAbstractReceiverService.java36 import android.os.Binder;
114 long token = Binder.clearCallingIdentity();
118 Binder.restoreCallingIdentity(token);
134 long token = Binder.clearCallingIdentity();
138 Binder.restoreCallingIdentity(token);
160 long token = Binder.clearCallingIdentity();
164 Binder.restoreCallingIdentity(token);
170 long token = Binder.clearCallingIdentity();
174 Binder.restoreCallingIdentity(token);
180 long token = Binder.clearCallingIdentity();
[all …]
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkShellCommandTest.java39 import android.os.Binder;
110 new Binder(), in getCountryCode_testingPermissionIsChecked()
126 new Binder(), in getCountryCode_currentCountryCodePrinted()
138 new Binder(), in forceSetCountryCodeEnabled_testingPermissionIsChecked()
152 new Binder(), in forceSetCountryCodeEnabled_countryCodeIsOverridden()
164 new Binder(), in forceSetCountryCodeDisabled_overriddenCountryCodeIsCleared()
176 new Binder(), in forceStopOtDaemon_testingPermissionIsChecked()
194 new Binder(), in forceStopOtDaemon_serviceThrows_failed()
209 new Binder(), in forceStopOtDaemon_serviceApiTimeout_failedWithTimeoutError()
225 new Binder(), in join_controllerServiceJoinIsCalled()
[all …]
/packages/modules/Uwb/framework/java/android/uwb/
DUwbOemExtensionCallbackListener.java20 import android.os.Binder;
94 final long identity = Binder.clearCallingIdentity(); in onSessionStatusNotificationReceived()
101 Binder.restoreCallingIdentity(identity); in onSessionStatusNotificationReceived()
113 final long identity = Binder.clearCallingIdentity(); in onDeviceStatusNotificationReceived()
120 Binder.restoreCallingIdentity(identity); in onDeviceStatusNotificationReceived()
135 final long identity = Binder.clearCallingIdentity(); in onSessionConfigurationReceived()
154 Binder.restoreCallingIdentity(identity); in onSessionConfigurationReceived()
167 final long identity = Binder.clearCallingIdentity(); in onRangingReportReceived()
189 Binder.restoreCallingIdentity(identity); in onRangingReportReceived()
203 final long identity = Binder.clearCallingIdentity(); in onCheckPointedTarget()
[all …]
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/mockito/
DAndroidExtendedMockitoMockerTest.java20 import android.os.Binder;
37 assertFailsWhenClassNotSpied(Binder.class, () -> mMocker.mockGetCallingUidOrThrow()); in testMockGetCallingUidOrThrow_noArgs_notSpied()
41 @SpyStatic(Binder.class)
47 expect.withMessage("uid").that(Binder.getCallingUidOrThrow()).isEqualTo(myUid); in testMockGetCallingUidOrThrow_noArgs()
52 assertFailsWhenClassNotSpied(Binder.class, () -> mMocker.mockGetCallingUidOrThrow(42)); in testMockGetCallingUidOrThrow_notSpied()
56 @SpyStatic(Binder.class)
60 expect.withMessage("uid").that(Binder.getCallingUidOrThrow()).isEqualTo(42); in testMockGetCallingUidOrThrow()
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockServiceImpl.java58 import android.os.Binder;
214 final UserHandle userHandle = Binder.getCallingUserHandle(); in getDeviceLockControllerConnector()
315 final long identity = Binder.clearCallingIdentity(); in canDlcBeDisabledForFinalizedUser()
329 Binder.restoreCallingIdentity(identity); in canDlcBeDisabledForFinalizedUser()
656 final long identity = Binder.clearCallingIdentity();
658 Binder.restoreCallingIdentity(identity);
673 final UserHandle userHandle = Binder.getCallingUserHandle();
674 final long identity = Binder.clearCallingIdentity();
687 Binder.restoreCallingIdentity(identity);
711 Binder.restoreCallingIdentity(identity);
[all …]

12345678910>>...21