Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/services/net/java/android/net/ip/
DIpClientManager.java27 import android.os.Binder;
67 final long token = Binder.clearCallingIdentity(); in completedPreDhcpAction()
75 Binder.restoreCallingIdentity(token); in completedPreDhcpAction()
83 final long token = Binder.clearCallingIdentity(); in confirmConfiguration()
97 final long token = Binder.clearCallingIdentity(); in readPacketFilterComplete()
105 Binder.restoreCallingIdentity(token); in readPacketFilterComplete()
113 final long token = Binder.clearCallingIdentity(); in shutdown()
121 Binder.restoreCallingIdentity(token); in shutdown()
129 final long token = Binder.clearCallingIdentity(); in startProvisioning()
137 Binder.restoreCallingIdentity(token); in startProvisioning()
[all …]
/frameworks/base/services/net/java/android/net/
DNetworkMonitorManager.java21 import android.os.Binder;
60 final long token = Binder.clearCallingIdentity(); in start()
68 Binder.restoreCallingIdentity(token); in start()
73 final long token = Binder.clearCallingIdentity(); in launchCaptivePortalApp()
81 Binder.restoreCallingIdentity(token); in launchCaptivePortalApp()
86 final long token = Binder.clearCallingIdentity(); in notifyCaptivePortalAppFinished()
94 Binder.restoreCallingIdentity(token); in notifyCaptivePortalAppFinished()
99 final long token = Binder.clearCallingIdentity(); in setAcceptPartialConnectivity()
107 Binder.restoreCallingIdentity(token); in setAcceptPartialConnectivity()
112 final long token = Binder.clearCallingIdentity(); in forceReevaluation()
[all …]
/frameworks/opt/net/wifi/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 …]
/frameworks/base/core/tests/coretests/src/android/os/
DBinderWorkSourceTest.java101 Binder.setProxyTransactListener(null); in tearDown()
107 Binder.setCallingWorkSourceUid(UID); in setWorkSource()
109 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource()
114 Binder.setCallingWorkSourceUid(UID); in clearWorkSource()
115 Binder.clearCallingWorkSource(); in clearWorkSource()
117 assertEquals(UID_NONE, Binder.getCallingWorkSourceUid()); in clearWorkSource()
122 Binder.setCallingWorkSourceUid(UID); in setWorkSource_propagatedForMultipleCalls()
126 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls()
131 Binder.setProxyTransactListener(new Binder.PropagateWorkSourceTransactListener()); in setWorkSource_propagatedFromBinderProxyListener()
132 Binder.clearCallingWorkSource(); in setWorkSource_propagatedFromBinderProxyListener()
[all …]
DBinderTest.java28 Binder.setCallingWorkSourceUid(UID); in testSetWorkSource()
29 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testSetWorkSource()
34 Binder.setCallingWorkSourceUid(UID); in testClearWorkSource()
35 Binder.clearCallingWorkSource(); in testClearWorkSource()
36 assertEquals(-1, Binder.getCallingWorkSourceUid()); in testClearWorkSource()
41 Binder.setCallingWorkSourceUid(UID); in testRestoreWorkSource()
42 long token = Binder.clearCallingWorkSource(); in testRestoreWorkSource()
43 Binder.restoreCallingWorkSource(token); in testRestoreWorkSource()
44 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testRestoreWorkSource()
50 Binder.getCallingUidOrThrow(); in testGetCallingUidOrThrow()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCallbackProxies.java18 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/
DTvRemoteProviderProxy.java25 import android.os.Binder;
328 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in openInputBridge()
333 final long idToken = Binder.clearCallingIdentity(); in openInputBridge()
340 Binder.restoreCallingIdentity(idToken); in openInputBridge()
345 "openInputBridge, Invalid connection or incorrect uid: " + Binder in openInputBridge()
354 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in closeInputBridge()
359 final long idToken = Binder.clearCallingIdentity(); in closeInputBridge()
365 Binder.restoreCallingIdentity(idToken); in closeInputBridge()
371 Binder.getCallingUid()); in closeInputBridge()
379 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in clearInputBridge()
[all …]
DTvInputManagerService.java62 import android.os.Binder;
865 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputList()
866 Binder.getCallingUid(), userId, "getTvInputList"); in getTvInputList()
867 final long identity = Binder.clearCallingIdentity(); in getTvInputList()
878 Binder.restoreCallingIdentity(identity); in getTvInputList()
884 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputInfo()
885 Binder.getCallingUid(), userId, "getTvInputInfo"); in getTvInputInfo()
886 final long identity = Binder.clearCallingIdentity(); in getTvInputInfo()
894 Binder.restoreCallingIdentity(identity); in getTvInputInfo()
910 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in updateTvInputInfo()
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java38 import android.os.Binder;
146 final long identity = Binder.clearCallingIdentity(); in print()
155 Binder.restoreCallingIdentity(identity); in print()
185 final long identity = Binder.clearCallingIdentity(); in print()
190 Binder.restoreCallingIdentity(identity); in print()
207 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfos()
211 Binder.restoreCallingIdentity(identity); in getPrintJobInfos()
232 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfo()
236 Binder.restoreCallingIdentity(identity); in getPrintJobInfo()
253 final long identity = Binder.clearCallingIdentity(); in getCustomPrinterIcon()
[all …]
/frameworks/base/telephony/java/android/telephony/mbms/
DInternalStreamingServiceCallback.java19 import android.os.Binder;
42 long token = Binder.clearCallingIdentity(); in onError()
51 Binder.restoreCallingIdentity(token); in onError()
61 long token = Binder.clearCallingIdentity(); in onStreamStateUpdated()
70 Binder.restoreCallingIdentity(token); in onStreamStateUpdated()
80 long token = Binder.clearCallingIdentity(); in onMediaDescriptionUpdated()
89 Binder.restoreCallingIdentity(token); in onMediaDescriptionUpdated()
99 long token = Binder.clearCallingIdentity(); in onBroadcastSignalStrengthUpdated()
108 Binder.restoreCallingIdentity(token); in onBroadcastSignalStrengthUpdated()
118 long token = Binder.clearCallingIdentity(); in onStreamMethodUpdated()
[all …]
DInternalGroupCallSessionCallback.java19 import android.os.Binder;
42 long token = Binder.clearCallingIdentity(); in onError()
51 Binder.restoreCallingIdentity(token); in onError()
61 long token = Binder.clearCallingIdentity(); in onAvailableSaisUpdated()
70 Binder.restoreCallingIdentity(token); in onAvailableSaisUpdated()
80 long token = Binder.clearCallingIdentity(); in onServiceInterfaceAvailable()
89 Binder.restoreCallingIdentity(token); in onServiceInterfaceAvailable()
99 long token = Binder.clearCallingIdentity(); in onMiddlewareReady()
108 Binder.restoreCallingIdentity(token); in onMiddlewareReady()
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccCardManager.java23 import android.os.Binder;
169 final long token = Binder.clearCallingIdentity(); in requestAllProfiles()
173 Binder.restoreCallingIdentity(token); in requestAllProfiles()
198 final long token = Binder.clearCallingIdentity(); in requestProfile()
202 Binder.restoreCallingIdentity(token); in requestProfile()
228 final long token = Binder.clearCallingIdentity(); in disableProfile()
232 Binder.restoreCallingIdentity(token); in disableProfile()
259 final long token = Binder.clearCallingIdentity(); in switchToProfile()
263 Binder.restoreCallingIdentity(token); in switchToProfile()
289 final long token = Binder.clearCallingIdentity(); in setNickname()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java85 import android.os.Binder;
620 int callingUid = Binder.getCallingUid(); in startScan()
621 long ident = Binder.clearCallingIdentity(); in startScan()
658 Binder.restoreCallingIdentity(ident); in startScan()
666 long callingIdentity = Binder.clearCallingIdentity(); in sendFailedScanBroadcast()
674 Binder.restoreCallingIdentity(callingIdentity); in sendFailedScanBroadcast()
688 .c(Binder.getCallingUid()).flush(); in getCurrentNetworkWpsNfcConfigurationToken()
756 long ident = Binder.clearCallingIdentity(); in isSystem()
766 Binder.restoreCallingIdentity(ident); in isSystem()
834 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceChangePermission()
[all …]
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java28 import android.os.Binder;
81 private final Binder mToken = new Binder();
105 mOwningUid = Binder.getCallingUid(); in connect()
134 final long identity = Binder.clearCallingIdentity(); in injectInputEvent()
139 Binder.restoreCallingIdentity(identity); in injectInputEvent()
166 final long identity = Binder.clearCallingIdentity(); in setRotation()
177 Binder.restoreCallingIdentity(identity); in setRotation()
189 final long identity = Binder.clearCallingIdentity(); in takeScreenshot()
195 Binder.restoreCallingIdentity(identity); in takeScreenshot()
207 final long identity = Binder.clearCallingIdentity(); in clearWindowContentFrameStats()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java25 import android.os.Binder;
101 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
110 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
119 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
128 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
138 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
149 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
/frameworks/base/services/core/java/com/android/server/oemlock/
DOemLockService.java25 import android.os.Binder;
120 final long token = Binder.clearCallingIdentity();
124 Binder.restoreCallingIdentity(token);
133 final long token = Binder.clearCallingIdentity();
137 Binder.restoreCallingIdentity(token);
145 final long token = Binder.clearCallingIdentity();
149 Binder.restoreCallingIdentity(token);
165 final long token = Binder.clearCallingIdentity();
178 Binder.restoreCallingIdentity(token);
186 final long token = Binder.clearCallingIdentity();
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DAppTaskImpl.java26 import android.os.Binder;
51 if (mCallingUid != Binder.getCallingUid()) { in checkCaller()
53 + " does not match caller of getAppTasks(): " + Binder.getCallingUid()); in checkCaller()
62 long origId = Binder.clearCallingIdentity(); in finishAndRemoveTask()
70 Binder.restoreCallingIdentity(origId); in finishAndRemoveTask()
80 long origId = Binder.clearCallingIdentity(); in getTaskInfo()
89 Binder.restoreCallingIdentity(origId); in getTaskInfo()
98 final int callingPid = Binder.getCallingPid(); in moveToFront()
99 final int callingUid = Binder.getCallingUid(); in moveToFront()
102 + Binder.getCallingPid() + " as package " + callingPackage; in moveToFront()
[all …]
DSession.java34 import android.os.Binder;
94 mUid = Binder.getCallingUid(); in Session()
95 mPid = Binder.getCallingPid(); in Session()
192 + Binder.getCallingPid()); in relayout()
201 + Binder.getCallingPid()); in relayout()
250 long ident = Binder.clearCallingIdentity(); in performHapticFeedback()
255 Binder.restoreCallingIdentity(ident); in performHapticFeedback()
264 final int callerPid = Binder.getCallingPid(); in performDrag()
265 final int callerUid = Binder.getCallingUid(); in performDrag()
266 final long ident = Binder.clearCallingIdentity(); in performDrag()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderCallsStatsTest.java22 import android.os.Binder;
61 Binder binder = new Binder(); in testDetailedOff()
102 Binder binder = new Binder(); in testDetailedOn()
146 Binder binder = new Binder(); in testEnableInBetweenCall()
156 Binder binder = new Binder(); in testInBetweenCallWhenExceptionThrown()
170 Binder binder = new Binder(); in testSampling()
207 Binder binder = new Binder(); in testSamplingWithDifferentApis()
234 private static class BinderWithGetTransactionName extends Binder {
240 private static class AnotherBinderWithGetTransactionName extends Binder {
250 Binder binder = new BinderWithGetTransactionName(); in testTransactionCodeResolved()
[all …]
/frameworks/base/core/java/android/telephony/
DPhoneStateListener.java26 import android.os.Binder;
1123 Binder.withCleanCallingIdentity( in onServiceStateChanged()
1131 Binder.withCleanCallingIdentity( in onSignalStrengthChanged()
1139 Binder.withCleanCallingIdentity( in onMessageWaitingIndicatorChanged()
1147 Binder.withCleanCallingIdentity( in onCallForwardingIndicatorChanged()
1159 Binder.withCleanCallingIdentity( in onCellLocationChanged()
1167 Binder.withCleanCallingIdentity( in onCallStateChanged()
1177 Binder.withCleanCallingIdentity(() -> mExecutor.execute( in onDataConnectionStateChanged()
1184 Binder.withCleanCallingIdentity(() -> mExecutor.execute( in onDataConnectionStateChanged()
1196 Binder.withCleanCallingIdentity( in onDataActivity()
[all …]
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java27 import android.os.Binder;
90 final long ident = Binder.clearCallingIdentity(); in authorizeReport()
95 Binder.restoreCallingIdentity(ident); in authorizeReport()
112 final long ident = Binder.clearCallingIdentity(); in cancelAuthorization()
116 Binder.restoreCallingIdentity(ident); in cancelAuthorization()
127 final long ident = Binder.clearCallingIdentity(); in sendReportReadyBroadcast()
148 Binder.restoreCallingIdentity(ident); in sendReportReadyBroadcast()
169 final long ident = Binder.clearCallingIdentity(); in approveReport()
173 Binder.restoreCallingIdentity(ident); in approveReport()
184 final long ident = Binder.clearCallingIdentity(); in denyReport()
[all …]
/frameworks/base/core/java/android/content/
DPermissionChecker.java24 import android.os.Binder;
264 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForDataDelivery()
267 return checkPermissionForDataDelivery(context, permission, Binder.getCallingPid(), in checkCallingPermissionForDataDelivery()
268 Binder.getCallingUid(), packageName); in checkCallingPermissionForDataDelivery()
302 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForPreflight()
305 return checkPermissionForPreflight(context, permission, Binder.getCallingPid(), in checkCallingPermissionForPreflight()
306 Binder.getCallingUid(), packageName); in checkCallingPermissionForPreflight()
336 String packageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForDataDelivery()
338 return checkPermissionForDataDelivery(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermissionForDataDelivery()
339 Binder.getCallingUid(), packageName); in checkCallingOrSelfPermissionForDataDelivery()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGlobalActionPerformer.java23 import android.os.Binder;
63 final long identity = Binder.clearCallingIdentity(); in performGlobalAction()
101 Binder.restoreCallingIdentity(identity); in performGlobalAction()
106 final long token = Binder.clearCallingIdentity(); in sendDownAndUpKeyEvents()
114 Binder.restoreCallingIdentity(token); in sendDownAndUpKeyEvents()
127 final long token = Binder.clearCallingIdentity(); in expandNotifications()
133 Binder.restoreCallingIdentity(token); in expandNotifications()
137 final long token = Binder.clearCallingIdentity(); in expandQuickSettings()
143 Binder.restoreCallingIdentity(token); in expandQuickSettings()
147 final long token = Binder.clearCallingIdentity(); in openRecents()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java44 import android.os.Binder;
251 int uid = Binder.getCallingUid(); in openDevice()
252 int pid = Binder.getCallingPid(); in openDevice()
289 int uid = Binder.getCallingUid(); in openAccessory()
325 final long token = Binder.clearCallingIdentity(); in setDevicePackage()
330 Binder.restoreCallingIdentity(token); in setDevicePackage()
342 final long token = Binder.clearCallingIdentity(); in setAccessoryPackage()
347 Binder.restoreCallingIdentity(token); in setAccessoryPackage()
353 final int uid = Binder.getCallingUid(); in hasDevicePermission()
354 final int pid = Binder.getCallingPid(); in hasDevicePermission()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java40 import android.os.Binder;
807 final long token = Binder.clearCallingIdentity(); in destroySession()
811 Binder.restoreCallingIdentity(token); in destroySession()
829 final long token = Binder.clearCallingIdentity(); in setActive()
833 Binder.restoreCallingIdentity(token); in setActive()
841 int pid = Binder.getCallingPid(); in setFlags()
842 int uid = Binder.getCallingUid(); in setFlags()
847 final long token = Binder.clearCallingIdentity(); in setFlags()
851 Binder.restoreCallingIdentity(token); in setFlags()
860 final long token = Binder.clearCallingIdentity(); in setMediaButtonReceiver()
[all …]

12345678910>>...22