Home
last modified time | relevance | path

Searched refs:nvram (Results 1 – 25 of 45) sorted by relevance

12

/system/nvram/hal/
Dnvram_device_adapter.cpp25 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 …]
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 …]
Dfake-nvram.rc2 mkdir /data/misc/fake-nvram 0700 nvram nvram
4 service fake-nvram /system/bin/fake-nvram
8 socket nvram seqpacket 0666 nvram nvram
Dtesting_nvram_implementation.cpp37 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 …]
DAndroid.bp35 // 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",
Dfake_nvram.cpp115 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/
Dnvram_manager_test.cpp30 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 …]
Dfake_storage.h22 namespace nvram {
Drules.mk32 system/nvram/core
/system/nvram/
DREADME.md11 …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/
Dnvram_device_adapter.h25 namespace nvram {
36 virtual void Execute(const nvram::Request& request,
37 nvram::Response* response) = 0;
/system/nvram/core/
Dnvram_manager.cpp28 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 …]
Dcrypto.h25 namespace nvram {
Dcrypto_boringssl.cpp26 namespace nvram { namespace
Drules.mk35 system/nvram/messages
/system/nvram/messages/
Dnvram_messages.cpp23 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()
Dblob.cpp24 namespace nvram { namespace
/system/nvram/messages/include/nvram/messages/
Doptional.h20 namespace nvram {
Dblob.h27 namespace nvram {
Dmessage_codec.h28 namespace nvram {
Dtype_traits.h28 namespace nvram {
/system/nvram/core/include/nvram/core/
Dstorage.h26 namespace nvram {
Dpersistence.h30 namespace nvram {
Dnvram_manager.h24 namespace nvram {
/system/nvram/client/
DAndroid.bp18 name: "nvram-client",

12