Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 75) sorted by relevance

123

/device/generic/goldfish-opengl/system/hals/
Dmapper3.cpp129 cb_handle_30_t* cb = cb_handle_30_t::from(raw); in freeBuffer() local
130 if (!cb) { in freeBuffer()
134 if (cb->mmapedSize > 0) { in freeBuffer()
135 GoldfishAddressSpaceBlock::memoryUnmap(cb->getBufferPtr(), cb->mmapedSize); in freeBuffer()
138 native_handle_close(cb); in freeBuffer()
139 native_handle_delete(cb); in freeBuffer()
202 const cb_handle_30_t* cb = cb_handle_30_t::from(buffer); in validateBufferSize() local
203 if (cb) { in validateBufferSize()
204 return validateBufferSizeImpl(*cb, descriptor, stride); in validateBufferSize()
212 const cb_handle_30_t* cb = cb_handle_30_t::from(buffer); in getTransportSize() local
[all …]
Dallocator3.cpp83 for (cb_handle_30_t* cb : cbs) { in allocate()
84 freeCb(std::unique_ptr<cb_handle_30_t>(cb)); in allocate()
260 cb_handle_30_t* cb; in allocateImpl2() local
267 &cb); in allocateImpl2()
269 cbs->push_back(cb); in allocateImpl2()
320 cb_handle_30_t** cb) { in allocateCb() argument
389 *cb = handle.release(); in allocateCb()
412 void freeCb(std::unique_ptr<cb_handle_30_t> cb) { in freeCb() argument
413 if (cb->hostHandleRefcountFdIndex >= 0) { in freeCb()
414 ::close(cb->fds[cb->hostHandleRefcountFdIndex]); in freeCb()
[all …]
Dcb_handle_30.h94 cb_handle_30_t* cb = static_cast<cb_handle_30_t*>(p); in from() local
95 return cb->isValid() ? cb : nullptr; in from()
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp148 cb_handle_old_t* cb = static_cast<cb_handle_old_t*>(p); in from() local
149 return cb->isValid() ? cb : NULL; in from()
175 int32_t* getOpenCountPtr(const cb_handle_old_t* cb) { in getOpenCountPtr() argument
176 return ((int32_t*)cb->getBufferPtr()) + 1; in getOpenCountPtr()
179 uint32_t getAshmemColorOffset(cb_handle_old_t* cb) { in getAshmemColorOffset() argument
181 if (cb->canBePosted()) res = GOLDFISH_OFFSET_UNIT; in getAshmemColorOffset()
412 static void get_ashmem_region(ExtendedRCEncoderContext *rcEnc, cb_handle_old_t *cb) { in get_ashmem_region() argument
417 get_mem_region(cb->getBufferPtr()); in get_ashmem_region()
426 static bool put_ashmem_region(ExtendedRCEncoderContext *rcEnc, cb_handle_old_t *cb) { in put_ashmem_region() argument
431 const bool should_unmap = put_mem_region(rcEnc, cb->getBufferPtr()); in put_ashmem_region()
[all …]
/device/google/cuttlefish/host/frontend/webrtc/html_client/js/
Dcf_webrtc.js267 onStreamChange(cb) { argument
268 this.#streamChangeCallback = cb;
325 onAdbMessage(cb) { argument
326 this.#onAdbMessage = cb;
436 onControlMessage(cb) { argument
437 this.#onControlMessage = cb;
444 onBluetoothMessage(cb) { argument
445 this.#onBluetoothMessage = cb;
456 onSensorsMessage(cb) { argument
457 this.#onSensorsMessage = cb;
[all …]
/device/google/cuttlefish/host/commands/modem_simulator/
Dthread_looper.cpp33 ThreadLooper::Serial ThreadLooper::Post(Callback cb) { in Post() argument
34 CHECK(cb != nullptr); in Post()
40 Insert({ std::chrono::steady_clock::now(), cb, serial }); in Post()
46 Callback cb, std::chrono::steady_clock::duration delay) { in Post() argument
47 CHECK(cb != nullptr); in Post()
50 Insert({ std::chrono::steady_clock::now() + delay, cb, serial }); in Post()
86 Callback cb; in ThreadLoop() local
107 cb = queue_.front().cb; // callback at front of queue in ThreadLoop()
110 cb(); in ThreadLoop()
Dthread_looper.h62 Serial Post(Callback cb);
63 Serial Post(Callback cb, std::chrono::steady_clock::duration delay);
73 Callback cb; member
/device/google/contexthub/contexthubhal/
DNanohubHidlAdapter.cpp164 const sp<IContexthubCallback> &cb) { in registerCallback() argument
179 mCachedHubInfo[hubId].callback = cb; in registerCallback()
180 if (cb != nullptr) { in registerCallback()
181 Return<bool> linkResult = cb->linkToDeath(mDeathRecipient, hubId); in registerCallback()
223 int Contexthub::handleOsMessage(sp<IContexthubCallback> cb, in handleOsMessage() argument
247 if (cb != nullptr) { in handleOsMessage()
248 cb->handleTxnResult(transactionId, result); in handleOsMessage()
271 if (cb != nullptr) { in handleOsMessage()
272 cb->handleAppsInfo(apps); in handleOsMessage()
288 if (cb != nullptr) { in handleOsMessage()
[all …]
/device/generic/goldfish/camera/
Djpeg.cpp50 const uint8_t* cb[kJpegMCUSize / 2]; in compressYUVImplPixelsFast() local
52 const uint8_t** planes[] = { y, cb, cr }; in compressYUVImplPixelsFast()
69 cb[i / 2] = static_cast<const uint8_t*>(image.cb) + offset; in compressYUVImplPixelsFast()
92 uint8_t* cb[kJpegMCUSize / 2]; in compressYUVImplPixelsSlow() local
94 uint8_t** planes[] = { y, cb, cr }; in compressYUVImplPixelsSlow()
107 cb[i] = cb0; in compressYUVImplPixelsSlow()
130 memcpy(cb[i / 2], static_cast<const uint8_t*>(image.cb) + offset, width2); in compressYUVImplPixelsSlow()
244 static_cast<const uint8_t*>(srcYCbCr.cb), srcYCbCr.cstride, in resizeYUV()
248 static_cast<uint8_t*>(dstYCbCr.cb), dstYCbCr.cstride, in resizeYUV()
DQemuCamera.cpp288 const cb_handle_t* const cb = cb_handle_t::from(csb->getBuffer()); in captureFrameYUV() local
289 if (!cb) { in captureFrameYUV()
300 cb, static_cast<uint32_t>(BufferUsage::CPU_WRITE_OFTEN), in captureFrameYUV()
306 mExposureComp, cb->getMmapedOffset()); in captureFrameYUV()
308 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(cb) != NO_ERROR); in captureFrameYUV()
314 const cb_handle_t* const cb = cb_handle_t::from(csb->getBuffer()); in captureFrameRGBA() local
315 if (!cb) { in captureFrameRGBA()
326 cb, static_cast<uint32_t>(BufferUsage::CPU_WRITE_OFTEN), in captureFrameRGBA()
332 mExposureComp, cb->getMmapedOffset()); in captureFrameRGBA()
333 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(cb) != NO_ERROR); in captureFrameRGBA()
[all …]
Dconverters.cpp64 static_cast<uint8_t*>(ycbcr.cb), ycbcr.cstride, in rgba2yuv()
75 uint8_t* cb = static_cast<uint8_t*>(ycbcr.cb); in rgba2yuv() local
85 cb += cstride, cr += cstride) { in rgba2yuv()
90 uint8_t* cb0 = cb; in rgba2yuv()
DCameraDeviceSession.cpp85 void notifyError(ICameraDeviceCallback* cb, in notifyError() argument
103 cb->notify({msg}); in notifyError()
106 void notifyShutter(ICameraDeviceCallback* cb, in notifyShutter() argument
124 cb->notify({msg}); in notifyShutter()
143 std::shared_ptr<ICameraDeviceCallback> cb, in CameraDeviceSession() argument
146 , mCb(std::move(cb)) in CameraDeviceSession()
Dyuv.cpp72 nv21.cb = data8 + area; in NV21init()
95 nv21.cb = &data[0]; in toNV21Shallow()
101 ycbcr.cb, ycbcr.cstride, ycbcr.chroma_step); in toNV21Shallow()
/device/linaro/poplar/wifi/wifi_hal/
Dcpp_bindings.cpp612 struct nl_cb *cb = nl_cb_alloc(NL_CB_DEFAULT); in requestResponse() local
613 if (!cb) in requestResponse()
622 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in requestResponse()
623 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err); in requestResponse()
624 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &err); in requestResponse()
625 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &err); in requestResponse()
626 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, response_handler, this); in requestResponse()
629 int res = nl_recvmsgs(mInfo->cmd_sock, cb); in requestResponse()
635 nl_cb_put(cb); in requestResponse()
/device/google/cuttlefish/host/frontend/webrtc_operator/assets/js/
Dserver_connector.js66 onDeviceMsg(cb) { argument
201 onDeviceMsg(cb) { argument
202 this.#onDeviceMsgCb = cb;
282 onDeviceMsg(cb) { argument
283 this.#onDeviceMsgCb = cb;
/device/google/cuttlefish/guest/hals/health/storage/
DStorage.cpp25 const std::shared_ptr<IGarbageCollectCallback> &cb) { in garbageCollect() argument
27 if (cb != nullptr) { in garbageCollect()
28 auto ret = cb->onFinish(Result::SUCCESS); in garbageCollect()
/device/google/pantah/uwb/
DUWB-calibration-default.conf98 …f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a…
99 …d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33…
100 …fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05…
101 …fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07…
DUWB-calibration-fcc.conf98 …f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a…
99 …d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33…
100 …fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05…
101 …fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07…
DUWB-calibration.conf98 …f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a…
99 …d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33…
100 …fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05…
101 …fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07…
DUWB-calibration-jp.conf98 …f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a…
99 …d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33…
100 …fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05…
101 …fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07…
DUWB-calibration-tw.conf98 …f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a…
99 …d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33…
100 …fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05…
101 …fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07…
DUWB-calibration-ce.conf98 …f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a…
99 …d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33…
100 …fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05…
101 …fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07…
DUWB-calibration-restricted.conf98 …f0:f8:7d:03:46:fa:cb:02:b0:fb:19:02:23:fd:64:01:a2:fe:b2:00:00:00:00:00:31:01:4e:ff:a6:02:9c:fe:0a…
99 …d7:f2:48:06:f6:f3:96:05:cf:f5:e3:04:2d:f7:2f:04:23:f8:7d:03:a4:f9:cb:02:4c:fb:19:02:cb:fc:64:01:33…
100 …fe:9c:fe:98:fe:4e:ff:00:00:00:00:1d:02:b2:00:2d:02:19:02:33:02:64:01:0a:03:cb:02:6f:04:7d:03:db:05…
101 …fc:9c:fe:0e:fe:4e:ff:00:00:00:00:d7:00:b2:00:f6:01:64:01:21:04:19:02:60:04:cb:02:37:05:7d:03:0a:07…
/device/generic/goldfish/MultiDisplayProvider/jni/
Dcom_android_emulator_multidisplay.cpp69 const cb_handle_t* cb = cb_handle_t::from(b->handle); in onFrameAvailable() local
70 if (mCb != cb->hostHandle) { in onFrameAvailable()
71 ALOGI("sent cb %d", cb->hostHandle); in onFrameAvailable()
72 mCb = cb->hostHandle; in onFrameAvailable()
/device/generic/goldfish-opengl/system/hwc3/
DHostFrameComposer.cpp182 HWC3::Error HostFrameComposer::registerOnHotplugCallback(const HotplugCallback& cb) { in registerOnHotplugCallback() argument
184 mDrmClient->registerOnHotplugCallback(cb); in registerOnHotplugCallback()
582 const native_handle_t* cb = layer->getBuffer().getBuffer(); in presentDisplay() local
583 if (cb != nullptr) { in presentDisplay()
584 l->cbHandle = hostCon->grallocHelper()->getHostHandle(cb); in presentDisplay()
713 assert(cb && "native_handle_t::from(h) failed"); in post()

123