/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) { 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 | 32 PrimaryDevice::PrimaryDevice(audio_hw_device_t* device) : mDevice(new Device(device)) {} in PrimaryDevice() 42 return mDevice->initCheck(); in initCheck() 46 return mDevice->setMasterVolume(volume); in setMasterVolume() 50 return mDevice->getMasterVolume(_hidl_cb); in getMasterVolume() 54 return mDevice->setMicMute(mute); in setMicMute() 58 return mDevice->getMicMute(_hidl_cb); in getMicMute() 62 return mDevice->setMasterMute(mute); in setMasterMute() 66 return mDevice->getMasterMute(_hidl_cb); in getMasterMute() 71 return mDevice->getInputBufferSize(config, _hidl_cb); in getInputBufferSize() 79 return mDevice->openOutputStream(ioHandle, device, config, flags, _hidl_cb); in openOutputStream() [all …]
|
D | Device.cpp | 44 Device::Device(audio_hw_device_t* device) : mIsClosed(false), mDevice(device) {} in Device() 48 mDevice = nullptr; in ~Device() 57 mDevice->close_input_stream(mDevice, stream); in closeInputStream() 63 mDevice->close_output_stream(mDevice, stream); in closeOutputStream() 69 return mDevice->get_parameters(mDevice, keys); in halGetParameters() 73 return mDevice->set_parameters(mDevice, keysAndValues); in halSetParameters() 78 return analyzeStatus("init_check", mDevice->init_check(mDevice)); in initCheck() 82 if (mDevice->set_master_volume == NULL) { in setMasterVolume() 89 return analyzeStatus("set_master_volume", mDevice->set_master_volume(mDevice, volume), in setMasterVolume() 96 if (mDevice->get_master_volume != NULL) { in getMasterVolume() [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/tv/cec/1.0/default/ |
D | HdmiCec.cpp | 267 HdmiCec::HdmiCec(hdmi_cec_device_t* device) : mDevice(device) {} in HdmiCec() 271 int ret = mDevice->add_logical_address(mDevice, static_cast<cec_logical_address_t>(addr)); in addLogicalAddress() 287 mDevice->clear_logical_address(mDevice); in clearLogicalAddress() 293 int ret = mDevice->get_physical_address(mDevice, &addr); in getPhysicalAddress() 317 return static_cast<SendMessageResult>(mDevice->send_message(mDevice, &legacyMessage)); in sendMessage() 329 mDevice->register_event_callback(mDevice, eventCallback, nullptr); in setCallback() 336 mDevice->get_version(mDevice, &version); in getCecVersion() 342 mDevice->get_vendor_id(mDevice, &vendor_id); in getVendorId() 350 mDevice->get_port_info(mDevice, &legacyPorts, &numPorts); in getPortInfo() 366 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/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/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/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/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() 182 mDispatch.getRenderIntents(mDevice, display, int32_t(mode), &count, nullptr); in getRenderIntents() 189 mDevice, display, int32_t(mode), &count, in getRenderIntents() 209 mDevice, display, static_cast<int32_t>(mode), static_cast<int32_t>(intent)); in setColorMode_2_2() [all …]
|
/hardware/interfaces/tv/cec/2.0/default/ |
D | HdmiCec.cpp | 270 HdmiCec::HdmiCec(hdmi_cec_device_t* device) : mDevice(device) {} in HdmiCec() 332 return static_cast<SendMessageResult>(mDevice->send_message(mDevice, &legacyMessage)); in sendMessage() 344 mDevice->register_event_callback(mDevice, eventCallback, nullptr); in setCallback() 353 mDevice->get_port_info(mDevice, &legacyPorts, &numPorts); in getPortInfo() 367 mDevice->set_option(mDevice, static_cast<int>(key), value ? 1 : 0); in setOption() 380 mDevice->set_option(mDevice, HDMI_OPTION_SET_LANG, convertedLanguage); in setLanguage() 385 mDevice->set_audio_return_channel(mDevice, portId, enable ? 1 : 0); in enableAudioReturnChannel() 390 return mDevice->is_connected(mDevice, portId) > 0; in isConnected()
|
/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/graphics/composer/2.3/utils/passthrough/include/composer-passthrough/2.3/ |
D | HwcHal.h | 128 mDispatch.getDisplayIdentificationData(mDevice, display, outPort, &size, nullptr); in getDisplayIdentificationData() 135 mDispatch.getDisplayIdentificationData(mDevice, display, outPort, &size, data.data()); in getDisplayIdentificationData() 159 int32_t err = mDispatch.setLayerColorTransform(mDevice, display, layer, matrix); in setLayerColorTransform() 173 mDevice, display, &formatRaw, &dataspaceRaw, &componentMaskRaw); in getDisplayedContentSamplingAttributes() 192 mDevice, display, static_cast<int32_t>(enable), componentMask, maxFrames)); in setDisplayedContentSamplingEnabled() 205 auto errorRaw = mDispatch.getDisplayedContentSample(mDevice, display, maxFrames, timestamp, in getDisplayedContentSample() 217 errorRaw = mDispatch.getDisplayedContentSample(mDevice, display, maxFrames, timestamp, in getDisplayedContentSample() 226 int32_t error = mDispatch.getDisplayCapabilities(mDevice, display, &count, nullptr); in getDisplayCapabilities() 232 mDevice, display, &count, in getDisplayCapabilities() 263 mDevice, display, layer, static_cast<uint32_t>(metadata.size()), in setLayerPerFrameMetadataBlobs() [all …]
|
/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()
|
/hardware/libhardware_legacy/audio/ |
D | AudioHardwareGeneric.cpp | 225 mDevice = devices; in set() 260 snprintf(buffer, SIZE, "\tdevice: %d\n", mDevice); in dump() 279 mDevice = device; in setParameters() 296 param.addInt(key, (int)mDevice); in getParameters() 335 mDevice = devices; in set() 368 snprintf(buffer, SIZE, "\tdevice: %d\n", mDevice); in dump() 387 mDevice = device; in setParameters() 404 param.addInt(key, (int)mDevice); in getParameters()
|
D | AudioDumpInterface.h | 58 uint32_t device() { return mDevice; } in device() 69 uint32_t mDevice; // current device this output is routed to variable 101 uint32_t device() { return mDevice; } in device() 109 uint32_t mDevice; // current device this output is routed to variable
|
/hardware/libhardware/modules/usbcamera/ |
D | Camera.cpp | 109 memset(&mDevice, 0, sizeof(mDevice)); in Camera() 110 mDevice.common.tag = HARDWARE_DEVICE_TAG; in Camera() 112 mDevice.common.version = CAMERA_DEVICE_API_VERSION_3_2; in Camera() 113 mDevice.common.close = close_device; in Camera() 114 mDevice.ops = const_cast<camera3_device_ops_t*>(&sOps); in Camera() 115 mDevice.priv = this; in Camera() 143 mDevice.common.module = const_cast<hw_module_t*>(module); in open() 144 *device = &mDevice.common; in open() 154 info->device_version = mDevice.common.version; in getInfo()
|
/hardware/libhardware/modules/camera/3_0/ |
D | Camera.cpp | 66 memset(&mDevice, 0, sizeof(mDevice)); in Camera() 67 mDevice.common.tag = HARDWARE_DEVICE_TAG; in Camera() 68 mDevice.common.version = CAMERA_DEVICE_API_VERSION_3_0; in Camera() 69 mDevice.common.close = close_device; in Camera() 70 mDevice.ops = const_cast<camera3_device_ops_t*>(&sOps); in Camera() 71 mDevice.priv = this; in Camera() 94 mDevice.common.module = const_cast<hw_module_t*>(module); in open() 95 *device = &mDevice.common; in open() 105 info->device_version = mDevice.common.version; in getInfo()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | ConnectionDetector.cpp | 59 mDevice = s.str(); in SocketConnectionDetector() 94 mDaemon->onConnectionChange(mDevice, true); in threadLoop() 98 mDaemon->onConnectionChange(mDevice, false); in threadLoop() 100 mDaemon->onConnectionChange(mDevice, false); in threadLoop()
|
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/ |
D | Gralloc1Hal.h | 52 mDispatch.validateBufferSize(mDevice, bufferHandle, &bufferDescriptorInfo, stride); in validateBufferSize() 62 int32_t error = mDispatch.getTransportSize(mDevice, bufferHandle, outNumFds, outNumInts); in getTransportSize() 69 mDevice, rawHandle, const_cast<const native_handle_t**>(outBufferHandle)); in importBuffer() 182 using BaseType2_0::mDevice;
|