Home
last modified time | relevance | path

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

1234567

/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/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 …]
Dfake_storage.h23 namespace storage {
/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);
Dstorage.h27 namespace storage {
/system/core/liblog/
Dlog_event_list.cpp47 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD]; member
63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in init_context()
72 memcpy(context->storage, msg, len); in init_parser_context()
172 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in android_log_write_list_begin()
173 context->storage[context->pos + 1] = 0; in android_log_write_list_begin()
204 context->storage[context->pos + 0] = EVENT_TYPE_INT; in android_log_write_int32()
205 copy4LE(&context->storage[context->pos + 1], value); in android_log_write_int32()
238 context->storage[context->pos + 0] = EVENT_TYPE_LONG; in android_log_write_int64()
239 copy8LE(&context->storage[context->pos + 1], value); in android_log_write_int64()
270 context->storage[context->pos + 0] = EVENT_TYPE_STRING; in android_log_write_string8_len()
[all …]
/system/update_engine/
Dmetrics_utils_unittest.cc146 int64_t storage = 0; in TEST() local
158 &fake_system_state, &storage, &duration)); in TEST()
162 &fake_system_state, &storage, &duration)); in TEST()
168 &fake_system_state, &storage, &duration)); in TEST()
171 &fake_system_state, &storage, &duration)); in TEST()
178 &fake_system_state, &storage, &duration)); in TEST()
181 &fake_system_state, &storage, &duration)); in TEST()
187 &fake_system_state, &storage, &duration)); in TEST()
190 &fake_system_state, &storage, &duration)); in TEST()
/system/core/libstats/
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/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/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/core/libutils/include/utils/
DVectorImpl.h102 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;
DSortedVector.h145 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()
DVector.h216 virtual void do_construct(void* storage, size_t num) const;
217 virtual void do_destroy(void* storage, size_t num) const;
399 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_construct(void* storage, size_t num) const { in do_construct() argument
400 construct_type( reinterpret_cast<TYPE*>(storage), num ); in do_construct()
404 void Vector<TYPE>::do_destroy(void* storage, size_t num) const { in do_destroy() argument
405 destroy_type( reinterpret_cast<TYPE*>(storage), num ); in do_destroy()
/system/nvram/
DREADME.md9 require a trusted storage location for critical data that an attacker can't
29 Note that the reference implementation leaves persistent storage to be handled
30 by the embedding code, which needs to provide an implementation of the storage
32 [system/nvram/core/include/nvram/core/storage.h](core/include/nvram/core/storage.h).
/system/core/trusty/
DAndroid.bp5 "storage/*",
/system/tools/hidl/test/error_test/enum_storage/1.0/
Drequired_error1 Must explicitly specify enum storage type
/system/chre/ash/platform/linux/
Dash.cc24 bool ashLoadCalibrationParams(uint8_t sensorType, uint8_t storage, in ashLoadCalibrationParams() argument
/system/extras/boottime_tools/bootio/sepolicy/
Dbootio.te7 # Allow persistent storage in /data/misc/bootio.
/system/sepolicy/prebuilts/api/26.0/private/
Dadbd.te116 # Allow access to external storage; we have several visible mount points under /storage
117 # and symlinks to primary storage at places like /storage/sdcard0 and /mnt/user/0/primary
/system/sepolicy/prebuilts/api/27.0/private/
Dadbd.te118 # Allow access to external storage; we have several visible mount points under /storage
119 # and symlinks to primary storage at places like /storage/sdcard0 and /mnt/user/0/primary
/system/sepolicy/prebuilts/api/27.0/public/
Dbootstat.te7 # Allow persistent storage in /data/misc/bootstat.
/system/sepolicy/prebuilts/api/26.0/public/
Dbootstat.te7 # Allow persistent storage in /data/misc/bootstat.
/system/core/libcutils/include_vndk/cutils/
Dnative_handle.h68 native_handle_t* native_handle_init(char* storage, int numFds, int numInts);

1234567