Home
last modified time | relevance | path

Searched refs:DecodeUid (Results 1 – 6 of 6) sorted by relevance

/system/core/init/
Dinit_parser_test.cpp95 ASSERT_TRUE(DecodeUid("log", &decoded_uid, &err)); in Test_make_exec_oneshot_service()
103 ASSERT_TRUE(DecodeUid("shell", &decoded_uid, &err)); in Test_make_exec_oneshot_service()
112 ASSERT_TRUE(DecodeUid("system", &decoded_uid, &err)); in Test_make_exec_oneshot_service()
114 ASSERT_TRUE(DecodeUid("adb", &decoded_uid, &err)); in Test_make_exec_oneshot_service()
Dutil_test.cpp146 TEST(util, DecodeUid) { in TEST() argument
150 EXPECT_TRUE(DecodeUid("root", &decoded_uid, &err)); in TEST()
154 EXPECT_FALSE(DecodeUid("toot", &decoded_uid, &err)); in TEST()
158 EXPECT_TRUE(DecodeUid("123", &decoded_uid, &err)); in TEST()
Dutil.h45 bool DecodeUid(const std::string& name, uid_t* uid, std::string* err);
Dservice.cpp409 if (!DecodeUid(args[1], &gid_, &decode_uid_err)) { in ParseGroup()
415 if (!DecodeUid(args[n], &gid, &decode_uid_err)) { in ParseGroup()
555 if (!DecodeUid(args[4], &uid, &decode_uid_err)) { in AddDescriptor()
562 if (!DecodeUid(args[5], &gid, &decode_uid_err)) { in AddDescriptor()
608 if (!DecodeUid(args[1], &uid_, &decode_uid_err)) { in ParseUser()
1049 if (!DecodeUid(args[2], &uid, &decode_uid_err)) { in MakeExecOneshotService()
1058 if (!DecodeUid(args[3], &gid, &decode_uid_err)) { in MakeExecOneshotService()
1065 if (!DecodeUid(args[4 + i], &supp_gid, &decode_uid_err)) { in MakeExecOneshotService()
Dbuiltins.cpp233 if (!DecodeUid(args[3], &uid, &decode_uid_err)) { in do_mkdir()
240 if (!DecodeUid(args[4], &gid, &decode_uid_err)) { in do_mkdir()
706 if (!DecodeUid(args[1], &uid, &decode_uid_err)) { in do_chown()
716 if (!DecodeUid(args[2], &gid, &decode_uid_err)) { in do_chown()
Dutil.cpp61 bool DecodeUid(const std::string& name, uid_t* uid, std::string* err) { in DecodeUid() function