Home
last modified time | relevance | path

Searched refs:g_spaces (Results 1 – 2 of 2) sorted by relevance

/system/nvram/core/tests/
Dfake_storage.cpp92 SpaceStorageSlot g_spaces[256]; variable
97 for (size_t i = 0; i < countof(g_spaces); ++i) { in FindSlotForIndex()
98 if (g_spaces[i].slot.present() && g_spaces[i].index == index) { in FindSlotForIndex()
99 return &g_spaces[i].slot; in FindSlotForIndex()
115 for (size_t i = 0; i < countof(g_spaces); ++i) { in FindOrCreateSlotForIndex()
116 if (!g_spaces[i].slot.present()) { in FindOrCreateSlotForIndex()
117 g_spaces[i].index = index; in FindOrCreateSlotForIndex()
118 return &g_spaces[i].slot; in FindOrCreateSlotForIndex()
160 for (size_t i = 0; i < countof(g_spaces); ++i) { in Clear()
161 g_spaces[i].slot.Clear(); in Clear()
/system/nvram/hal/
Dmemory_storage.cpp65 } g_spaces[kMaxSpaces]; variable
71 if (g_spaces[i].slot.present() && g_spaces[i].index == index) { in FindSpaceSlot()
72 return &g_spaces[i].slot; in FindSpaceSlot()
102 if (!g_spaces[i].slot.present()) { in StoreSpace()
103 g_spaces[i].index = index; in StoreSpace()
104 return g_spaces[i].slot.Store(blob); in StoreSpace()