Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 394) sorted by relevance

12345678910>>...16

/device/generic/goldfish/camera/
Dlist_qemu_cameras.cpp62 const char* const end = &*str.end(); in parseResolutions() local
63 if (i == end) { in parseResolutions()
69 std::from_chars_result r = std::from_chars(i, end, resolution.width, 10); in parseResolutions()
74 if (i == end) { in parseResolutions()
80 r = std::from_chars(i + 1, end, resolution.height, 10); in parseResolutions()
90 if (i == end) { in parseResolutions()
146 const char* const end = reinterpret_cast<const char*>(&*data.end()); in listQemuCameras() local
148 while (i < end) { in listQemuCameras()
149 const char* const lf = std::find(i, end, '\n'); in listQemuCameras()
150 if (lf == end) { in listQemuCameras()
[all …]
/device/generic/goldfish/sensors/
Dmultihal_sensors_qemu.cpp31 const char* testPrefix(const char* i, const char* end, const char* v, const char sep) { in testPrefix() argument
32 while (i < end) { in testPrefix()
123 const char* end = buf + len; in parseQemuSensorEventLocked() local
129 if (const char* values = testPrefix(buf, end, "acceleration", ':')) { in parseQemuSensorEventLocked()
139 } else if (const char* values = testPrefix(buf, end, "acceleration-uncalibrated", ':')) { in parseQemuSensorEventLocked()
152 } else if (const char* values = testPrefix(buf, end, "gyroscope", ':')) { in parseQemuSensorEventLocked()
162 } else if (const char* values = testPrefix(buf, end, "gyroscope-uncalibrated", ':')) { in parseQemuSensorEventLocked()
179 } else if (const char* values = testPrefix(buf, end, "orientation", ':')) { in parseQemuSensorEventLocked()
189 } else if (const char* values = testPrefix(buf, end, "magnetic", ':')) { in parseQemuSensorEventLocked()
199 } else if (const char* values = testPrefix(buf, end, "magnetic-uncalibrated", ':')) { in parseQemuSensorEventLocked()
[all …]
/device/google/cuttlefish/tests/hal/
Dhal_implementation_test.cpp346 missingAidl.insert(kPhoneOnlyAidl.begin(), kPhoneOnlyAidl.end()); in isMissingAidl()
347 missingAidl.insert(kTvOnlyAidl.begin(), kTvOnlyAidl.end()); in isMissingAidl()
351 kAutomotiveOnlyAidl.end()); in isMissingAidl()
352 missingAidl.insert(kRadioOnlyAidl.begin(), kRadioOnlyAidl.end()); in isMissingAidl()
356 kAutomotiveOnlyAidl.end()); in isMissingAidl()
357 missingAidl.insert(kPhoneOnlyAidl.begin(), kPhoneOnlyAidl.end()); in isMissingAidl()
358 missingAidl.insert(kTvOnlyAidl.begin(), kTvOnlyAidl.end()); in isMissingAidl()
362 kAutomotiveOnlyAidl.end()); in isMissingAidl()
363 missingAidl.insert(kTvOnlyAidl.begin(), kTvOnlyAidl.end()); in isMissingAidl()
371 return missingAidl.find(packageName) != missingAidl.end(); in isMissingAidl()
[all …]
/device/google/cuttlefish/host/commands/secure_env/
Dencrypted_serializable.cpp183 uint8_t* buf, const uint8_t* end) const { in Serialize()
227 buf = serialize_public.Serialize(buf, end); in Serialize()
228 buf = serialize_private.Serialize(buf, end); in Serialize()
229 buf = keymaster::append_uint32_to_buf(buf, end, BLOCK_SIZE); in Serialize()
230 buf = keymaster::append_uint32_to_buf(buf, end, iv.size); in Serialize()
231 buf = keymaster::append_to_buf(buf, end, iv.buffer, iv.size); in Serialize()
232 buf = keymaster::append_uint32_to_buf(buf, end, wrapped_size); in Serialize()
233 buf = keymaster::append_to_buf(buf, end, encrypted.data(), encrypted_size); in Serialize()
238 const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
246 if (!serialize_public.Deserialize(buf_ptr, end)) { in Deserialize()
[all …]
Dtpm_attestation_record.cpp184 attestation_ids_.brand.assign(request.brand.begin(), request.brand.end()); in SetAttestationIds()
185 attestation_ids_.device.assign(request.device.begin(), request.device.end()); in SetAttestationIds()
187 request.product.end()); in SetAttestationIds()
188 attestation_ids_.serial.assign(request.serial.begin(), request.serial.end()); in SetAttestationIds()
189 attestation_ids_.imei.assign(request.imei.begin(), request.imei.end()); in SetAttestationIds()
190 attestation_ids_.meid.assign(request.meid.begin(), request.meid.end()); in SetAttestationIds()
192 request.manufacturer.end()); in SetAttestationIds()
193 attestation_ids_.model.assign(request.model.begin(), request.model.end()); in SetAttestationIds()
202 request.second_imei.end()); in SetAttestationIdsKM3()
Dhmac_serializable.cpp43 uint8_t* HmacSerializable::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
45 buf = keymaster::append_uint32_to_buf(buf, end, wrapped_size); in Serialize()
47 buf = wrapped_->Serialize(buf, end); in Serialize()
74 buf, end, hmac_data->buffer, digest_size_); in Serialize()
77 bool HmacSerializable::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
82 buf_ptr, end, &signed_data_size, &signed_data); in Deserialize()
91 buf_ptr, end, &signature_size, &signature); in Deserialize()
/device/generic/goldfish/gnss/
DGnssHwListener.cpp29 const char* testNmeaField(const char* i, const char* end, in testNmeaField() argument
32 while (i < end) { in testNmeaField()
46 const char* skipAfter(const char* i, const char* end, const char c) { in skipAfter() argument
47 for (; i < end; ++i) { in skipAfter()
121 bool GnssHwListener::parse(const char* begin, const char* end, in parse() argument
124 if (const char* fields = testNmeaField(begin, end, "GPRMC", ',')) { in parse()
125 return parseGPRMC(fields, end, timestampMs, ert); in parse()
126 } else if (const char* fields = testNmeaField(begin, end, "GPGGA", ',')) { in parse()
127 return parseGPGGA(fields, end, timestampMs, ert); in parse()
233 bool GnssHwListener::parseGPGGA(const char* begin, const char* end, in parseGPGGA() argument
[all …]
/device/google/felix/vibrator/cs40l26/tests/
Dtest-hwcal.cpp141 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { in TEST_F()
154 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { in TEST_F()
167 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { in TEST_F()
184 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
193 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
202 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
214 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
238 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
262 std::transform(expect.begin(), expect.end(), actual.begin(), [](uint32_t &e) { return ~e; }); in TEST_F()
296 std::transform(volTickExpect.begin(), volTickExpect.end(), volActual.begin(), [](uint32_t &e) { in TEST_F()
[all …]
/device/google/tangorpro/lights/
Dled_lut_calibrator.cpp44 if (cal_data == cal_table_.end()) { in GetByColorIntensity()
103 std::string str(table->begin(), table->end()); in ParseBlock()
109 size_t end = 0; in ParseBlock() local
111 while ((start = line.find_first_not_of(':', end)) != std::string::npos) { in ParseBlock()
112 end = line.find(':', start); in ParseBlock()
113 if (end == std::string::npos) { in ParseBlock()
114 end = line.size(); in ParseBlock()
116 colon_separated.push_back(line.substr(start, end - start)); in ParseBlock()
/device/generic/goldfish/fingerprint/
Dstorage.cpp88 template <class T> bool loadT(const uint8_t** i, const uint8_t* end, T* x) { in loadT() argument
90 if ((p + sizeof(*x)) <= end) { in loadT()
101 v.insert(v.end(), x8, x8 + sizeof(x)); in operator <<()
121 const uint8_t* const end = i + data.size(); in Storage() local
124 if (!loadT(&i, end, &signature)) { in Storage()
132 if (!loadT(&i, end, &mAuthId)) { in Storage()
136 if (!loadT(&i, end, &mSecureUserId)) { in Storage()
141 if (!loadT(&i, end, &nEnrollments)) { in Storage()
147 if (loadT(&i, end, &enrollmentId)) { in Storage()
182 return {mEnrollments.begin(), mEnrollments.end()}; in enumerateEnrollments()
/device/generic/goldfish-opengl/system/hwc3/
DDisplay.cpp115 if (it == mConfigs.end()) { in init()
139 if (it == mConfigs.end()) { in updateParameters()
180 if (it == mLayers.end()) { in destroyLayer()
187 mOrderedLayers.end(), // in destroyLayer()
189 mOrderedLayers.end()); in destroyLayer()
219 if (it == mConfigs.end()) { in getDisplayAttribute()
237 outModes->insert(outModes->end(), mColorModes.begin(), mColorModes.end()); in getColorModes()
337 if (it == mConfigs.end()) { in getDisplayVsyncPeriod()
605 *outConfigId = *std::min_element(configIds.begin(), configIds.end()); in getPreferredBootConfig()
802 std::sort(mOrderedLayers.begin(), mOrderedLayers.end(), in validate()
[all …]
/device/google/cuttlefish/host/commands/modem_simulator/
Dcall_service.cpp104 if (iter != active_calls_.end() && iter->second.number == call_token.second) { in TimerWaitingRemoteCallResponse()
283 for (auto iter = active_calls_.begin(); iter != active_calls_.end();) { in HandleRejectCall()
349 for (auto iter = active_calls_.begin(); iter != active_calls_.end(); ++iter) { in HandleCurrentCalls()
412 for (auto iter = active_calls_.begin(); iter != active_calls_.end();) { in HandleHangup()
425 for (auto iter = active_calls_.begin(); iter != active_calls_.end();) { in HandleHangup()
439 if (iter != active_calls_.end()) { in HandleHangup()
458 if (iter != active_calls_.end()) { in HandleHangup()
465 for (auto iter = active_calls_.begin(); iter != active_calls_.end(); ++iter) { in HandleHangup()
473 for (auto iter = active_calls_.begin(); iter != active_calls_.end(); ++iter) { in HandleHangup()
657 for (; iter != active_calls_.end(); ++iter) { in HandleRemoteCall()
[all …]
Ddata_service.cpp110 for (auto iter = pdp_context_.begin(); iter != pdp_context_.end(); ++iter) { in HandleQueryDataCallList()
172 for (; iter != pdp_context_.end(); ++iter) { in HandlePDPContext()
179 if (iter == pdp_context_.end()) { in HandlePDPContext()
193 for (auto it = pdp_context_.begin(); it != pdp_context_.end(); ++it) { in HandleQueryPDPContextList()
232 for (; iter != pdp_context_.end(); ++iter) { in HandleEnterDataState()
239 if (iter == pdp_context_.end()) { in HandleEnterDataState()
281 for (; iter != pdp_context_.end(); ++iter) { in HandleReadDynamicParam()
287 if (iter == pdp_context_.end()) { in HandleReadDynamicParam()
Dnetwork_service.cpp185 for (auto iter = operator_list_.begin(); iter != operator_list_.end(); in InitializeSimOperator()
521 for (; iter != operator_list_.end(); ++iter) { in HandleQueryNetworkSelectionMode()
526 if (iter != operator_list_.end()) { in HandleQueryNetworkSelectionMode()
545 for (; iter != operator_list_.end(); ++iter) { in HandleRequestOperator()
550 if (iter == operator_list_.end()) { in HandleRequestOperator()
576 for (auto iter = operator_list_.begin(); iter != operator_list_.end(); ++iter) { in HandleQueryAvailableNetwork()
616 for (; iter != operator_list_.end(); ++iter) { in HandleSetNetworkSelectionMode()
633 for (; iter != operator_list_.end(); ++iter) { in HandleSetNetworkSelectionMode()
640 if (iter == operator_list_.end()) { in HandleSetNetworkSelectionMode()
649 for (; iter != operator_list_.end(); ++iter) { in HandleSetNetworkSelectionMode()
[all …]
/device/google/cuttlefish/common/libs/confui/
Dprotocol.cpp177 const std::string success_str(contents[0].begin(), contents[0].end()); in ToConfUiMessage()
179 const std::string status_message(contents[1].begin(), contents[1].end()); in ToConfUiMessage()
204 message.additional_info_[3].end()}; in ToConfUiMessage()
218 message.additional_info_[0].end()), in ToConfUiMessage()
221 message.additional_info_[2].end()), in ToConfUiMessage()
235 message.additional_info_[0].end()}; in ToConfUiMessage()
249 message.additional_info_[0].end()); in ToConfUiMessage()
251 message.additional_info_[1].end()); in ToConfUiMessage()
265 message.additional_info_[0].end()}; in ToConfUiMessage()
/device/google/cuttlefish/guest/hals/camera/
Dstream_buffer_cache.cpp27 auto found = std::find_if(cache_.begin(), cache_.end(), id_match); in get()
28 return (found != cache_.end()) ? *found : nullptr; in get()
37 cache_.erase(std::remove_if(cache_.begin(), cache_.end(), id_match)); in remove()
46 auto found = std::find_if(cache_.begin(), cache_.end(), id_match); in update()
47 if (found == cache_.end()) { in update()
61 for (auto it = cache_.begin(); it != cache_.end();) { in removeStreamsExcept()
/device/google/cuttlefish/common/libs/security/
Dkeymaster_channel_test.cpp48 ASSERT_EQ(request.end() - request.begin(), read.end() - read.begin()); in TEST()
50 ASSERT_TRUE(std::equal(request.begin(), request.end(), read.begin())); in TEST()
73 ASSERT_EQ(request.end() - request.begin(), read.end() - read.begin()); in TEST()
75 ASSERT_TRUE(std::equal(request.begin(), request.end(), read.begin())); in TEST()
/device/generic/opengl-transport/host/libs/virglrenderer/
DRenderControl.cpp399 if (context_it == EglContext::map.end()) in rcCreateContext()
425 if (it == EglContext::map.end()) in rcDestroyContext()
456 if (it == EglSurface::map.end()) in rcDestroyWindowSurface()
489 if (surface_it == EglSurface::map.end()) in rcSetWindowColorBuffer()
504 if (resource_it == Resource::map.end()) in rcSetWindowColorBuffer()
532 return it == EglSurface::map.end() ? -1 : 0; in rcFlushWindowColorBuffer()
538 if (context_it == EglContext::map.end()) in rcMakeCurrent()
545 if (surface_it == EglSurface::map.end()) in rcMakeCurrent()
551 if (surface_it == EglSurface::map.end()) in rcMakeCurrent()
612 if (it == Resource::map.end()) in rcBindTexture()
[all …]
DAVDVirglRenderer.cpp476 if (it == Resource::map.end()) in virgl_renderer_get_cursor_data()
574 if (it == Context::map.end()) { in virgl_renderer_submit_cmd()
588 if (it != Resource::map.end()) { in virgl_renderer_submit_cmd()
847 if (it == Resource::map.end()) in virgl_renderer_resource_unref()
868 if (it == Resource::map.end()) in virgl_renderer_resource_attach_iov()
895 if (it == Resource::map.end()) in virgl_renderer_resource_detach_iov()
928 if (it == Resource::map.end()) in virgl_renderer_resource_get_info()
1013 if (it == Context::map.end()) in virgl_renderer_context_destroy()
1029 if (it == Resource::map.end()) in virgl_renderer_transfer_read_iov()
1043 if (it == Resource::map.end()) in virgl_renderer_transfer_write_iov()
[all …]
/device/google/contexthub/firmware/lib/libc/
Dcrt.c25 callVect *end = (callVect *)to_addr; in callVectors() local
27 const int32_t count = step > 0 ? end - start : start - end; in callVectors()
30 if (&start[step * count] != end) in callVectors()
33 for (; start != end; start += step) { in callVectors()
/device/google/contexthub/contexthubhal/test/
Dmain.cpp231 char *end = NULL; in main() local
234 msg = strtoul(optarg, &end, 16); in main()
237 cmd = strtol(optarg, &end, 10); in main()
240 appId = strtoull(optarg, &end, 16); in main()
246 if (end && *end != '\0') { in main()
256 char *end; in main() local
257 unsigned long v = strtoul(argv[i], &end, 16); in main()
/device/generic/goldfish/wifi/wifi_hal/
Dnetlink.cpp197 char* end = data + bytesReceived; in readNetlinkMessage() local
198 while (data < end) { in readNetlinkMessage()
199 if (data + sizeof(nlmsghdr) > end) { in readNetlinkMessage()
204 if (data + header->nlmsg_len > end) { in readNetlinkMessage()
210 if (data + NLMSG_HDRLEN + sizeof(nlmsgerr) <= end) { in readNetlinkMessage()
255 if (handler == mHandlers.end()) { in notifyHandler()
/device/google/contexthub/firmware/os/platform/stm32/
Dcrt_stm32.c128 uint32_t *dst, *src, *end; in ResetISR() local
133 end = __data_end; in ResetISR()
134 while(dst != end) in ResetISR()
139 end = __bss_end; in ResetISR()
140 while(dst != end) in ResetISR()
/device/google/cuttlefish/common/libs/utils/
Dflag_parser.cpp311 for (auto it = flag.aliases_.begin(); it != flag.aliases_.end(); it++) { in operator <<()
344 auto itr = std::find(args.begin(), args.end(), "--"); in SeparateByEndOfOptionMark()
345 bool has_mark = (itr != args.end()); in SeparateByEndOfOptionMark()
349 args_before_mark.insert(args_before_mark.end(), args.begin(), itr); in SeparateByEndOfOptionMark()
350 args_after_mark.insert(args_after_mark.end(), itr + 1, args.end()); in SeparateByEndOfOptionMark()
386 args.insert(args.end(), in ConsumeFlags()
388 std::make_move_iterator(separated.args_after_mark.end())); in ConsumeFlags()
542 char* end = nullptr; in ParseInteger() local
544 auto r = strtoll(base, &end, /* auto-detect */ 0); in ParseInteger()
545 if (errno != 0 || end != base + value.size()) { in ParseInteger()
/device/generic/opengl-transport/host/commands/emugen/
DParser.cpp53 size_t end = input.find_first_of(WHITESPACE "*", pos); in parseTypeTokens() local
54 if (end == std::string::npos) { in parseTypeTokens()
55 end = input.size(); in parseTypeTokens()
58 std::string str = input.substr(pos, end - pos); in parseTypeTokens()
68 pos = end; in parseTypeTokens()

12345678910>>...16