/system/nvram/core/ |
D | persistence.cpp | 46 storage::Status EncodeObject(const Object& object, Blob* blob) { in EncodeObject() 53 return storage::Status::kStorageError; in EncodeObject() 55 return storage::Status::kSuccess; in EncodeObject() 67 storage::Status DecodeObject(const Blob& blob, Object* object) { in DecodeObject() 74 return storage::Status::kStorageError; in DecodeObject() 76 return storage::Status::kSuccess; in DecodeObject() 99 storage::Status LoadHeader(NvramHeader* header) { in LoadHeader() 101 storage::Status status = storage::LoadHeader(&blob); in LoadHeader() 102 if (status != storage::Status::kSuccess) { in LoadHeader() 108 storage::Status StoreHeader(const NvramHeader& header) { in StoreHeader() [all …]
|
D | nvram_manager.cpp | 28 using namespace nvram::storage; 93 storage::Status SanitizeStorageStatus(storage::Status status) { in SanitizeStorageStatus() 95 case storage::Status::kSuccess: in SanitizeStorageStatus() 96 return storage::Status::kSuccess; in SanitizeStorageStatus() 97 case storage::Status::kNotFound: in SanitizeStorageStatus() 98 return storage::Status::kNotFound; in SanitizeStorageStatus() 99 case storage::Status::kStorageError: in SanitizeStorageStatus() 100 return storage::Status::kStorageError; in SanitizeStorageStatus() 103 return storage::Status::kStorageError; in SanitizeStorageStatus() 352 case storage::Status::kStorageError: in DeleteSpace() [all …]
|
/system/nvram/hal/ |
D | fake_nvram_storage.cpp | 65 nvram::storage::Status DeleteFile(const char* name) { in DeleteFile() 68 return nvram::storage::Status::kNotFound; in DeleteFile() 71 return nvram::storage::Status::kStorageError; in DeleteFile() 74 return nvram::storage::Status::kSuccess; in DeleteFile() 78 nvram::storage::Status LoadFile(const char* name, nvram::Blob* blob) { in LoadFile() 83 return nvram::storage::Status::kNotFound; in LoadFile() 86 return nvram::storage::Status::kStorageError; in LoadFile() 92 return nvram::storage::Status::kStorageError; in LoadFile() 97 return nvram::storage::Status::kStorageError; in LoadFile() 102 return nvram::storage::Status::kStorageError; in LoadFile() [all …]
|
/system/bt/gd/storage/ |
D | storage_module_test.cc | 40 using bluetooth::storage::ConfigCache; 41 using bluetooth::storage::Device; 42 using bluetooth::storage::LegacyConfigFile; 43 using bluetooth::storage::StorageModule; 137 …auto* storage = new TestStorageModule(temp_config_.string(), kTestConfigSaveDelay, 10, false, fals… in TEST_F() local 139 test_registry.InjectTestModule(&StorageModule::Factory, storage); in TEST_F() 212 …auto* storage = new TestStorageModule(temp_config_.string(), kTestConfigSaveDelay, 10, false, fals… in TEST_F() local 214 test_registry.InjectTestModule(&StorageModule::Factory, storage); in TEST_F() 217 ASSERT_NE(storage->GetConfigCachePublic(), nullptr); in TEST_F() 218 ASSERT_TRUE(storage->GetConfigCachePublic()->HasSection("Metrics")); in TEST_F() [all …]
|
D | le_device.h | 28 namespace storage { 92 struct hash<bluetooth::storage::LeDevice> { 93 std::size_t operator()(const bluetooth::storage::LeDevice& val) const noexcept { 94 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_); 95 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
|
D | adapter_config_test.cc | 28 using bluetooth::storage::AdapterConfig; 29 using bluetooth::storage::ConfigCache; 30 using bluetooth::storage::Device; 31 using bluetooth::storage::Mutation;
|
D | classic_device.h | 30 namespace storage { 100 struct hash<bluetooth::storage::ClassicDevice> { 101 std::size_t operator()(const bluetooth::storage::ClassicDevice& val) const noexcept { 102 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_); 103 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
|
D | le_device_test.cc | 31 using bluetooth::storage::ConfigCache; 32 using bluetooth::storage::Device; 33 using bluetooth::storage::LeDevice; 34 using bluetooth::storage::Mutation;
|
D | classic_device_test.cc | 31 using bluetooth::storage::ClassicDevice; 32 using bluetooth::storage::ConfigCache; 33 using bluetooth::storage::Device; 34 using bluetooth::storage::Mutation;
|
D | device.h | 36 namespace storage { 197 struct hash<bluetooth::storage::Device> { 198 std::size_t operator()(const bluetooth::storage::Device& val) const noexcept { 199 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_); 200 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
|
D | mutation_test.cc | 27 using bluetooth::storage::ConfigCache; 28 using bluetooth::storage::Device; 29 using bluetooth::storage::Mutation; 30 using bluetooth::storage::MutationEntry;
|
/system/nvram/core/tests/ |
D | nvram_manager_test.cpp | 36 storage::Clear(); in NvramManagerTest() 44 ASSERT_EQ(storage::Status::kSuccess, persistence::StoreHeader(header)); in SetupHeader() 85 ASSERT_EQ(storage::Status::kSuccess, persistence::StoreSpace(1, space)); in TEST_F() 87 ASSERT_EQ(storage::Status::kSuccess, storage::LoadSpace(1, &space_blob)); in TEST_F() 89 ASSERT_EQ(storage::Status::kSuccess, storage::StoreSpace(1, space_blob)); in TEST_F() 96 ASSERT_EQ(storage::Status::kSuccess, persistence::StoreHeader(header)); in TEST_F() 98 ASSERT_EQ(storage::Status::kSuccess, storage::LoadHeader(&header_blob)); in TEST_F() 100 ASSERT_EQ(storage::Status::kSuccess, storage::StoreHeader(header_blob)); in TEST_F() 125 ASSERT_EQ(storage::Status::kSuccess, persistence::StoreSpace(1, space)); in TEST_F() 127 ASSERT_EQ(storage::Status::kSuccess, persistence::StoreSpace(2, space)); in TEST_F() [all …]
|
/system/nvram/core/include/nvram/core/ |
D | persistence.h | 131 storage::Status LoadHeader(NvramHeader* header); 134 storage::Status StoreHeader(const NvramHeader& header); 137 storage::Status LoadSpace(uint32_t index, NvramSpace* space); 140 storage::Status StoreSpace(uint32_t index, const NvramSpace& space); 143 storage::Status DeleteSpace(uint32_t index);
|
/system/core/libstats/socket/ |
D | stats_event_list.c | 38 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD]; member 58 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in reset_log_context() 78 context->storage[1] = context->count[0]; in stats_write_list() 80 msg = (const char*)context->storage; in stats_write_list() 148 context->storage[context->pos + 0] = EVENT_TYPE_STRING; in android_log_write_char_array() 149 copy4LE(&context->storage[context->pos + 1], len); in android_log_write_char_array() 151 memcpy(&context->storage[context->pos + 5], value, len); in android_log_write_char_array()
|
/system/update_engine/ |
D | metrics_utils_unittest.cc | 140 int64_t storage = 0; in TEST() local 152 &fake_system_state, &storage, &duration)); in TEST() 156 &fake_system_state, &storage, &duration)); in TEST() 162 &fake_system_state, &storage, &duration)); in TEST() 165 &fake_system_state, &storage, &duration)); in TEST() 172 &fake_system_state, &storage, &duration)); in TEST() 175 &fake_system_state, &storage, &duration)); in TEST() 181 &fake_system_state, &storage, &duration)); in TEST() 184 &fake_system_state, &storage, &duration)); in TEST()
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | app.te | 8 # Apps can cause selinux denials by accessing CE storage 9 # and/or external storage. In either case, the selinux denial is 11 # storage isn't ready. Many apps handle the failure appropriately. 13 # Apps cannot access external storage before it becomes available. 16 # that apps are attempting to access encrypted storage before 18 # allowed to write to CE storage before it's available. 39 # Don't allow regular apps access to storage configuration properties.
|
/system/core/liblog/ |
D | log_event_list.cpp | 45 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD]; member 56 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in init_context() 65 memcpy(context->storage, msg, len); in init_parser_context() 155 auto* event_list = reinterpret_cast<android_event_list_t*>(&context->storage[context->pos]); in android_log_write_list_begin() 177 auto* event_int = reinterpret_cast<android_event_int_t*>(&context->storage[context->pos]); in android_log_write_int32() 197 auto* event_long = reinterpret_cast<android_event_long_t*>(&context->storage[context->pos]); in android_log_write_int64() 225 auto* event_string = reinterpret_cast<android_event_string_t*>(&context->storage[context->pos]); in android_log_write_string8_len() 252 auto* event_float = reinterpret_cast<android_event_float_t*>(&context->storage[context->pos]); in android_log_write_float32() 277 context->storage[context->list[context->list_nest_depth]] = in android_log_write_list_end() 301 context->storage[1] = context->count[0]; in android_log_write_list() [all …]
|
/system/sepolicy/private/ |
D | app.te | 19 # Apps can cause selinux denials by accessing CE storage 20 # and/or external storage. In either case, the selinux denial is 22 # storage isn't ready. Many apps handle the failure appropriately. 24 # Apps cannot access external storage before it becomes available. 27 # that apps are attempting to access encrypted storage before 29 # allowed to write to CE storage before it's available. 50 # Don't allow regular apps access to storage configuration properties.
|
/system/core/libstats/push_compat/ |
D | stats_event_list.c | 38 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD]; member 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in reset_log_context() 83 context->storage[1] = context->count[0]; in stats_write_list() 85 msg = (const char*)context->storage; in stats_write_list() 232 context->storage[context->pos + 0] = EVENT_TYPE_STRING; in android_log_write_char_array() 233 copy4LE(&context->storage[context->pos + 1], len); in android_log_write_char_array() 235 memcpy(&context->storage[context->pos + 5], value, len); in android_log_write_char_array()
|
/system/bt/gd/security/ |
D | security_module.cc | 46 storage::StorageModule* storage_module) in impl() 67 storage::StorageModule* storage_module_; 85 list->add<storage::StorageModule>(); in ListDependencies() 95 GetDependency<storage::StorageModule>()); in Start()
|
/system/chre/util/include/chre/util/ |
D | memory_impl.h | 114 auto *storage = static_cast<T *>(memoryAlloc(sizeof(T))); in memoryAlloc() local 115 if (storage != nullptr) { in memoryAlloc() 116 new(storage) T(std::forward<Args>(args)...); in memoryAlloc() 119 return storage; in memoryAlloc()
|
/system/core/libcutils/ |
D | native_handle.cpp | 25 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) { in native_handle_init() argument 26 if ((uintptr_t) storage % alignof(native_handle_t)) { in native_handle_init() 31 native_handle_t* handle = (native_handle_t*) storage; in native_handle_init()
|
/system/bt/main/shim/ |
D | stack.cc | 55 modules.add<storage::StorageModule>(); in StartIdleMode() 58 ASSERT(stack_manager_.GetInstance<storage::StorageModule>() != nullptr); in StartIdleMode() 83 modules.add<storage::StorageModule>(); in StartEverything() 88 ASSERT(stack_manager_.GetInstance<storage::StorageModule>() != nullptr); in StartEverything()
|
/system/core/libutils/include/utils/ |
D | VectorImpl.h | 102 virtual void do_construct(void* storage, size_t num) const = 0; 103 virtual void do_destroy(void* storage, size_t num) const = 0; 113 inline void _do_construct(void* storage, size_t num) const; 114 inline void _do_destroy(void* storage, size_t num) const;
|
D | SortedVector.h | 145 virtual void do_construct(void* storage, size_t num) const; 146 virtual void do_destroy(void* storage, size_t num) const; 257 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_construct(void* storage, size_t num) const { in do_construct() argument 258 construct_type( reinterpret_cast<TYPE*>(storage), num ); in do_construct() 262 void SortedVector<TYPE>::do_destroy(void* storage, size_t num) const { in do_destroy() argument 263 destroy_type( reinterpret_cast<TYPE*>(storage), num ); in do_destroy()
|