Searched refs:FindById (Results 1 – 4 of 4) sorted by relevance
/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 | 292 bool MmapFile::FindById(uid_t uid, Line* line) { in FindById() function in MmapFile 326 bool PasswdFile::FindById(uid_t id, passwd_state_t* passwd_state) { in FindById() function in PasswdFile 329 return mmap_file_.FindById(id, &passwd_line) && passwd_line.ToPasswdState(passwd_state); in FindById() 342 bool GroupFile::FindById(gid_t id, group_state_t* group_state) { in FindById() function in GroupFile 345 return mmap_file_.FindById(id, &group_line) && group_line.ToGroupState(group_state); in FindById()
|
D | grp_pwd.cpp | 432 if (vendor_passwd.FindById(uid, state)) { in oem_id_to_passwd() 454 if (vendor_group.FindById(gid, state)) { in oem_id_to_group()
|
/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()
|