Searched defs:uid (Results 1 - 25 of 126) sorted by relevance

123456

/system/core/libcutils/include/private/
H A Dfs_config.h46 uint16_t uid; member in struct:fs_path_config_from_file
54 unsigned uid; member in struct:fs_path_config
74 void fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid, unsigned* gid,
/system/core/liblog/
H A Dlog_event_write.c28 int32_t uid, const char* data,
39 ret = android_log_write_int32(ctx, uid);
27 __android_log_error_write(int tag, const char* subTag, int32_t uid, const char* data, uint32_t dataLen) argument
/system/core/libsysutils/src/
H A DNetlinkListener.cpp50 uid_t uid = -1; local
58 mBuffer, sizeof(mBuffer), require_group, &uid));
/system/bt/profile/avrcp/
H A Dmedia_id_map.h34 std::string get_media_id(uint64_t uid) { argument
35 const auto& uid_it = uid_to_media_id_.find(uid);
51 uint64_t uid = media_id_to_uid_.size() + 1; local
52 media_id_to_uid_.insert(std::pair<std::string, uint64_t>(media_id, uid));
53 uid_to_media_id_.insert(std::pair<uint64_t, std::string>(uid, media_id));
54 return uid;
/system/core/init/
H A Dservice_test.cpp46 EXPECT_EQ(0U, service_in_old_memory->uid());
66 EXPECT_EQ(0U, service_in_old_memory2->uid());
95 args.push_back("root"); // uid.
105 static void Test_make_temporary_oneshot_service(bool dash_dash, bool seclabel, bool uid, bool gid, argument
111 if (uid) {
112 args.push_back("log"); // uid
135 if (uid) {
138 ASSERT_EQ(*decoded_uid, svc->uid());
140 ASSERT_EQ(0U, svc->uid());
H A Ddescriptors.h30 DescriptorInfo(const std::string& name, const std::string& type, uid_t uid,
43 uid_t uid() const { return uid_; } function in class:android::init::DescriptorInfo
64 SocketInfo(const std::string& name, const std::string& type, uid_t uid,
74 FileInfo(const std::string& name, const std::string& type, uid_t uid,
/system/core/libbinderwrapper/include/binderwrapper/
H A Dstub_binder_wrapper.h80 void set_calling_uid(uid_t uid) { calling_uid_ = uid; } argument
/system/core/libcutils/
H A Dmultiuser.cpp20 userid_t multiuser_get_user_id(uid_t uid) { argument
21 return uid / AID_USER_OFFSET;
24 appid_t multiuser_get_app_id(uid_t uid) { argument
25 return uid % AID_USER_OFFSET;
66 gid_t multiuser_get_shared_app_gid(uid_t uid) { argument
67 return multiuser_get_shared_gid(multiuser_get_user_id(uid), multiuser_get_app_id(uid));
H A Duevent.cpp36 uid_t uid = -1; local
37 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &uid);
42 * fails due to a bad uid check, the uid_t will be set to the uid of the
49 ssize_t uevent_kernel_multicast_uid_recv(int socket, void* buffer, size_t length, uid_t* uid) { argument
50 return uevent_kernel_recv(socket, buffer, length, true, uid);
53 ssize_t uevent_kernel_recv(int socket, void* buffer, size_t length, bool require_group, uid_t* uid) { argument
62 *uid = -1;
75 *uid = cred->uid;
[all...]
H A Dqtaguid.cpp94 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { argument
103 ALOGV("Tagging socket %d with tag %u for uid %d", sockfd, tag, uid);
104 return getHandler().netdTagSocket(sockfd, tag, uid);
118 int qtaguid_setCounterSet(int counterSetNum, uid_t uid) { argument
119 ALOGV("Setting counters to set %d for uid %d", counterSetNum, uid);
120 return getHandler().netdSetCounterSet(counterSetNum, uid);
123 int qtaguid_deleteTagData(int tag, uid_t uid) { argument
124 ALOGV("Deleting tag data with tag %u for uid
[all...]
/system/core/libpackagelistparser/include/packagelistparser/
H A Dpackagelistparser.h50 uid_t uid; member in struct:pkg_info
/system/core/lmkd/
H A Dliblmkd_utils.c45 int create_memcg(uid_t uid, pid_t pid) { argument
50 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u", uid);
56 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u/pid_%u", uid, pid);
62 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u/pid_%u/tasks", uid, pid);
H A Dstatslog.c65 stats_write_lmk_kill_occurred(android_log_context ctx, int32_t code, int32_t uid, argument
84 if ((ret = android_log_write_int32(ctx, uid)) < 0) {
/system/core/logd/
H A Dlibaudit.h39 uid_t uid; member in struct:audit_sig_info
H A DLogCommand.cpp60 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { argument
61 if ((uid == AID_ROOT) || (uid == AID_SYSTEM) || (uid == AID_LOG)) {
119 if ((uid == u[0]) && (uid == u[1]) && (uid == u[2]) &&
120 (uid == u[3])) {
H A DLogListener.cpp85 cred->uid = DEFAULT_OVERFLOWUID;
88 if (cred->uid == AID_LOGD) {
105 !clientHasLogCredentials(cred->uid, cred->gid, cred->pid))) {
120 if (cred->uid == DEFAULT_OVERFLOWUID) {
121 uid_t uid = local
123 if (uid == AID_LOGD) {
124 uid = logbuf ? logbuf->pidToUid(header->tid)
127 if (uid != AID_LOGD) cred->uid = uid;
[all...]
/system/netd/server/binder/android/net/
H A DUidRange.cpp70 void UidRange::setStart(int32_t uid) { argument
72 ALOG_ASSERT(uid <= mStop, "start UID must be less than or equal to stop UID");
74 mStart = uid;
77 void UidRange::setStop(int32_t uid) { argument
79 ALOG_ASSERT(mStart <= uid, "stop UID must be greater than or equal to start UID");
81 mStop = uid;
/system/netd/tests/
H A Dbpf_base_test.cpp48 // Use the upper limit of uid to avoid conflict with real app uids. We can't use UID_MAX because
97 ASSERT_EQ(TEST_UID, tagResult.value().uid);
117 ASSERT_EQ(TEST_UID, tagResult.value().uid);
138 uid_t uid = TEST_UID; local
139 StatusOr<uint8_t> counterSetResult = uidCounterSetMap.readValue(uid);
143 counterSetResult = uidCounterSetMap.readValue(uid);
158 StatsKey key = {.uid = TEST_UID, .tag = TEST_TAG, .counterSet = TEST_COUNTERSET,
/system/core/gatekeeperd/
H A DSoftGateKeeperDevice.cpp21 int SoftGateKeeperDevice::enroll(uint32_t uid, argument
54 EnrollRequest request(uid, &current_password_handle_buffer, &desired_password_buffer,
71 int SoftGateKeeperDevice::verify(uint32_t uid, argument
88 VerifyRequest request(uid, challenge, &password_handle_buffer, &provided_password_buffer);
H A DIGateKeeperService.cpp34 uint32_t uid = data.readInt32(); local
53 int ret = enroll(uid, currentPasswordHandle, currentPasswordHandleSize,
77 uint32_t uid = data.readInt32(); local
89 int ret = verify(uid, (uint8_t *) currentPasswordHandle,
109 uint32_t uid = data.readInt32(); local
125 int ret = verifyChallenge(uid, challenge, (uint8_t *) currentPasswordHandle,
148 uint32_t uid = data.readInt32(); local
149 uint64_t sid = getSecureUserId(uid);
156 uint32_t uid = data.readInt32(); local
157 clearSecureUserId(uid);
[all...]
/system/extras/su/
H A Dsu.cpp29 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { argument
32 if (uid) *uid = pw->pw_uid;
38 if (errno != 0 || end == tok) error(1, errno, "invalid uid/gid '%s'", tok);
39 if (uid) *uid = tmpid;
44 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { argument
51 *gid = *uid = 0;
60 pwtoid(tok, uid, gid);
101 uid_t uid local
[all...]
/system/netd/server/
H A DTcpSocketMonitor.h74 // The uid owning the socket.
75 uint32_t uid; member in struct:android::net::TcpSocketMonitor::SocketEntry
/system/security/keystore/
H A Dkeystore_cli.cpp107 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
110 int uid = -1; \
112 uid = atoi(argv[3]); \
113 fprintf(stderr, "Running as uid %d\n", uid); \
116 service->cmd(String16(argv[2]), uid, &ret); \
131 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
135 int uid = -1; \
137 uid = atoi(argv[3]); \
138 fprintf(stderr, "Running as uid
194 list(const sp<IKeystoreService>& service, const String16& name, int uid) argument
[all...]
/system/core/libprocinfo/include/procinfo/
H A Dprocess.h54 uid_t uid; member in struct:android::procinfo::ProcessInfo
/system/core/libqtaguid/
H A Dqtaguid.c80 int legacy_tagSocket(int sockfd, int tag, uid_t uid) { argument
87 snprintf(lineBuf, sizeof(lineBuf), "t %d %" PRIu64 " %d", sockfd, kTag, uid);
89 ALOGV("Tagging socket %d with tag %" PRIx64 "{%u,0} for uid %d", sockfd, kTag, tag, uid);
93 ALOGI("Tagging socket %d with tag %" PRIx64 "(%d) for uid %d failed errno=%d", sockfd, kTag,
94 tag, uid, res);
115 int legacy_setCounterSet(int counterSetNum, uid_t uid) { argument
119 ALOGV("Setting counters to set %d for uid %d", counterSetNum, uid);
121 snprintf(lineBuf, sizeof(lineBuf), "s %d %d", counterSetNum, uid);
126 legacy_deleteTagData(int tag, uid_t uid) argument
[all...]

Completed in 419 milliseconds

123456