Searched refs:FindById (Results 1 – 4 of 4) sorted by relevance
/bionic/tests/ |
D | grp_pwd_file_test.cpp | 54 ASSERT_TRUE(file->FindById(uid, &id_passwd_state)) << uid; in FindAndCheckPasswdEntry() 78 ASSERT_TRUE(file->FindById(gid, &id_group_state)) << gid; in FindAndCheckGroupEntry() 103 EXPECT_FALSE(passwd_file.FindById(3, nullptr)); in TEST() 123 EXPECT_FALSE(group_file.FindById(3, nullptr)); in TEST() 161 EXPECT_FALSE(passwd_file.FindById(50, nullptr)); in TEST() 197 EXPECT_FALSE(group_file.FindById(799, nullptr)); in TEST() 217 EXPECT_FALSE(passwd_file.FindById(1, nullptr)); in TEST() 239 EXPECT_FALSE(group_file.FindById(1, nullptr)); in TEST()
|
/bionic/libc/bionic/ |
D | grp_pwd_file.h | 43 bool FindById(uid_t uid, Line* line); 75 bool FindById(uid_t id, passwd_state_t* passwd_state); 91 bool FindById(gid_t id, group_state_t* group_state);
|
D | grp_pwd_file.cpp | 290 bool MmapFile::FindById(uid_t uid, Line* line) { in FindById() function in MmapFile 324 bool PasswdFile::FindById(uid_t id, passwd_state_t* passwd_state) { in FindById() function in PasswdFile 327 return mmap_file_.FindById(id, &passwd_line) && passwd_line.ToPasswdState(passwd_state); in FindById() 340 bool GroupFile::FindById(gid_t id, group_state_t* group_state) { in FindById() function in GroupFile 343 return mmap_file_.FindById(id, &group_line) && group_line.ToGroupState(group_state); in FindById()
|
D | grp_pwd.cpp | 438 if (passwd_file.FindById(uid, state)) { in oem_id_to_passwd() 459 if (group_file.FindById(gid, state)) { in oem_id_to_group()
|