Home
last modified time | relevance | path

Searched refs:storage (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/system/nvram/core/
Dpersistence.cpp46 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 …]
Dnvram_manager.cpp28 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/
Dfake_nvram_storage.cpp65 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/
Dstorage_module_test.cc40 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 …]
Dadapter_config_test.cc26 using bluetooth::storage::AdapterConfig;
27 using bluetooth::storage::ConfigCache;
28 using bluetooth::storage::Device;
29 using bluetooth::storage::Mutation;
Dle_device.h29 namespace storage {
99 struct hash<bluetooth::storage::LeDevice> {
100 std::size_t operator()(const bluetooth::storage::LeDevice& val) const noexcept {
101 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
102 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
Dclassic_device.h30 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_);
Dle_device_test.cc29 using bluetooth::storage::ConfigCache;
30 using bluetooth::storage::Device;
31 using bluetooth::storage::LeDevice;
32 using bluetooth::storage::Mutation;
Dclassic_device_test.cc29 using bluetooth::storage::ClassicDevice;
30 using bluetooth::storage::ConfigCache;
31 using bluetooth::storage::Device;
32 using bluetooth::storage::Mutation;
Ddevice.h36 namespace storage {
207 struct hash<bluetooth::storage::Device> {
208 std::size_t operator()(const bluetooth::storage::Device& val) const noexcept {
209 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
210 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
/system/nvram/core/tests/
Dnvram_manager_test.cpp36 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/chre/platform/shared/include/chre/platform/shared/
Dmemory.h102 auto *storage = static_cast<T *>(memoryAllocDram(sizeof(T))); in memoryAllocDram() local
103 if (storage != nullptr) { in memoryAllocDram()
104 new (storage) T(std::forward<Args>(args)...); in memoryAllocDram()
107 return storage; in memoryAllocDram()
/system/nvram/core/include/nvram/core/
Dpersistence.h131 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/bt/gd/security/test/
Dfake_storage_module.h28 class FakeStorageModule : public storage::StorageModule {
30 …FakeStorageModule() : storage::StorageModule("/tmp/temp_config.txt", kTestConfigSaveDelay, 100, fa… in FakeStorageModule()
32 storage::ConfigCache* GetConfigCachePublic() { in GetConfigCachePublic()
/system/sepolicy/prebuilts/api/30.0/private/
Dapp.te8 # 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/logging/liblog/
Dlog_event_list.cpp45 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/bt/gd/hci/
Dhci_metrics_logging.h25 …std::unique_ptr<CommandView>& command_view, EventView packet, storage::StorageModule* storage_modu…
29 void log_link_layer_connection_other_hci_event(EventView packet, storage::StorageModule* storage_mo…
36 …const Address& address, uint32_t connection_handle, ErrorCode status, storage::StorageModule* stor…
/system/core/libstats/push_compat/
Dstats_event_list.c38 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/record/
Dsecurity_record_storage.cc28storage::Mutation& mutation, std::shared_ptr<record::SecurityRecord> record, storage::Device& devi… in SetClassicData()
39 void SetLeData(storage::Mutation& mutation, std::shared_ptr<record::SecurityRecord> record, storage in SetLeData()
94 void SetAuthenticationData(storage::Mutation& mutation, std::shared_ptr<record::SecurityRecord> rec… in SetAuthenticationData()
101 SecurityRecordStorage::SecurityRecordStorage(storage::StorageModule* storage_module, os::Handler* h… in SecurityRecordStorage()
107storage::Device device = storage_module_->GetDeviceByClassicMacAddress(record->GetPseudoAddress()-… in SaveSecurityRecords()
187 storage::Device device = storage_module_->GetDeviceByClassicMacAddress(address.GetAddress()); in RemoveDevice()
Dsecurity_record_storage.h42 SecurityRecordStorage(storage::StorageModule* storage_module, os::Handler* handler);
70 storage::StorageModule* storage_module_ __attribute__((unused));
/system/chre/util/include/chre/util/
Dmemory_impl.h114 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/bt/gd/security/
Dsecurity_module.cc48 storage::StorageModule* storage_module, in impl()
73 storage::StorageModule* storage_module_;
99 list->add<storage::StorageModule>(); in ListDependencies()
111 GetDependency<storage::StorageModule>(), in Start()
/system/core/libcutils/
Dnative_handle.cpp25 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/sepolicy/private/
Dapp.te25 # Apps can cause selinux denials by accessing CE storage
26 # and/or external storage. In either case, the selinux denial is
28 # storage isn't ready. Many apps handle the failure appropriately.
30 # Apps cannot access external storage before it becomes available.
33 # that apps are attempting to access encrypted storage before
35 # allowed to write to CE storage before it's available.
59 # Don't allow regular apps access to storage configuration properties.
/system/sepolicy/prebuilts/api/31.0/private/
Dapp.te25 # Apps can cause selinux denials by accessing CE storage
26 # and/or external storage. In either case, the selinux denial is
28 # storage isn't ready. Many apps handle the failure appropriately.
30 # Apps cannot access external storage before it becomes available.
33 # that apps are attempting to access encrypted storage before
35 # allowed to write to CE storage before it's available.
59 # Don't allow regular apps access to storage configuration properties.

12345678910>>...12