/device/linaro/dragonboard/qcom/pd-mapper/ |
D | json.c | 362 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 …]
|
D | assoc.c | 129 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()
|
D | pd-mapper.c | 127 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/ |
D | EmulatedCameraHotplugThread.cpp | 64 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 …]
|
D | CallbackNotifier.cpp | 159 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/ |
D | IndexRangeCache.cpp | 40 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 …]
|
D | KeyedVectorUtils.h | 22 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/ |
D | RunLoop.cpp | 137 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 …]
|
D | HTTPServer.cpp | 116 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/ |
D | install_zip.cc | 44 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/ |
D | EmulatedCameraHotplugThread.cpp | 63 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()
|
D | CallbackNotifier.cpp | 177 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/ |
D | async_fd_watcher.cc | 120 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/ |
D | wifi_logger.cpp | 350 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/ |
D | AVDVirglRenderer.cpp | 147 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 …]
|
D | RenderControl.cpp | 423 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 …]
|
D | Gralloc1.cpp | 61 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/ |
D | ResourceTracker.cpp | 377 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/ |
D | fetcher_config.cpp | 194 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/ |
D | process_monitor.cc | 201 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/ |
D | seos.c | 462 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/ |
D | vm_manager.cpp | 86 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/ |
D | cache.h | 176 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/ |
D | CodingStandard.txt | 1 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/ |
D | data_service.cpp | 193 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()
|