Home
last modified time | relevance | path

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

/trusty/user/base/lib/storage/rust/src/
Dtest.rs1 use crate::{Error, ErrorCode, FileState, OpenMode, Port, Session};
80 let mut file = session.open_file(file_name, OpenMode::Open).unwrap(); in read_at()
110 let mut file = session.open_file(file_name, OpenMode::Create).unwrap(); in write_at()
153 let mut file = session.open_file(file_name, OpenMode::Create).unwrap(); in get_set_size()
188 session.open_file(before_name, OpenMode::Open).unwrap_err(); in rename_delete()
189 session.open_file(after_name, OpenMode::Open).unwrap_err(); in rename_delete()
197 session.open_file(before_name, OpenMode::Open).unwrap_err(); in rename_delete()
203 session.open_file(after_name, OpenMode::Open).unwrap_err(); in rename_delete()
217 let file = session.open_file(file_name, OpenMode::CreateExclusive).unwrap(); in cannot_rename_open_file()
251 let mut file_a = transaction.open_file(file_a, OpenMode::CreateExclusive).unwrap(); in multiple_files_in_transaction()
[all …]
Dlib.rs234 pub fn open_file(&mut self, name: &str, mode: OpenMode) -> Result<SecureFile, Error> { in open_file()
251 mode: OpenMode, in open_file_impl() argument
254 use OpenMode::*; in open_file_impl()
302 let file = self.open_file_impl(path, OpenMode::Open, false)?; in read()
323 let mut file = self.open_file_impl(path, OpenMode::Create, false)?; in write()
859 pub enum OpenMode { enum
886 impl Default for OpenMode { implementation
888 OpenMode::Open in default()
Dtransaction.rs1 use crate::{sys, DirIter, Error, OpenMode, SecureFile, Session};
62 pub fn open_file(&mut self, name: &str, mode: OpenMode) -> Result<SecureFile, Error> { in open_file()
/trusty/user/app/secretkeeper/
Dstore.rs26 use storage::{OpenMode, Port, Session};
73 .open_file(&filename, OpenMode::Create) in store()
82 let file = match session.open_file(&filename, OpenMode::Open) { in get()
/trusty/user/app/keymint/
Dsecure_storage_manager.rs32 use storage::{OpenMode, Port, SecureFile, Session};
74 let secure_file = session.open_file(file_name, OpenMode::Create).map_err(|e| { in new()
299 let file = match session.open_file(file_name, OpenMode::Open) { in get_file_contents()
510 session.open_file(&file_name, OpenMode::Open).is_ok() in check_key_file_exists()
522 session.open_file(KM_ATTESTATION_ID_FILENAME, OpenMode::Open).is_ok() in check_attestation_id_file_exists()
Dsecure_deletion_secret_manager.rs26 use storage::{self as storage_session, OpenMode, Port, SecureFile, Session, Transaction};
122 .open_file(SECURE_DELETION_SECRET_FILENAME, OpenMode::Create) in open_or_create()
676 session.open_file(SECURE_DELETION_SECRET_FILENAME, OpenMode::Open).is_ok() in secret_manager_file_exists()