Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DBinderUtilTest.java22 import android.os.Binder;
43 mToken = Binder.clearCallingIdentity(); in setUp()
51 Binder.restoreCallingIdentity(mToken); in cleanUp()
59 final int pid = Binder.getCallingPid(); in setUid()
60 final int uid = Binder.getCallingUid(); in setUid()
65 assertEquals(pid, Binder.getCallingPid()); in setUid()
66 assertEquals(FAKE_UID, Binder.getCallingUid()); in setUid()
71 assertEquals(pid, Binder.getCallingPid()); in setUid()
72 assertEquals(uid, Binder.getCallingUid()); in setUid()
81 final int pid = Binder.getCallingPid(); in setUidAndRestoreCallingIdentity()
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java35 import android.os.Binder;
136 final long identity = Binder.clearCallingIdentity(); in print()
141 Binder.restoreCallingIdentity(identity); in print()
158 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfos()
162 Binder.restoreCallingIdentity(identity); in getPrintJobInfos()
183 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfo()
187 Binder.restoreCallingIdentity(identity); in getPrintJobInfo()
204 final long identity = Binder.clearCallingIdentity(); in getCustomPrinterIcon()
208 Binder.restoreCallingIdentity(identity); in getCustomPrinterIcon()
229 final long identity = Binder.clearCallingIdentity(); in cancelPrintJob()
[all …]
DRemotePrintService.java29 import android.os.Binder;
722 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfos()
727 Binder.restoreCallingIdentity(identity); in getPrintJobInfos()
737 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfo()
742 Binder.restoreCallingIdentity(identity); in getPrintJobInfo()
752 final long identity = Binder.clearCallingIdentity(); in setPrintJobState()
756 Binder.restoreCallingIdentity(identity); in setPrintJobState()
766 final long identity = Binder.clearCallingIdentity(); in setPrintJobTag()
770 Binder.restoreCallingIdentity(identity); in setPrintJobTag()
780 final long identity = Binder.clearCallingIdentity(); in writePrintJobData()
[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.java65 import android.os.Binder;
882 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputList()
883 Binder.getCallingUid(), userId, "getTvInputList"); in getTvInputList()
884 final long identity = Binder.clearCallingIdentity(); in getTvInputList()
895 Binder.restoreCallingIdentity(identity); in getTvInputList()
901 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputInfo()
902 Binder.getCallingUid(), userId, "getTvInputInfo"); in getTvInputInfo()
903 final long identity = Binder.clearCallingIdentity(); in getTvInputInfo()
911 Binder.restoreCallingIdentity(identity); in getTvInputInfo()
923 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in updateTvInputInfo()
[all …]
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java25 import android.os.Binder;
71 private final Binder mToken = new Binder();
91 mOwningUid = Binder.getCallingUid(); in connect()
120 final long identity = Binder.clearCallingIdentity(); in injectInputEvent()
124 Binder.restoreCallingIdentity(identity); in injectInputEvent()
135 final long identity = Binder.clearCallingIdentity(); in setRotation()
146 Binder.restoreCallingIdentity(identity); in setRotation()
158 final long identity = Binder.clearCallingIdentity(); in takeScreenshot()
162 Binder.restoreCallingIdentity(identity); in takeScreenshot()
174 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/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java39 import android.os.Binder;
187 final long caller = Binder.clearCallingIdentity(); in startLocalVoiceInteraction()
205 Binder.restoreCallingIdentity(caller); in startLocalVoiceInteraction()
212 final long caller = Binder.clearCallingIdentity(); in stopLocalVoiceInteraction()
216 Binder.restoreCallingIdentity(caller); in stopLocalVoiceInteraction()
546 final long caller = Binder.clearCallingIdentity(); in showSession()
550 Binder.restoreCallingIdentity(caller); in showSession()
563 final long caller = Binder.clearCallingIdentity(); in deliverNewSession()
567 Binder.restoreCallingIdentity(caller); in deliverNewSession()
579 final long caller = Binder.clearCallingIdentity(); in showSessionFromSession()
[all …]
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java35 import android.os.Binder;
78 private Binder mCurrentDreamToken;
358 final Binder newToken = new Binder(); in startDreamLocked()
412 throw new SecurityException("Access denied to process: " + Binder.getCallingPid() in checkPermission()
444 public void onDreamStopped(Binder token) {
469 + Binder.getCallingPid() in dump()
470 + ", uid=" + Binder.getCallingUid()); in dump()
474 final long ident = Binder.clearCallingIdentity(); in dump()
478 Binder.restoreCallingIdentity(ident); in dump()
487 final long ident = Binder.clearCallingIdentity(); in getDreamComponents()
[all …]
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateService.java24 import android.os.Binder;
159 if (Binder.getCallingUid() != Process.SHARED_RELRO_UID && in notifyRelroCreationCompleted()
160 Binder.getCallingUid() != Process.SYSTEM_UID) { in notifyRelroCreationCompleted()
164 long callingId = Binder.clearCallingIdentity(); in notifyRelroCreationCompleted()
168 Binder.restoreCallingIdentity(callingId); in notifyRelroCreationCompleted()
182 if (Binder.getCallingPid() == Process.myPid()) { in waitForAndGetProvider()
198 + Binder.getCallingPid() in changeProviderAndSetting()
199 + ", uid=" + Binder.getCallingUid() in changeProviderAndSetting()
205 long callingId = Binder.clearCallingIdentity(); in changeProviderAndSetting()
210 Binder.restoreCallingIdentity(callingId); in changeProviderAndSetting()
[all …]
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java24 import android.os.Binder;
67 private IBinder mSysUiVisToken = new Binder();
648 if (Binder.getCallingUid() == Process.SHELL_UID) { in enforceStatusBarOrShell()
709 long identity = Binder.clearCallingIdentity(); in onPanelRevealed()
713 Binder.restoreCallingIdentity(identity); in onPanelRevealed()
720 long identity = Binder.clearCallingIdentity(); in clearNotificationEffects()
724 Binder.restoreCallingIdentity(identity); in clearNotificationEffects()
731 long identity = Binder.clearCallingIdentity(); in onPanelHidden()
735 Binder.restoreCallingIdentity(identity); in onPanelHidden()
742 final int callingUid = Binder.getCallingUid(); in onNotificationClick()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java30 import android.os.Binder;
81 mUid = Binder.getCallingUid(); in Session()
82 mPid = Binder.getCallingPid(); in Session()
108 long ident = Binder.clearCallingIdentity(); in Session()
128 Binder.restoreCallingIdentity(ident); in Session()
214 + Binder.getCallingPid()); in relayout()
220 + Binder.getCallingPid()); in relayout()
267 long ident = Binder.clearCallingIdentity(); in performHapticFeedback()
273 Binder.restoreCallingIdentity(ident); in performHapticFeedback()
372 long ident = Binder.clearCallingIdentity(); in startMovingTask()
[all …]
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java37 import android.os.Binder;
165 final int callingUid = Binder.getCallingUid(); in setPrimaryClip()
206 final long origId = Binder.clearCallingIdentity(); in getRelatedProfiles()
213 Binder.restoreCallingIdentity(origId); in getRelatedProfiles()
224 final long ident = Binder.clearCallingIdentity(); in setPrimaryClipInternal()
243 Binder.restoreCallingIdentity(ident); in setPrimaryClipInternal()
249 if (mAppOps.noteOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(), in getPrimaryClip()
253 addActiveOwnerLocked(Binder.getCallingUid(), pkg); in getPrimaryClip()
260 if (mAppOps.checkOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(), in getPrimaryClipDescription()
271 if (mAppOps.checkOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(), in hasPrimaryClip()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java37 import android.os.Binder;
1185 final int callingUid = Binder.getCallingUid(); in getDisplayInfo()
1186 final long token = Binder.clearCallingIdentity(); in getDisplayInfo()
1190 Binder.restoreCallingIdentity(token); in getDisplayInfo()
1199 final int callingUid = Binder.getCallingUid(); in getDisplayIds()
1200 final long token = Binder.clearCallingIdentity(); in getDisplayIds()
1204 Binder.restoreCallingIdentity(token); in getDisplayIds()
1214 final int callingPid = Binder.getCallingPid(); in registerCallback()
1215 final long token = Binder.clearCallingIdentity(); in registerCallback()
1219 Binder.restoreCallingIdentity(token); in registerCallback()
[all …]
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java27 import android.os.Binder;
79 long ident = Binder.clearCallingIdentity(); in hasRestrictionsProvider()
83 Binder.restoreCallingIdentity(ident); in hasRestrictionsProvider()
97 int callingUid = Binder.getCallingUid(); in requestPermission()
100 long ident = Binder.clearCallingIdentity(); in requestPermission()
121 Binder.restoreCallingIdentity(ident); in requestPermission()
133 long ident = Binder.clearCallingIdentity(); in createLocalApprovalIntent()
153 Binder.restoreCallingIdentity(ident); in createLocalApprovalIntent()
163 int callingUid = Binder.getCallingUid(); in notifyPermissionResponse()
166 long ident = Binder.clearCallingIdentity(); in notifyPermissionResponse()
[all …]
/frameworks/support/v4/java/android/support/v4/content/
DPermissionChecker.java21 import android.os.Binder;
142 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermission()
145 return checkPermission(context, permission, Binder.getCallingPid(), in checkCallingPermission()
146 Binder.getCallingUid(), packageName); in checkCallingPermission()
160 String packageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermission()
162 return checkPermission(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermission()
163 Binder.getCallingUid(), packageName); in checkCallingOrSelfPermission()
/frameworks/base/services/core/java/com/android/server/
DUpdateLockService.java22 import android.os.Binder;
75 long oldIdent = Binder.clearCallingIdentity(); in sendLockChangedBroadcast()
83 Binder.restoreCallingIdentity(oldIdent); in sendLockChangedBroadcast()
109 + " uid=" + Binder.getCallingUid() in makeTag()
110 + " pid=" + Binder.getCallingPid() + '}'; in makeTag()
118 + Binder.getCallingPid() in dump()
119 + ", uid=" + Binder.getCallingUid()); in dump()
DMmsServiceBroker.java30 import android.os.Binder;
319 final String[] packages = getPackageManager().getPackagesForUid(Binder.getCallingUid()); in getCallingPackageName()
336 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage()
354 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage()
375 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage()
389 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage()
402 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage()
412 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation()
422 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus()
433 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityInteractionClient.java20 import android.os.Binder;
189 final long identityToken = Binder.clearCallingIdentity(); in getWindow()
191 Binder.restoreCallingIdentity(identityToken); in getWindow()
227 final long identityToken = Binder.clearCallingIdentity(); in getWindows()
229 Binder.restoreCallingIdentity(identityToken); in getWindows()
285 final long identityToken = Binder.clearCallingIdentity(); in findAccessibilityNodeInfoByAccessibilityId()
289 Binder.restoreCallingIdentity(identityToken); in findAccessibilityNodeInfoByAccessibilityId()
333 final long identityToken = Binder.clearCallingIdentity(); in findAccessibilityNodeInfosByViewId()
337 Binder.restoreCallingIdentity(identityToken); in findAccessibilityNodeInfosByViewId()
381 final long identityToken = Binder.clearCallingIdentity(); in findAccessibilityNodeInfosByText()
[all …]
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java33 import android.os.Binder;
207 long token = Binder.clearCallingIdentity(); in hasProjectionPermission()
216 Binder.restoreCallingIdentity(token); in hasProjectionPermission()
232 long callingToken = Binder.clearCallingIdentity(); in createProjection()
241 Binder.restoreCallingIdentity(callingToken); in createProjection()
259 final long token = Binder.clearCallingIdentity(); in getActiveProjectionInfo()
263 Binder.restoreCallingIdentity(token); in getActiveProjectionInfo()
274 final long token = Binder.clearCallingIdentity(); in stopActiveProjection()
280 Binder.restoreCallingIdentity(token); in stopActiveProjection()
292 final long token = Binder.clearCallingIdentity(); in addCallback()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java52 import android.os.Binder;
410 Slog.i(LOG_TAG, "Added global client for pid:" + Binder.getCallingPid()); in addClient()
419 Slog.i(LOG_TAG, "Added user client for pid:" + Binder.getCallingPid() in addClient()
452 return (OWN_PROCESS_ID != Binder.getCallingPid()); in sendAccessibilityEvent()
559 Slog.i(LOG_TAG, "Added global connection for pid:" + Binder.getCallingPid() in addAccessibilityInteractionConnection()
570 Slog.i(LOG_TAG, "Added user connection for pid:" + Binder.getCallingPid() in addAccessibilityInteractionConnection()
592 Slog.i(LOG_TAG, "Removed global connection for pid:" + Binder.getCallingPid() in removeAccessibilityInteractionConnection()
605 Slog.i(LOG_TAG, "Removed user connection for pid:" + Binder.getCallingPid() in removeAccessibilityInteractionConnection()
1239 final long identity = Binder.clearCallingIdentity(); in persistComponentNamesToSettingLocked()
1244 Binder.restoreCallingIdentity(identity); in persistComponentNamesToSettingLocked()
[all …]
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorServicePermissionTest.java22 import android.os.Binder;
52 new Binder()); in testVibrate()
69 AudioManager.STREAM_ALARM, new Binder()); in testVibratePattern()
84 mVibratorService.cancelVibrate(new Binder()); in testCancelVibrate()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java20 import android.os.Binder;
127 Binder activity = new Binder(); in testUpdateConfigurationUpdatesAllAssetManagers()
161 Binder activity1 = new Binder(); in testTwoActivitiesWithIdenticalParametersShareImpl()
167 Binder activity2 = new Binder(); in testTwoActivitiesWithIdenticalParametersShareImpl()
182 Binder activity1 = new Binder(); in testThemesGetUpdatedWithNewImpl()
210 Binder activity1 = new Binder(); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java43 import android.os.Binder;
130 return Binder.clearCallingIdentity(); in injectClearCallingIdentity()
136 Binder.restoreCallingIdentity(token); in injectRestoreCallingIdentity()
153 Log.d(TAG, "Adding listener from " + Binder.getCallingUserHandle()); in addOnAppsChangedListener()
176 Log.d(TAG, "Removing listener from " + Binder.getCallingUserHandle()); in removeOnAppsChangedListener()
251 if (packageUid != Binder.getCallingUid()) { in verifyCallingPackage()
284 long ident = Binder.clearCallingIdentity(); in getLauncherActivities()
292 Binder.restoreCallingIdentity(ident); in getLauncherActivities()
304 long ident = Binder.clearCallingIdentity(); in resolveActivity()
312 Binder.restoreCallingIdentity(ident); in resolveActivity()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DLocationBasedCountryDetector.java26 import android.os.Binder;
99 final long bid = Binder.clearCallingIdentity(); in registerListener()
103 Binder.restoreCallingIdentity(bid); in registerListener()
111 final long bid = Binder.clearCallingIdentity(); in unregisterListener()
115 Binder.restoreCallingIdentity(bid); in unregisterListener()
123 final long bid = Binder.clearCallingIdentity(); in getLastKnownLocation()
139 Binder.restoreCallingIdentity(bid); in getLastKnownLocation()

12345678910>>...12