Home
last modified time | relevance | path

Searched refs:space_list (Results 1 – 6 of 6) sorted by relevance

/system/nvram/messages/tests/
Dnvram_messages_test.cpp59 ASSERT_TRUE(response_payload.space_list.Append(0x1234)); in TEST()
60 ASSERT_TRUE(response_payload.space_list.Append(0xffffffff)); in TEST()
61 ASSERT_TRUE(response_payload.space_list.Append(0x32)); in TEST()
62 ASSERT_TRUE(response_payload.space_list.Append(0x0)); in TEST()
63 ASSERT_TRUE(response_payload.space_list.Append(0x1)); in TEST()
78 ASSERT_EQ(5U, decoded_payload->space_list.size()); in TEST()
79 EXPECT_EQ(0x1234U, decoded_payload->space_list[0]); in TEST()
80 EXPECT_EQ(0xffffffffU, decoded_payload->space_list[1]); in TEST()
81 EXPECT_EQ(0x32U, decoded_payload->space_list[2]); in TEST()
82 EXPECT_EQ(0x0U, decoded_payload->space_list[3]); in TEST()
[all …]
/system/nvram/core/tests/
Dnvram_manager_test.cpp110 ASSERT_EQ(1U, get_info_response.space_list.size()); in TEST_F()
111 EXPECT_EQ(1U, get_info_response.space_list[0]); in TEST_F()
388 EXPECT_EQ(0U, get_info_response.space_list.size()); in TEST_F()
398 ASSERT_EQ(1U, get_info_response.space_list.size()); in TEST_F()
399 EXPECT_EQ(1U, get_info_response.space_list[0]); in TEST_F()
425 EXPECT_EQ(0U, get_info_response.space_list.size()); in TEST_F()
1136 EXPECT_EQ(0U, get_info_response.space_list.size()); in TEST_F()
1164 EXPECT_EQ(2U, get_info_response.space_list.size()); in TEST_F()
1166 for (size_t i = 0; i < get_info_response.space_list.size(); ++i) { in TEST_F()
1167 space_mask |= (1 << get_info_response.space_list[i]); in TEST_F()
[all …]
/system/nvram/hal/
Dnvram_device_adapter.cpp111 *list_size = std::min(get_info_response.space_list.size(), in device_get_space_list()
114 space_index_list[i] = get_info_response.space_list[i]; in device_get_space_list()
117 *list_size = get_info_response.space_list.size(); in device_get_space_list()
/system/nvram/messages/include/nvram/messages/
Dnvram_messages.h58 Vector<uint32_t> space_list; member
/system/nvram/core/
Dnvram_manager.cpp179 Vector<uint32_t>& space_list = response->space_list; in GetInfo() local
180 if (!space_list.Resize(num_spaces_)) { in GetInfo()
185 space_list[i] = spaces_[i].index; in GetInfo()
/system/nvram/messages/
Dnvram_messages.cpp39 MakeField(4, &GetInfoResponse::space_list),