/system/core/libcutils/include/private/ |
H A D | fs_config.h | 46 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 D | log_event_write.c | 28 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 D | NetlinkListener.cpp | 50 uid_t uid = -1; local 58 mBuffer, sizeof(mBuffer), require_group, &uid));
|
/system/bt/profile/avrcp/ |
H A D | media_id_map.h | 34 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 D | service_test.cpp | 46 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 D | descriptors.h | 30 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 D | stub_binder_wrapper.h | 80 void set_calling_uid(uid_t uid) { calling_uid_ = uid; } argument
|
/system/core/libcutils/ |
H A D | multiuser.cpp | 20 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 D | uevent.cpp | 36 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 D | qtaguid.cpp | 94 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 D | packagelistparser.h | 50 uid_t uid; member in struct:pkg_info
|
/system/core/lmkd/ |
H A D | liblmkd_utils.c | 45 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 D | statslog.c | 65 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 D | libaudit.h | 39 uid_t uid; member in struct:audit_sig_info
|
H A D | LogCommand.cpp | 60 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 D | LogListener.cpp | 85 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 D | UidRange.cpp | 70 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 D | bpf_base_test.cpp | 48 // 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 D | SoftGateKeeperDevice.cpp | 21 int SoftGateKeeperDevice::enroll(uint32_t uid, argument 54 EnrollRequest request(uid, ¤t_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 D | IGateKeeperService.cpp | 34 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 D | su.cpp | 29 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 D | TcpSocketMonitor.h | 74 // The uid owning the socket. 75 uint32_t uid; member in struct:android::net::TcpSocketMonitor::SocketEntry
|
/system/security/keystore/ |
H A D | keystore_cli.cpp | 107 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 D | process.h | 54 uid_t uid; member in struct:android::procinfo::ProcessInfo
|
/system/core/libqtaguid/ |
H A D | qtaguid.c | 80 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...] |