Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 155) sorted by relevance

1234567

/device/linaro/dragonboard/qcom/pd-mapper/
Djson.c362 struct json_value *it; in json_get_child() local
367 for (it = object->u.value; it; it = it->next) { in json_get_child()
368 if (!strcmp(it->key, key)) in json_get_child()
369 return it; in json_get_child()
377 struct json_value *it; in json_count_children() local
383 for (it = array->u.value; it; it = it->next) in json_count_children()
391 struct json_value *it; in json_get_number() local
396 for (it = object->u.value; it; it = it->next) { in json_get_number()
397 if (!strcmp(it->key, key)) { in json_get_number()
398 if (it->type != JSON_TYPE_NUMBER) in json_get_number()
[all …]
Dassoc.c129 unsigned long it = *iter; in assoc_next() local
131 while (!assoc->keys[it] && it < assoc->size) in assoc_next()
132 it++; in assoc_next()
134 if (it == assoc->size) in assoc_next()
137 *iter = it + 1; in assoc_next()
139 if (it < assoc->size) { in assoc_next()
141 *value = assoc->values[it]; in assoc_next()
142 return assoc->keys[it]; in assoc_next()
Dpd-mapper.c127 struct json_value *it; in pd_load_map() local
166 for (it = sr_service->u.value; it; it = it->next) { in pd_load_map()
167 provider = json_get_string(it, "provider"); in pd_load_map()
168 service = json_get_string(it, "service"); in pd_load_map()
289 unsigned long it; in pd_load_maps() local
297 assoc_foreach(jsn, NULL, &json_set, it) { in pd_load_maps()
/device/google/cuttlefish/guest/hals/camera/
DEmulatedCameraHotplugThread.cpp64 Vector<SubscriberInfo>::iterator it; in requestExit() local
65 for (it = mSubscribers.begin(); it != mSubscribers.end(); ++it) { in requestExit()
66 if (inotify_rm_watch(mInotifyFd, it->WatchID) == -1) { in requestExit()
70 __FUNCTION__, it->CameraID, strerror(errno), errno); in requestExit()
74 ALOGV("%s: Removed watch for camID '%d'", __FUNCTION__, it->CameraID); in requestExit()
110 Vector<int>::const_iterator it, end; in readyToRun() local
111 it = mSubscribedCameraIds.begin(); in readyToRun()
113 for (; it != end; ++it) { in readyToRun()
114 int cameraId = *it; in readyToRun()
234 Vector<int>::const_iterator it, end; in getCameraId() local
[all …]
DCallbackNotifier.cpp159 List<camera_memory_t*>::iterator it = mCameraMemoryTs.begin(); in releaseRecordingFrame() local
160 for (; it != mCameraMemoryTs.end(); ++it) { in releaseRecordingFrame()
161 if ((*it)->data == opaque) { in releaseRecordingFrame()
162 (*it)->release(*it); in releaseRecordingFrame()
163 mCameraMemoryTs.erase(it); in releaseRecordingFrame()
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DIndexRangeCache.cpp40 IndexRangeMap::const_iterator it = in findRange() local
44 if (it != mIndexRangeCache.end()) { in findRange()
45 if (start_out) *start_out = it->second.start; in findRange()
46 if (end_out) *end_out = it->second.end; in findRange()
60 IndexRangeMap::iterator it = mIndexRangeCache.begin(); in invalidateRange() local
62 while (it != mIndexRangeCache.end()) { in invalidateRange()
63 size_t rangeStart = it->first.offset; in invalidateRange()
65 it->first.offset + in invalidateRange()
66 it->first.count * glSizeof(it->first.type); in invalidateRange()
70 ++it; in invalidateRange()
[all …]
DKeyedVectorUtils.h22 typename std::map<GLuint, T>::iterator it = v.begin(); in clearObjectMap() local
23 for (; it != v.end(); ++it) { in clearObjectMap()
24 delete it->second; in clearObjectMap()
31 typename std::map<K, V>::const_iterator it = m.find(key);
33 if (it == m.end()) {
37 return it->second;
/device/google/cuttlefish/host/frontend/gcastv2/https/
DRunLoop.cpp137 for (auto it = mQueue.begin(); it != mQueue.end(); ++it) { in cancelToken() local
138 if (it->mToken == token) { in cancelToken()
139 mQueue.erase(it); in cancelToken()
141 if (it == mQueue.begin()) { in cancelToken()
182 auto it = mQueue.begin(); in insert() local
183 while (it != mQueue.end() && *it <= elem) { in insert()
184 ++it; in insert()
187 if (it == mQueue.begin()) { in insert()
191 mQueue.insert(it, elem); in insert()
232 auto it = socketCallbacksByFd.find(sock); in run() local
[all …]
DHTTPServer.cpp116 auto it = mStaticFiles.find(path); in handleSingleRequest() local
118 if (it != mStaticFiles.end()) { in handleSingleRequest()
120 it->second, in handleSingleRequest()
133 auto it = mWebSocketHandlerFactories.find(path); in handleSingleRequest() local
135 if (it != mWebSocketHandlerFactories.end()) { in handleSingleRequest()
138 it->second, in handleSingleRequest()
377 auto it = sMimeTypeByExtension.find(extension); in GuessMimeType() local
378 if (it != sMimeTypeByExtension.end()) { in GuessMimeType()
379 return it->second; in GuessMimeType()
/device/google/cuttlefish/host/commands/fetcher/
Dinstall_zip.cc44 auto it = files.begin(); in ExtractImages() local
45 while (it != files.end()) { in ExtractImages()
46 if (*it == "" || android::base::EndsWith(*it, "/")) { in ExtractImages()
47 it = files.erase(it); in ExtractImages()
49 *it = target_directory + "/" + *it; in ExtractImages()
50 it++; in ExtractImages()
/device/generic/goldfish/camera/
DEmulatedCameraHotplugThread.cpp63 Vector<SubscriberInfo>::iterator it; in requestExit() local
64 for (it = mSubscribers.begin(); it != mSubscribers.end(); ++it) { in requestExit()
66 if (inotify_rm_watch(mInotifyFd, it->WatchID) == -1) { in requestExit()
70 __FUNCTION__, it->CameraID, strerror(errno), in requestExit()
76 __FUNCTION__, it->CameraID); in requestExit()
286 Vector<SubscriberInfo>::iterator it; in removeWatch() local
287 for (it = mSubscribers.begin(); it != mSubscribers.end(); ++it) { in removeWatch()
288 if (it->CameraID == cameraId) { in removeWatch()
293 if (it != mSubscribers.end()) { in removeWatch()
294 mSubscribers.erase(it); in removeWatch()
DCallbackNotifier.cpp177 List<camera_memory_t*>::iterator it = mCameraMemoryTs.begin(); in releaseRecordingFrame() local
178 for( ; it != mCameraMemoryTs.end(); ++it ) { in releaseRecordingFrame()
179 if ( (*it)->data == opaque ) { in releaseRecordingFrame()
180 (*it)->release( *it ); in releaseRecordingFrame()
181 mCameraMemoryTs.erase(it); in releaseRecordingFrame()
/device/linaro/hikey/bluetooth/
Dasync_fd_watcher.cc120 for (auto& it : watched_fds_) { in ThreadRoutine() local
121 FD_SET(it.first, &read_fds); in ThreadRoutine()
122 max_read_fd = std::max(max_read_fd, it.first); in ThreadRoutine()
163 for (auto& it : watched_fds_) { in ThreadRoutine() local
164 if (FD_ISSET(it.first, &read_fds)) { in ThreadRoutine()
165 saved_callbacks.push_back(it); in ThreadRoutine()
170 for (auto& it : saved_callbacks) { in ThreadRoutine() local
171 if (it.second) { in ThreadRoutine()
172 it.second(it.first); in ThreadRoutine()
/device/linaro/poplar/wifi/wifi_hal/
Dwifi_logger.cpp350 nl_iterator it(vendor_data); in handleResponse() local
351 if (it.get_type() == LOGGER_ATTRIBUTE_RING_NUM) { in handleResponse()
352 unsigned int num_rings = it.get_u32(); in handleResponse()
361 it.get_type(), LOGGER_ATTRIBUTE_RING_NUM); in handleResponse()
365 it.next(); in handleResponse()
366 for (unsigned int i = 0; it.has_next() && i < *mNumRings; it.next()) { in handleResponse()
367 if (it.get_type() == LOGGER_ATTRIBUTE_RING_STATUS) { in handleResponse()
368 memcpy(status, it.get_data(), sizeof(wifi_ring_buffer_status)); in handleResponse()
373 it.get_type(), it.get_len()); in handleResponse()
550 for (nl_iterator it(vendor_data); it.has_next(); it.next()) { in handleEvent() local
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/
DAVDVirglRenderer.cpp147 for (auto const& it : Resource::map) { in dump_global_state() local
148 Resource const* res = it.second; in dump_global_state()
158 for (auto const& it : res->context_map) { in dump_global_state() local
159 Context const* ctx = it.second; in dump_global_state()
166 for (auto const& it : Context::map) { in dump_global_state() local
167 Context const* ctx = it.second; in dump_global_state()
172 for (auto const& it : ctx->resource_map) { in dump_global_state() local
173 Resource const* res = it.second; in dump_global_state()
474 std::map<uint32_t, Resource*>::iterator it; in virgl_renderer_get_cursor_data() local
475 it = Resource::map.find(resource_id); in virgl_renderer_get_cursor_data()
[all …]
DRenderControl.cpp423 std::map<uint32_t, EglContext*>::iterator it; in rcDestroyContext() local
424 it = EglContext::map.find(ctx); in rcDestroyContext()
425 if (it == EglContext::map.end()) in rcDestroyContext()
428 EglContext* context = it->second; in rcDestroyContext()
454 std::map<uint32_t, EglSurface*>::iterator it; in rcDestroyWindowSurface() local
455 it = EglSurface::map.find(surface_); in rcDestroyWindowSurface()
456 if (it == EglSurface::map.end()) in rcDestroyWindowSurface()
459 EglSurface* surface = it->second; in rcDestroyWindowSurface()
530 std::map<uint32_t, EglSurface*>::iterator it; in rcFlushWindowColorBuffer() local
531 it = EglSurface::map.find(windowSurface); in rcFlushWindowColorBuffer()
[all …]
DGralloc1.cpp61 std::map<uint32_t, Resource*>::iterator it; in gralloc1_lock() local
62 it = Resource::map.find(resource_id); in gralloc1_lock()
63 if (it == Resource::map.end()) in gralloc1_lock()
66 Resource* res = it->second; in gralloc1_lock()
95 std::map<uint32_t, Resource*>::iterator it; in gralloc1_unlock() local
96 it = Resource::map.find(resource_id); in gralloc1_unlock()
97 if (it == Resource::map.end()) in gralloc1_unlock()
/device/generic/goldfish-opengl/system/vulkan_enc/
DResourceTracker.cpp377 auto it = info_VkInstance.find(instance); in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES() local
378 if (it == info_VkInstance.end()) return; in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES()
379 auto info = it->second; in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES()
387 auto it = info_VkDevice.find(device); in unregister_VkDevice() local
388 if (it == info_VkDevice.end()) return; in unregister_VkDevice()
389 auto info = it->second; in unregister_VkDevice()
397 auto it = info_VkCommandBuffer.find(commandBuffer); in unregister_VkCommandBuffer() local
398 if (it == info_VkCommandBuffer.end()) return; in unregister_VkCommandBuffer()
399 auto& info = it->second; in unregister_VkCommandBuffer()
415 auto it = info_VkQueue.find(queue); in unregister_VkQueue() local
[all …]
/device/google/cuttlefish/host/libs/config/
Dfetcher_config.cpp194 for (auto it = json_files.begin(); it != json_files.end(); it++) { in get_cvd_files() local
195 files[it.key().asString()] = JsonToCvdFile(it.key().asString(), *it); in get_cvd_files()
205 for (auto it = json_files.begin(); it != json_files.end(); it++) { in FindCvdFileWithSuffix() local
206 auto file = it.key().asString(); in FindCvdFileWithSuffix()
/device/google/cuttlefish/host/commands/run_cvd/
Dprocess_monitor.cc201 auto it = monitored_processes_.begin(); in MonitorRoutine() local
202 while (it != monitored_processes_.end()) { in MonitorRoutine()
203 auto control_socket = it->proc->control_socket(); in MonitorRoutine()
207 keep_monitoring = it->on_control_socket_ready_cb(&(*it)); in MonitorRoutine()
210 ++it; in MonitorRoutine()
212 it = monitored_processes_.erase(it); in MonitorRoutine()
/device/google/contexthub/firmware/os/core/
Dseos.c462 void osSegmentIteratorInit(struct SegmentIterator *it) in osSegmentIteratorInit() argument
467 it->shared = (const struct Segment *)(start); in osSegmentIteratorInit()
468 it->sharedEnd = (const struct Segment *)(start + sz); in osSegmentIteratorInit()
469 it->seg = NULL; in osSegmentIteratorInit()
518 struct SegmentIterator it; in osSegmentGetFree() local
521 osSegmentIteratorInit(&it); in osSegmentGetFree()
522 while (osSegmentIteratorNext(&it)) { in osSegmentGetFree()
523 if (osSegmentGetState(it.seg) == SEG_ST_EMPTY) { in osSegmentGetFree()
524 storageSeg = it.seg; in osSegmentGetFree()
528 if (!storageSeg || storageSeg > it.sharedEnd) in osSegmentGetFree()
[all …]
/device/google/cuttlefish/host/libs/vm_manager/
Dvm_manager.cpp86 auto it = vm_manager_helpers_.find(vmm_name); in ConfigureGpuMode() local
87 if (it == vm_manager_helpers_.end()) { in ConfigureGpuMode()
90 return it->second.configure_gpu_mode(gpu_mode); in ConfigureGpuMode()
95 auto it = vm_manager_helpers_.find(vmm_name); in ConfigureBootDevices() local
96 if (it == vm_manager_helpers_.end()) { in ConfigureBootDevices()
99 return it->second.configure_boot_devices(); in ConfigureBootDevices()
/device/generic/goldfish/network/wifi_forwarder/
Dcache.h176 for (auto it = mMap.begin(); it != mMap.end(); ) { in expireEntries() local
177 const Timestamp timestamp = it->second.first; in expireEntries()
181 it = mMap.erase(it); in expireEntries()
183 ++it; in expireEntries()
/device/google/contexthub/firmware/
DCodingStandard.txt1 In the interest of a clean and concise codebase that looks readable, it is hereby established that …
2 …obey these guidelines is not a cause for also disobeying them (it is a cause for fixing it, howeve…
19 make it easier to identify them.
23 names - makes it easy to appreciate the cost (struct GpioHandle, union PwmDeviceData).
33 16. Do not ever return structs or unions from functions. Pass a pointer and fill it in. Gcc will
34 optimize this better and it is better C.
38 (it converts to double).
41 20. You may use whatever comment style suits your heart, as long as the compiler can live with it.
46 code, it will warn you if you accidentally try to dereference it, or on purpose try to access
/device/google/cuttlefish/host/commands/modem_simulator/
Ddata_service.cpp193 for (auto it = pdp_context_.begin(); it != pdp_context_.end(); ++it) { in HandleQueryPDPContextList() local
195 ss << "+CGDCONT: " << it->cid << "," << it->conn_types << "," in HandleQueryPDPContextList()
196 << it->apn << "," << it->addresses << ",0,0"; in HandleQueryPDPContextList()

1234567