/bionic/libc/bionic/ |
setuid.c | 33 int setuid(uid_t uid) 35 cpuacct_add(uid); 36 return __setuid(uid);
|
/frameworks/base/core/java/android/app/ |
IProcessObserver.aidl | 22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities); 23 void onImportanceChanged(int pid, int uid, int importance); 24 void onProcessDied(int pid, int uid);
|
/frameworks/native/services/sensorservice/ |
BatteryService.h | 34 status_t noteStartSensor(int uid, int handle); 35 status_t noteStopSensor(int uid, int handle); 37 void enableSensorImpl(uid_t uid, int handle); 38 void disableSensorImpl(uid_t uid, int handle); 39 void cleanupImpl(uid_t uid); 42 uid_t uid; member in struct:android::BatteryService::Info 45 Info() : uid(0), handle(0), count(0) { } 46 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { [all...] |
BatteryService.cpp | 41 status_t BatteryService::noteStartSensor(int uid, int handle) { 44 data.writeInt32(uid); 52 status_t BatteryService::noteStopSensor(int uid, int handle) { 55 data.writeInt32(uid); 63 bool BatteryService::addSensor(uid_t uid, int handle) { 65 Info key(uid, handle); 75 bool BatteryService::removeSensor(uid_t uid, int handle) { 77 ssize_t index = mActivations.indexOf(Info(uid, handle)); 85 void BatteryService::enableSensorImpl(uid_t uid, int handle) { 87 if (addSensor(uid, handle)) [all...] |
/frameworks/base/core/java/android/net/ |
Credentials.java | 26 /** uid of process. root peers may lie. */ 27 private final int uid; field in class:Credentials 31 public Credentials (int pid, int uid, int gid) { 33 this.uid = uid; 42 return uid;
|
INetworkStatsService.aidl | 33 /** Return data layer snapshot of UID network usage. */ 34 NetworkStats getDataLayerSnapshotForUid(int uid); 38 /** Increment data layer count of operations performed for UID and tag. */ 39 void incrementOperationCount(int uid, int tag, int operationCount); 41 /** Mark given UID as being in foreground for stats purposes. */ 42 void setUidForeground(int uid, boolean uidForeground);
|
INetworkPolicyListener.aidl | 22 void onUidRulesChanged(int uid, int uidRules);
|
/libcore/luni/src/main/java/libcore/io/ |
StructUcred.java | 26 /** The peer process' uid. */ 27 public final int uid; field in class:StructUcred 32 private StructUcred(int pid, int uid, int gid) { 34 this.uid = uid; 39 return "StructUcred[pid=" + pid + ",uid=" + uid + ",gid=" + gid + "]";
|
/external/kernel-headers/original/linux/nfsd/ |
auth.h | 5 * uid/gid mapping not yet implemented. 15 #define nfsd_luid(rq, uid) ((u32)(uid)) 17 #define nfsd_ruid(rq, uid) ((u32)(uid))
|
/system/core/libcutils/ |
multiuser.c | 19 userid_t multiuser_get_user_id(uid_t uid) { 20 return uid / MULTIUSER_APP_PER_USER_RANGE; 23 appid_t multiuser_get_app_id(uid_t uid) { 24 return uid % MULTIUSER_APP_PER_USER_RANGE;
|
sockets.c | 37 if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { 38 ALOGE("untrusted userid on other end of socket: userid %d\n", cr.uid);
|
/frameworks/base/core/java/android/os/ |
IPermissionController.aidl | 22 boolean checkPermission(String permission, int pid, int uid);
|
IVibratorService.aidl | 23 void vibrate(int uid, String packageName, long milliseconds, IBinder token); 24 void vibratePattern(int uid, String packageName, in long[] pattern, int repeat, IBinder token);
|
UserHandle.java | 81 * @param uid1 uid to compare 82 * @param uid2 other uid to compare 91 public static final boolean isIsolated(int uid) { 92 if (uid > 0) { 93 final int appId = getAppId(uid); 101 public static boolean isApp(int uid) { 102 if (uid > 0) { 103 final int appId = getAppId(uid); 111 * Returns the user id for a given uid. 114 public static final int getUserId(int uid) { [all...] |
/frameworks/native/include/binder/ |
PermissionCache.h | 31 * PermissionCache caches permission checks for a given uid. 44 uid_t uid; member in struct:android::PermissionCache::Entry 47 return (uid == e.uid) ? (name < e.name) : (uid < e.uid); 61 const String16& permission, uid_t uid) const; 63 void cache(const String16& permission, uid_t uid, bool granted); 74 pid_t pid, uid_t uid);
|
/frameworks/base/core/java/com/android/internal/app/ |
IAppOpsService.aidl | 25 int checkOperation(int code, int uid, String packageName); 26 int noteOperation(int code, int uid, String packageName); 27 int startOperation(int code, int uid, String packageName); 28 void finishOperation(int code, int uid, String packageName); 34 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops); 35 void setMode(int code, int uid, String packageName, int mode);
|
IBatteryStats.aidl | 26 void noteStartWakelock(int uid, int pid, String name, int type); 27 void noteStopWakelock(int uid, int pid, String name, int type); 31 void noteStartSensor(int uid, int sensor); 35 void noteStopSensor(int uid, int sensor); 40 void noteVibratorOn(int uid, long durationMillis); 41 void noteVibratorOff(int uid); 42 void noteStartGps(int uid); 43 void noteStopGps(int uid); 48 void noteUserActivity(int uid, int event); 61 void noteFullWifiLockAcquired(int uid); [all...] |
/system/core/include/cutils/ |
qtaguid.h | 31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 39 * For the given uid, switch counter sets. 43 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid); 46 * Delete all tag info that relates to the given tag an uid. 47 * If the tag is 0, then ALL info about the uid is freeded. 54 extern int qtaguid_deleteTagData(int tag, uid_t uid);
|
multiuser.h | 33 extern userid_t multiuser_get_user_id(uid_t uid); 34 extern appid_t multiuser_get_app_id(uid_t uid);
|
/external/libselinux/include/selinux/ |
android.h | 19 extern int selinux_android_setcontext(uid_t uid, 26 uid_t uid); 31 uid_t uid);
|
/bionic/libc/private/ |
cpuacct.h | 37 extern int cpuacct_add(uid_t uid);
|
/frameworks/base/keystore/java/android/security/ |
IKeyChainService.aidl | 37 void setGrant(int uid, String alias, boolean value); 38 boolean hasGrant(int uid, String alias);
|
/frameworks/base/core/java/com/android/server/ |
NetworkManagementSocketTagger.java | 61 public static void setThreadSocketStatsUid(int uid) { 62 threadSocketTags.get().statsUid = uid; 76 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { 77 if (tag == -1 && uid == -1) return; 80 final int errno = native_tagSocketFd(fd, tag, uid); 84 + uid + ") failed with errno" + errno); 114 public static void setKernelCounterSet(int uid, int counterSet) { 116 final int errno = native_setCounterSet(counterSet, uid); 118 Log.w(TAG, "setKernelCountSet(" + uid + ", " + counterSet + ") failed with errno " 124 public static void resetKernelUidStats(int uid) { [all...] |
/frameworks/native/libs/binder/ |
PermissionCache.cpp | 38 const String16& permission, uid_t uid) const { 42 e.uid = uid; 52 uid_t uid, bool granted) { 64 e.uid = uid; 85 uid_t uid = ipcState->getCallingUid(); local 87 if (outUid) *outUid = uid; 88 return PermissionCache::checkPermission(permission, pid, uid); 92 const String16& permission, pid_t pid, uid_t uid) { [all...] |
/system/core/run-as/ |
package.h | 30 uid_t uid; member in struct:__anon44017 40 extern int check_data_path(const char* dataDir, uid_t uid);
|