/system/nvram/hal/ |
D | nvram_device_adapter.cpp | 25 namespace nvram { namespace 32 template <nvram::Command command, 41 nvram::Request request; in Execute() 43 nvram::Response response; in Execute() 63 nvram::GetInfoRequest get_info_request; in device_get_total_size_in_bytes() 64 nvram::GetInfoResponse get_info_response; in device_get_total_size_in_bytes() 65 nvram_result_t result = Execute<nvram::COMMAND_GET_INFO>( in device_get_total_size_in_bytes() 73 nvram::GetInfoRequest get_info_request; in device_get_available_size_in_bytes() 74 nvram::GetInfoResponse get_info_response; in device_get_available_size_in_bytes() 75 nvram_result_t result = Execute<nvram::COMMAND_GET_INFO>( in device_get_available_size_in_bytes() [all …]
|
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 …]
|
D | fake-nvram.rc | 2 mkdir /data/misc/fake-nvram 0700 nvram nvram 4 service fake-nvram /system/bin/fake-nvram 8 socket nvram seqpacket 0666 nvram nvram
|
D | testing_nvram_implementation.cpp | 37 class TestingNvramImplementation : public nvram::NvramImplementation { 41 void Execute(const nvram::Request& request, 42 nvram::Response* response) override; 51 bool SendRequest(const nvram::Request& request, nvram::Response* response); 70 void TestingNvramImplementation::Execute(const nvram::Request& request, in Execute() 71 nvram::Response* response) { in Execute() 94 bool TestingNvramImplementation::SendRequest(const nvram::Request& request, in SendRequest() 95 nvram::Response* response) { in SendRequest() 101 if (!nvram::Encode(request, command_buffer_, &request_size)) { in SendRequest() 120 if (!nvram::Decode(command_buffer_, static_cast<size_t>(rc), response)) { in SendRequest() [all …]
|
D | Android.bp | 35 // nvram.testing is the software-only testing NVRAM HAL module backed by the 38 name: "nvram.testing", 60 name: "fake-nvram", 81 init_rc: ["fake-nvram.rc"], 82 required: ["fake-nvram-seccomp.policy"], 87 name: "fake-nvram-seccomp.policy", 91 src: "fake-nvram-seccomp-arm.policy", 94 src: "fake-nvram-seccomp-arm64.policy", 97 src: "fake-nvram-seccomp-x86.policy", 100 src: "fake-nvram-seccomp-x86_64.policy",
|
D | fake_nvram.cpp | 115 bool ProcessCommand(int socket, nvram::NvramManager* nvram_manager) { in ProcessCommand() 128 nvram::Request request; in ProcessCommand() 129 if (!nvram::Decode(command_buffer, bytes_read, &request)) { in ProcessCommand() 134 nvram::Response response; in ProcessCommand() 137 if (!nvram::Encode(response, command_buffer, &response_size)) { in ProcessCommand() 152 int ProcessMessages(int control_socket_fd, nvram::NvramManager* nvram_manager) { in ProcessMessages() 238 nvram::NvramManager nvram_manager; in main()
|
/system/nvram/core/tests/ |
D | nvram_manager_test.cpp | 30 namespace nvram { namespace 47 static void ReadAndCompareSpaceData(NvramManager* nvram, in ReadAndCompareSpaceData() argument 55 nvram->ReadSpace(read_space_request, &read_space_response)); in ReadAndCompareSpaceData() 71 NvramManager nvram; in TEST_F() local 78 nvram.GetSpaceInfo(get_space_info_request, &get_space_info_response)); in TEST_F() 104 NvramManager nvram; in TEST_F() local 109 nvram.GetInfo(get_info_request, &get_info_response)); in TEST_F() 116 EXPECT_EQ(NV_RESULT_SUCCESS, nvram.GetSpaceInfo(get_space_info_request, in TEST_F() 140 NvramManager nvram; in TEST_F() local 146 EXPECT_EQ(NV_RESULT_SUCCESS, nvram.GetSpaceInfo(get_space_info_request, in TEST_F() [all …]
|
D | fake_storage.h | 22 namespace nvram {
|
D | rules.mk | 32 system/nvram/core
|
/system/nvram/ |
D | README.md | 11 …ardware/include/hardware/nvram.h](https://android.googlesource.com/platform/hardware/libhardware/+… 17 `nvram-client` receives commands and parameters on the command line and 32 [system/nvram/core/include/nvram/core/storage.h](core/include/nvram/core/storage.h). 37 HAL modules. The code implements the API surface specified by the nvram.h HAL 40 it is sufficient to provide an implementation that understands `nvram::Request` 41 and `nvram::Response` objects, the glue code will adapt it to the full NVRAM API 49 HAL function. The `nvram::Request` and `nvram::Response` wrappers keep track of
|
/system/nvram/hal/include/nvram/hal/ |
D | nvram_device_adapter.h | 25 namespace nvram { 36 virtual void Execute(const nvram::Request& request, 37 nvram::Response* response) = 0;
|
/system/nvram/core/ |
D | nvram_manager.cpp | 28 using namespace nvram::storage; 30 namespace nvram { namespace 110 void NvramManager::Dispatch(const nvram::Request& request, in Dispatch() 111 nvram::Response* response) { in Dispatch() 113 const nvram::RequestUnion& input = request.payload; in Dispatch() 114 nvram::ResponseUnion* output = &response->payload; in Dispatch() 117 case nvram::COMMAND_GET_INFO: in Dispatch() 121 case nvram::COMMAND_CREATE_SPACE: in Dispatch() 125 case nvram::COMMAND_GET_SPACE_INFO: in Dispatch() 129 case nvram::COMMAND_DELETE_SPACE: in Dispatch() [all …]
|
D | crypto.h | 25 namespace nvram {
|
D | crypto_boringssl.cpp | 26 namespace nvram { namespace
|
D | rules.mk | 35 system/nvram/messages
|
/system/nvram/messages/ |
D | nvram_messages.cpp | 23 namespace nvram { namespace 179 return nvram::proto::Encode(msg, &stream) && stream.Truncate(); in Encode() 185 if (!nvram::proto::Encode(msg, &stream)) { in Encode() 195 return nvram::proto::Decode(msg, &stream) && stream.Done(); in Decode()
|
D | blob.cpp | 24 namespace nvram { namespace
|
/system/nvram/messages/include/nvram/messages/ |
D | optional.h | 20 namespace nvram {
|
D | blob.h | 27 namespace nvram {
|
D | message_codec.h | 28 namespace nvram {
|
D | type_traits.h | 28 namespace nvram {
|
/system/nvram/core/include/nvram/core/ |
D | storage.h | 26 namespace nvram {
|
D | persistence.h | 30 namespace nvram {
|
D | nvram_manager.h | 24 namespace nvram {
|
/system/nvram/client/ |
D | Android.bp | 18 name: "nvram-client",
|