/hardware/interfaces/nfc/1.0/default/ |
D | Nfc.cpp | 17 Nfc::Nfc(nfc_nci_device_t* device) : mDevice(device) {} in Nfc() 23 if (mDevice == nullptr || mCallback == nullptr) { in open() 27 int ret = mDevice->open(mDevice, eventCallback, dataCallback); in open() 32 if (mDevice == nullptr) { in write() 35 return mDevice->write(mDevice, data.size(), &data[0]); in write() 41 if (mDevice == nullptr || copy.size() == 0) { in coreInitialized() 44 int ret = mDevice->core_initialized(mDevice, ©[0]); in coreInitialized() 49 if (mDevice == nullptr) { in prediscover() 52 return mDevice->pre_discover(mDevice) ? NfcStatus::FAILED : NfcStatus::OK; in prediscover() 56 if (mDevice == nullptr || mCallback == nullptr) { in close() [all …]
|
/hardware/interfaces/audio/core/all-versions/default/ |
D | PrimaryDevice.cpp | 36 PrimaryDevice::PrimaryDevice(audio_hw_device_t* device) : mDevice(new Device(device)) {} in PrimaryDevice() 46 return mDevice->initCheck(); in initCheck() 50 return mDevice->setMasterVolume(volume); in setMasterVolume() 54 return mDevice->getMasterVolume(_hidl_cb); in getMasterVolume() 58 return mDevice->setMicMute(mute); in setMicMute() 62 return mDevice->getMicMute(_hidl_cb); in getMicMute() 66 return mDevice->setMasterMute(mute); in setMasterMute() 70 return mDevice->getMasterMute(_hidl_cb); in getMasterMute() 75 return mDevice->getInputBufferSize(config, _hidl_cb); in getInputBufferSize() 82 return mDevice->openOutputStream(ioHandle, device, config, flags, _hidl_cb); in openOutputStream() [all …]
|
D | Device.cpp | 50 Device::Device(audio_hw_device_t* device) : mIsClosed(false), mDevice(device) {} in Device() 54 mDevice = nullptr; in ~Device() 63 mDevice->close_input_stream(mDevice, stream); in closeInputStream() 69 mDevice->close_output_stream(mDevice, stream); in closeOutputStream() 75 return mDevice->get_parameters(mDevice, keys); in halGetParameters() 79 return mDevice->set_parameters(mDevice, keysAndValues); in halSetParameters() 84 return analyzeStatus("init_check", mDevice->init_check(mDevice)); in initCheck() 88 if (mDevice->set_master_volume == NULL) { in setMasterVolume() 95 return analyzeStatus("set_master_volume", mDevice->set_master_volume(mDevice, volume), in setMasterVolume() 102 if (mDevice->get_master_volume != NULL) { in getMasterVolume() [all …]
|
/hardware/google/aemu/host-common/ |
D | HostAddressSpace_unittest.cpp | 37 mDevice = HostAddressSpaceDevice::get(); in SetUp() 41 if (mDevice) mDevice->clear(); in TearDown() 44 HostAddressSpaceDevice* mDevice = nullptr; member in android::HostAddressSpaceTest 52 uint32_t handle = mDevice->open(); in TEST_F() 54 mDevice->close(handle); in TEST_F() 135 uint32_t handle = mDevice->open(); in TEST_F() 136 uint32_t handle2 = mDevice->open(); in TEST_F() 144 int claimRes = mDevice->claimShared(handle, offset, 4096); in TEST_F() 146 claimRes = mDevice->claimShared(handle2, offset, 4096); in TEST_F() 149 int unclaimRes = mDevice->unclaimShared(handle, offset); in TEST_F() [all …]
|
D | HostGoldfishPipe_unittest.cpp | 26 mDevice = HostGoldfishPipeDevice::get(); in SetUp() 33 HostGoldfishPipeDevice* mDevice = nullptr; member in android::HostGoldfishPipeTest 59 auto pipe = mDevice->connect("testMessagePipe"); in TEST_F() 63 mDevice->write(pipe, &payloadSz, sizeof(int32_t))); in TEST_F() 67 EXPECT_TRUE(mDevice->write(pipe, toSend).ok()); in TEST_F() 71 mDevice->read(pipe, (void*)&responseSize, sizeof(int32_t))); in TEST_F() 75 auto response = mDevice->read(pipe, responseSize); in TEST_F() 79 mDevice->close(pipe); in TEST_F()
|
D | address_space_graphics_unittests.cpp | 58 mDevice(device), in Client() 59 mHandle(mDevice->open()) { in Client() 67 EXPECT_EQ(0, mDevice->claimShared(mHandle, mRingOffset, mRingSize)); in Client() 70 (char*)mDevice->getHostAddr( in Client() 71 mDevice->offsetToPhysAddr(mRingOffset)); in Client() 77 EXPECT_EQ(0, mDevice->claimShared(mHandle, mBufferOffset, mBufferSize)); in Client() 79 (char*)mDevice->getHostAddr( in Client() 80 mDevice->offsetToPhysAddr(mBufferOffset)); in Client() 103 mDevice->unclaimShared(mHandle, mBufferOffset); in ~Client() 104 mDevice->unclaimShared(mHandle, mRingOffset); in ~Client() [all …]
|
/hardware/interfaces/camera/device/1.0/default/ |
D | CameraDevice.cpp | 120 if (mDevice != nullptr) { in ~CameraDevice() 131 if (mDevice == nullptr) { in setConnectionStatus() 391 mem->handle.mDevice = object; in sGetMemory() 400 CameraDevice* device = mem->handle.mDevice; in sPutMemory() 638 if (mDevice != nullptr) { in dumpState() 639 if (mDevice->ops->dump) { // It's fine if the HAL doesn't implement dump() in dumpState() 640 return getHidlStatus(mDevice->ops->dump(mDevice, fd)); in dumpState() 663 (hw_device_t **)&mDevice); in open() 665 rc = mModule->open(mCameraId.c_str(), (hw_device_t **)&mDevice); in open() 668 mDevice = nullptr; in open() [all …]
|
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/ |
D | Gralloc1Hal.h | 49 if (mDevice) { in ~Gralloc1HalImpl() 50 gralloc1_close(mDevice); in ~Gralloc1HalImpl() 55 int result = gralloc1_open(module, &mDevice); in initWithModule() 58 mDevice = nullptr; in initWithModule() 64 gralloc1_close(mDevice); in initWithModule() 65 mDevice = nullptr; in initWithModule() 74 mDispatch.dump(mDevice, &len, nullptr); in dumpDebugInfo() 77 mDispatch.dump(mDevice, &len, buf.data()); in dumpDebugInfo() 121 mDispatch.destroyDescriptor(mDevice, desc); in allocateBuffers() 136 int32_t error = mDispatch.release(mDevice, buffer); in freeBuffers() [all …]
|
D | Gralloc0Hal.h | 48 if (mDevice) { in ~Gralloc0HalImpl() 49 gralloc_close(mDevice); in ~Gralloc0HalImpl() 54 int result = gralloc_open(module, &mDevice); in initWithModule() 57 mDevice = nullptr; in initWithModule() 66 if (mDevice->dump) { in dumpDebugInfo() 67 mDevice->dump(mDevice, buf, sizeof(buf)); in dumpDebugInfo() 119 int result = mDevice->free(mDevice, buffer); in freeBuffers() 135 int result = mDevice->alloc(mDevice, info.width, info.height, static_cast<int>(info.format), in allocateOneBuffer() 149 alloc_device_t* mDevice = nullptr; variable
|
/hardware/interfaces/graphics/composer/2.1/utils/passthrough/include/composer-passthrough/2.1/ |
D | HwcHal.h | 59 if (mDevice) { in ~HwcHalImpl() 60 hwc2_close(mDevice); in ~HwcHalImpl() 77 mDevice = device; in initWithDevice() 83 mDevice->common.close(&mDevice->common); in initWithDevice() 84 mDevice = nullptr; in initWithDevice() 89 mDevice->common.close(&mDevice->common); in initWithDevice() 90 mDevice = nullptr; in initWithDevice() 103 mDispatch.dump(mDevice, &len, nullptr); in dumpDebugInfo() 106 mDispatch.dump(mDevice, &len, buf.data()); in dumpDebugInfo() 116 mDispatch.registerCallback(mDevice, HWC2_CALLBACK_HOTPLUG, this, in registerEventCallback() [all …]
|
/hardware/interfaces/biometrics/fingerprint/2.1/default/ |
D | BiometricsFingerprint.cpp | 43 BiometricsFingerprint::BiometricsFingerprint() : mClientCallback(nullptr), mDevice(nullptr) { in BiometricsFingerprint() 45 mDevice = openHal(); in BiometricsFingerprint() 46 if (!mDevice) { in BiometricsFingerprint() 53 if (mDevice == nullptr) { in ~BiometricsFingerprint() 58 if (0 != (err = mDevice->common.close( in ~BiometricsFingerprint() 59 reinterpret_cast<hw_device_t*>(mDevice)))) { in ~BiometricsFingerprint() 63 mDevice = nullptr; in ~BiometricsFingerprint() 154 return reinterpret_cast<uint64_t>(mDevice); in setNotify() 158 return mDevice->pre_enroll(mDevice); in preEnroll() 165 return ErrorFilter(mDevice->enroll(mDevice, authToken, gid, timeoutSec)); in enroll() [all …]
|
/hardware/interfaces/vr/1.0/default/ |
D | Vr.cpp | 32 Vr::Vr(vr_module_t *device) : mDevice(device) {} in Vr() 36 mDevice->init(mDevice); in init() 41 mDevice->set_vr_mode(mDevice, enabled); in setVrMode()
|
/hardware/interfaces/ir/aidl/default/ |
D | main.cpp | 39 consumerir_device_t *mDevice = nullptr; member in aidl::android::hardware::ir::ConsumerIr 50 ret = hw_module->methods->open(hw_module, CONSUMERIR_TRANSMITTER, (hw_device_t **) &mDevice); in ConsumerIr() 55 mDevice = nullptr; in ConsumerIr() 60 int32_t len = mDevice->get_num_carrier_freqs(mDevice); in getCarrierFreqs() 67 bool success = (mDevice->get_carrier_freqs(mDevice, len, rangeAr) >= 0); in getCarrierFreqs() 84 mDevice->transmit(mDevice, in_carrierFreqHz, in_pattern.data(), in_pattern.size()); in transmit()
|
/hardware/interfaces/ir/1.0/default/ |
D | ConsumerIr.cpp | 33 mDevice = device; in ConsumerIr() 38 return mDevice->transmit(mDevice, carrierFreq, pattern.data(), pattern.size()) == 0; in transmit() 42 int32_t len = mDevice->get_num_carrier_freqs(mDevice); in getCarrierFreqs() 49 bool success = (mDevice->get_carrier_freqs(mDevice, len, rangeAr) >= 0); in getCarrierFreqs()
|
/hardware/interfaces/tv/cec/1.0/default/ |
D | HdmiCec.cpp | 268 HdmiCec::HdmiCec(hdmi_cec_device_t* device) : mDevice(device) {} in HdmiCec() 272 int ret = mDevice->add_logical_address(mDevice, static_cast<cec_logical_address_t>(addr)); in addLogicalAddress() 288 mDevice->clear_logical_address(mDevice); in clearLogicalAddress() 294 int ret = mDevice->get_physical_address(mDevice, &addr); in getPhysicalAddress() 321 return static_cast<SendMessageResult>(mDevice->send_message(mDevice, &legacyMessage)); in sendMessage() 333 mDevice->register_event_callback(mDevice, eventCallback, nullptr); in setCallback() 340 mDevice->get_version(mDevice, &version); in getCecVersion() 346 mDevice->get_vendor_id(mDevice, &vendor_id); in getVendorId() 354 mDevice->get_port_info(mDevice, &legacyPorts, &numPorts); in getPortInfo() 370 mDevice->set_option(mDevice, static_cast<int>(key), value ? 1 : 0); in setOption() [all …]
|
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/ |
D | Gralloc1Hal.h | 47 if (mDevice) { in ~Gralloc1HalImpl() 48 gralloc1_close(mDevice); in ~Gralloc1HalImpl() 53 int result = gralloc1_open(module, &mDevice); in initWithModule() 56 mDevice = nullptr; in initWithModule() 63 gralloc1_close(mDevice); in initWithModule() 64 mDevice = nullptr; in initWithModule() 103 int32_t error = mDispatch.retain(mDevice, bufferHandle); in importBuffer() 116 int32_t error = mDispatch.release(mDevice, bufferHandle); in freeBuffer() 131 int32_t error = mDispatch.lock(mDevice, bufferHandle, cpuUsage, consumerUsage, &accessRect, in lock() 145 int32_t error = mDispatch.getNumFlexPlanes(mDevice, bufferHandle, &flex.num_planes); in lockYCbCr() [all …]
|
/hardware/google/graphics/common/libhwjpeg/ |
D | LibScalerForJpeg.h | 43 bool available() { return mDevice.mFd >= 0; } in available() 66 Device &mDevice; member 75 : mDevice(dev), width(w), height(h), format(f), bufferType(buftype) {} in Image() 83 return mDevice.queueBuffer(bufferType, buf, planeLen); in queueBuffer() 85 bool dequeueBuffer() { return mDevice.dequeueBuffer(bufferType, memoryType); } in dequeueBuffer() 110 Device mDevice; variable 111 Image mSrcImage{mDevice, 0, 0, V4L2_PIX_FMT_YUYV, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE}; 112 Image mDstImage{mDevice, 0, 0, V4L2_PIX_FMT_YUYV, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE};
|
D | LibScalerForJpeg.cpp | 50 if (!mDevice.requestBuffers(bufferType, memoryType, 0)) return false; in set() 53 if (!mDevice.setFormat(bufferType, format, width, height, planeLen)) return false; in set() 63 if (!mDevice.requestBuffers(bufferType, memoryType, 0)) return false; in begin() 66 if (!mDevice.requestBuffers(bufferType, memtype, 1)) return false; in begin() 68 if (!mDevice.streamOn(bufferType)) return false; in begin() 77 if (!mDevice.streamOff(bufferType)) return false; in cancelBuffer() 79 if (!mDevice.streamOn(bufferType)) return false; in cancelBuffer()
|
/hardware/interfaces/vibrator/1.0/default/ |
D | Vibrator.cpp | 34 Vibrator::Vibrator(vibrator_device_t *device) : mDevice(device) {} in Vibrator() 38 int32_t ret = mDevice->vibrator_on(mDevice, timeout_ms); in on() 47 int32_t ret = mDevice->vibrator_off(mDevice); in off()
|
/hardware/interfaces/graphics/composer/2.4/utils/passthrough/include/composer-passthrough/2.4/ |
D | HwcHal.h | 57 mDevice, HWC2_CALLBACK_HOTPLUG, this, in registerEventCallback_2_4() 60 mDevice, HWC2_CALLBACK_REFRESH, this, in registerEventCallback_2_4() 63 mDevice, HWC2_CALLBACK_VSYNC_2_4, this, in registerEventCallback_2_4() 66 mDevice, HWC2_CALLBACK_VSYNC_PERIOD_TIMING_CHANGED, this, in registerEventCallback_2_4() 69 mDevice, HWC2_CALLBACK_SEAMLESS_POSSIBLE, this, in registerEventCallback_2_4() 81 BaseType2_1::mDispatch.registerCallback(mDevice, HWC2_CALLBACK_HOTPLUG, this, nullptr); in unregisterEventCallback_2_4() 82 BaseType2_1::mDispatch.registerCallback(mDevice, HWC2_CALLBACK_REFRESH, this, nullptr); in unregisterEventCallback_2_4() 83 BaseType2_1::mDispatch.registerCallback(mDevice, HWC2_CALLBACK_VSYNC_2_4, this, nullptr); in unregisterEventCallback_2_4() 84 BaseType2_1::mDispatch.registerCallback(mDevice, HWC2_CALLBACK_VSYNC_PERIOD_TIMING_CHANGED, in unregisterEventCallback_2_4() 86 BaseType2_1::mDispatch.registerCallback(mDevice, HWC2_CALLBACK_SEAMLESS_POSSIBLE, this, in unregisterEventCallback_2_4() [all …]
|
/hardware/interfaces/tv/input/1.0/default/ |
D | TvInput.cpp | 62 TvInput::TvInput(tv_input_device_t* device) : mDevice(device) { in TvInput() 67 if (mDevice != nullptr) { in ~TvInput() 68 free(mDevice); in ~TvInput() 76 mDevice->initialize(mDevice, &mCallbackOps, nullptr); in setCallback() 84 int ret = mDevice->get_stream_configurations(mDevice, deviceId, &configCount, &configs); in getStreamConfigurations() 109 int ret = mDevice->open_stream(mDevice, deviceId, &stream); in openStream() 131 int ret = mDevice->close_stream(mDevice, deviceId, streamId); in closeStream()
|
/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/ |
D | HwcHal.h | 58 int32_t error = mDispatch.getPerFrameMetadataKeys(mDevice, display, &count, nullptr); in getPerFrameMetadataKeys() 65 mDevice, display, &count, in getPerFrameMetadataKeys() 93 int32_t error = mDispatch.setLayerPerFrameMetadata(mDevice, display, layer, metadata.size(), in setLayerPerFrameMetadata() 107 mDispatch.getReadbackBufferAttributes(mDevice, display, &format, &dataspace); in getReadbackBufferAttributes() 122 mDispatch.setReadbackBuffer(mDevice, display, bufferHandle, fenceFd.release()); in setReadbackBuffer() 132 int32_t error = mDispatch.getReadbackBufferFence(mDevice, display, &fenceFd); in getReadbackBufferFence() 164 mDevice, display, layer, hwc_float_color{color.r, color.g, color.b, color.a}); in setLayerFloatColor() 190 mDispatch.getRenderIntents(mDevice, display, int32_t(mode), &count, nullptr); in getRenderIntents() 197 mDevice, display, int32_t(mode), &count, in getRenderIntents() 220 mDevice, display, static_cast<int32_t>(mode), static_cast<int32_t>(intent)); in setColorMode_2_2() [all …]
|
/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/ |
D | Gralloc1On0Adapter.cpp | 47 mDevice(nullptr) in Gralloc1On0Adapter() 64 int error = ::gralloc_open(&(mModule->common), &mDevice); in Gralloc1On0Adapter() 68 ALOGV("Opened gralloc0 device %p", mDevice); in Gralloc1On0Adapter() 74 if (mDevice) { in ~Gralloc1On0Adapter() 75 ALOGV("Closing gralloc0 device %p", mDevice); in ~Gralloc1On0Adapter() 76 ::gralloc_close(mDevice); in ~Gralloc1On0Adapter() 139 if (mDevice != nullptr) { in doGetFunction() 179 if (!mDevice->dump) { in dump() 188 mDevice->dump(mDevice, buffer, BUFFER_LENGTH); in dump() 254 ALOGV("Calling alloc(%p, %u, %u, %i, %u)", mDevice, descriptor->width, in allocate() [all …]
|
/hardware/interfaces/neuralnetworks/utils/common/src/ |
D | ResilientDevice.cpp | 97 mDevice(std::move(device)) { in ResilientDevice() 99 CHECK(mDevice != nullptr); in ResilientDevice() 104 return mDevice; in getDevice() 112 if (mDevice.get() != failingDevice) { in recover() 113 return mDevice; in recover() 121 return std::invoke(fn, mDevice) != std::invoke(fn, device); in recover() 129 kName, kVersionString, mDevice->getFeatureLevel(), mDevice->getType(), kExtensions, in recover() 130 kCapabilities, mDevice->getNumberOfCacheFilesNeeded()); in recover() 134 mDevice = std::move(device); in recover() 135 return mDevice; in recover()
|
/hardware/libhardware/modules/camera/3_4/ |
D | camera.cpp | 59 memset(&mDevice, 0, sizeof(mDevice)); in Camera() 60 mDevice.common.tag = HARDWARE_DEVICE_TAG; in Camera() 61 mDevice.common.version = CAMERA_DEVICE_API_VERSION_3_4; in Camera() 62 mDevice.common.close = close_device; in Camera() 63 mDevice.ops = const_cast<camera3_device_ops_t*>(&sOps); in Camera() 64 mDevice.priv = this; in Camera() 87 mDevice.common.module = const_cast<hw_module_t*>(module); in openDevice() 88 *device = &mDevice.common; in openDevice() 94 info->device_version = mDevice.common.version; in getInfo()
|