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

12

/frameworks/av/media/libaudiohal/
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.h46 inline DeviceData& GetData(VkDevice dev) { argument
47 return driver::GetData(dev).opaque_api_data;
H A Ddriver.h186 inline bool SetData(VkDevice dev, const DeviceData& data) { argument
187 return SetDataInternal(dev, &data);
214 inline DeviceData& GetData(VkDevice dev) { argument
215 return *reinterpret_cast<DeviceData*>(GetDataInternal(dev));
H A Ddriver_gen.cpp435 bool InitDriverTable(VkDevice dev, argument
438 auto& data = GetData(dev);
442 INIT_PROC(true, dev, GetDeviceProcAddr);
443 INIT_PROC(true, dev, DestroyDevice);
444 INIT_PROC(true, dev, GetDeviceQueue);
445 INIT_PROC(true, dev, CreateImage);
446 INIT_PROC(true, dev, DestroyImage);
447 INIT_PROC(true, dev, AllocateCommandBuffers);
448 INIT_PROC_EXT(ANDROID_native_buffer, false, dev, GetSwapchainGrallocUsageANDROID);
449 INIT_PROC_EXT(ANDROID_native_buffer, false, dev, GetSwapchainGrallocUsage2ANDROI
[all...]
H A Dapi.cpp392 static void DestroyDevice(VkDevice dev,
852 VkDevice dev; local
853 result = create_device(physical_dev, create_info, allocator, &dev);
858 DeviceData& data = GetData(dev);
860 if (!InitDispatchTable(dev, get_device_proc_addr_, enabled_extensions_)) {
862 data.dispatch.DestroyDevice(dev, allocator);
869 *dev_out = dev;
H A Ddriver.cpp978 VkDevice dev; local
981 pAllocator, &dev);
988 if (!SetData(dev, *data) ||
989 !InitDriverTable(dev, instance_data.get_device_proc_addr,
992 instance_data.get_device_proc_addr(dev, "vkDestroyDevice"));
994 data->driver.DestroyDevice(dev, pAllocator);
1011 data->driver.DestroyDevice(dev, pAllocator);
1021 data->driver_device = dev;
1024 *pDevice = 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
H A DrsApiStubs.cpp97 extern "C" void rsDeviceDestroy(RsDevice dev) argument
100 extern "C" void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) argument
/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
154 sp<CameraDevice> dev = getDeviceSp(); local
[all...]
H A DACameraDevice.cpp66 mCbLooper->setName("C2N-dev-looper");
786 ACameraDevice* dev; local
787 found = msg->findPointer(kDeviceKey, (void**) &dev);
788 if (!found || dev == nullptr) {
801 (*onDisconnected)(context, dev);
806 ACameraDevice* dev; local
807 found = msg->findPointer(kDeviceKey, (void**) &dev);
808 if (!found || dev == nullptr) {
827 (*onError)(context, dev, errorCode);
1136 sp<CameraDevice> dev local
1198 sp<CameraDevice> dev = mDevice.promote(); local
1240 sp<CameraDevice> dev = mDevice.promote(); local
1280 sp<CameraDevice> dev = mDevice.promote(); local
1359 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.h706 AudioStreamIn(AudioHwDevice *dev, sp<StreamInHalInterface> in, audio_input_flags_t flags) : argument
707 audioHwDev(dev), stream(in), flags(flags) {}
H A DAudioFlinger.cpp359 sp<DeviceHalInterface> dev = audioHwDevice->hwDevice(); local
361 if (dev->getSupportedDevices(&supportedDevices) == OK &&
516 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
517 dev->dump(fd);
874 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); local
877 if (dev->canSetMasterVolume()) {
878 dev->hwDevice()->setMasterVolume(value);
915 sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice(); local
917 ret = dev->setMode(mode);
946 sp<DeviceHalInterface> dev local
967 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
996 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); local
1179 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
1269 sp<DeviceHalInterface> dev = mAudioHwDevs.valueAt(i)->hwDevice(); local
1312 sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice(); local
1366 sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice(); local
1742 sp<DeviceHalInterface> dev; local
1849 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.java173 for (BluetoothDevice dev : emptyIfNull(mBluetoothAdapter.getBondedDevices())) {
174 onDeviceFound(DeviceFilterPair.findMatch(dev, mBluetoothFilters));
365 T dev, @Nullable List<? extends DeviceFilter<T>> filters) {
366 if (isEmpty(filters)) return new DeviceFilterPair<>(dev, null);
368 = CollectionUtils.find(filters, f -> f.matches(dev));
371 ? new DeviceFilterPair<>(dev, matchingFilter)
373 if (DEBUG) Log.i(LOG_TAG, "findMatch(dev = " + dev + ", filters = " + filters +
364 findMatch( T dev, @Nullable List<? extends DeviceFilter<T>> filters) argument
/frameworks/av/services/radio/
H A DRadioService.cpp59 sp<RadioInterface> dev = RadioInterface::connectModule(RADIO_CLASS_AM_FM); local
61 if (dev == 0) {
65 int rc = dev->getProperties(&halProperties);
79 sp<Module> module = new Module(dev, properties);
/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/rs/support/jni/
H A Dandroid_renderscript_RenderScript.cpp789 nDeviceDestroy(JNIEnv *_env, jobject _this, jlong dev) argument
792 return dispatchTab.DeviceDestroy((RsDevice)dev);
796 nDeviceSetConfig(JNIEnv *_env, jobject _this, jlong dev, jint p, jint value) argument
798 LOG_API("nDeviceSetConfig dev(%p), param(%i), value(%i)", (void *)dev, p, value);
799 return dispatchTab.DeviceSetConfig((RsDevice)dev, (RsDeviceParam)p, value);
803 nContextCreate(JNIEnv *_env, jobject _this, jlong dev, jint ver, jint sdkVer, argument
811 jlong id = (jlong)(uintptr_t)dispatchTab.ContextCreate((RsDevice)dev, ver,
2147 nIncDeviceDestroy(JNIEnv *_env, jobject _this, jlong dev) argument
2150 return dispatchTabInc.DeviceDestroy((RsDevice)dev);
2154 nIncContextCreate(JNIEnv *_env, jobject _this, jlong dev, jint ver, jint sdkVer, jint ct) argument
[all...]

Completed in 2539 milliseconds

12