/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBinder.java | 17 private static Integer callingUid; 35 if (callingUid != null) { 36 return callingUid; 46 ShadowBinder.callingUid = uid; 51 ShadowBinder.callingUid = null;
|
/system/security/keystore/ |
keystore.cpp | 211 * Returns the UID that the callingUid should act as. This is here for 227 * Returns true if the callingUid is allowed to interact in the targetUid's 230 static bool is_granted_to(uid_t callingUid, uid_t targetUid) { 233 if (user.euid == callingUid && user.uid == targetUid) { [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
BordeauxSessionManager.java | 103 public SessionKey getSessionKey(String callingUid, Class learnerClass, String name) { 105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName(); 189 public void removeAllSessionsFromCaller(String callingUid) { 193 if (session.getKey().startsWith(callingUid + "#")) { 200 // remove all session data from the callingUid in database 202 int nDeleted = mSessionStorage.removeSessions(callingUid + "#%");
|
/frameworks/base/core/java/android/app/ |
UiAutomationConnection.java | 241 final int callingUid = Binder.getCallingUid(); 242 if (callingUid != mOwningUid && mOwningUid != Process.SYSTEM_UID 243 && callingUid != 0 /*root*/) {
|
ActivityManager.java | [all...] |
/frameworks/base/services/java/com/android/server/print/ |
PrintManagerService.java | 568 final int callingUid = Binder.getCallingUid(); 569 if (callingUid == 0 || callingUid == Process.SYSTEM_UID 570 || callingUid == Process.SHELL_UID) { 573 final int callingAppId = UserHandle.getAppId(callingUid); 588 final int callingUid = Binder.getCallingUid(); 589 if (callingUid == 0 || callingUid == Process.SYSTEM_UID 590 || callingUid == Process.SHELL_UID) { 593 final int callingUserId = UserHandle.getUserId(callingUid); [all...] |
/frameworks/base/services/java/com/android/server/ |
AppWidgetServiceImpl.java | 123 boolean uidMatches(int callingUid) { 124 if (UserHandle.getAppId(callingUid) == Process.myUid()) { 126 return UserHandle.isSameApp(this.uid, callingUid); 128 return this.uid == callingUid; 446 int callingUid = enforceSystemOrCallingUid(packageName); 454 Host host = lookupOrAddHostLocked(callingUid, packageName, hostId); 490 int callingUid = Binder.getCallingUid(); 491 Host host = lookupHostLocked(callingUid, hostId); 505 int callingUid = Binder.getCallingUid(); 510 if (host.uidMatches(callingUid)) { [all...] |
ClipboardService.java | 159 final int callingUid = Binder.getCallingUid(); 160 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_CLIPBOARD, callingUid, 164 checkDataOwnerLocked(clip, callingUid);
|
DeviceStorageMonitorService.java | 417 int callingUid = getCallingUid(); 418 if(callingUid != Process.SYSTEM_UID) {
|
MountService.java | 248 public ObbState(String rawPath, String canonicalPath, int callingUid, 253 final int userId = UserHandle.getUserId(callingUid); 257 this.ownerGid = UserHandle.getSharedAppGid(callingUid); [all...] |
LockSettingsService.java | 165 final int callingUid = Binder.getCallingUid(); 170 throw new SecurityException("uid=" + callingUid
|
DevicePolicyManagerService.java | 687 final int callingUid = Binder.getCallingUid(); 688 final int userHandle = UserHandle.getUserId(callingUid); 695 if (admin.getUid() != callingUid) { 709 if (admin.getUid() == callingUid && admin.info.usesPolicy(reqPolicy)) { [all...] |
/frameworks/base/services/java/com/android/server/am/ |
ActivityStackSupervisor.java | 636 final int startActivityMayWait(IApplicationThread caller, int callingUid, 656 if (callingUid >= 0) { 660 callingUid = Binder.getCallingUid(); 662 callingPid = callingUid = -1; 681 int realCallingUid = callingUid; 723 callingUid = Binder.getCallingUid(); 742 aInfo, resultTo, resultWho, requestCode, callingPid, callingUid, [all...] |
BroadcastQueue.java | 434 r.callingPid, r.callingUid, -1, true); 439 + r.callingPid + ", uid=" + r.callingUid + ")" 456 + " (uid " + r.callingUid + ")"); 471 skip = !mService.mIntentFirewall.checkBroadcast(r.intent, r.callingUid, 738 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, 745 + ", uid=" + r.callingUid + ")" [all...] |
BroadcastRecord.java | 45 final int callingUid; // the uid of who sent this 100 pw.print(" uid="); pw.println(callingUid); 188 callingUid = _callingUid;
|
ActivityManagerService.java | [all...] |
ActiveServices.java | 278 int callingPid, int callingUid, int userId) { 299 callingPid, callingUid, userId, true, callerFg); 309 callingUid, r.packageName, service, service.getFlags(), null); 310 if (unscheduleServiceRestartLocked(r, callingUid, false)) { 373 + callingUid + " pid=" + callingPid + "): " + r); [all...] |
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainService.java | 119 final int callingUid = getCallingUid(); 120 if (!hasGrantInternal(mDatabaseHelper.getReadableDatabase(), callingUid, alias)) { 121 throw new IllegalStateException("uid " + callingUid
|
/frameworks/base/services/java/com/android/server/accounts/ |
AccountManagerService.java | [all...] |
/frameworks/base/core/java/android/net/ |
EthernetDataTracker.java | 303 * @param callingUid the user ID of the process that is issuing this request 310 public int startUsingNetworkFeature(String feature, int callingPid, int callingUid) { 320 * @param callingUid the user ID of the process that is issuing this request 327 public int stopUsingNetworkFeature(String feature, int callingPid, int callingUid) {
|
/frameworks/base/services/java/com/android/server/display/ |
DisplayManagerService.java | 392 final int callingUid = Binder.getCallingUid(); 399 if (info.hasAccess(callingUid)) { 415 final int callingUid = Binder.getCallingUid(); 425 if (info.hasAccess(callingUid)) { 674 final int callingUid = Binder.getCallingUid(); 675 if (!validatePackageName(callingUid, packageName)) { 721 appToken, callingUid, packageName, name, width, height, densityDpi, [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
PackageInstallerActivity.java | 541 int callingUid; 543 callingUid = ActivityManagerNative.getDefault() 554 String[] callingPackages = mPm.getPackagesForUid(callingUid); 572 return callingUid;
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothTetheringDataTracker.java | 185 * @param callingUid the user ID of the process that is issuing this request 192 public int startUsingNetworkFeature(String feature, int callingPid, int callingUid) { 202 * @param callingUid the user ID of the process that is issuing this request 209 public int stopUsingNetworkFeature(String feature, int callingPid, int callingUid) {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactDirectoryManager.java | 118 public void scanPackagesByUid(int callingUid) { 119 final String[] callerPackages = mPackageManager.getPackagesForUid(callingUid);
|
/frameworks/base/services/java/com/android/server/accessibility/ |
AccessibilityManagerService.java | [all...] |