Lines Matching refs:user_id
843 let user_id = uid_to_android_user(uid); in remove_legacy_keystore_entry() localVariable
844 self.remove_user_dir_if_empty(user_id) in remove_legacy_keystore_entry()
852 let user_id = uid_to_android_user(uid); in list_legacy_keystore_entries_for_uid() localVariable
853 path.push(format!("user_{}", user_id)); in list_legacy_keystore_entries_for_uid()
894 user_id: u32, in list_legacy_keystore_entries_for_user()
896 let user_entries = self.list_user(user_id).context(ks_err!("Trying to list user."))?; in list_legacy_keystore_entries_for_user()
926 let user_id = uid_to_android_user(uid); in make_legacy_keystore_entry_filename() localVariable
928 path.push(format!("user_{}", user_id)); in make_legacy_keystore_entry_filename()
936 let user_id = uid_to_android_user(uid); in make_blob_filename() localVariable
938 let mut path = self.make_user_path_name(user_id); in make_blob_filename()
946 let user_id = uid_to_android_user(uid); in make_chr_filename() localVariable
948 let mut path = self.make_user_path_name(user_id); in make_chr_filename()
953 fn make_super_key_filename(&self, user_id: u32) -> PathBuf { in make_super_key_filename()
954 let mut path = self.make_user_path_name(user_id); in make_super_key_filename()
959 fn make_user_path_name(&self, user_id: u32) -> PathBuf { in make_user_path_name()
961 path.push(&format!("user_{}", user_id)); in make_user_path_name()
983 pub fn is_empty_user(&self, user_id: u32) -> Result<bool> { in is_empty_user()
985 user_path.push(format!("user_{}", user_id)); in is_empty_user()
1008 fn list_user(&self, user_id: u32) -> Result<Vec<String>> { in list_user()
1009 let path = self.make_user_path_name(user_id); in list_user()
1034 user_id: u32, in list_keystore_entries_for_user()
1036 let user_entries = self.list_user(user_id).context(ks_err!("Trying to list user."))?; in list_keystore_entries_for_user()
1055 let user_id = uid_to_android_user(uid); in list_keystore_entries_for_uid() localVariable
1057 let user_entries = self.list_user(user_id).context(ks_err!("Trying to list user."))?; in list_keystore_entries_for_uid()
1138 let user_id = uid_to_android_user(uid); in remove_keystore_entry() localVariable
1139 self.remove_user_dir_if_empty(user_id) in remove_keystore_entry()
1223 fn remove_user_dir_if_empty(&self, user_id: u32) -> Result<()> { in remove_user_dir_if_empty()
1224 if self.is_empty_user(user_id).context(ks_err!("Trying to check for empty user dir."))? { in remove_user_dir_if_empty()
1225 let user_path = self.make_user_path_name(user_id); in remove_user_dir_if_empty()
1302 pub fn has_super_key(&self, user_id: u32) -> bool { in has_super_key()
1303 self.make_super_key_filename(user_id).is_file() in has_super_key()
1307 pub fn load_super_key(&self, user_id: u32, pw: &Password) -> Result<Option<ZVec>> { in load_super_key()
1308 let path = self.make_super_key_filename(user_id); in load_super_key()
1340 pub fn remove_super_key(&self, user_id: u32) { in remove_super_key()
1341 let path = self.make_super_key_filename(user_id); in remove_super_key()
1343 if self.is_empty_user(user_id).ok().unwrap_or(false) { in remove_super_key()
1344 let path = self.make_user_path_name(user_id); in remove_super_key()