Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/java/android/app/
DUiAutomationConnection.java25 import android.os.Binder;
69 private final Binder mToken = new Binder();
88 mOwningUid = Binder.getCallingUid(); in connect()
117 final long identity = Binder.clearCallingIdentity(); in injectInputEvent()
121 Binder.restoreCallingIdentity(identity); in injectInputEvent()
132 final long identity = Binder.clearCallingIdentity(); in setRotation()
143 Binder.restoreCallingIdentity(identity); in setRotation()
155 final long identity = Binder.clearCallingIdentity(); in takeScreenshot()
159 Binder.restoreCallingIdentity(identity); in takeScreenshot()
170 final long identity = Binder.clearCallingIdentity(); in clearWindowContentFrameStats()
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java35 import android.os.Binder;
133 final long identity = Binder.clearCallingIdentity(); in print()
138 Binder.restoreCallingIdentity(identity); in print()
155 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfos()
159 Binder.restoreCallingIdentity(identity); in getPrintJobInfos()
176 final long identity = Binder.clearCallingIdentity(); in getPrintJobInfo()
180 Binder.restoreCallingIdentity(identity); in getPrintJobInfo()
197 final long identity = Binder.clearCallingIdentity(); in cancelPrintJob()
201 Binder.restoreCallingIdentity(identity); in cancelPrintJob()
218 final long identity = Binder.clearCallingIdentity(); in restartPrintJob()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java64 import android.os.Binder;
786 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputList()
787 Binder.getCallingUid(), userId, "getTvInputList"); in getTvInputList()
788 final long identity = Binder.clearCallingIdentity(); in getTvInputList()
799 Binder.restoreCallingIdentity(identity); in getTvInputList()
805 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputInfo()
806 Binder.getCallingUid(), userId, "getTvInputInfo"); in getTvInputInfo()
807 final long identity = Binder.clearCallingIdentity(); in getTvInputInfo()
815 Binder.restoreCallingIdentity(identity); in getTvInputInfo()
821 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputState()
[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.java38 import android.os.Binder;
449 final long caller = Binder.clearCallingIdentity(); in showSession()
453 Binder.restoreCallingIdentity(caller); in showSession()
466 final long caller = Binder.clearCallingIdentity(); in deliverNewSession()
470 Binder.restoreCallingIdentity(caller); in deliverNewSession()
482 final long caller = Binder.clearCallingIdentity(); in showSessionFromSession()
486 Binder.restoreCallingIdentity(caller); in showSessionFromSession()
498 final long caller = Binder.clearCallingIdentity(); in hideSessionFromSession()
502 Binder.restoreCallingIdentity(caller); in hideSessionFromSession()
514 final int callingPid = Binder.getCallingPid(); in startVoiceActivity()
[all …]
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java20 import android.os.Binder;
63 private IBinder mSysUiVisToken = new Binder();
596 long identity = Binder.clearCallingIdentity(); in onPanelRevealed()
600 Binder.restoreCallingIdentity(identity); in onPanelRevealed()
607 long identity = Binder.clearCallingIdentity(); in clearNotificationEffects()
611 Binder.restoreCallingIdentity(identity); in clearNotificationEffects()
618 long identity = Binder.clearCallingIdentity(); in onPanelHidden()
622 Binder.restoreCallingIdentity(identity); in onPanelHidden()
629 final int callingUid = Binder.getCallingUid(); in onNotificationClick()
630 final int callingPid = Binder.getCallingPid(); in onNotificationClick()
[all …]
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java35 import android.os.Binder;
78 private Binder mCurrentDreamToken;
357 final Binder newToken = new Binder(); in startDreamLocked()
411 throw new SecurityException("Access denied to process: " + Binder.getCallingPid() in checkPermission()
443 public void onDreamStopped(Binder token) {
468 + Binder.getCallingPid() in dump()
469 + ", uid=" + Binder.getCallingUid()); in dump()
473 final long ident = Binder.clearCallingIdentity(); in dump()
477 Binder.restoreCallingIdentity(ident); in dump()
486 final long ident = Binder.clearCallingIdentity(); in getDreamComponents()
[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/pm/
DLauncherAppsService.java33 import android.os.Binder;
94 Log.d(TAG, "Adding listener from " + Binder.getCallingUserHandle()); in addOnAppsChangedListener()
103 mListeners.register(listener, Binder.getCallingUserHandle()); in addOnAppsChangedListener()
116 Log.d(TAG, "Removing listener from " + Binder.getCallingUserHandle()); in removeOnAppsChangedListener()
162 long ident = Binder.clearCallingIdentity(); in ensureInUserProfiles()
172 Binder.restoreCallingIdentity(ident); in ensureInUserProfiles()
180 long ident = Binder.clearCallingIdentity(); in isUserEnabled()
185 Binder.restoreCallingIdentity(ident); in isUserEnabled()
200 long ident = Binder.clearCallingIdentity(); in getLauncherActivities()
206 Binder.restoreCallingIdentity(ident); in getLauncherActivities()
[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/display/
DDisplayManagerService.java37 import android.os.Binder;
1174 final int callingUid = Binder.getCallingUid(); in getDisplayInfo()
1175 final long token = Binder.clearCallingIdentity(); in getDisplayInfo()
1179 Binder.restoreCallingIdentity(token); in getDisplayInfo()
1188 final int callingUid = Binder.getCallingUid(); in getDisplayIds()
1189 final long token = Binder.clearCallingIdentity(); in getDisplayIds()
1193 Binder.restoreCallingIdentity(token); in getDisplayIds()
1203 final int callingPid = Binder.getCallingPid(); in registerCallback()
1204 final long token = Binder.clearCallingIdentity(); in registerCallback()
1208 Binder.restoreCallingIdentity(token); in registerCallback()
[all …]
/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 …]
DLocationManagerService.java76 import android.os.Binder;
951 long identity = Binder.clearCallingIdentity(); in locationCallbackFinished()
953 Binder.restoreCallingIdentity(identity); in locationCallbackFinished()
1049 return getAllowedResolutionLevel(Binder.getCallingPid(), Binder.getCallingUid()); in getCallerAllowedResolutionLevel()
1210 int uid = Binder.getCallingUid();; in getProviders()
1211 long identity = Binder.clearCallingIdentity(); in getProviders()
1233 Binder.restoreCallingIdentity(identity); in getProviders()
1555 int uid = Binder.getCallingUid(); in checkPackageName()
1604 final int pid = Binder.getCallingPid(); in requestLocationUpdates()
1605 final int uid = Binder.getCallingUid(); in requestLocationUpdates()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java31 import android.os.Binder;
75 mUid = Binder.getCallingUid(); in Session()
76 mPid = Binder.getCallingPid(); in Session()
102 long ident = Binder.clearCallingIdentity(); in Session()
122 Binder.restoreCallingIdentity(ident); in Session()
197 + Binder.getCallingPid()); in relayout()
203 + Binder.getCallingPid()); in relayout()
250 long ident = Binder.clearCallingIdentity(); in performHapticFeedback()
256 Binder.restoreCallingIdentity(ident); in performHapticFeedback()
358 long ident = Binder.clearCallingIdentity(); in reportDropResult()
[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/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()
289 final long identityToken = Binder.clearCallingIdentity(); in findAccessibilityNodeInfoByAccessibilityId()
293 Binder.restoreCallingIdentity(identityToken); in findAccessibilityNodeInfoByAccessibilityId()
337 final long identityToken = Binder.clearCallingIdentity(); in findAccessibilityNodeInfosByViewId()
341 Binder.restoreCallingIdentity(identityToken); in findAccessibilityNodeInfosByViewId()
385 final long identityToken = Binder.clearCallingIdentity(); in findAccessibilityNodeInfosByText()
[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/services/core/java/com/android/server/media/
DMediaSessionService.java44 import android.os.Binder;
81 /* package */final IBinder mICallback = new Binder();
645 final int pid = Binder.getCallingPid(); in createSession()
646 final int uid = Binder.getCallingUid(); in createSession()
647 final long token = Binder.clearCallingIdentity(); in createSession()
658 Binder.restoreCallingIdentity(token); in createSession()
664 final int pid = Binder.getCallingPid(); in getSessions()
665 final int uid = Binder.getCallingUid(); in getSessions()
666 final long token = Binder.clearCallingIdentity(); in getSessions()
681 Binder.restoreCallingIdentity(token); in getSessions()
[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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java51 import android.os.Binder;
449 long callingIdentity = Binder.clearCallingIdentity(); in startScan()
454 Binder.restoreCallingIdentity(callingIdentity); in startScan()
473 mWifiStateMachine.startScan(Binder.getCallingUid(), scanRequestCounter++, in startScan()
571 Slog.d(TAG, "setWifiEnabled: " + enable + " pid=" + Binder.getCallingPid() in setWifiEnabled()
572 + ", uid=" + Binder.getCallingUid()); in setWifiEnabled()
582 long ident = Binder.clearCallingIdentity(); in setWifiEnabled()
589 Binder.restoreCallingIdentity(ident); in setWifiEnabled()
790 return mWifiStateMachine.syncGetConfiguredNetworks(Binder.getCallingUid(), in getConfiguredNetworks()
854 Slog.i("addOrUpdateNetwork", " uid = " + Integer.toString(Binder.getCallingUid()) in addOrUpdateNetwork()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java29 import android.os.Binder;
221 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
399 final long identity = Binder.clearCallingIdentity(); in getActiveSubscriptionInfo()
418 Binder.restoreCallingIdentity(identity); in getActiveSubscriptionInfo()
437 final long identity = Binder.clearCallingIdentity(); in getActiveSubscriptionInfoForIccId()
455 Binder.restoreCallingIdentity(identity); in getActiveSubscriptionInfoForIccId()
475 final long identity = Binder.clearCallingIdentity(); in getActiveSubscriptionInfoForSimSlotIndex()
499 Binder.restoreCallingIdentity(identity); in getActiveSubscriptionInfoForSimSlotIndex()
520 final long identity = Binder.clearCallingIdentity(); in getAllSubInfoList()
531 Binder.restoreCallingIdentity(identity); in getAllSubInfoList()
[all …]
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
DFakeCoreService.java21 import android.os.Binder;
25 final Binder mBinder = new Binder();
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DServiceUserTarget.java21 import android.os.Binder;
27 Binder mBinder = new Binder();

123456789