/frameworks/base/core/jni/ |
android_util_Process.cpp | 398 jint android_os_Process_setUid(JNIEnv* env, jobject clazz, jint uid) 400 return setuid(uid) == 0 ? 0 : errno; 403 jint android_os_Process_setGid(JNIEnv* env, jobject clazz, jint uid) 405 return setgid(uid) == 0 ? 0 : errno; 1006 jint android_os_Process_killProcessGroup(JNIEnv* env, jobject clazz, jint uid, jint pid) 1008 return killProcessGroup(uid, pid, SIGKILL);
|
/frameworks/av/services/audioflinger/ |
Tracks.cpp | 102 // if the caller is us, trust the specified uid 106 ALOGW("uid %d tried to pass itself off as %d", newclientUid, clientUid); 110 // clientUid contains the uid of the app that is responsible for this track, so we can blame 384 int uid, 389 sessionId, uid, flags, true /*isOut*/, [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
GpsLocationProvider.java | 438 // retrieve NetworkInfo result for this UID 1172 int uid = newWork.get(i); local 1174 AppOpsManager.OP_GPS, uid, newWork.getName(i)); local 1190 int uid = goneWork.get(i); local 1192 AppOpsManager.OP_GPS, uid, goneWork.getName(i)); local [all...] |
/libcore/luni/src/main/native/ |
libcore_io_Posix.cpp | 345 return env->NewObject(JniConstants::structUcredClass, ctor, u.pid, u.uid, u.gid); 430 jobject getpwuid(uid_t uid) { 431 return process("getpwuid_r", getpwuid_r(uid, &mPwd, mBuffer.get(), mBufferSize, &mResult)); 500 static void Posix_chown(JNIEnv* env, jobject, jstring javaPath, jint uid, jint gid) { 505 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid))); 578 static void Posix_fchown(JNIEnv* env, jobject, jobject javaFd, jint uid, jint gid) { 580 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid))); 784 static jobject Posix_getpwuid(JNIEnv* env, jobject, jint uid) { 785 return Passwd(env).getpwuid(uid); [all...] |
/external/bluetooth/bluedroid/stack/include/ |
avrc_defs.h | 231 #define AVRC_STS_UID_CHANGED 0x05 /* UID Changed - The UIDs on the device have changed */ 234 #define AVRC_STS_NOT_DIR 0x08 /* Not a Directory - The UID provided does not refer to a folder item Change Path*/ 235 #define AVRC_STS_NOT_EXIST 0x09 /* Does Not Exist - The UID provided does not refer to any item Change Path, PlayItem, AddToNowPlaying, GetItemAttributes*/ 238 #define AVRC_STS_UID_IS_DIR 0x0c /* UID is a Directory - The UID provided refers to a directory, which cannot be handled by this media player PlayItem, AddToNowPlaying */ 927 tAVRC_UID uid; \/* The uid of this folder *\/ member in struct:__anon5963 945 tAVRC_UID uid; \/* The uid of this media element item *\/ member in struct:__anon5965 1119 tAVRC_UID uid; member in struct:__anon5983 1141 tAVRC_UID uid; member in struct:__anon5985 1152 tAVRC_UID uid; member in struct:__anon5986 [all...] |
/external/chromium_org/chrome/browser/extensions/ |
menu_manager_unittest.cc | 69 id.uid = next_id_++; 143 id.uid = id3.uid + 50; 621 ASSERT_EQ(id.uid, tmp_id); 623 ASSERT_EQ(parent_id.uid, tmp_id);
|
/external/ipsec-tools/src/racoon/ |
privsep.c | 171 if (lcconf->uid == 0) 229 if (setuid(lcconf->uid) != 0) { 231 "Cannot setuid(%d): %s\n", lcconf->uid, 236 if (seteuid(lcconf->uid) != 0) { 238 "Cannot seteuid(%d): %s\n", lcconf->uid,
|
/external/ppp/pppd/ |
tty.c | 153 extern uid_t uid; 531 if (!get_pty(&pty_master, &pty_slave, ppp_devnam, uid)) { 567 seteuid(uid); 940 setuid(uid); 941 if (getuid() != uid) [all...] |
/frameworks/av/services/audiopolicy/ |
AudioPolicyManager.h | 176 uid_t uid); 178 uid_t uid); 183 virtual void clearAudioPatches(uid_t uid); 328 const struct audio_patch *patch, uid_t uid) : 329 mHandle(handle), mPatch(*patch), mUid(uid), mAfPatchHandle(0) {} [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsTest.java | 323 private static void assertValues(NetworkStats stats, int index, String iface, int uid, int set, 326 assertValues(entry, iface, uid, set, tag); 331 NetworkStats.Entry entry, String iface, int uid, int set, int tag) { 333 assertEquals(uid, entry.uid);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiConfigStore.java | 1975 String uid = key.replace(CREATOR_UID_KEY, ""); local 2029 String uid = key.replace(CONNECT_UID_KEY, ""); local 2035 String uid = key.replace(UPDATE_UID_KEY, ""); local [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/ |
android_browser_backend.py | 99 uid = re.search('\d+', id_line).group() 107 'chown %s.%s %s' % (uid, uid, extended_path))
|
/external/dnsmasq/src/ |
tftp.c | 293 uid_t uid = geteuid(); local 319 if (uid == 0) 325 else if ((daemon->options & OPT_TFTP_SECURE) && uid != statbuf.st_uid)
|
/external/lldb/source/Plugins/Platform/MacOSX/ |
PlatformDarwin.cpp | 658 PlatformDarwin::GetUserName (uint32_t uid) 660 // Check the cache in Platform in case we have already looked this uid up 661 const char *user_name = Platform::GetUserName(uid); 666 return m_remote_platform_sp->GetUserName(uid); [all...] |
/external/lldb/source/Plugins/Process/gdb-remote/ |
GDBRemoteCommunicationServer.cpp | 283 response.Printf ("pid:%" PRIu64 ";ppid:%" PRIu64 ";uid:%i;gid:%i;euid:%i;egid:%i;", 380 else if (key.compare("uid") == 0) 439 // Packet format: "qUserName:%i" where %i is the uid 441 uint32_t uid = packet.GetU32 (UINT32_MAX); 442 if (uid != UINT32_MAX) 445 if (Host::GetUserName (uid, name))
|
/frameworks/base/core/java/com/android/internal/os/ |
ZygoteInit.java | 237 private static void setEffectiveUser(int uid) { 238 int errno = setreuid(ROOT_UID, uid); 612 parsedArgs.uid, parsedArgs.gid, 800 * @param ruid real uid 801 * @param euid effective uid
|
/frameworks/base/services/core/java/com/android/server/ |
AlarmManagerService.java | 172 public int uid; field in class:AlarmManagerService.WakeupEvent 177 uid = theUid; 584 BroadcastStats(int uid, String packageName) { 585 mUid = uid; 721 Slog.w(TAG, "Invalid alarm trigger time! " + triggerAtTime + " from uid=" + who 863 + ", uid=" + Binder.getCallingUid()); 1801 final int uid = ActivityManagerNative.getDefault() local 1994 int uid = pi.getCreatorUid(); local [all...] |
/frameworks/base/services/print/java/com/android/server/print/ |
PrintManagerService.java | 448 + ", uid=" + Binder.getCallingUid()); 519 public void onPackageRemoved(String packageName, int uid) { 545 int uid, boolean doit) { 575 public void onPackageAdded(String packageName, int uid) { [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
MockPackageManager.java | 215 public String[] getPackagesForUid(int uid) { 220 public String getNameForUid(int uid) { 317 public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags) {
|
/packages/apps/Settings/src/com/android/settings/applications/ |
AppOpsState.java | 490 public List<AppOpEntry> buildState(OpsTemplate tpl, int uid, String packageName) { 512 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); 578 appInfo.packageName, appInfo.applicationInfo.uid, dummyOps);
|
/external/chromium_org/ui/webui/resources/js/ |
cr.js | 229 if (item.hasOwnProperty('uid')) 230 return item.uid; 231 return item.uid = createUid();
|
/external/compiler-rt/include/sanitizer/ |
linux_syscall_hooks.h | 117 #define __sanitizer_syscall_pre_setuid(uid) \ 118 __sanitizer_syscall_pre_impl_setuid((long)(uid)) 119 #define __sanitizer_syscall_post_setuid(res, uid) \ 120 __sanitizer_syscall_post_impl_setuid(res, (long)(uid)) 133 #define __sanitizer_syscall_pre_setfsuid(uid) \ 134 __sanitizer_syscall_pre_impl_setfsuid((long)(uid)) 135 #define __sanitizer_syscall_post_setfsuid(res, uid) \ 136 __sanitizer_syscall_post_impl_setfsuid(res, (long)(uid)) [all...] |
/frameworks/base/core/java/android/app/ |
IActivityManager.java | 184 public void killApplicationProcess(String processName, int uid) throws RemoteException; 221 public int checkPermission(String permission, int pid, int uid) 223 public int checkPermissionWithToken(String permission, int pid, int uid, IBinder callerToken) 226 public int checkUriPermission(Uri uri, int pid, int uid, int mode, int userId, 340 public void crashApplication(int uid, int initialPid, String packageName, 407 // manage your activity to make sure it is always the uid you expect. 426 public void killUid(int uid, String reason) throws RemoteException; [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
TaskRecord.java | 96 int effectiveUid; // The current effective uid of the identity of this task. 112 int creatorUid; // The app uid that originally created the task 199 mCallingUid = info.applicationInfo.uid; 207 userId = UserHandle.getUserId(info.applicationInfo.uid); 209 mCallingUid = info.applicationInfo.uid; 269 /** Sets the original intent, and the calling uid and package. */ 276 /** Sets the original intent, _without_ updating the calling uid or package. */ 292 effectiveUid = info.applicationInfo.uid; 338 userId = UserHandle.getUserId(info.applicationInfo.uid); [all...] |
/system/netd/server/ |
CommandListener.cpp | 1327 int uid = atoi(argv[2]); local 1411 uid_t uid = 0; local [all...] |