Searched defs:index (Results 26 - 50 of 158) sorted by relevance

1234567

/system/core/libunwindstack/tests/
H A DDwarfDebugFrameTest.cpp48 void TestGetFdeInfo(size_t index, typename DwarfDebugFrame<TypeParam>::FdeInfo* info) { argument
49 *info = this->fdes_[index];
332 ASSERT_TRUE(this->debug_frame_->GetFdeOffsetFromPc(pc, &fde_offset)) << "Failed at index " << i;
333 EXPECT_EQ(0x5000 + i * 0x20, fde_offset) << "Failed at index " << i;
334 ASSERT_TRUE(this->debug_frame_->GetFdeOffsetFromPc(pc + 1, &fde_offset)) << "Failed at index "
336 EXPECT_EQ(0x5000 + i * 0x20, fde_offset) << "Failed at index " << i;
338 << "Failed at index " << i;
339 EXPECT_EQ(0x5000 + i * 0x20, fde_offset) << "Failed at index " << i;
341 << "Failed at index " << i;
354 ASSERT_TRUE(this->debug_frame_->GetFdeOffsetFromPc(pc, &fde_offset)) << "Failed at index " <<
[all...]
H A DDwarfEhFrameTest.cpp46 void TestSetFdeInfo(uint64_t index, const typename DwarfEhFrame<TypeParam>::FdeInfo& info) { argument
47 this->fde_info_[index] = info;
186 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetBinary(pc, &fde_offset, 10)) << "Failed at index " << i;
187 EXPECT_EQ(0x5000 + i * 0x20, fde_offset) << "Failed at index " << i;
188 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetBinary(pc + 1, &fde_offset, 10)) << "Failed at index "
190 EXPECT_EQ(0x5000 + i * 0x20, fde_offset) << "Failed at index " << i;
192 << "Failed at index " << i;
193 EXPECT_EQ(0x5000 + i * 0x20, fde_offset) << "Failed at index " << i;
198 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetBinary(pc, &fde_offset, 9)) << "Failed at index " << i;
199 EXPECT_EQ(0x5000 + i * 0x20, fde_offset) << "Failed at index " <<
[all...]
/system/extras/memory_replay/
H A DThreads.cpp97 size_t index = GetHashEntry(tid); local
99 pid_t cur_tid = threads_[index].tid_;
101 return threads_ + index;
106 if (++index == max_threads_) {
107 index = 0;
128 size_t index = GetHashEntry(tid); local
130 if (threads_[index].tid_ == 0) {
131 return threads_ + index;
133 if (++index == max_threads_) {
134 index
[all...]
/system/libufdt/tests/src/
H A Dextract_dtb.c108 int index = 0; local
111 if (index > 0) {
112 snprintf(filename, sizeof(filename), "%s.%d", out_dtb_filename, index);
122 index++;
125 if (index == 0) {
/system/media/audio_utils/
H A Dfifo_index.cpp54 audio_utils_fifo_index& index)
55 : mIndex(index), mValue(0), mWriteback(false), mWaiters(0), mWakeOp(FUTEX_WAIT_PRIVATE)
118 audio_utils_fifo_index& index)
119 : mIndex(index), mValue(0), mLoaded(false)
53 RefIndexDeferredStoreReleaseDeferredWake( audio_utils_fifo_index& index) argument
117 RefIndexCachedLoadAcquireDeferredWait( audio_utils_fifo_index& index) argument
/system/nvram/hal/
H A Dfake_nvram_storage.cpp58 // Formats the storage object name for the given space index.
59 bool FormatSpaceFileName(NameBuffer name, uint32_t index) { argument
61 snprintf(name, sizeof(NameBuffer), kSpaceDataFileNamePattern, index);
178 Status LoadSpace(uint32_t index, Blob* blob) { argument
180 if (!FormatSpaceFileName(name, index)) {
186 Status StoreSpace(uint32_t index, const Blob& blob) { argument
188 if (!FormatSpaceFileName(name, index)) {
194 Status DeleteSpace(uint32_t index) { argument
196 if (!FormatSpaceFileName(name, index)) {
H A Dmemory_storage.cpp63 uint32_t index; member in struct:nvram::storage::__anon2474::__anon2475
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/tools/hidl/
H A DScope.cpp44 size_t index = mTypes.size(); local
46 mTypeIndexByName[localName] = index;
/system/tools/hidl/c2hal/
H A Dmain.cpp49 auto index = val.find_first_of(':'); local
50 CHECK(index != std::string::npos);
52 auto package = val.substr(0, index);
53 auto path = val.substr(index + 1);
77 auto index = package.find_first_of('@'); local
78 CHECK(index != std::string::npos);
80 auto packagePath = package.substr(0, index);
81 auto packageVersion = package.substr(index + 1);
/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...]
/system/tpm/trunks/
H A Dtrunks_client.cc59 puts(" --read_pcr --index=<N> - Reads a PCR and prints the value.");
60 puts(" --extend_pcr --index=<N> --value=<value> - Extends a PCR.");
137 int ReadPCR(const TrunksFactory& factory, int index) { argument
140 trunks::TPM_RC result = tpm_utility->ReadPCR(index, &value);
150 int index,
153 trunks::TPM_RC result = tpm_utility->ExtendPCR(index, value, nullptr);
270 if (cl->HasSwitch("read_pcr") && cl->HasSwitch("index")) {
271 return ReadPCR(factory, atoi(cl->GetSwitchValueASCII("index").c_str()));
273 if (cl->HasSwitch("extend_pcr") && cl->HasSwitch("index") &&
275 return ExtendPCR(factory, atoi(cl->GetSwitchValueASCII("index")
149 ExtendPCR(const TrunksFactory& factory, int index, const std::string& value) argument
[all...]
/system/update_engine/payload_generator/
H A Dgraph_types.h56 index(-1),
71 std::vector<Vertex>::size_type index; member in struct:chromeos_update_engine::Vertex
H A Dgraph_utils.cc94 // For each node N in graph, drop all edges N->|index|.
95 void DropIncomingEdgesTo(Graph* graph, Vertex::Index index) { argument
99 it->out_edges.erase(index);
/system/bt/stack/avct/
H A Davct_api.cc237 int index; local
260 index = p_ccb->p_lcb->allocated;
261 if (index > AVCT_NUM_LINKS) {
264 p_bcb = &avct_cb.bcb[index - 1];
265 p_bcb->allocated = index;
/system/bt/stack/avrc/
H A Davrc_sdp.cc195 uint8_t index = 0; local
219 for (index = 1; index < AVRC_NUM_PROTO_ELEMS; index++) {
220 avrc_proto_desc_list[index].num_params = 1;
221 avrc_proto_desc_list[index].protocol_uuid = UUID_PROTOCOL_AVCTP;
222 avrc_proto_desc_list[index].params[0] = AVCT_REV_1_4;
223 avrc_proto_desc_list[index].params[1] = 0;
/system/chre/apps/chqts/src/general_test/
H A Dsend_message_to_host_test.cc130 sendInternalFailureToHost("Invalid index", &stage);
172 uint32_t index = 2; local
174 index = 0;
176 index = 1;
180 if (messageSize != kLargeSizes[index]) {
190 chreHeapFree(sLargeMessageData[index]);
191 // index 0 == stage 6, index 1 == stage 7
192 markSuccess(index + 6);
/system/chre/core/
H A Dtimer_pool.cc72 size_t index; local
75 &index);
84 mTimerRequests.remove(index);
85 if (index == 0) {
102 TimerHandle timerHandle, size_t *index) {
105 if (index != nullptr) {
106 *index = i;
101 getTimerRequestByTimerHandle( TimerHandle timerHandle, size_t *index) argument
/system/chre/util/include/chre/util/
H A Darray_queue_impl.h63 ElementType& ArrayQueue<ElementType, kCapacity>::operator[](size_t index) { argument
64 CHRE_ASSERT(index < mSize);
65 return data()[relativeIndexToAbsolute(index)];
70 size_t index) const {
71 CHRE_ASSERT(index < mSize);
72 return data()[relativeIndexToAbsolute(index)];
104 bool ArrayQueue<ElementType, kCapacity>::remove(size_t index) {
111 if (index >= mSize) {
115 size_t headLength = index;
117 size_t absoluteIndex = relativeIndexToAbsolute(index);
[all...]
H A Ddynamic_vector_impl.h125 ElementType& DynamicVector<ElementType>::operator[](size_type index) { argument
126 CHRE_ASSERT(index < mSize);
127 if (index >= mSize) {
128 index = mSize - 1;
131 return data()[index];
135 const ElementType& DynamicVector<ElementType>::operator[](size_type index)
137 CHRE_ASSERT(index < mSize);
138 if (index >= mSize) {
139 index = mSize - 1;
142 return data()[index];
185 insert(size_type index, const ElementType& element) argument
195 insert(size_type index, ElementType&& element) argument
204 prepareInsert(size_type index) argument
248 erase(size_type index) argument
[all...]
/system/chre/util/tests/
H A Ddynamic_vector_test.cc565 size_t index = 0; local
568 EXPECT_EQ(vector[index++], *it);
584 size_t index = 0; local
587 EXPECT_EQ(vector[index++], *cit);
610 size_t index = 0; local
612 EXPECT_EQ(vector[index++], *it_b);
629 size_t index = 0; local
631 EXPECT_EQ(vector[index++], *it_b);
648 size_t index = 0; local
650 EXPECT_EQ(vector[index
666 size_t index = 0; local
682 size_t index = 0; local
699 size_t index = 0; local
[all...]
/system/core/demangle/
H A DDemangler.cpp330 size_t index; local
332 index = *name - '0' + 1;
334 index = *name - 'A' + 11;
341 if (index >= saves_.size()) {
346 AppendCurrent(saves_[index]);
547 size_t index = cur_state_.suffixes.size(); local
548 cur_state_.suffixes[index-1].insert(0, suffix);
/system/core/libpixelflinger/codeflinger/
H A DArm64Disassembler.cpp95 static void get_token(const char *instr, uint32_t index, char *token) argument
98 for(i = index, j = 0; i < strlen(instr); ++i)
100 if(instr[index] == '<' && instr[i] == '>')
105 else if(instr[index] != '<' && instr[i] == '<')
297 uint32_t index = 0; local
302 get_token(entry->instr_template, index, token);
312 index += strlen(token);
313 }while(index < length);
/system/core/libunwindstack/
H A DDwarfDebugFrame.cpp305 const DwarfFde* DwarfDebugFrame<AddressType>::GetFdeFromIndex(size_t index) { argument
306 if (index >= fdes_.size()) {
309 return this->GetFdeFromOffset(fdes_[index].offset);
H A DDwarfOp.h70 AddressType StackAt(size_t index) { return stack_[index]; } argument
84 AddressType OperandAt(size_t index) { return operands_[index]; } argument
/system/core/libunwindstack/include/unwindstack/
H A DDwarfSection.h43 iterator(DwarfSection* section, size_t index) : section_(section), index_(index) {} argument
85 virtual const DwarfFde* GetFdeFromIndex(size_t index) = 0;

Completed in 422 milliseconds

1234567