/device/google/cuttlefish/guest/hals/camera/ |
D | PreviewWindow.cpp | 49 status_t res = NO_ERROR; in setPreviewWindow() local 61 res = window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN); in setPreviewWindow() 62 if (res == NO_ERROR) { in setPreviewWindow() 67 res = -res; // set_usage returns a negative errno. in setPreviewWindow() 69 res, strerror(res)); in setPreviewWindow() 74 return res; in setPreviewWindow() 100 int res; in onNextFrameAvailable() local 114 res = mPreviewWindow->set_buffers_geometry( in onNextFrameAvailable() 117 if (res != NO_ERROR) { in onNextFrameAvailable() 118 ALOGE("%s: Error in set_buffers_geometry %d -> %s", __FUNCTION__, -res, in onNextFrameAvailable() [all …]
|
D | EmulatedQemuCameraDevice.cpp | 48 status_t res = mQemuClient.connectClient(connect_str); in Initialize() local 49 if (res != NO_ERROR) { in Initialize() 50 return res; in Initialize() 54 res = EmulatedCameraDevice::Initialize(); in Initialize() 55 if (res == NO_ERROR) { in Initialize() 63 return res; in Initialize() 85 const status_t res = mQemuClient.queryConnect(); in connectDevice() local 86 if (res == NO_ERROR) { in connectDevice() 95 return res; in connectDevice() 114 const status_t res = mQemuClient.queryDisconnect(); in disconnectDevice() local [all …]
|
D | EmulatedFakeCamera2.cpp | 114 status_t res; in Initialize() local 164 res = constructStaticInfo(&mCameraInfo, true); in Initialize() 165 if (res != OK) { in Initialize() 167 strerror(-res), res); in Initialize() 168 return res; in Initialize() 170 res = constructStaticInfo(&mCameraInfo, false); in Initialize() 171 if (res != OK) { in Initialize() 173 strerror(-res), res); in Initialize() 174 return res; in Initialize() 176 if (res != OK) return res; in Initialize() [all …]
|
D | EmulatedCameraDevice.cpp | 93 const status_t res = startWorkerThread(one_burst); in startDeliveringFrames() local 94 ALOGE_IF(res != NO_ERROR, "%s: startWorkerThread failed", __FUNCTION__); in startDeliveringFrames() 95 return res; in startDeliveringFrames() 106 const status_t res = stopWorkerThread(); in stopDeliveringFrames() local 107 ALOGE_IF(res != NO_ERROR, "%s: startWorkerThread failed", __FUNCTION__); in stopDeliveringFrames() 108 return res; in stopDeliveringFrames() 265 const status_t res = getWorkerThread()->startThread(one_burst); in startWorkerThread() local 266 ALOGE_IF(res != NO_ERROR, "%s: Unable to start worker thread", __FUNCTION__); in startWorkerThread() 267 return res; in startWorkerThread() 278 const status_t res = getWorkerThread()->stopThread(); in stopWorkerThread() local [all …]
|
/device/generic/goldfish/camera/ |
D | PreviewWindow.cpp | 53 status_t res = NO_ERROR; in setPreviewWindow() local 63 res = window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN); in setPreviewWindow() 64 if (res != NO_ERROR) { in setPreviewWindow() 66 res = -res; // set_usage returns a negative errno. in setPreviewWindow() 68 __FUNCTION__, res, strerror(res)); in setPreviewWindow() 73 return res; in setPreviewWindow() 101 int res; in onNextFrameAvailable() local 116 res = mPreviewWindow->set_buffers_geometry(mPreviewWindow, in onNextFrameAvailable() 120 if (res != NO_ERROR) { in onNextFrameAvailable() 122 __FUNCTION__, -res, strerror(-res)); in onNextFrameAvailable() [all …]
|
D | EmulatedQemuCamera.cpp | 61 status_t res = mQemuCameraDevice.Initialize(device_name); in Initialize() local 62 if (res != NO_ERROR) { in Initialize() 63 return res; in Initialize() 67 res = EmulatedCamera::Initialize(); in Initialize() 68 if (res != NO_ERROR) { in Initialize() 69 return res; in Initialize() 105 for (const auto& res : resolutions) { in Initialize() local 106 int area = res.first * res.second; in Initialize() 109 maxAreaWidth = res.first; in Initialize() 110 maxAreaHeight = res.second; in Initialize() [all …]
|
D | EmulatedQemuCameraDevice.cpp | 49 status_t res = mQemuClient.connectClient(connect_str); in Initialize() local 50 if (res != NO_ERROR) { in Initialize() 51 return res; in Initialize() 55 res = EmulatedCameraDevice::Initialize(); in Initialize() 56 if (res == NO_ERROR) { in Initialize() 64 return res; in Initialize() 87 const status_t res = mQemuClient.queryConnect(); in connectDevice() local 88 if (res == NO_ERROR) { in connectDevice() 97 return res; in connectDevice() 117 const status_t res = mQemuClient.queryDisconnect(); in disconnectDevice() local [all …]
|
D | EmulatedFakeCamera2.cpp | 114 status_t res; in Initialize() local 134 res = constructStaticInfo(&mCameraInfo, true); in Initialize() 135 if (res != OK) { in Initialize() 137 __FUNCTION__, strerror(-res), res); in Initialize() 138 return res; in Initialize() 140 res = constructStaticInfo(&mCameraInfo, false); in Initialize() 141 if (res != OK) { in Initialize() 143 __FUNCTION__, strerror(-res), res); in Initialize() 144 return res; in Initialize() 146 if (res != OK) return res; in Initialize() [all …]
|
D | QemuClient.cpp | 333 status_t res = sendMessage(query->mQuery, strlen(query->mQuery) + 1); in doQuery() local 334 if (res == NO_ERROR) { in doQuery() 336 res = receiveMessage(reinterpret_cast<void**>(&query->mReplyBuffer), in doQuery() 338 if (res == NO_ERROR) { in doQuery() 343 __FUNCTION__, query->mQuery, strerror(res)); in doQuery() 347 __FUNCTION__, query->mQuery, strerror(res)); in doQuery() 351 const status_t res1 = query->completeQuery(res); in doQuery() 352 ALOGE_IF(res1 != NO_ERROR && res1 != res, in doQuery() 443 const status_t res = query.getCompletionStatus(); in queryConnect() local 444 ALOGE_IF(res != NO_ERROR, "%s: Query failed: %s", in queryConnect() [all …]
|
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/ |
D | MediaH264Decoder.cpp | 103 h264_result_t res = {0, 0}; in decodeFrame() local 106 return res; in decodeFrame() 122 res.bytesProcessed = *(uint64_t*)(retptr); in decodeFrame() 123 res.ret = *(int*)(retptr + 8); in decodeFrame() 125 return res; in decodeFrame() 142 h264_image_t res { }; in getImage() local 145 return res; in getImage() 155 res.ret = *(int*)(retptr); in getImage() 156 if (res.ret >= 0) { in getImage() 157 res.data = dst; in getImage() [all …]
|
/device/generic/goldfish/dhcp/client/ |
D | dhcpclient.cpp | 63 Result res = mInterface.init(interfaceName); in init() local 64 if (!res) { in init() 65 return res; in init() 68 res = mRouter.init(); in init() 69 if (!res) { in init() 70 return res; in init() 73 res = mSocket.open(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in init() 74 if (!res) { in init() 75 return res; in init() 78 res = mSocket.bindRaw(mInterface.getIndex()); in init() [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | AVDVirglRenderer.cpp | 148 Resource const* res = it.second; in dump_global_state() local 153 res->args.handle, res->args.width, res->args.height, res->args.format, in dump_global_state() 154 res->iov ? res->iov[0].iov_base : nullptr, res->iov ? res->iov[0].iov_len : 0, in dump_global_state() 155 res->args.target, res->args.bind, res->args.depth, res->args.array_size, in dump_global_state() 156 res->args.last_level, res->args.nr_samples, res->args.flags); in dump_global_state() 158 for (auto const& it : res->context_map) { in dump_global_state() 173 Resource const* res = it.second; in dump_global_state() local 175 printf(" Resource %u\n", res->args.handle); in dump_global_state() 180 static int sync_linear_to_iovec(Resource* res, uint64_t offset, const virgl_box* box) { in sync_linear_to_iovec() argument 182 switch (res->args.format) { in sync_linear_to_iovec() [all …]
|
/device/generic/goldfish-opengl/system/vulkan_enc/ |
D | Resources.cpp | 33 struct goldfish_##type* res = \ 35 if (!res) { \ 39 res->dispatch.magic = HWVULKAN_DISPATCH_MAGIC; \ 40 res->underlying = (uint64_t)underlying; \ 41 return reinterpret_cast<type>(res); \ 46 struct goldfish_##type* res = \ 48 res->underlying = (uint64_t)underlying; \ 49 return reinterpret_cast<type>(res); \ 77 struct goldfish_##type* res = \ 79 if (!res) { \ [all …]
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | address_space_graphics_types.h | 132 struct asg_context res; in asg_context_create() local 134 res.to_host = in asg_context_create() 138 res.to_host_large_xfer.ring = in asg_context_create() 142 res.from_host_large_xfer.ring = in asg_context_create() 147 ring_buffer_init(res.to_host); in asg_context_create() 149 res.buffer = buffer; in asg_context_create() 150 res.host_state = in asg_context_create() 152 &res.to_host->state); in asg_context_create() 153 res.ring_config = in asg_context_create() 155 res.to_host->config); in asg_context_create() [all …]
|
D | VirtioGpuPipeStream.cpp | 170 uint64_t res; in initProcessPipe() local 171 readFully(&res, sizeof(res)); in initProcessPipe() 172 return res; in initProcessPipe() 216 size_t res = len; in writeFully() local 219 while (res > 0) { in writeFully() 220 ssize_t stat = transferToHost((const char *)(buf) + (len - res), res); in writeFully() 222 res -= stat; in writeFully() 257 size_t res = len; in readFully() local 258 while (res > 0) { in readFully() 259 ssize_t stat = transferFromHost((char *)(buf) + len - res, res); in readFully() [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/ |
D | Pool.h | 59 void* res = alloc(bytes); in allocArray() local 60 return (T*) res; in allocArray() 65 void* res = alloc(bytes); in strDup() local 66 memset(res, 0x0, bytes); in strDup() 67 memcpy(res, toCopy, bytes); in strDup() 68 return (char*)res; in strDup() 72 char** res = allocArray<char*>(count); in strDupArray() local 75 res[i] = strDup(arrayToCopy[i]); in strDupArray() 78 return res; in strDupArray() 82 void* res = alloc(bytes); in dupArray() local [all …]
|
D | AndroidSubAllocator.h | 68 void* res = alloc(bytes); in allocArray() local 69 return (T*) res; in allocArray() 74 void* res = alloc(bytes); in strDup() local 75 memset(res, 0x0, bytes); in strDup() 76 memcpy(res, toCopy, bytes); in strDup() 77 return (char*)res; in strDup() 81 char** res = allocArray<char*>(count); in strDupArray() local 84 res[i] = strDup(arrayToCopy[i]); in strDupArray() 87 return res; in strDupArray() 91 void* res = alloc(bytes); in dupArray() local [all …]
|
D | AlignedBuf.cpp | 23 void* res = _aligned_malloc(size, actualAlign); in aligned_buf_alloc() local 24 if (!res) { in aligned_buf_alloc() 27 return res; in aligned_buf_alloc() 29 void* res; in aligned_buf_alloc() local 30 if (posix_memalign(&res, actualAlign, size)) { in aligned_buf_alloc() 33 return res; in aligned_buf_alloc()
|
/device/generic/goldfish/network/netmgr/ |
D | main.cpp | 51 Result res = bridge.addInterface(ifName); in addBridgeInterfaces() local 52 if (!res) { in addBridgeInterfaces() 53 return res; in addBridgeInterfaces() 87 Result res = bridge.init(); in main() local 88 if (!res) { in main() 89 LOGE("%s", res.c_str()); in main() 92 res = addBridgeInterfaces(bridge, bridgeInterfaces); in main() 93 if (!res) { in main() 94 LOGE("%s", res.c_str()); in main() 110 res = monitor.init(); in main() [all …]
|
D | bridge.cpp | 40 Result res = createSocket(); in init() local 41 if (!res) { in init() 42 return res; in init() 44 res = createBridge(); in init() 45 if (!res) { in init() 46 return res; in init() 72 int res = ::ioctl(mSocketFd, SIOCBRADDBR, mBridgeName.c_str()); in createBridge() local 73 if (res < 0) { in createBridge() 92 res = ::ioctl(mSocketFd, SIOCGIFFLAGS, &request); in createBridge() 93 if (res != 0) { in createBridge() [all …]
|
/device/generic/goldfish/camera/qemu-pipeline3/ |
D | QemuSensor.cpp | 87 status_t res = run("EmulatedQemuCamera3::QemuSensor", in startUp() local 90 if (res != OK) { in startUp() 91 ALOGE("Unable to start up sensor capture thread: %d", res); in startUp() 96 res = mCameraQemuClient.connectClient(connect_str); in startUp() 97 if (res != NO_ERROR) { in startUp() 98 return res; in startUp() 101 res = mCameraQemuClient.queryConnect(); in startUp() 102 if (res == NO_ERROR) { in startUp() 111 return res; in startUp() 117 status_t res = requestExitAndWait(); in shutDown() local [all …]
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
D | SocketStream.cpp | 95 size_t res = size; in writeFully() local 98 while (res > 0) { in writeFully() 99 ssize_t stat = ::send(m_sock, (const char *)buffer + (size - res), res, 0); in writeFully() 107 res -= stat; in writeFully() 119 size_t res = len; in readFully() local 120 while (res > 0) { in readFully() 121 ssize_t stat = ::recv(m_sock, (char *)(buf) + len - res, res, 0); in readFully() 123 res -= stat; in readFully() 161 int res = 0; in recv() local 163 res = ::recv(m_sock, (char *)buf, len, 0); in recv() [all …]
|
D | goldfish_dma.cpp | 56 int goldfish_dma_create_region(uint32_t sz, struct goldfish_dma_context* res) { in goldfish_dma_create_region() argument 58 res->fd = qemu_pipe_open("opengles"); in goldfish_dma_create_region() 59 res->mapped_addr = 0; in goldfish_dma_create_region() 60 res->size = 0; in goldfish_dma_create_region() 62 if (res->fd > 0) { in goldfish_dma_create_region() 66 int alloc_res = ioctl(res->fd, GOLDFISH_DMA_IOC_CREATE_REGION, &info); in goldfish_dma_create_region() 71 close(res->fd); in goldfish_dma_create_region() 72 res->fd = -1; in goldfish_dma_create_region() 76 res->size = sz; in goldfish_dma_create_region() 78 __FUNCTION__, sz, res, res->fd); in goldfish_dma_create_region() [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/synchronization/ |
D | AndroidMessageChannel.h | 124 const bool res = !isStoppedLocked(); in send() local 125 if (res) { in send() 128 afterWrite(res); in send() 129 return res; in send() 134 const bool res = !isStoppedLocked(); in send() local 135 if (res) { in send() 138 afterWrite(res); in send() 139 return res; in send() 162 const bool res = !isStoppedLocked(); in receive() local 163 if (res) { in receive() [all …]
|
/device/linaro/poplar/wifi/wifi_hal/ |
D | cpp_bindings.cpp | 572 int res = create(NL80211_CMD_VENDOR); in create() local 573 if (res < 0) { in create() 574 return res; in create() 577 res = put_u32(NL80211_ATTR_VENDOR_ID, id); in create() 578 if (res < 0) { in create() 579 return res; in create() 582 res = put_u32(NL80211_ATTR_VENDOR_SUBCMD, subcmd); in create() 583 if (res < 0) { in create() 584 return res; in create() 588 res = set_iface_id(mIface); in create() [all …]
|