Searched defs:dev (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/av/media/libaudiohal/2.0/
H A DDevicesFactoryHalLocal.cpp30 static status_t load_audio_interface(const char *if_name, audio_hw_device_t **dev) argument
41 rc = audio_hw_device_open(mod, dev);
47 if ((*dev)->common.version < AUDIO_DEVICE_API_VERSION_MIN) {
48 ALOGE("%s wrong audio hw device version %04x", __func__, (*dev)->common.version);
50 audio_hw_device_close(*dev);
56 *dev = NULL;
61 audio_hw_device_t *dev; local
62 status_t rc = load_audio_interface(name, &dev);
64 *device = new DeviceHalLocal(dev);
H A DDeviceHalLocal.cpp27 DeviceHalLocal::DeviceHalLocal(audio_hw_device_t *dev) argument
28 : mDev(dev) {
/frameworks/native/vulkan/libvulkan/
H A Dapi.h47 inline DeviceData& GetData(VkDevice dev) { argument
48 return driver::GetData(dev).opaque_api_data;
H A Ddriver.h189 inline bool SetData(VkDevice dev, const DeviceData& data) { argument
190 return SetDataInternal(dev, &data);
217 inline DeviceData& GetData(VkDevice dev) { argument
218 return *reinterpret_cast<DeviceData*>(GetDataInternal(dev));
H A Ddriver_gen.cpp507 bool InitDriverTable(VkDevice dev, argument
510 auto& data = GetData(dev);
514 INIT_PROC(true, dev, GetDeviceProcAddr);
515 INIT_PROC(true, dev, DestroyDevice);
516 INIT_PROC(true, dev, GetDeviceQueue);
517 INIT_PROC(true, dev, CreateImage);
518 INIT_PROC(true, dev, DestroyImage);
519 INIT_PROC(true, dev, AllocateCommandBuffers);
520 INIT_PROC(false, dev, GetDeviceQueue2);
521 INIT_PROC_EXT(ANDROID_native_buffer, false, dev, GetSwapchainGrallocUsageANDROI
[all...]
H A Ddriver.cpp1077 VkDevice dev; local
1080 pAllocator, &dev);
1087 if (!SetData(dev, *data) ||
1088 !InitDriverTable(dev, instance_data.get_device_proc_addr,
1091 instance_data.get_device_proc_addr(dev, "vkDestroyDevice"));
1093 data->driver.DestroyDevice(dev, pAllocator);
1110 data->driver.DestroyDevice(dev, pAllocator);
1120 data->driver_device = dev;
1123 *pDevice = dev;
H A Dapi.cpp413 static void DestroyDevice(VkDevice dev,
873 VkDevice dev; local
874 result = create_device(physical_dev, create_info, allocator, &dev);
879 DeviceData& data = GetData(dev);
881 if (!InitDispatchTable(dev, get_device_proc_addr_, enabled_extensions_)) {
883 data.dispatch.DestroyDevice(dev, allocator);
890 *dev_out = dev;
/frameworks/rs/
H A DrsApiDevice.cpp32 extern "C" void rsDeviceDestroy(RsDevice dev) { argument
39 extern "C" void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) { argument
40 Device * d = static_cast<Device *>(dev);
H A DrsApiContext.cpp31 Device * dev = static_cast<Device *>(vdev); local
32 Context *rsc = Context::createContext(dev, nullptr, ct, flags, vendorDriverName);
58 //ALOGV("rsContextCreateGL dev=%p", vdev);
59 Device * dev = static_cast<Device *>(vdev); local
60 Context *rsc = Context::createContext(dev, &sc);
H A DrsContext.cpp462 Context * Context::createContext(Device *dev, const RsSurfaceConfig *sc, argument
477 if (!rsc->initContext(dev, sc)) {
491 bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { argument
/frameworks/av/media/libaudiohal/4.0/
H A DDevicesFactoryHalLocal.cpp31 static status_t load_audio_interface(const char *if_name, audio_hw_device_t **dev) argument
42 rc = audio_hw_device_open(mod, dev);
48 if ((*dev)->common.version < AUDIO_DEVICE_API_VERSION_MIN) {
49 ALOGE("%s wrong audio hw device version %04x", __func__, (*dev)->common.version);
51 audio_hw_device_close(*dev);
57 *dev = NULL;
62 audio_hw_device_t *dev; local
63 status_t rc = load_audio_interface(name, &dev);
65 *device = new DeviceHalLocal(dev);
H A DDeviceHalLocal.cpp28 DeviceHalLocal::DeviceHalLocal(audio_hw_device_t *dev) argument
29 : mDev(dev) {
/frameworks/av/camera/ndk/impl/
H A DACameraCaptureSession.cpp26 sp<CameraDevice> dev = getDeviceSp(); local
27 if (dev != nullptr && !dev->isClosed()) {
28 dev->lockDeviceForSessionOps();
31 dev->notifySessionEndOfLifeLocked(this);
33 dev->unlockDevice();
51 sp<CameraDevice> dev = getDeviceSp(); local
52 if (dev != nullptr) {
53 dev->lockDeviceForSessionOps();
59 if (!mIsClosed && dev !
76 sp<CameraDevice> dev = getDeviceSp(); local
94 sp<CameraDevice> dev = getDeviceSp(); local
115 sp<CameraDevice> dev = getDeviceSp(); local
136 sp<CameraDevice> dev = getDeviceSp(); local
152 sp<CameraDevice> dev = getDeviceSp(); local
171 sp<CameraDevice> dev = getDeviceSp(); local
[all...]
H A DACameraDevice.cpp67 mCbLooper->setName("C2N-dev-looper");
916 ACameraDevice* dev; local
917 found = msg->findPointer(kDeviceKey, (void**) &dev);
918 if (!found || dev == nullptr) {
931 (*onDisconnected)(context, dev);
936 ACameraDevice* dev; local
937 found = msg->findPointer(kDeviceKey, (void**) &dev);
938 if (!found || dev == nullptr) {
957 (*onError)(context, dev, errorCode);
1266 sp<CameraDevice> dev local
1329 sp<CameraDevice> dev = mDevice.promote(); local
1372 sp<CameraDevice> dev = mDevice.promote(); local
1414 sp<CameraDevice> dev = mDevice.promote(); local
1494 sp<CameraDevice> dev = mDevice.promote(); local
[all...]
/frameworks/av/services/audioflinger/
H A DSpdifStreamOut.cpp34 SpdifStreamOut::SpdifStreamOut(AudioHwDevice *dev, argument
38 : AudioStreamOut(dev, (audio_output_flags_t) (flags | AUDIO_OUTPUT_FLAG_IEC958_NONAUDIO))
H A DAudioStreamOut.cpp32 AudioStreamOut::AudioStreamOut(AudioHwDevice *dev, audio_output_flags_t flags) argument
33 : audioHwDev(dev)
H A DAudioFlinger.h690 AudioStreamIn(AudioHwDevice *dev, sp<StreamInHalInterface> in, audio_input_flags_t flags) : argument
691 audioHwDev(dev), stream(in), flags(flags) {}
H A DAudioFlinger.cpp376 sp<DeviceHalInterface> dev = audioHwDevice->hwDevice(); local
378 if (dev->getSupportedDevices(&supportedDevices) == OK &&
533 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
534 dev->dump(fd);
897 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); local
900 if (dev->canSetMasterVolume()) {
901 dev->hwDevice()->setMasterVolume(value);
938 sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice(); local
940 ret = dev->setMode(mode);
969 sp<DeviceHalInterface> dev local
990 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
1032 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); local
1245 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
1320 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
1363 sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice(); local
1417 sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice(); local
1804 sp<DeviceHalInterface> dev; local
2010 sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice(); local
[all...]
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pUpnpServiceResponse.java77 * @param dev source device
81 int transId, WifiP2pDevice dev, byte[] data) {
83 status, transId, dev, data);
80 WifiP2pUpnpServiceResponse(int status, int transId, WifiP2pDevice dev, byte[] data) argument
H A DWifiP2pDnsSdServiceResponse.java148 * @param dev source device.
153 int tranId, WifiP2pDevice dev, byte[] data) {
155 status, tranId, dev, data);
290 * @param dev source device.
296 int transId, WifiP2pDevice dev, byte[] data) {
299 transId, dev, null);
303 transId, dev, data);
152 WifiP2pDnsSdServiceResponse(int status, int tranId, WifiP2pDevice dev, byte[] data) argument
295 newInstance(int status, int transId, WifiP2pDevice dev, byte[] data) argument
H A DWifiP2pServiceResponse.java180 public void setSrcDevice(WifiP2pDevice dev) { argument
181 if (dev == null) return;
182 this.mDevice = dev;
198 WifiP2pDevice dev = new WifiP2pDevice();
199 dev.deviceAddress = srcAddr;
228 transId, dev, null));
242 transId, dev, data);
245 transId, dev, data);
247 resp = new WifiP2pServiceResponse(type, status, transId, dev, data);
360 WifiP2pDevice dev
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DConfigParsingUtils.cpp303 sp<DeviceDescriptor> dev = new DeviceDescriptor(singleType); local
304 devices.add(dev);
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
H A DDeviceDiscoveryService.java179 for (BluetoothDevice dev : emptyIfNull(mBluetoothAdapter.getBondedDevices())) {
180 onDeviceFound(DeviceFilterPair.findMatch(dev, mBluetoothFilters));
391 T dev, @Nullable List<? extends DeviceFilter<T>> filters) {
392 if (isEmpty(filters)) return new DeviceFilterPair<>(dev, null);
394 = CollectionUtils.find(filters, f -> f.matches(dev));
397 ? new DeviceFilterPair<>(dev, matchingFilter)
399 if (DEBUG) Log.i(LOG_TAG, "findMatch(dev = " + dev + ", filters = " + filters +
390 findMatch( T dev, @Nullable List<? extends DeviceFilter<T>> filters) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java257 public static boolean isGamePad(InputDevice dev) { argument
258 int sources = dev.getSources();
269 InputDevice dev = InputDevice.getDevice(deviceId);
270 if (isGamePad(dev)) {
376 InputDevice dev = InputDevice.getDevice(controllerId);
377 if (dev != null && dev.getVibrator().hasVibrator()) {
378 dev.getVibrator().vibrate(
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.cpp2532 ALOGV(" registerPolicyMixes() mix %zu of %zu is RENDER, dev=0x%X addr=%s",
2770 for (const auto& dev : mAvailableOutputDevices) {
2771 if (dev->type() == AUDIO_DEVICE_OUT_STUB) {
2775 dev->toAudioPort(&ports[portsWritten++]);
2781 for (const auto& dev : mAvailableInputDevices) {
2782 if (dev->type() == AUDIO_DEVICE_IN_STUB) {
2786 dev->toAudioPort(&ports[portsWritten++]);
2822 sp<DeviceDescriptor> dev = mAvailableOutputDevices.getDeviceFromId(port->id); local
2823 if (dev != 0) {
2824 dev
[all...]

Completed in 2968 milliseconds

12