/trusty/user/app/avb/ |
D | avb_manager.cpp | 42 char filename[kStorageIdLengthMax], in GetFilenameAndSlot() 57 strcpy(filename, kAvbRollbackFilename); in GetFilenameAndSlot() 61 strcat(filename, postfix); in GetFilenameAndSlot() 70 char filename[kStorageIdLengthMax]; in ReadRollbackIndex() local 71 if (GetFilenameAndSlot(request.get_slot(), filename, &slot) < 0) { in ReadRollbackIndex() 77 int rc = storage_->open(filename); in ReadRollbackIndex() 80 TLOGE("Error: failed to open file %s: %d\n", filename, rc); in ReadRollbackIndex() 87 TLOGE("Error: failed to get size of file %s: %d\n", filename, rc); in ReadRollbackIndex() 122 char filename[kStorageIdLengthMax]; in WriteRollbackIndex() local 123 if (GetFilenameAndSlot(request.get_slot(), filename, &slot) < 0) { in WriteRollbackIndex() [all …]
|
D | secure_storage_interface.h | 38 virtual int open(const char* filename) = 0; 43 virtual int delete_file(const char* filename) = 0;
|
/trusty/user/app/secretkeeper/ |
D | store.rs | 33 fn filename(key: &[u8]) -> String { in filename() function 68 let filename = filename(key); in store() localVariable 73 .open_file(&filename, OpenMode::Create) in store() 80 let filename = filename(key); in get() localVariable 82 let file = match session.open_file(&filename, OpenMode::Open) { in get() 100 let filename = filename(key); in delete() localVariable 102 match session.remove(&filename) { in delete() 114 Ok((filename, _state)) if filename.starts_with(PREFIX_V1) => { in delete_all() 116 .remove(&filename) in delete_all() 122 Ok((filename, _state)) => log::info!("Skipping unrelated file {filename}"), in delete_all()
|
/trusty/user/app/keymaster/ |
D | secure_storage_manager.h | 234 bool SecureStorageGetFileSize(const char* filename, uint64_t* size); 235 bool SecureStorageDeleteFile(const char* filename); 250 const char filename[], 254 const char filename[]); 268 keymaster_error_t LegacySecureStorageRead(const char* filename, 272 keymaster_error_t LegacySecureStorageWrite(const char* filename,
|
D | secure_storage_manager.cpp | 741 const char filename[], in EncodeToFile() argument 745 session_handle_, filename, in EncodeToFile() 748 LOG_E("Error: failed to open file '%s': %d\n", filename, rc); in EncodeToFile() 756 LOG_E("Error: encoding fields to file '%s'", filename); in EncodeToFile() 767 filename, rc); in EncodeToFile() 777 const char filename[]) { in DecodeFromFile() argument 780 int rc = file.open_file(session_handle_, filename, 0, 0); in DecodeFromFile() 786 LOG_E("Error: failed to open file '%s': %d\n", filename, rc); in DecodeFromFile() 792 filename, rc); in DecodeFromFile() 800 LOG_E("Error: decoding fields from file '%s'", filename); in DecodeFromFile() [all …]
|
/trusty/kernel/lib/ubsan/ |
D | ubsan_value.h | 36 const char* filename; member 42 return !!loc.filename; in location_is_valid()
|
D | ubsan.c | 148 location->filename, location->line, location->column, details); in log()
|
/trusty/user/base/lib/libc-trusty/ |
D | file_stubs.c | 25 FILE* fopen(const char* restrict filename, const char* restrict mode) { in fopen() argument
|
/trusty/vendor/google/aosp/scripts/ |
D | build.py | 216 filename = os.path.join(args.archive, "trusty_sdk-" + args.buildid + ".zip") 217 with ZipFile(filename, "a", compression=ZIP_DEFLATED) as sdk_archive: 248 for filename in project_keys: 249 archive_file(sdk_archive, filename, project_tools_dir) 407 filename = os.path.join(args.archive, f"{project}-{args.buildid}.syms.zip") 409 with ZipFile(filename, "a", compression=ZIP_DEFLATED) as zip_archive: 410 print("Archiving symbols in " + os.path.relpath(filename, args.archive)) 428 filename = os.path.join(args.archive, f"{project}-{args.buildid}.lst.zip") 430 with ZipFile(filename, "a", compression=ZIP_DEFLATED) as zip_archive: 431 print("Archiving .lst in " + os.path.relpath(filename, args.archive))
|
/trusty/user/app/storage/test/storage-unittest-aidl/unittests/ |
D | mod.rs | 154 for filename in filenames { in file_list() 155 let existed = read_file_names.replace(filename); in file_list()
|
/trusty/user/app/storage/test/storage_host_test/ |
D | storage_host_test.c | 302 const char* filename = "FileCreate"; in TEST_P() local 304 open_test_file(&_state->tr, &file, filename, FILE_OPEN_CREATE_EXCLUSIVE); in TEST_P() 310 open_test_file(&_state->tr, &file, filename, FILE_OPEN_NO_CREATE); in TEST_P()
|
/trusty/user/app/storage/test/storage-unittest/ |
D | main.c | 903 char filename[10]; in TEST_F() local 908 snprintf(filename, sizeof(filename), fname_fmt, i); in TEST_F() 909 rc = storage_open_file(ss, &handles[i], filename, in TEST_F() 928 snprintf(filename, sizeof(filename), fname_fmt, i); in TEST_F() 929 rc = storage_open_file(ss, &handles[i], filename, 0, 0); in TEST_F() 943 snprintf(filename, sizeof(filename), fname_fmt, i); in TEST_F() 944 rc = storage_delete_file(ss, filename, STORAGE_OP_COMPLETE); in TEST_F()
|
/trusty/user/app/storage/test/block_host_test/ |
D | block_test.c | 2524 static void create_and_delete(struct transaction* tr, const char* filename) { in create_and_delete() argument 2526 open_test_file_etc(tr, &file, filename, FILE_OPEN_CREATE_EXCLUSIVE, in create_and_delete() 2532 file_delete(tr, filename, false); in create_and_delete()
|