/bootable/recovery/minzip/ |
DirUtil.c | 240 int uid, int gid, int dirMode, int fileMode) 253 if (chown(path, uid, gid) || 274 if (!dirSetHierarchyPermissions(dn, uid, gid, dirMode, fileMode)) {
|
/cts/tests/ProcessTest/src/com/android/cts/process/ |
ProcessTest.java | 40 PackageManager.GET_META_DATA).uid; 42 PackageManager.GET_META_DATA).uid; 44 PackageManager.GET_META_DATA).uid;
|
/external/libselinux/src/ |
android.c | 323 uid_t uid, 338 userid = uid / AID_USER; 339 appid = uid % AID_USER; 450 "%s: No match for app with uid %d, seinfo %s, name %s\n", 451 __FUNCTION__, uid, seinfo, pkgname); 467 uid_t uid) 487 rc = seapp_context_lookup(SEAPP_TYPE, uid, 0, seinfo, pkgname, ctx); 513 selinux_log(SELINUX_ERROR, "%s: Error setting context for pkgdir %s, uid %d: %s\n", 514 __FUNCTION__, pkgdir, uid, strerror(errno)); 525 uid_t uid) [all...] |
/frameworks/base/core/java/android/content/ |
ContentProvider.java | 323 final int uid = Binder.getCallingUid(); local 326 if (UserHandle.isSameApp(uid, mMyUid)) { 333 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) { 350 if (context.checkPermission(pathPerm, pid, uid) == PERMISSION_GRANTED) { 368 if (context.checkUriPermission(uri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION) 378 + ", uid=" + uid + failReason); 392 final int uid = Binder.getCallingUid(); local 395 if (UserHandle.isSameApp(uid, mMyUid)) { 402 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) [all...] |
ContextWrapper.java | 523 public int checkPermission(String permission, int pid, int uid) { 524 return mBase.checkPermission(permission, pid, uid); 539 String permission, int pid, int uid, String message) { 540 mBase.enforcePermission(permission, pid, uid, message); 565 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { 566 return mBase.checkUriPermission(uri, pid, uid, modeFlags); 581 String writePermission, int pid, int uid, int modeFlags) { 583 pid, uid, modeFlags); 588 Uri uri, int pid, int uid, int modeFlags, String message) { 589 mBase.enforceUriPermission(uri, pid, uid, modeFlags, message) [all...] |
/frameworks/base/core/java/android/content/pm/ |
ApplicationInfo.java | 431 * the same uid). 433 public int uid; field in class:ApplicationInfo 473 pw.println(prefix + "uid=" + uid + " flags=0x" + Integer.toHexString(flags) 562 uid = orig.uid; 602 dest.writeInt(uid); 641 uid = source.readInt();
|
/frameworks/base/services/java/com/android/server/usb/ |
UsbService.java | 200 public void grantDevicePermission(UsbDevice device, int uid) { 202 final int userId = UserHandle.getUserId(uid); 203 getSettingsForUser(userId).grantDevicePermission(device, uid); 207 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { 209 final int userId = UserHandle.getUserId(uid); 210 getSettingsForUser(userId).grantAccessoryPermission(accessory, uid);
|
/build/tools/releasetools/ |
ota_from_target_files | 117 self.uid = None 131 if self.uid is not None: 132 print "%s%s %d %d %o" % (" "*indent, self.name, self.uid, self.gid, self.mode) 134 print "%s%s %s %s %s" % (" "*indent, self.name, self.uid, self.gid, self.mode) 151 # See if the target_files contains a record of what the uid, 156 # uid, gid, and mode for every Item object. Note this uses the 169 name, uid, gid, mode = line.split() 172 i.uid = int(uid) 180 if i: i.uid, i.gid, i.mode = 0, 0, 064 [all...] |
/cts/tests/src/android/os/cts/ |
FileUtils.java | 66 public int uid; field in class:FileUtils.FileStatus 99 public native static String getUserName(int uid);
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
ApplicationInfoTest.java | 68 assertEquals(mApplicationInfo.uid, info.uid);
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_rtl_thread.cc | 183 int ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) { 188 int tid = ctx->thread_registry->CreateThread(uid, detached, thr->tid, &args); 189 DPrintf("#%d: ThreadCreate tid=%d uid=%zu\n", thr->tid, tid, uid); 238 uptr uid = (uptr)arg; local 239 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) { 246 int ThreadTid(ThreadState *thr, uptr pc, uptr uid) { 249 int res = ctx->thread_registry->FindThread(FindThreadByUid, (void*)uid); 250 DPrintf("#%d: ThreadTid uid=%zu tid=%d\n", thr->tid, uid, res) [all...] |
/external/e2fsprogs/misc/ |
uuidd.c | 446 uid_t uid; local 505 uid = getuid(); 506 if (uid && drop_privs) { 517 if (setresuid(uid, uid, uid) < 0) 520 if (setreuid(uid, uid) < 0)
|
/external/webkit/Source/WebCore/inspector/ |
InspectorProfilerAgent.h | 80 void getProfile(ErrorString* error, const String& type, unsigned uid, RefPtr<InspectorObject>* profileObject); 82 void removeProfile(ErrorString* error, const String& type, unsigned uid);
|
/frameworks/av/media/libstagefright/rtsp/ |
SDPLoader.cpp | 33 SDPLoader::SDPLoader(const sp<AMessage> ¬ify, uint32_t flags, bool uidValid, uid_t uid) 37 mUID(uid),
|
/frameworks/base/core/java/android/hardware/location/ |
GeofenceHardwareService.java | 58 private void checkPermission(int pid, int uid, int monitoringType) { 59 if (mGeofenceHardwareImpl.getAllowedResolutionLevel(pid, uid) <
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
IStatusBarService.aidl | 46 int uid, int initialPid, String message);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/ |
Message.java | 41 public void setUid(String uid) { 42 this.mUid = uid;
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/ |
CalendarUtilitiesTests.java | 289 // The uid is required, but can be anything 290 String uid = "31415926535"; local 294 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account); 335 // The uid is required, but can be anything 336 String uid = "31415926535"; local 340 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); 377 assertEquals(uid, vevent.get("UID")); 397 // The uid is required, but can be anything 398 String uid = "31415926535" local 464 String uid = "31415926535"; local 545 String uid = "31415926535"; local [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
CalendarUtilitiesTests.java | 299 // The uid is required, but can be anything 300 String uid = "31415926535"; local 304 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account); 345 // The uid is required, but can be anything 346 String uid = "31415926535"; local 350 Message.FLAG_OUTGOING_MEETING_INVITE, uid, account); 387 assertEquals(uid, vevent.get("UID")); 407 // The uid is required, but can be anything 408 String uid = "31415926535" local 474 String uid = "31415926535"; local 555 String uid = "31415926535"; local [all...] |
/system/netd/ |
FirewallController.cpp | 132 int FirewallController::setUidRule(int uid, FirewallRule rule) { 134 sprintf(uidStr, "%d", uid); 144 res |= execIptables(V4V6, op, LOCAL_INPUT, "-m", "owner", "--uid-owner", uidStr, 146 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-m", "owner", "--uid-owner", uidStr,
|
/frameworks/base/services/java/com/android/server/net/ |
NetworkStatsService.java | 179 private static final String PREFIX_UID = "uid"; 237 /** Current counter sets for each UID. */ 328 // listen for uid removal to clean stats 512 NetworkTemplate template, int uid, int set, int tag, int fields) { 514 return getUidComplete().getHistory(template, uid, set, tag, fields); 516 return getUidTagComplete().getHistory(template, uid, set, tag, fields); 581 public NetworkStats getDataLayerSnapshotForUid(int uid) throws RemoteException { 582 if (Binder.getCallingUid() != uid) { 592 networkLayer = mNetworkManager.getNetworkStatsUidDetail(uid); 619 public void incrementOperationCount(int uid, int tag, int operationCount) 1097 final int uid = UserHandle.getUid(userId, app.uid); local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsUsageMonitor.java | 582 int uid = Binder.getCallingUid(); local 583 if (UserHandle.getAppId(uid) == Process.SYSTEM_UID || uid == 0) { 589 if (!UserHandle.isSameApp(ai.uid, uid)) { 590 throw new SecurityException("Calling uid " + uid + " gave package" 591 + pkg + " which is owned by uid " + ai.uid); 599 int uid = Binder.getCallingUid() local [all...] |
/frameworks/base/core/java/android/app/ |
ActivityManager.java | 946 public int uid; field in class:ActivityManager.RunningServiceInfo 1277 public int uid; field in class:ActivityManager.ProcessErrorStateInfo 1381 public int uid; field in class:ActivityManager.RunningAppProcessInfo [all...] |
/frameworks/base/services/java/com/android/server/ |
TextServicesManagerService.java | 219 final int uid = Binder.getCallingUid(); local 220 final int userId = UserHandle.getUserId(uid); 223 + "calling uid = " + uid + " system uid = " + Process.SYSTEM_UID 227 final String[] packageNames = AppGlobals.getPackageManager().getPackagesForUid(uid); 230 Slog.d(TAG, "--- process name for "+ uid + " = " + packageNames[i]); 237 if (uid == Process.SYSTEM_UID || userId == mSettings.getCurrentUserId()) { 406 final int uid = Binder.getCallingUid(); local 412 tsListener, locale, scListener, uid, bundle) [all...] |
/packages/apps/Nfc/nci/jni/ |
NfcTag.cpp | 211 ** Description: Checks if tag activate is the same (UID) Kovio tag previously 239 if (memcmp(mLastKovioUid, &mTechParams [0].param.pk.uid, mTechParams[0].param.pk.uid_len) == 0) 255 memcpy(mLastKovioUid, mTechParams[0].param.pk.uid, mLastKovioUidLen); 296 // need to look at first byte of uid to find manuf. [all...] |