/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
DataSaverModeTest.java | 172 // UID policies live by the Highlander rule: "There can be only one". 204 int uid = -1; local 206 uid = getUid(packageName); 207 assertRestrictBackgroundWhitelist(uid, true); 210 if (uid > 0) { 211 error.append(" (uid ").append(uid).append(")");
|
/cts/tests/security/src/android/keystore/cts/ |
AttestationApplicationId.java | 42 int uid = context.getApplicationInfo().uid; local 43 String[] packageNames = pm.getPackagesForUid(uid); 45 throw new NameNotFoundException("No names found for uid");
|
/external/autotest/server/cros/clique_lib/ |
clique_dut_control.py | 63 'ControlResult', [ 'uid', 'run_num', 'success', 77 test_params=None, uid=""): 88 @param uid: UID of this instance of the object. Host name for DUTRole 95 self._uid = uid 120 def uid(self): member in class:CliqueControl 195 uid=dut.host.hostname) 202 result = ControlResult(uid=self.uid, 213 result = ControlResult(uid=self.uid [all...] |
/external/autotest/site_utils/sponge_lib/ |
acts_job_info.py | 37 UID = 'UID' 202 def uid(self): member in class:ACTSRecord 203 """The uid of the test case.""" 204 return self._json_record.get(ACTSRecordEnums.UID)
|
/external/compiler-rt/lib/lsan/ |
lsan_thread.cc | 116 uptr uid = (uptr)arg; local 117 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) { 123 u32 ThreadTid(uptr uid) { 124 return thread_registry->FindThread(FindThreadByUid, (void*)uid);
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_sync.cc | 27 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { 29 this->uid = uid; 40 uid = 0; 241 const u64 uid = atomic_fetch_add(&uid_gen_, 1, memory_order_relaxed); local 244 mys->Init(thr, pc, addr, uid);
|
/external/e2fsprogs/contrib/android/ |
perms.c | 106 unsigned int uid = 0, gid = 0, imode = 0; local 117 params->target_out, &uid, &gid, &imode, 119 inode.i_uid = uid & 0xffff;
|
/external/kernel-headers/original/uapi/linux/ |
cramfs_fs.h | 31 __u32 mode:CRAMFS_MODE_WIDTH, uid:CRAMFS_UID_WIDTH; member in struct:cramfs_inode
|
ipc.h | 13 __kernel_uid_t uid; member in struct:ipc_perm 48 #define IPC_OLD 0 /* Old version (no 32-bit UID support on many
|
/external/libbrillo/brillo/ |
process_unittest.cc | 259 gid_t uid = geteuid(); local 261 process_.SetUid(uid); 279 EXPECT_NE(std::string::npos, contents.find("Unable to set UID to 0: 1\n"));
|
/external/libcap/progs/ |
capsh.c | 344 } else if (!memcmp("--uid=", argv[i], 6)) { 351 fprintf(stderr, "Failed to set uid=%u: %s\n", 442 fprintf(stderr, "Failed to set uid=%u(user=%s): %s\n", 492 uid_t uid; local 544 uid = getuid(); 545 u = getpwuid(uid); 546 printf("uid=%u(%s)\n", getuid(), u ? u->pw_name : "???"); 577 " --uid=<n> set uid to <n> (hint: id <username>)\n" 580 " --user=<name> set uid,gid and groups to that of user\n [all...] |
/external/linux-kselftest/tools/testing/selftests/mount/ |
unprivileged-remount-test.c | 156 uid_t uid; local 159 uid = getuid(); 168 write_file("/proc/self/uid_map", "0 %d 1", uid);
|
/external/ltp/testcases/kernel/containers/userns/ |
userns03.c | 79 int uid, gid; local 86 uid = geteuid(); 89 if (uid != CHILD2UID || gid != CHILD2GID) { 90 printf("unexpected uid=%d gid=%d\n", uid, gid); 94 /*Get the uid parameters of the child_fn2 process.*/
|
/external/ltp/testcases/network/nfsv4/acl/ |
acl1.c | 47 uid_t uid; local 53 uid = geteuid();
|
/external/perfetto/src/tracing/core/ |
trace_buffer_unittest.cc | 71 std::vector<FakePacketFragment> ReadPacket(uint32_t* uid = nullptr) { 75 if (!trace_buffer_->ReadNextTracePacket(&packet, uid ? uid : &ignore)) 629 uid_t uid = kInvalidUid; local 630 ASSERT_THAT(ReadPacket(&uid), ElementsAre(FakePacketFragment(10, 'a'))); 631 ASSERT_EQ(11u, uid); 633 ASSERT_THAT(ReadPacket(&uid), ElementsAre(FakePacketFragment(10, 'b'), 635 ASSERT_EQ(11u, uid); 637 ASSERT_THAT(ReadPacket(&uid), ElementsAre(FakePacketFragment(10, 'f'))); 638 ASSERT_EQ(11u, uid); [all...] |
/external/squashfs-tools/kernel-2.4/include/linux/ |
squashfs_fs_sb.h | 53 unsigned int *uid; member in struct:squashfs_sb_info
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
run_config.py | 36 # `uid` of the RunConfig, it should be ingored. 310 def uid(self, whitelist=None): member in class:RunConfig 313 Caller should use the uid string to check `RunConfig` instance integrity 318 whitelist: A list of the string names of the properties uid should not 323 A uid string.
|
/external/toybox/ |
main.c | 124 uid_t uid = getuid(), euid = geteuid(); local 127 if (uid != euid) { 128 if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root 129 euid = uid; 132 } else if (CFG_TOYBOX_DEBUG && uid && which != toy_list)
|
/external/toybox/toys/pending/ |
mdev.c | 28 the second and third fields are uid:gid and file permissions for 39 uid_t uid = 0; local 99 // Three fields: regex, uid:gid, mode 128 // uid:gid 137 // Parse UID 138 uid = strtoul(pos,&s2,10); 145 uid = pass->pw_uid; 198 if (CFG_MDEV_CONF) mode=chown(toybuf, uid, gid);
|
/external/toybox/toys/posix/ |
cpio.c | 15 * In order: magic ino mode uid gid nlink mtime filesize devmajor devminor 113 unsigned size, mode, uid, gid, timestamp; local 131 uid = x8u(toybuf+22); 153 err = lchown(name, uid, gid); 179 err = fchown(fd, uid, gid); 200 err = fchown(fd, uid, gid);
|
/external/vboot_reference/firmware/lib/ |
rollback_index.c | 258 .uid = ROLLBACK_SPACE_KERNEL_UID, 612 uint32_t perms, uid; local 624 Memcpy(&uid, &rsk.uid, sizeof(uid)); 625 if (TPM_NV_PER_PPWRITE != perms || ROLLBACK_SPACE_KERNEL_UID != uid)
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
BatteryStatsUserLifecycleTests.java | 130 final int uid = Integer.parseInt(parts[1]); local 131 if (UserHandle.getUserId(uid) == mTestUserId) { 132 uids.add(uid);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
ChartDataLoader.java | 37 * Loader for historical chart data for both network and UID details. 92 // load stats for current uid and template 95 final int uid = app.uids.keyAt(i); local 97 template, uid, SET_DEFAULT, data.detailDefault); 99 template, uid, SET_FOREGROUND, data.detailForeground); 129 * Collect {@link NetworkStatsHistory} for the requested UID, combining with 133 NetworkTemplate template, int uid, int set, NetworkStatsHistory existing) 136 template, uid, set, TAG_NONE, FIELD_RX_BYTES | FIELD_TX_BYTES);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
ProcessLoggingHandler.java | 53 int uid = bundle.getInt("uid"); local 60 startTimestamp, uid, pid, seinfo, apkHash);
|
/frameworks/base/telephony/java/android/telephony/mbms/vendor/ |
MbmsDownloadServiceBase.java | 127 final int uid = Binder.getCallingUid(); local 139 onAppCallbackDied(uid, subscriptionId); 148 onAppCallbackDied(uid, subscriptionId); 157 onAppCallbackDied(uid, subscriptionId); 166 onAppCallbackDied(uid, subscriptionId); 179 * Note that subsequent calls with the same uid and subId will replace 202 * If the calling app (as identified by the calling UID) currently has any pending download 261 final int uid = Binder.getCallingUid(); local 272 onAppCallbackDied(uid, downloadRequest.getSubscriptionId()); 282 onAppCallbackDied(uid, downloadRequest.getSubscriptionId()) 374 final int uid = Binder.getCallingUid(); local [all...] |