Searched refs:decode_uid (Results 1 – 6 of 6) sorted by relevance
/system/core/init/ |
D | util_test.cpp | 39 TEST(util, decode_uid) { in TEST() argument 40 EXPECT_EQ(0U, decode_uid("root")); in TEST() 41 EXPECT_EQ(-1U, decode_uid("toot")); in TEST() 42 EXPECT_EQ(123U, decode_uid("123")); in TEST()
|
D | init_parser_test.cpp | 89 ASSERT_EQ(decode_uid("log"), svc->uid); in Test_make_exec_oneshot_service() 94 ASSERT_EQ(decode_uid("shell"), svc->gid); in Test_make_exec_oneshot_service() 100 ASSERT_EQ(decode_uid("system"), svc->supp_gids[0]); in Test_make_exec_oneshot_service() 101 ASSERT_EQ(decode_uid("adb"), svc->supp_gids[1]); in Test_make_exec_oneshot_service()
|
D | builtins.cpp | 230 uid_t uid = decode_uid(args[3]); in do_mkdir() 234 gid = decode_uid(args[4]); in do_mkdir() 723 if (lchown(args[2], decode_uid(args[1]), -1) == -1) in do_chown() 726 if (lchown(args[3], decode_uid(args[1]), decode_uid(args[2])) == -1) in do_chown()
|
D | init_parser.cpp | 700 svc->uid = decode_uid(args[2]); in make_exec_oneshot_service() 703 svc->gid = decode_uid(args[3]); in make_exec_oneshot_service() 706 svc->supp_gids[i] = decode_uid(args[4 + i]); in make_exec_oneshot_service() 823 svc->gid = decode_uid(args[1]); in parse_line_service() 825 svc->supp_gids[n-2] = decode_uid(args[n]); in parse_line_service() 907 si->uid = decode_uid(args[4]); in parse_line_service() 909 si->gid = decode_uid(args[5]); in parse_line_service() 920 svc->uid = decode_uid(args[1]); in parse_line_service()
|
D | util.h | 53 unsigned int decode_uid(const char *s);
|
D | util.cpp | 69 unsigned int decode_uid(const char *s) in decode_uid() function
|