HomeSort by relevance Sort by last modified time
    Searched refs:uid (Results 276 - 300 of 972) sorted by null

<<11121314151617181920>>

  /system/core/include/cutils/
fs.h 44 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid);
  /build/tools/fs_get_stats/
fs_get_stats.c 42 unsigned uid = (unsigned)-1; local
61 fs_config(argv[3], is_dir, &uid, &gid, &perms, &capabilities);
62 fprintf(stdout, "%d %d 0%o\n", uid, gid, perms);
  /external/kernel-headers/original/linux/
ncp_mount.h 38 __kernel_uid_t uid; member in struct:ncp_mount_data
62 unsigned long uid; member in struct:ncp_mount_data_v4
84 __kernel_uid32_t uid; member in struct:ncp_mount_data_kernel
  /external/openssh/
audit-linux.c 43 linux_audit_record_event(int uid, const char *username,
58 username == NULL ? uid : -1, hostname, ip, ttyn, success);
88 if (linux_audit_record_event(li->uid, NULL, li->hostname,
loginrec.h 67 uid_t uid; /* UID of this user */ member in struct:logininfo
120 struct logininfo *login_get_lastlog(struct logininfo *li, const uid_t uid);
122 unsigned int login_get_lastlog_time(const uid_t uid);
  /frameworks/av/media/libstagefright/include/
HTTPBase.h 54 void setUID(uid_t uid);
55 bool getUID(uid_t *uid) const;
59 static void RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag);
  /frameworks/base/core/jni/
android_os_FileUtils.cpp 38 jint uid, jint gid)
49 if (uid >= 0 || gid >= 0) {
50 int res = chown(file8.string(), uid, gid);
com_android_internal_net_NetworkStatsFactory.cpp 42 jfieldID uid; member in struct:android::__anon19715
55 int32_t uid; member in struct:android::stats_line
84 &s.iface, &rawTag, &s.uid, &s.set, &s.rxBytes, &s.rxPackets,
105 ScopedIntArrayRW uid(env, env->NewIntArray(size));
106 if (uid.get() == NULL) return -1;
126 uid[i] = lines[i].uid;
137 env->SetObjectField(stats, gNetworkStatsClassInfo.uid, uid.getJavaArray());
175 gNetworkStatsClassInfo.uid = env->GetFieldID(clazz, "uid", "[I")
    [all...]
  /frameworks/base/services/java/com/android/server/net/
NetworkPolicyManagerService.java 195 private static final String TAG_UID_POLICY = "uid-policy";
212 private static final String ATTR_UID = "uid";
256 /** Defined UID policies. */
258 /** Currently derived rules for each UID. */
269 /** Foreground at both UID and PID granularity. */
369 // listen for UID changes to update policy
408 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) {
410 pid, uid, foregroundActivities).sendToTarget();
414 public void onImportanceChanged(int pid, int uid, int importance) {
418 public void onProcessDied(int pid, int uid) {
1226 final int uid = readIntAttribute(in, ATTR_UID); local
1239 final int uid = UserHandle.getUid(UserHandle.USER_OWNER, appId); local
1319 final int uid = mUidPolicy.keyAt(i); local
1383 final int uid = mUidPolicy.keyAt(i); local
1402 final int uid = mUidPolicy.keyAt(i); local
1652 final int uid = mUidPolicy.keyAt(i); local
1670 final int uid = knownUids.keyAt(i); local
1750 final int uid = mUidForeground.keyAt(i); local
1770 final int uid = UserHandle.getUid(user.id, app.uid); local
    [all...]
NetworkStatsCollection.java 58 * {@link NetworkIdentitySet}, UID, set, and tag. Knows how to persist itself.
136 NetworkTemplate template, int uid, int set, int tag, int fields) {
137 return getHistory(template, uid, set, tag, fields, Long.MIN_VALUE, Long.MAX_VALUE);
145 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) {
151 if (key.uid == uid && setMatches && key.tag == tag
180 entry.uid = key.uid;
201 public void recordData(NetworkIdentitySet ident, int uid, int set, int tag, long start,
203 final NetworkStatsHistory history = findOrCreateHistory(ident, uid, set, tag)
276 final int uid = in.readInt(); local
404 final int uid = in.readInt(); local
500 public final int uid; field in class:NetworkStatsCollection.Key
    [all...]
  /frameworks/base/services/java/com/android/server/
AppOpsService.java 93 public final int uid; field in class:AppOpsService.Ops
97 uid = _uid;
165 UserHandle.getUserId(ops.uid));
169 if (curUid != ops.uid) {
171 + "/" + ops.uid + ": new uid=" + curUid);
186 public void packageRemoved(int uid, String packageName) {
188 HashMap<String, Ops> pkgs = mUidOps.get(uid);
192 mUidOps.remove(uid);
200 public void uidRemoved(int uid) {
772 int uid = Integer.parseInt(parser.getAttributeValue(null, "n")); local
    [all...]
VibratorService.java 89 Vibration(IBinder token, long millis, int uid, String packageName) {
90 this(token, millis, null, 0, uid, packageName);
93 Vibration(IBinder token, long[] pattern, int repeat, int uid, String packageName) {
94 this(token, 0, pattern, repeat, uid, packageName);
98 int repeat, int uid, String packageName) {
104 mUid = uid;
181 private void verifyIncomingUid(int uid) {
182 if (uid == Binder.getCallingUid()) {
192 public void vibrate(int uid, String packageName, long milliseconds, IBinder token) {
197 verifyIncomingUid(uid);
544 final int uid = mVibration.mUid; local
    [all...]
  /external/libcap-ng/libcap-ng-0.7/utils/
pscap.c 69 int pid, ppid, uid = -1, euid = -1; local
122 // Get the effective uid
139 if (memcmp(buf, "Uid:", 4) == 0) {
141 sscanf(buf, "Uid: %d %d",
160 uid = 0;
161 } else if (euid != uid) {
164 uid = euid;
174 uid, cmd);
netcap.c 110 // Get the effective uid
123 if (memcmp(buf, "Uid:", 4) == 0) {
125 sscanf(buf, "Uid: %d %d",
196 node.uid = euid;
224 if (n->uid == 0) {
228 } else if (last_uid != (int)n->uid) {
230 p = getpwuid(n->uid);
231 last_uid = n->uid;
254 int local_port, rem_port, d, state, timer_run, uid, timeout; local
275 &uid, &timeout, &inode, more)
288 int local_port, rem_port, d, state, timer_run, uid, timeout; local
322 int local_port, rem_port, d, state, timer_run, uid, timeout; local
392 unsigned int ref_cnt, type, proto, iface, r, rmem, uid; local
    [all...]
  /frameworks/base/core/java/android/app/
AppOpsManager.java 249 public PackageOps(String packageName, int uid, List<OpEntry> entries) {
251 mUid = uid;
406 * @param uid The uid of the application of interest.
410 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, int[] ops) {
412 return mService.getOpsForPackage(uid, packageName, ops);
418 public void setMode(int code, int uid, String packageName, int mode) {
420 mService.setMode(code, uid, packageName, mode);
463 public int checkOp(int op, int uid, String packageName) {
465 int mode = mService.checkOperation(op, uid, packageName)
    [all...]
  /system/extras/tests/fstest/
perm_checker.c 78 printf("# ERROR # Invalid uid '%s' reading line %d\n", str, line_num);
200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid)
205 pw = getpwuid(uid);
206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid,
211 static int pass_rule(const perm_rule_t *pr, mode_t mode, uid_t uid, gid_t gid)
216 (pr->min_uid <= uid) && (pr->max_uid >= uid))
223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid)
232 if (!pass_rule(pr, mode, uid, gid))
245 print_new_rule(name, mode, uid, gid)
    [all...]
  /frameworks/base/core/java/android/net/
NetworkStats.java 35 * all interfaces, or details with per-UID granularity. Internally stores data
45 /** {@link #uid} value when UID details unavailable. */
65 private int[] uid; field in class:NetworkStats
76 public int uid; field in class:NetworkStats.Entry
94 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets,
97 this.uid = uid;
128 builder.append(" uid=").append(uid);
    [all...]
  /frameworks/base/services/java/com/android/server/am/
ContentProviderRecord.java 39 final int uid; field in class:ContentProviderRecord
62 uid = ai.uid;
66 noReleaseNeeded = uid == 0 || uid == Process.SYSTEM_UID;
72 uid = cpr.uid;
89 && uid == app.info.uid;
154 pw.print(prefix); pw.print("uid="); pw.print(uid)
    [all...]
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
BatterySipper.java 28 import android.os.BatteryStats.Uid;
42 Uid uidObj;
66 int iconId, Uid uid, double[] values) {
77 if ((label == null || iconId == 0) && uid != null) {
78 getQuickNameIconForUid(uid);
80 uidObj = uid;
100 void getQuickNameIconForUid(Uid uidObj) {
101 final int uid = uidObj.getUid(); local
102 final String uidString = Integer.toString(uid);
137 final int uid = uidObj.getUid(); local
    [all...]
  /system/core/run-as/
package.c 29 * the run-as command has dropped the uid/gid. Hence be very
160 * - is owned by a given uid/gid
168 check_directory_ownership(const char* path, uid_t uid)
184 /* must be owned by specific uid/gid */
185 if (st.st_uid != uid || st.st_gid != uid)
208 check_data_path(const char* dataPath, uid_t uid)
259 * directory is owned by the application uid
261 if (check_directory_ownership(dataPath, uid) < 0)
432 info->uid = 0
463 int uid, debugFlag; local
    [all...]
  /external/chromium/chrome/browser/
process_info_snapshot_mac_unittest.cc 34 EXPECT_EQ(0, static_cast<int64>(proc_info.uid));
61 uid_t uid = getuid(); local
76 EXPECT_EQ(uid, proc_info.uid);
89 EXPECT_EQ(uid, proc_info.uid); // This (and the following) should be true
95 // To verify that ProcessInfoSnapshot is getting the actual uid and effective
96 // uid, this test runs top. top should have a uid of the caller and effective
97 // uid of 0 (root)
    [all...]
  /system/core/init/
property_service.c 62 unsigned int uid; member in struct:__anon43911
100 * White list of UID that are allowed to start/stop services.
105 unsigned int uid; member in struct:__anon43912
247 * Returns 1 if uid allowed, 0 otherwise.
249 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) {
252 if (uid == AID_SYSTEM || uid == AID_ROOT)
258 if ((uid && control_perms[i].uid == uid) ||
    [all...]
  /system/security/keystore/
keystore.cpp 145 uid_t uid; member in struct:user_euid
154 uid_t uid; member in struct:user_perm
168 * UNIX UID.
170 static uid_t get_app_id(uid_t uid) {
171 return uid % AID_USER;
176 * UNIX UID.
178 static uid_t get_user_id(uid_t uid) {
179 return uid / AID_USER;
183 static bool has_permission(uid_t uid, perm_t perm) {
185 if (get_app_id(uid) == AID_SYSTEM)
846 uint32_t uid; member in struct:__anon44092
    [all...]
  /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...]
  /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 ||

Completed in 1089 milliseconds

<<11121314151617181920>>