Searched refs:index (Results 1 - 25 of 288) sorted by relevance

1234567891011>>

/system/chre/apps/chqts/src/general_test/
H A Dheap_alloc_stress_test.cc83 size_t index; local
85 for (index = 0; (index < kNumPtrs); index++) {
99 ptrs[index] = ptr;
101 if (index == 0) {
107 index--;
108 chreHeapFree(ptrs[index]);
109 ptrs[index] = chreHeapAlloc(last_alloc_size);
110 if (ptrs[index]
[all...]
/system/tpm/tpm_manager/server/
H A Dmock_tpm_nvram.cc45 uint32_t index,
53 if (nvram_map_.count(index) != 0) {
63 nvram_map_[index] = ns;
67 NvramResult MockTpmNvram::FakeDestroySpace(uint32_t index) { argument
68 if (nvram_map_.count(index) == 0) {
71 nvram_map_.erase(index);
76 uint32_t index,
79 if (nvram_map_.count(index) == 0) {
82 if (nvram_map_[index].authorization_value != authorization_value) {
85 if (nvram_map_[index]
44 FakeDefineSpace( uint32_t index, size_t size, const std::vector<NvramSpaceAttribute>& attributes, const std::string& authorization_value, NvramSpacePolicy policy) argument
75 FakeWriteSpace( uint32_t index, const std::string& data, const std::string& authorization_value) argument
98 FakeReadSpace( uint32_t index, std::string* data, const std::string& authorization_value) argument
115 FakeLockSpace( uint32_t index, bool lock_read, bool lock_write, const std::string& authorization_value) argument
142 FakeGetSpaceInfo( uint32_t index, size_t* size, bool* is_read_locked, bool* is_write_locked, std::vector<NvramSpaceAttribute>* attributes, NvramSpacePolicy* policy) argument
[all...]
H A Dtpm2_nvram_test.cc86 void SetupExistingSpace(uint32_t index, argument
92 public_data.nv_index = index;
110 ON_CALL(mock_tpm_utility_, GetNVSpacePublicArea(index, _))
115 policy_record.set_index(index);
183 uint32_t index = 42; local
188 DefineNVSpace(index, size,
195 tpm_nvram_->DefineSpace(index, size, attributes, kFakeAuthorizationValue,
199 EXPECT_EQ(index, local_data.nvram_policy(0).index());
205 uint32_t index local
241 uint32_t index = 42; local
288 uint32_t index = 42; local
301 uint32_t index = 42; local
325 uint32_t index = 42; local
336 uint32_t index = 42; local
348 uint32_t index = 42; local
357 uint32_t index = 42; local
366 uint32_t index = 42; local
377 uint32_t index = 42; local
389 uint32_t index = 42; local
402 uint32_t index = 42; local
411 uint32_t index = 42; local
422 uint32_t index = 42; local
436 uint32_t index = 42; local
450 uint32_t index = 42; local
461 uint32_t index = 42; local
469 uint32_t index = 42; local
478 uint32_t index = 42; local
491 uint32_t index = 42; local
503 uint32_t index = 42; local
515 uint32_t index = 42; local
545 uint32_t index = 42; local
567 uint32_t index = 42; local
[all...]
H A Dtpm_nvram.h35 uint32_t index,
42 virtual NvramResult DestroySpace(uint32_t index) = 0;
44 // Writes |data| to the NVRAM space at |index|. The size of |data| must be
46 virtual NvramResult WriteSpace(uint32_t index,
50 // Reads all the |data| in the NVRAM space at |index|. Returns true on
52 virtual NvramResult ReadSpace(uint32_t index,
56 // Locks the NVRAM space at |index|. Returns true on success.
57 virtual NvramResult LockSpace(uint32_t index,
68 uint32_t index,
/system/nvram/core/include/nvram/core/
H A Dstorage.h44 // Load NVRAM space data for a given index from storage.
55 Status LoadSpace(uint32_t index, Blob* blob);
57 // Write the NVRAM space data for the given index to storage.
74 Status StoreSpace(uint32_t index, const Blob& blob);
76 // Delete the stored NVRAM space data for the given index.
79 // space data associated with index. A subsequent read operation for the same
80 // index should return Status::kNotFound.
91 Status DeleteSpace(uint32_t index);
/system/nvram/hal/
H A Dmemory_storage.cpp63 uint32_t index; member in struct:nvram::storage::__anon2564::__anon2565
67 // Find the storage slot in |g_spaces| that corresponds to |index|. Returns
69 StorageSlot* FindSpaceSlot(uint32_t index) { argument
71 if (g_spaces[i].slot.present() && g_spaces[i].index == index) {
89 Status LoadSpace(uint32_t index, Blob* blob) { argument
90 StorageSlot* slot = FindSpaceSlot(index);
94 Status StoreSpace(uint32_t index, const Blob& blob) { argument
95 StorageSlot* slot = FindSpaceSlot(index);
103 g_spaces[i].index
111 DeleteSpace(uint32_t index) argument
[all...]
/system/bt/packet/base/
H A Dpacket.cc36 // For the Array operator, treat index 0 as the relative start of the packet
43 // Iterators use the absolute index to access data.
44 uint8_t Packet::get_at_index(size_t index) const {
45 CHECK_GE(index, packet_start_index_);
46 CHECK_LT(index, packet_end_index_);
47 return data_->at(index);
/system/core/libunwindstack/tests/
H A DRegsStepIfSignalHandlerTest.cpp62 for (uint64_t index = 0; index <= 30; index++) {
63 process_memory_.SetData32(addr + index * 4, index * 0x10);
92 for (uint64_t index = 0; index <= 100; index++) {
93 process_memory_.SetData32(addr + index * 4, index *
[all...]
/system/nvram/hal/tests/
H A Dnvram_hal_test.cc35 // This value is the base index from which to dynamically burn spaces.
41 // If using authorization with an index returned by GetNextBurnSpace use this
63 nvram_result_t CreateSpace(uint32_t index,
75 index, size_in_bytes, control_list, authorization_value);
86 ScopedNvramSpace(SafeScopedNvramDevice* device, uint32_t index, uint32_t size) argument
88 index,
96 uint32_t index,
100 index,
106 uint32_t index,
111 index_(index),
95 ScopedNvramSpace(SafeScopedNvramDevice* device, uint32_t index, uint32_t size, const std::vector<nvram_control_t>& control_list) argument
105 ScopedNvramSpace(SafeScopedNvramDevice* device, uint32_t index, uint32_t size, const std::vector<nvram_control_t>& control_list, const std::string& authorization_value) argument
175 GetNextBurnSpace(SafeScopedNvramDevice* device, uint32_t* index) argument
[all...]
/system/chre/util/include/chre/util/
H A Dheap_impl.h31 void siftUp(ContainerType& container, size_t index, argument
33 CHRE_ASSERT(index < container.size());
34 size_t current = index;
47 void siftDown(ContainerType& container, size_t index, argument
49 CHRE_ASSERT(index < container.size());
50 size_t current = index;
54 while (index < container.size() - 1) {
95 void remove_heap(ContainerType& container, size_t index, argument
97 CHRE_ASSERT(index < container.size());
98 container.swap(index, containe
[all...]
H A Dfixed_size_blocking_queue.h66 * Removes an element from the array queue given an index. It returns false if
67 * the index is out of bounds of the underlying array queue.
69 * @param index Requested index in range [0,size()-1]
72 bool remove(size_t index);
75 * Obtains an element of the array queue given an index. It is illegal to
76 * index this array queue out of bounds and the user of the API must check the
80 * @param index Requested index in range [0,size()-1]
83 ElementType& operator[](size_t index);
[all...]
/system/chre/core/include/chre/core/
H A Drequest_multiplexer_impl.h26 size_t *index,
28 CHRE_ASSERT(index);
33 *index = (mRequests.size() - 1);
42 size_t index, const RequestType& request, bool *maximalRequestChanged) {
44 CHRE_ASSERT(index < mRequests.size());
46 if (index < mRequests.size()) {
47 mRequests[index] = request;
54 size_t index, bool *maximalRequestChanged) {
56 CHRE_ASSERT(index < mRequests.size());
58 if (index < mRequest
25 addRequest(const RequestType& request, size_t *index, bool *maximalRequestChanged) argument
41 updateRequest( size_t index, const RequestType& request, bool *maximalRequestChanged) argument
[all...]
H A Drequest_multiplexer.h59 * @param index A non-null pointer to an index that is populated with the
68 bool addRequest(const RequestType& request, size_t *index,
75 * @param index The index of the request to be updated. This param must fall
83 void updateRequest(size_t index, const RequestType& request,
90 * @param index The index of the request to be removed. This index must fall
97 void removeRequest(size_t index, boo
[all...]
/system/nvram/core/tests/
H A Dfake_storage.h31 // Setup the storage read calls for space |index| to return
33 void SetSpaceReadError(uint32_t index, bool error);
35 // Setup the storage write calls for space |index| to return
37 void SetSpaceWriteError(uint32_t index, bool error);
H A Dfake_storage.cpp88 uint32_t index; member in struct:nvram::storage::__anon2560::SpaceStorageSlot
94 // Find the position in |g_spaces| corresponding to a given space |index|.
96 StorageSlot* FindSlotForIndex(uint32_t index) { argument
98 if (g_spaces[i].slot.present() && g_spaces[i].index == index) {
106 // Finds or creates the slot for |index|. Returns the slot pointer or |nullptr|
108 StorageSlot* FindOrCreateSlotForIndex(uint32_t index) { argument
109 StorageSlot* slot = FindSlotForIndex(index);
117 g_spaces[i].index = index;
143 LoadSpace(uint32_t index, Blob* blob) argument
148 StoreSpace(uint32_t index, const Blob& blob) argument
153 DeleteSpace(uint32_t index) argument
165 SetSpaceReadError(uint32_t index, bool error) argument
172 SetSpaceWriteError(uint32_t index, bool error) argument
[all...]
/system/chre/core/tests/
H A Drequest_multiplexer_test.cc56 size_t index; local
58 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged));
66 size_t index; local
68 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged));
75 size_t index; local
80 ASSERT_TRUE(multiplexer.addRequest(request, &index,
89 ASSERT_TRUE(multiplexer.addRequest(request, &index,
99 size_t index; local
101 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged));
103 EXPECT_EQ(multiplexer.getRequests()[index]
116 size_t index; local
158 size_t index; local
205 size_t index; local
264 size_t index; local
308 size_t index; local
352 size_t index; local
406 size_t index; local
[all...]
/system/nvram/hal/include/nvram/hal/tests/
H A Dscoped_nvram_device.h48 virtual nvram_result_t GetSpaceSize(uint32_t index, uint64_t* size);
50 uint32_t index,
52 virtual nvram_result_t IsSpaceLocked(uint32_t index,
56 uint32_t index,
60 virtual nvram_result_t DeleteSpace(uint32_t index,
63 virtual nvram_result_t WriteSpace(uint32_t index,
66 virtual nvram_result_t ReadSpace(uint32_t index,
71 uint32_t index,
73 virtual nvram_result_t EnableReadLock(uint32_t index,
/system/iot/attestation/atap/test/
H A Datap_unittest_util.h67 // Returns |buf| + |*index|, then increments |*index| by |value|. Used for
69 inline uint8_t* next(const uint8_t* buf, uint32_t* index, uint32_t value) { argument
70 uint8_t* retval = (uint8_t*)&buf[*index];
71 *index += value;
/system/libufdt/utils/tests/
H A Dmkdtimg_testdata.sh47 for index in ${!DTB_LIST[@]}; do
48 diff ${OUTDIR}/${DTB_LIST[$index]} ${OUTDTB_CFG}.$index
59 for index in ${!DTB_LIST[@]}; do
60 diff ${OUTDIR}/${DTB_LIST[$index]} ${OUTDTB}.$index
/system/bt/bta/include/
H A Dbta_gatts_co.h79 extern bool bta_gatts_co_load_handle_range(uint8_t index,
/system/libhwbinder/
H A DDebug.cpp220 size_t index; local
231 for (index = 0; index < alignment || (alignment == 0 && index < bytesPerLine); index++) {
234 if (index == 0 && word > 0 && alignment > 0) {
239 const unsigned char val = *(pos+startIndex-index);
248 if (index == 0 && word > 0) {
252 if (index == 0) {
256 const unsigned char val = *(pos+startIndex-index);
[all...]
/system/nvram/core/
H A Dnvram_manager.cpp185 space_list[i] = spaces_[i].index;
194 const uint32_t index = request.index; local
195 NVRAM_LOG_INFO("CreateSpace Ox%" PRIx32, index);
205 if (FindSpace(index) != kMaxSpaces) {
206 NVRAM_LOG_INFO("Space 0x%" PRIx32 " already exists.", index);
245 // Mark the index as allocated.
246 spaces_[num_spaces_].index = index;
279 // for the space data corresponding to the index marke
291 const uint32_t index = request.index; local
326 const uint32_t index = request.index; local
395 const uint32_t index = request.index; local
441 const uint32_t index = request.index; local
470 const uint32_t index = request.index; local
502 const uint32_t index = request.index; local
553 const uint32_t index = spaces_[i].index; local
785 LoadSpaceRecord(uint32_t index, SpaceRecord* space_record, nvram_result_t* result) argument
844 WriteSpace(uint32_t index, const NvramSpace& space) argument
[all...]
/system/chre/apps/wifi_offload/
H A Dchannel_histogram.cc56 * Returns the index of a given channel number in kAllChannels.
58 * @param channel_number Channel number we want to map to an index
86 size_t index = GetChannelIndex(channel_number); local
87 if (index == kNumChannels) {
91 if (scan_count_internal_high_res_[index] == 0) {
104 uint64_t scaled_value = scan_count_internal_high_res_[index];
110 size_t index = GetChannelIndex(GetChannelNumber(frequency)); local
111 if (index == kNumChannels) {
115 scan_count_internal_high_res_[index]++;
127 size_t index local
[all...]
/system/extras/memory_replay/
H A DPointers.cpp78 size_t index = GetHash(key_pointer); local
80 if (atomic_load(&pointers_[index].key_pointer) == key_pointer) {
81 return pointers_ + index;
83 if (++index == max_pointers_) {
84 index = 0;
91 size_t index = GetHash(key_pointer); local
94 if (atomic_compare_exchange_strong(&pointers_[index].key_pointer, &empty,
96 return pointers_ + index;
98 if (++index == max_pointers_) {
99 index
[all...]
/system/media/alsa_utils/
H A Dalsa_device_profile.c148 size_t index; local
149 for (index = 0; profile->sample_rates[index] != 0; index++) {
150 if (profile->sample_rates[index] == rate) {
174 size_t index; local
175 for (index = 0; profile->formats[index] != PCM_FORMAT_INVALID; index++) {
176 if (profile->formats[index]
239 unsigned index; local
296 unsigned index; local
436 size_t index; local
467 size_t index = 0; local
548 size_t index; local
[all...]

Completed in 4005 milliseconds

1234567891011>>