Home
last modified time | relevance | path

Searched refs:StorageFileType (Results 1 – 23 of 23) sorted by relevance

/build/make/tools/aconfig/aconfig_storage_read_api/src/
Dmapped_file.rs22 use crate::StorageFileType;
52 file_type: StorageFileType, in get_mapped_file() argument
55 StorageFileType::PackageMap => { in get_mapped_file()
58 StorageFileType::FlagMap => String::from(storage_dir) + "/maps/" + container + ".flag.map", in get_mapped_file()
59 StorageFileType::FlagVal => String::from(storage_dir) + "/boot/" + container + ".val", in get_mapped_file()
60 StorageFileType::FlagInfo => String::from(storage_dir) + "/boot/" + container + ".info", in get_mapped_file()
75 fn map_and_verify(storage_dir: &str, file_type: StorageFileType, actual_file: &str) { in map_and_verify() argument
111 map_and_verify(&storage_dir, StorageFileType::PackageMap, "./tests/package.map"); in test_mapped_file_contents()
112 map_and_verify(&storage_dir, StorageFileType::FlagMap, "./tests/flag.map"); in test_mapped_file_contents()
113 map_and_verify(&storage_dir, StorageFileType::FlagVal, "./tests/flag.val"); in test_mapped_file_contents()
[all …]
Dlib.rs45 pub use aconfig_storage_file::{AconfigStorageError, FlagValueType, StorageFileType};
76 file_type: StorageFileType, in get_mapped_storage_file() argument
428 get_mapped_file(&storage_dir, "mockup", StorageFileType::PackageMap).unwrap() in test_package_context_query()
458 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagMap).unwrap() }; in test_flag_context_query()
483 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagVal).unwrap() }; in test_flag_value_query()
496 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagInfo).unwrap() }; in test_flag_info_query()
/build/make/tools/aconfig/aconfig_storage_file/src/
Dmain.rs21 FlagTable, FlagValueList, PackageTable, StorageFileType,
36 .value_parser(|s: &str| StorageFileType::try_from(s)), in cli()
57 file_type: &StorageFileType, in print_storage_file() argument
61 StorageFileType::PackageMap => { in print_storage_file()
65 StorageFileType::FlagMap => { in print_storage_file()
69 StorageFileType::FlagVal => { in print_storage_file()
73 StorageFileType::FlagInfo => { in print_storage_file()
86 let file_type = sub_matches.get_one::<StorageFileType>("type").unwrap(); in main()
Dtest_utils.rs21 use crate::{AconfigStorageError, StorageFileType, StoredFlagType};
31 file_type: StorageFileType::PackageMap as u8, in create_test_package_table()
83 file_type: StorageFileType::FlagMap as u8, in create_test_flag_table()
125 file_type: StorageFileType::FlagVal as u8, in create_test_flag_value_list()
138 file_type: StorageFileType::FlagInfo as u8, in create_test_flag_info_list()
Dflag_value.rs21 use crate::{AconfigStorageError, StorageFileType};
44 StorageFileType::try_from(self.file_type), in fmt()
82 if list.file_type != StorageFileType::FlagVal as u8 { in from_bytes()
Dflag_info.rs21 use crate::{AconfigStorageError, StorageFileType};
44 StorageFileType::try_from(self.file_type), in fmt()
82 if list.file_type != StorageFileType::FlagInfo as u8 { in from_bytes()
Dpackage_table.rs21 use crate::{AconfigStorageError, StorageFileType};
45 StorageFileType::try_from(self.file_type), in fmt()
85 if table.file_type != StorageFileType::PackageMap as u8 { in from_bytes()
Dflag_table.rs24 use crate::{AconfigStorageError, StorageFileType, StoredFlagType};
48 StorageFileType::try_from(self.file_type), in fmt()
88 if table.file_type != StorageFileType::FlagMap as u8 { in from_bytes()
Dlib.rs70 pub enum StorageFileType { enum
77 impl TryFrom<&str> for StorageFileType { implementation
93 impl TryFrom<u8> for StorageFileType { implementation
/build/make/tools/aconfig/aconfig_storage_read_api/tests/
Dstorage_read_api_test.rs3 use aconfig_storage_file::{FlagInfoBit, FlagValueType, StorageFileType, StoredFlagType};
43 get_mapped_file(&storage_dir, "vendor", StorageFileType::PackageMap).unwrap_err() in test_unavailable_stoarge()
60 get_mapped_file(&storage_dir, "mockup", StorageFileType::PackageMap).unwrap() in test_package_context_query()
91 get_mapped_file(&storage_dir, "mockup", StorageFileType::PackageMap).unwrap() in test_none_exist_package_context_query()
106 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagMap).unwrap() }; in test_flag_context_query()
132 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagMap).unwrap() }; in test_none_exist_flag_context_query()
148 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagVal).unwrap() }; in test_boolean_flag_value_query()
162 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagVal).unwrap() }; in test_invalid_boolean_flag_value_query()
176 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagInfo).unwrap() }; in test_flag_info_query()
193 unsafe { get_mapped_file(&storage_dir, "mockup", StorageFileType::FlagInfo).unwrap() }; in test_invalid_boolean_flag_info_query()
Dstorage_read_api_test.cpp98 storage_dir, "vendor", api::StorageFileType::package_map); in TEST_F()
108 storage_dir, "mockup", api::StorageFileType::package_map); in TEST_F()
137 storage_dir, "mockup", api::StorageFileType::package_map); in TEST_F()
150 storage_dir, "mockup", api::StorageFileType::flag_map); in TEST_F()
176 storage_dir, "mockup", api::StorageFileType::flag_map); in TEST_F()
192 storage_dir, "mockup", api::StorageFileType::flag_val); in TEST_F()
208 storage_dir, "mockup", api::StorageFileType::flag_val); in TEST_F()
221 storage_dir, "mockup", api::StorageFileType::flag_info); in TEST_F()
240 storage_dir, "mockup", api::StorageFileType::flag_info); in TEST_F()
/build/make/tools/aconfig/aconfig_storage_read_api/
Daconfig_storage_read_api.cpp25 StorageFileType file_type) { in find_storage_file()
27 case StorageFileType::package_map: in find_storage_file()
29 case StorageFileType::flag_map: in find_storage_file()
31 case StorageFileType::flag_val: in find_storage_file()
33 case StorageFileType::flag_info: in find_storage_file()
48 StorageFileType file_type) { in get_mapped_file_impl()
109 StorageFileType file_type) { in get_mapped_file()
/build/make/tools/aconfig/aconfig_storage_read_api/include/aconfig_storage/
Daconfig_storage_read_api.hpp11 enum StorageFileType { enum
108 StorageFileType file_type);
128 StorageFileType file_type);
/build/make/tools/aconfig/aconfig/src/storage/
Dmod.rs29 use aconfig_storage_file::StorageFileType;
89 file: &StorageFileType, in generate_storage_file() argument
97 StorageFileType::PackageMap => { in generate_storage_file()
101 StorageFileType::FlagMap => { in generate_storage_file()
105 StorageFileType::FlagVal => { in generate_storage_file()
Dflag_value.rs20 use aconfig_storage_file::{FlagValueHeader, FlagValueList, StorageFileType, FILE_VERSION};
27 file_type: StorageFileType::FlagVal as u8, in new_header()
Dpackage_table.rs20 get_table_size, PackageTable, PackageTableHeader, PackageTableNode, StorageFileType,
30 file_type: StorageFileType::PackageMap as u8, in new_header()
Dflag_table.rs21 get_table_size, FlagTable, FlagTableHeader, FlagTableNode, StorageFileType, StoredFlagType,
30 file_type: StorageFileType::FlagMap as u8, in new_header()
/build/make/tools/aconfig/aconfig_storage_read_api/srcs/android/aconfig/storage/
DAconfigStorageReadAPI.java38 public enum StorageFileType { enum in AconfigStorageReadAPI
55 StorageFileType type) throws IOException{ in getMappedFile()
/build/make/tools/aconfig/aconfig/templates/
Drust.template2 use aconfig_storage_read_api::\{Mmap, AconfigStorageError, StorageFileType, PackageReadContext, get…
18 get_mapped_storage_file("{container}", StorageFileType::PackageMap)
24 get_mapped_storage_file("{container}", StorageFileType::FlagVal)
133 …let package_map = match get_mapped_storage_file("{flag.container}", StorageFileType::PackageMap) \{
152 … let flag_val_map = match get_mapped_storage_file("{flag.container}", StorageFileType::FlagVal) \{
Dcpp_source_file.template125 aconfig_storage::StorageFileType::package_map);
142 aconfig_storage::StorageFileType::flag_val);
/build/make/tools/aconfig/aconfig/src/
Dmain.rs32 use aconfig_storage_file::StorageFileType;
153 .value_parser(|s: &str| StorageFileType::try_from(s)), in cli()
304 let file = get_required_arg::<StorageFileType>(sub_matches, "file") in main()
Dcommands.rs34 use aconfig_storage_file::StorageFileType;
260 file: &StorageFileType, in create_storage() argument
/build/make/tools/aconfig/aconfig_storage_write_api/src/
Dlib.rs29 PackageTable, StorageFileType, StoredFlagType, FILE_VERSION,
158 file_type: StorageFileType::FlagInfo as u8, in create_flag_info()