/device/generic/goldfish-opengl/system/hals/ |
D | mapper3.cpp | 111 cb_handle_30_t* cb = cb_handle_30_t::from(raw); in freeBuffer() local 112 if (!cb) { in freeBuffer() 116 if (cb->hostHandle) { in freeBuffer() 119 rcEnc->rcCloseColorBuffer(rcEnc, cb->hostHandle); in freeBuffer() 122 if (cb->mmapedSize > 0) { in freeBuffer() 123 GoldfishAddressSpaceBlock::memoryUnmap(cb->getBufferPtr(), cb->mmapedSize); in freeBuffer() 126 native_handle_close(cb); in freeBuffer() 127 native_handle_delete(cb); in freeBuffer() 190 const cb_handle_30_t* cb = cb_handle_30_t::from(buffer); in validateBufferSize() local 191 if (cb) { in validateBufferSize() [all …]
|
D | allocator3.cpp | 71 for (cb_handle_30_t* cb : cbs) { in allocate() 72 freeCb(std::unique_ptr<cb_handle_30_t>(cb)); in allocate() 248 cb_handle_30_t* cb; in allocateImpl2() local 255 &cb); in allocateImpl2() 257 cbs->push_back(cb); in allocateImpl2() 332 cb_handle_30_t** cb) { in allocateCb() argument 397 *cb = handle.release(); in allocateCb() 401 void freeCb(std::unique_ptr<cb_handle_30_t> cb) { in freeCb() argument 405 if (qemu_pipe_valid(cb->hostHandleRefCountFd)) { in freeCb() 406 qemu_pipe_close(cb->hostHandleRefCountFd); in freeCb() [all …]
|
D | cb_handle_30.h | 64 cb_handle_30_t* cb = static_cast<cb_handle_30_t*>(p); in from() local 65 return cb->isValid() ? cb : nullptr; in from()
|
/device/generic/goldfish-opengl/system/gralloc/ |
D | gralloc_old.cpp | 128 cb_handle_old_t* cb = static_cast<cb_handle_old_t*>(p); in from() local 129 return cb->isValid() ? cb : NULL; in from() 144 int32_t* getOpenCountPtr(const cb_handle_old_t* cb) { in getOpenCountPtr() argument 145 return ((int32_t*)cb->getBufferPtr()) + 1; in getOpenCountPtr() 148 uint32_t getAshmemColorOffset(cb_handle_old_t* cb) { in getAshmemColorOffset() argument 150 if (cb->canBePosted()) res = GOLDFISH_OFFSET_UNIT; in getAshmemColorOffset() 393 static void get_ashmem_region(ExtendedRCEncoderContext *rcEnc, cb_handle_old_t *cb) { in get_ashmem_region() argument 398 get_mem_region(cb->getBufferPtr()); in get_ashmem_region() 407 static bool put_ashmem_region(ExtendedRCEncoderContext *rcEnc, cb_handle_old_t *cb) { in put_ashmem_region() argument 412 const bool should_unmap = put_mem_region(rcEnc, cb->getBufferPtr()); in put_ashmem_region() [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | thread_looper.cpp | 33 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 std::chrono::steady_clock::duration delay, Callback cb) { in PostWithDelay() argument 47 CHECK(cb != nullptr); in PostWithDelay() 50 Insert({ std::chrono::steady_clock::now() + delay, cb, serial }); in PostWithDelay() 86 Callback cb; in ThreadLoop() local 107 cb = queue_.front().cb; // callback at front of queue in ThreadLoop() 110 cb(); in ThreadLoop()
|
D | thread_looper.h | 62 Serial Post(Callback cb); 63 Serial PostWithDelay(std::chrono::steady_clock::duration delay, Callback cb); 73 Callback cb; member
|
/device/linaro/hikey/bluetooth/ |
D | bluetooth_hci.cc | 39 const ::android::sp<IBluetoothHciCallbacks>& cb) { in initialize() 45 cb->initializationComplete(Status::INITIALIZATION_ERROR); in initialize() 49 event_cb_ = cb; in initialize() 54 [cb](const hidl_vec<uint8_t>& packet) { cb->hciEventReceived(packet); }, in initialize() 55 [cb](const hidl_vec<uint8_t>& packet) { cb->aclDataReceived(packet); }, in initialize() 56 [cb](const hidl_vec<uint8_t>& packet) { cb->scoDataReceived(packet); }); in initialize() 82 cb->initializationComplete(Status::SUCCESS); in initialize()
|
D | bluetooth_hci.h | 50 const ::android::sp<IBluetoothHciCallbacks>& cb) override;
|
/device/google/cuttlefish/guest/hals/camera/ |
D | EmulatedCameraFactory.cpp | 261 const camera_module_callbacks_t* cb = mCallbacks; in onStatusChanged() local 262 if (cb != NULL && cb->camera_device_status_change != NULL) { in onStatusChanged() 263 cb->camera_device_status_change(cb, cameraId, newStatus); in onStatusChanged() 281 const camera_module_callbacks_t* cb = mCallbacks; in onTorchModeStatusChanged() local 282 if (cb != NULL && cb->torch_mode_status_change != NULL) { in onTorchModeStatusChanged() 285 cb->torch_mode_status_change(cb, id, newStatus); in onTorchModeStatusChanged()
|
D | Compressor.cpp | 103 const uint8_t* cb[8]; in compressData() local 105 const uint8_t** planes[3] = { y, cb, cr }; in compressData() 144 cb[i/2] = &uRows[offset]; in compressData()
|
/device/google/cuttlefish/guest/hals/health/storage/ |
D | Storage.cpp | 29 const sp<IGarbageCollectCallback>& cb) { in garbageCollect() argument 31 if (cb != nullptr) { in garbageCollect() 32 auto ret = cb->onFinish(Result::SUCCESS); in garbageCollect()
|
D | Storage.h | 38 const sp<IGarbageCollectCallback>& cb) override;
|
/device/google/contexthub/contexthubhal/ |
D | NanohubHidlAdapter.cpp | 163 const sp<IContexthubCallback> &cb) { in registerCallback() argument 178 mCachedHubInfo[hubId].callback = cb; in registerCallback() 179 if (cb != nullptr) { in registerCallback() 180 Return<bool> linkResult = cb->linkToDeath(mDeathRecipient, hubId); in registerCallback() 222 int Contexthub::handleOsMessage(sp<IContexthubCallback> cb, in handleOsMessage() argument 246 if (cb != nullptr) { in handleOsMessage() 247 cb->handleTxnResult(transactionId, result); in handleOsMessage() 270 if (cb != nullptr) { in handleOsMessage() 271 cb->handleAppsInfo(apps); in handleOsMessage() 287 if (cb != nullptr) { in handleOsMessage() [all …]
|
D | NanohubHidlAdapter.h | 47 const sp<IContexthubCallback> &cb) override; 106 int handleOsMessage(sp<IContexthubCallback> cb,
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | RunLoop.cpp | 381 auto &cb = it->second; in run() local 382 CHECK_EQ(cb.mPollFdIndex, i); in run() 385 CHECK(cb.mRecvFn != nullptr); in run() 386 fnArray.push_back(cb.mRecvFn); in run() 387 cb.mRecvFn = nullptr; in run() 390 removeCallback |= (cb.mSendFn == nullptr); in run() 394 CHECK(cb.mSendFn != nullptr); in run() 395 fnArray.push_back(cb.mSendFn); in run() 396 cb.mSendFn = nullptr; in run() 399 removeCallback |= (cb.mRecvFn == nullptr); in run()
|
/device/google/cuttlefish/host/frontend/gcastv2/signaling_server/assets/js/ |
D | cf_webrtc.js | 139 onAdbMessage(cb) { argument 140 this._onAdbMessage = cb; 242 onOffer(cb) { argument 243 this._onOffer = cb; 246 onIceCandidate(cb) { argument 247 this._onIceCandidate = cb;
|
/device/generic/goldfish-opengl/shared/gralloc_cb/include/ |
D | gralloc_cb_bp.h | 92 cb_handle_t* cb = static_cast<cb_handle_t*>(p); in from() local 93 return cb->isValid() ? cb : NULL; in from()
|
/device/generic/goldfish/MultiDisplayProvider/jni/ |
D | com_android_emulator_multidisplay.cpp | 69 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/linaro/poplar/wifi/wifi_hal/ |
D | cpp_bindings.cpp | 612 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/generic/goldfish/gnss/ |
D | data_sink.cpp | 51 void DataSink::setCallback20(sp<ahg20::IGnssCallback> cb) { in setCallback20() argument 53 cb20 = std::move(cb); in setCallback20()
|
/device/generic/goldfish/camera/jpeg-stub/ |
D | Compressor.cpp | 84 const uint8_t* cb[8]; in compressData() local 86 const uint8_t** planes[3] = { y, cb, cr }; in compressData() 119 cb[i/2] = uPlanar + (mCompressInfo.next_scanline + i) * width / 4; in compressData()
|
/device/generic/goldfish/camera/ |
D | EmulatedCameraFactory.cpp | 517 const camera_module_callbacks_t* cb = mCallbacks; in onStatusChanged() local 518 if (cb != nullptr && cb->camera_device_status_change != nullptr) { in onStatusChanged() 519 cb->camera_device_status_change(cb, cameraId, newStatus); in onStatusChanged()
|
/device/generic/goldfish/camera/qemu-pipeline3/ |
D | QemuSensor.cpp | 491 const cb_handle_t* cb = cb_handle_t::from(*handle); in captureRGBA() local 492 LOG_ALWAYS_FATAL_IF(!cb, "Unexpected buffer handle"); in captureRGBA() 493 const uint64_t offset = cb->getMmapedOffset(); in captureRGBA() 601 const cb_handle_t* cb = cb_handle_t::from(*handle); in captureYU12() local 602 LOG_ALWAYS_FATAL_IF(!cb, "Unexpected buffer handle"); in captureYU12() 603 const uint64_t offset = cb->getMmapedOffset(); in captureYU12()
|
/device/google/cuttlefish/guest/hals/gralloc/legacy/ |
D | gralloc_vsoc_priv.h | 37 void* cb; member 269 out->cb = it; in formatToYcbcr()
|
/device/generic/goldfish/camera/fake-pipeline2/ |
D | JpegCompressor.cpp | 191 const cb_handle_t *cb = cb_handle_t::from(*mJpegBuffer.buffer); in compress() local 194 memcpy(mJpegBuffer.img + cb->width - sizeof(camera3_jpeg_blob_t), in compress()
|