/external/iproute2/ip/ |
iptuntap.c | 48 static int tap_add_ioctl(struct ifreq *ifr, uid_t uid, gid_t gid) 66 if (uid != -1 && ioctl(fd, TUNSETOWNER, uid)) { 107 static int parse_args(int argc, char **argv, struct ifreq *ifr, uid_t *uid, gid_t *gid) 134 } else if (uid && matches(*argv, "user") == 0) { 140 *uid = user; 147 *uid = pw->pw_uid; 194 uid_t uid = -1; local 197 if (parse_args(argc, argv, &ifr, &uid, &gid) < 0) 204 return tap_add_ioctl(&ifr, uid, gid) [all...] |
/system/core/init/ |
property_service.c | 58 unsigned int uid; member in struct:__anon25980 92 * White list of UID that are allowed to start/stop services. 97 unsigned int uid; member in struct:__anon25981 197 * Returns 1 if uid allowed, 0 otherwise. 199 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid) { 201 if (uid == AID_SYSTEM || uid == AID_ROOT) 207 if ((uid && control_perms[i].uid == uid) || [all...] |
util.h | 29 uid_t uid, gid_t gid);
|
/external/dropbear/ |
svr-agentfwd.c | 138 uid_t uid; local 151 uid = getuid(); 168 if ((seteuid(uid)) < 0 || 209 uid_t uid; local 214 uid = getuid(); 259 if ((seteuid(uid)) < 0 ||
|
/bionic/libc/bionic/ |
stubs.c | 40 static int do_getpw_r(int by_name, const char* name, uid_t uid, 51 const struct passwd* src = by_name ? getpwnam(name) : getpwuid(uid); 106 int getpwuid_r(uid_t uid, struct passwd* pwd, 109 return do_getpw_r(0, NULL, uid, pwd, buf, byte_count, result); 277 /* translate a uid into the corresponding app_<uid> 281 app_id_to_passwd(uid_t uid, stubs_state_t* state) 285 if (uid < AID_APP) { 291 "app_%u", uid - AID_APP ); 296 pw->pw_uid = uid; [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
FileUtils.java | 56 private int uid; field in class:FileUtils.FileStatus 67 return uid; 103 public native static String getUserName(int uid);
|
/external/dbus/dbus/ |
dbus-sysdeps-unix.h | 94 dbus_uid_t uid; /**< UID */ member in struct:DBusUserInfo 115 dbus_uid_t uid, 132 dbus_uid_t *uid);
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfceeAccessControl.java | 55 * Map from UID to NFCEE access, used as a cache. 56 * Note: if a UID contains multiple packages they must all be 57 * signed with the same certificate so in effect UID == certificate 73 * Check if the {uid, pkg} combination may use NFCEE. 74 * Also verify with package manager that this {uid, pkg} combination 77 public boolean check(int uid, String pkg) { 79 Boolean cached = mUidCache.get(uid); 86 // Ensure the claimed package is present in the calling UID 88 String[] pkgs = pm.getPackagesForUid(uid); 99 mUidCache.put(uid, access) [all...] |
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
InputBindingTest.java | 87 int uid = 1; local 89 InputBinding inputBinding = new InputBinding(bic, binder, uid, pid); 93 assertEquals(uid, inputBinding.getUid()); 103 assertEquals(uid, target.getUid());
|
/external/webkit/Source/JavaScriptCore/profiler/ |
Profile.cpp | 34 PassRefPtr<Profile> Profile::create(const UString& title, unsigned uid) 36 return adoptRef(new Profile(title, uid)); 39 Profile::Profile(const UString& title, unsigned uid) 41 , m_uid(uid)
|
/external/webkit/Source/WebCore/bindings/js/ |
ScriptProfile.h | 51 unsigned int uid() const;
|
/frameworks/base/core/java/android/hardware/usb/ |
IUsbManager.aidl | 73 /* Grants permission for the given UID to access the device */ 74 void grantDevicePermission(in UsbDevice device, int uid); 76 /* Grants permission for the given UID to access the accessory */ 77 void grantAccessoryPermission(in UsbAccessory accessory, int uid);
|
/frameworks/base/services/java/com/android/server/am/ |
ReceiverList.java | 41 public final int uid; field in class:ReceiverList 53 uid = _uid; 71 pw.print(" pid="); pw.print(pid); pw.print(" uid="); pw.println(uid); 105 sb.append(uid);
|
/frameworks/base/services/java/com/android/server/pm/ |
BasePermission.java | 43 int uid; field in class:BasePermission
|
/cts/tests/src/android/os/cts/ |
FileUtils.java | 64 public int uid; field in class:FileUtils.FileStatus 87 public native static String getUserName(int uid);
|
/external/oprofile/libpp/ |
locate_images.h | 79 /// return the uid for this extra_images, first valid uid is 1 80 int get_uid() const { return uid; } 101 /// unique identifier, first valid uid is 1 102 int uid; member in class:extra_images 103 /// unique uid generator
|
/frameworks/base/core/java/android/net/ |
NetworkPolicyManager.java | 91 * Set policy flags for specific UID. 96 public void setUidPolicy(int uid, int policy) { 98 mService.setUidPolicy(uid, policy); 103 public int getUidPolicy(int uid) { 105 return mService.getUidPolicy(uid); 203 * Check if given UID can have a {@link #setUidPolicy(int, int)} defined, 206 public static boolean isUidValidForPolicy(Context context, int uid) { 208 if (uid < android.os.Process.FIRST_APPLICATION_UID 209 || uid > android.os.Process.LAST_APPLICATION_UID) { 225 for (String packageName : pm.getPackagesForUid(uid)) { [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
InputBinding.java | 42 * The UID where this binding came from. 56 * @param uid The user id of the client of this binding. 60 int uid, int pid) { 63 mUid = uid; 121 + " / uid " + mUid + " / pid " + mPid + "}";
|
/frameworks/base/libs/binder/ |
IServiceManager.cpp | 61 uid_t uid = ipcState->getCallingUid(); local 63 if (outUid) *outUid = uid; 64 return checkPermission(permission, pid, uid); 67 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) 78 bool res = pc->checkPermission(permission, pid, uid); 81 LOGI("Check passed after %d seconds for %s from uid=%d pid=%d", 83 String8(permission).string(), uid, pid); 90 LOGW("Permission failure: %s from uid=%d pid=%d", 91 String8(permission).string(), uid, pid); 109 LOGI("Waiting to check permission %s from uid=%d pid=%d" [all...] |
/frameworks/base/services/java/com/android/server/location/ |
PassiveProvider.java | 148 public void addListener(int uid) { 151 public void removeListener(int uid) {
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
MockFolder.java | 66 public Message getMessage(String uid) { 119 public Message createMessage(String uid) {
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ |
mklistpage.pl | 41 local $uid = 0; # radio button unique ID 188 $uid++; 202 "[\"$test\"] = \"radio$uid\"\n"; 203 $html .= " <input type='radio' value='$test' name='radio$uid' ". 204 "onclick='return onRadioClick(\"radio$uid\");'>" .
|
/system/core/include/private/ |
android_filesystem_config.h | 137 unsigned uid; member in struct:fs_path_config 197 /* the following two files are INTENTIONALLY set-gid and not set-uid. 201 /* the following five files are INTENTIONALLY set-uid, but they 209 /* the following file is INTENTIONALLY set-uid, and IS included 224 unsigned *uid, unsigned *gid, unsigned *mode) 245 *uid = pc->uid; 251 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
|
/frameworks/base/services/java/com/android/server/ |
VibratorService.java | 53 Vibration(IBinder token, long millis, int uid) { 54 this(token, millis, null, 0, uid); 57 Vibration(IBinder token, long[] pattern, int repeat, int uid) { 58 this(token, 0, pattern, repeat, uid); 62 int repeat, int uid) { 68 mUid = uid; 124 int uid = Binder.getCallingUid(); local 134 Vibration vib = new Vibration(token, milliseconds, uid); 158 int uid = Binder.getCallingUid(); local 178 Vibration vib = new Vibration(token, pattern, repeat, uid); [all...] |
/frameworks/base/cmds/keystore/ |
keystore.cpp | 65 static int encode_key(char* out, uid_t uid, const Value* key) { 66 int n = snprintf(out, NAME_MAX, "%u_", uid); 564 static ResponseCode test(KeyStore* keyStore, int sock, uid_t uid, Value*, Value*) { 568 static ResponseCode get(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*) { 570 encode_key(filename, uid, keyName); 581 static ResponseCode insert(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value* val) { 583 encode_key(filename, uid, keyName); 588 static ResponseCode del(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*) { 590 encode_key(filename, uid, keyName); 594 static ResponseCode exist(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*) 707 uid_t uid; member in struct:user [all...] |