Home
last modified time | relevance | path

Searched refs:space_index_list (Results 1 – 5 of 5) sorted by relevance

/system/nvram/hal/tests/
Dnvram_hal_test.cc146 std::vector<uint32_t> space_index_list; in CleanBurnSpaces() local
147 if (device->GetSpaceList(&space_index_list) != NV_RESULT_SUCCESS) { in CleanBurnSpaces()
150 for (uint32_t index : space_index_list) { in CleanBurnSpaces()
179 std::vector<uint32_t> space_index_list; in GetNextBurnSpace() local
180 if (device->GetSpaceList(&space_index_list) != NV_RESULT_SUCCESS) { in GetNextBurnSpace()
184 while (Contains(*index, space_index_list)) { in GetNextBurnSpace()
240 std::vector<uint32_t> space_index_list; in TEST() local
241 ASSERT_EQ(NV_RESULT_SUCCESS, device.GetSpaceList(&space_index_list)); in TEST()
242 ASSERT_LE(space_index_list.size(), max_spaces); in TEST()
249 ASSERT_EQ(space_index_list.size() + 1, space_index_list2.size()); in TEST()
[all …]
Dscoped_nvram_device.cc99 std::vector<uint32_t>* space_index_list) { in GetSpaceList() argument
108 space_index_list->resize(max_spaces); in GetSpaceList()
111 space_index_list->data(), &list_size); in GetSpaceList()
115 space_index_list->resize(list_size); in GetSpaceList()
/system/nvram/client/
Dnvram_client.c159 uint32_t* space_index_list = calloc(list_size, sizeof(uint32_t)); in HandleGetSpaceList() local
160 if (!space_index_list) { in HandleGetSpaceList()
165 device->get_space_list(device, list_size, space_index_list, &list_size); in HandleGetSpaceList()
167 free(space_index_list); in HandleGetSpaceList()
175 printf("%" PRIu32, space_index_list[i]); in HandleGetSpaceList()
179 free(space_index_list); in HandleGetSpaceList()
/system/nvram/hal/include/nvram/hal/tests/
Dscoped_nvram_device.h47 virtual nvram_result_t GetSpaceList(std::vector<uint32_t>* space_index_list);
/system/nvram/hal/
Dnvram_device_adapter.cpp103 uint32_t* space_index_list, in device_get_space_list() argument
110 if (space_index_list) { in device_get_space_list()
114 space_index_list[i] = get_info_response.space_list[i]; in device_get_space_list()