/build/make/tools/aconfig/aconfig_storage_read_api/include/aconfig_storage/ |
D | aconfig_storage_read_api.hpp | 63 class Result { class 66 Result() in Result() function in aconfig_storage::Result 72 Result(T const& value) in Result() function in aconfig_storage::Result 105 Result<MappedStorageFile*> get_mapped_file_impl( 112 Result<MappedStorageFile*> map_storage_file( 119 Result<FlagValueType> map_to_flag_value_type( 126 Result<MappedStorageFile*> get_mapped_file( 133 Result<uint32_t> get_storage_file_version( 140 Result<PackageReadContext> get_package_read_context( 149 Result<FlagReadContext> get_flag_read_context( [all …]
|
/build/make/tools/aconfig/aconfig_storage_read_api/ |
D | aconfig_storage_read_api.cpp | 22 static Result<std::string> find_storage_file( in find_storage_file() 36 auto result = Result<std::string>(); in find_storage_file() 45 Result<MappedStorageFile*> get_mapped_file_impl( in get_mapped_file_impl() 51 auto result = Result<MappedStorageFile*>(); in get_mapped_file_impl() 61 Result<MappedStorageFile*> map_storage_file(std::string const& file) { in map_storage_file() 64 auto result = Result<MappedStorageFile*>(); in map_storage_file() 71 auto result = Result<MappedStorageFile*>(); in map_storage_file() 79 auto result = Result<MappedStorageFile*>(); in map_storage_file() 92 Result<FlagValueType> map_to_flag_value_type( in map_to_flag_value_type() 100 auto result = Result<FlagValueType>(); in map_to_flag_value_type() [all …]
|
/build/make/tools/aconfig/aconfig_storage_write_api/include/aconfig_storage/ |
D | aconfig_storage_write_api.hpp | 16 android::base::Result<MutableMappedStorageFile*> map_mutable_storage_file( 20 android::base::Result<void> set_boolean_flag_value( 26 android::base::Result<void> set_flag_has_server_override( 33 android::base::Result<void> set_flag_has_local_override( 43 android::base::Result<void> create_flag_info(
|
/build/make/tools/aconfig/aflags/src/ |
D | device_config_source.rs | 20 use anyhow::{anyhow, bail, Result}; 28 fn parse_device_config(raw: &str) -> Result<HashMap<String, FlagValue>> { in parse_device_config() 42 fn read_device_config_output(command: &[&str]) -> Result<String> { in read_device_config_output() 61 fn read_device_config_flags() -> Result<HashMap<String, FlagValue>> { in read_device_config_flags() 73 fn parse_staged_flags(raw: &str) -> Result<HashMap<String, FlagValue>> { in parse_staged_flags() 90 fn read_staged_flags() -> Result<HashMap<String, FlagValue>> { in read_staged_flags() 121 fn list_flags() -> Result<Vec<Flag>> { in list_flags() 130 fn override_flag(namespace: &str, qualified_name: &str, value: &str) -> Result<()> { in override_flag() argument
|
D | aconfig_storage_source.rs | 2 use anyhow::{anyhow, Result}; 14 fn list_flags() -> Result<Vec<Flag>> { in list_flags() 52 fn override_flag(_namespace: &str, _qualified_name: &str, _value: &str) -> Result<()> { in override_flag() argument
|
D | main.rs | 19 use anyhow::{anyhow, ensure, Result}; 37 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt() argument 56 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt() argument 77 fn try_from(value: &str) -> std::result::Result<Self, Self::Error> { in try_from() 87 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt() argument 125 fn list_flags() -> Result<Vec<Flag>>; in list_flags() 126 fn override_flag(namespace: &str, qualified_name: &str, value: &str) -> Result<()>; in override_flag() argument 235 fn set_flag(qualified_name: &str, value: &str) -> Result<()> { in set_flag() argument 251 fn list(source_type: FlagSourceType, container: Option<String>) -> Result<String> { in list()
|
D | load_protos.rs | 6 use anyhow::Result; 49 pub(crate) fn load() -> Result<Vec<Flag>> { in load()
|
/build/make/tools/aconfig/aconfig_storage_write_api/ |
D | aconfig_storage_write_api.cpp | 16 android::base::Result<MutableMappedStorageFile*> map_mutable_storage_file( in map_mutable_storage_file() 48 android::base::Result<void> set_boolean_flag_value( in set_boolean_flag_value() 62 android::base::Result<void> set_flag_has_server_override( in set_flag_has_server_override() 78 android::base::Result<void> set_flag_has_local_override( in set_flag_has_local_override() 93 android::base::Result<void> create_flag_info( in create_flag_info()
|
/build/make/tools/aconfig/aconfig_storage_write_api/src/ |
D | test_utils.rs | 17 use anyhow::Result; 22 pub(crate) fn copy_to_temp_file(source_file: &str, read_only: bool) -> Result<NamedTempFile> { in copy_to_temp_file()
|
D | flag_info_update.rs | 29 ) -> Result<usize, AconfigStorageError> { in get_flag_info_offset() 57 ) -> Result<(u8, usize), AconfigStorageError> { in get_flag_attribute_and_offset() 70 ) -> Result<(), AconfigStorageError> { in update_flag_has_server_override() argument 85 ) -> Result<(), AconfigStorageError> { in update_flag_has_local_override() argument
|
/build/make/tools/aconfig/aconfig_storage_file/src/ |
D | protos.rs | 51 use anyhow::Result; 60 pub fn try_from_binary_proto(bytes: &[u8]) -> Result<ProtoStorageFiles> { in try_from_binary_proto() 66 pub fn verify_fields(storage_files: &ProtoStorageFiles) -> Result<()> { in verify_fields() argument 87 pub fn get_binary_proto_from_text_proto(text_proto: &str) -> Result<Vec<u8>> { in get_binary_proto_from_text_proto() 94 pub fn write_proto_to_temp_file(text_proto: &str) -> Result<NamedTempFile> { in write_proto_to_temp_file()
|
D | flag_info.rs | 38 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 72 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 107 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 128 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 149 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 171 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 181 .collect::<Result<Vec<_>, AconfigStorageError>>() in from_bytes()
|
D | package_table.rs | 39 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 74 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 107 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 131 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 163 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 188 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 205 .collect::<Result<Vec<_>, AconfigStorageError>>() in from_bytes()
|
D | flag_table.rs | 42 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 77 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 110 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 135 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 166 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 192 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 209 .collect::<Result<Vec<_>, AconfigStorageError>>() in from_bytes()
|
D | flag_value.rs | 38 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 72 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes() 100 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument 120 pub fn from_bytes(bytes: &[u8]) -> Result<Self, AconfigStorageError> { in from_bytes()
|
/build/make/tools/aconfig/aconfig/src/storage/ |
D | flag_table.rs | 24 use anyhow::{anyhow, Result}; 65 fn create_nodes(package: &FlagPackage, num_buckets: u32) -> Result<Vec<Self>> { in create_nodes() 85 .collect::<Result<Vec<_>>>() in create_nodes() 89 pub fn create_flag_table(container: &str, packages: &[FlagPackage]) -> Result<FlagTable> { in create_flag_table() 99 .collect::<Result<Vec<_>>>()? in create_flag_table() 144 fn create_test_flag_table_from_source() -> Result<FlagTable> { in create_test_flag_table_from_source()
|
D | flag_value.rs | 21 use anyhow::{anyhow, Result}; 34 pub fn create_flag_value(container: &str, packages: &[FlagPackage]) -> Result<FlagValueList> { in create_flag_value() 67 pub fn create_test_flag_value_list_from_source() -> Result<FlagValueList> { in create_test_flag_value_list_from_source()
|
D | package_table.rs | 17 use anyhow::Result; 59 pub fn create_package_table(container: &str, packages: &[FlagPackage]) -> Result<PackageTable> { in create_package_table() 112 pub fn create_test_package_table_from_source() -> Result<PackageTable> { in create_test_package_table_from_source()
|
/build/make/tools/aconfig/aconfig_storage_file/include/aconfig_storage/ |
D | aconfig_storage_file.hpp | 21 android::base::Result<std::vector<FlagValueSummary>> list_flags( 42 android::base::Result<std::vector<FlagValueAndInfoSummary>> list_flags_with_info(
|
/build/make/tools/aconfig/aconfig_storage_read_api/src/ |
D | lib.rs | 77 ) -> Result<Mmap, AconfigStorageError> { in get_mapped_storage_file() 93 ) -> Result<Option<PackageReadContext>, AconfigStorageError> { in get_package_read_context() 111 ) -> Result<Option<FlagReadContext>, AconfigStorageError> { in get_flag_read_context() 123 pub fn get_boolean_flag_value(file: &Mmap, index: u32) -> Result<bool, AconfigStorageError> { in get_boolean_flag_value() 133 pub fn get_storage_file_version(file_path: &str) -> Result<u32, AconfigStorageError> { in get_storage_file_version() 162 ) -> Result<u8, AconfigStorageError> { in get_flag_attribute() 240 offset_result: Result<Option<PackageReadContext>, AconfigStorageError>, in new() 272 pub(crate) fn new(offset_result: Result<Option<FlagReadContext>, AconfigStorageError>) -> Self { in new() 303 pub(crate) fn new(value_result: Result<bool, AconfigStorageError>) -> Self { in new() 319 pub(crate) fn new(info_result: Result<u8, AconfigStorageError>) -> Self { in new() [all …]
|
/build/make/tools/product_config/test/com/android/build/config/ |
D | TestRunner.java | 21 import org.junit.runner.Result; 42 Result result = junit.run(CsvParserTest.class, in main()
|
/build/make/tools/aconfig/aconfig_device_paths/src/ |
D | lib.rs | 19 use anyhow::Result; 34 pub fn parsed_flags_proto_paths() -> Result<Vec<PathBuf>> { in parsed_flags_proto_paths()
|
/build/make/tools/aconfig/aconfig_protos/src/ |
D | lib.rs | 69 use anyhow::Result; 104 fn try_from_text_proto<T>(s: &str) -> Result<T> in try_from_text_proto() 127 pub fn verify_fields(pdf: &ProtoFlagDeclaration) -> Result<()> { in verify_fields() argument 155 pub fn try_from_text_proto(s: &str) -> Result<ProtoFlagDeclarations> { in try_from_text_proto() 162 pub fn verify_fields(pdf: &ProtoFlagDeclarations) -> Result<()> { in verify_fields() argument 189 pub fn verify_fields(fv: &ProtoFlagValue) -> Result<()> { in verify_fields() argument 214 pub fn try_from_text_proto(s: &str) -> Result<ProtoFlagValues> { in try_from_text_proto() 221 pub fn verify_fields(pfv: &ProtoFlagValues) -> Result<()> { in verify_fields() argument 235 pub fn parse_from_str(permission: &str) -> Result<ProtoFlagPermission> { in parse_from_str() 258 pub fn verify_fields(tp: &ProtoTracepoint) -> Result<()> { in verify_fields() argument [all …]
|
/build/make/tools/aconfig/aconfig/src/codegen/ |
D | mod.rs | 22 use anyhow::{ensure, Result}; 25 pub fn create_device_config_ident(package: &str, flag_name: &str) -> Result<String> { in create_device_config_ident() 40 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt() argument
|
/build/make/tools/aconfig/aconfig_storage_read_api/srcs/ |
D | lib.rs | 8 use anyhow::Result; 18 ) -> Result<Option<PackageReadContext>> { in get_package_read_context_java() 75 ) -> Result<Option<FlagReadContext>> { in get_flag_read_context_java() 132 ) -> Result<bool> { in get_boolean_flag_value_java()
|