Home
last modified time | relevance | path

Searched refs:openDevice (Results 1 – 25 of 63) sorted by relevance

123

/aosp12/hardware/interfaces/audio/core/all-versions/default/
H A DDevicesFactory.cpp37 return openDevice<PrimaryDevice>(AUDIO_HARDWARE_MODULE_ID_PRIMARY, _hidl_cb); in openDevice()
39 return openDevice(AUDIO_HARDWARE_MODULE_ID_A2DP, _hidl_cb); in openDevice()
41 return openDevice(AUDIO_HARDWARE_MODULE_ID_USB, _hidl_cb); in openDevice()
43 return openDevice(AUDIO_HARDWARE_MODULE_ID_REMOTE_SUBMIX, _hidl_cb); in openDevice()
45 return openDevice(AUDIO_HARDWARE_MODULE_ID_STUB, _hidl_cb); in openDevice()
53 return openDevice<PrimaryDevice>(moduleName.c_str(), _hidl_cb);
55 return openDevice(moduleName.c_str(), _hidl_cb);
58 return openDevice<PrimaryDevice>(AUDIO_HARDWARE_MODULE_ID_PRIMARY, _hidl_cb);
62 Return<void> DevicesFactory::openDevice(const char* moduleName, openDevice_cb _hidl_cb) { in openDevice() function in android::hardware::audio::CPP_VERSION::implementation::DevicesFactory
63 return openDevice<implementation::Device>(moduleName, _hidl_cb); in openDevice()
[all …]
/aosp12/hardware/interfaces/audio/core/all-versions/default/include/core/default/
H A DDevicesFactory.h42 Return<void> openDevice(IDevicesFactory::Device device, openDevice_cb _hidl_cb) override;
44 Return<void> openDevice(const hidl_string& device, openDevice_cb _hidl_cb) override;
50 Return<void> openDevice(const char* moduleName, Callback _hidl_cb);
51 Return<void> openDevice(const char* moduleName, openDevice_cb _hidl_cb);
/aosp12/frameworks/av/media/libaudiohal/impl/
H A DDevicesFactoryHalHybrid.cpp32 status_t DevicesFactoryHalHybrid::openDevice(const char *name, sp<DeviceHalInterface> *device) { in openDevice() function in android::CPP_VERSION::DevicesFactoryHalHybrid
35 return mHidlFactory->openDevice(name, device); in openDevice()
37 return mLocalFactory->openDevice(name, device); in openDevice()
H A DDevicesFactoryHalHidl.cpp110 status_t DevicesFactoryHalHidl::openDevice(const char *name, sp<DeviceHalInterface> *device) { in openDevice() function in android::CPP_VERSION::DevicesFactoryHalHidl
118 Return<void> ret = factory->openDevice( in openDevice()
H A DDevicesFactoryHalLocal.h34 virtual status_t openDevice(const char *name, sp<DeviceHalInterface> *device);
H A DDevicesFactoryHalHybrid.h37 virtual status_t openDevice(const char *name, sp<DeviceHalInterface> *device);
H A DDevicesFactoryHalLocal.cpp61 status_t DevicesFactoryHalLocal::openDevice(const char *name, sp<DeviceHalInterface> *device) { in openDevice() function in android::CPP_VERSION::DevicesFactoryHalLocal
H A DDevicesFactoryHalHidl.h43 status_t openDevice(const char *name, sp<DeviceHalInterface> *device) override;
/aosp12/packages/apps/Camera2/src/com/android/camera/device/
H A DMultiCameraDeviceLifecycle.java138 return openDevice(requestLifetime, key, mCamera2ActionProvider); in openCamera2Device()
165 return openDevice(requestLifetime, key, mPortabilityCameraActionProvider); in openPortabilityDevice()
192 return openDevice(requestLifetime, key, mPortabilityCameraActionProvider); in openCamera2PortabilityDevice()
217 return openDevice(requestLifetime, key, mPortabilityCameraActionProvider); in openLegacyPortabilityDevice()
241 return openDevice(requestLifetime, key, mLegacyCameraActionProvider); in openLegacyCameraDevice()
280 private <TDevice> ListenableFuture<TDevice> openDevice(Lifetime requestLifetime, in openDevice() method in MultiCameraDeviceLifecycle
/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/
H A DDeviceManager.h107 return name == kPrimaryDevice ? openPrimaryDevice(factory) : openDevice(factory, name); in createInterfaceInstance()
141 static sp<IDevice> openDevice(const sp<IDevicesFactory>& factory, const std::string& name) { in openDevice() function
146 auto ret = factory->openDevice(name, returnIn(result, device)); in openDevice()
163 auto ret = factory->openDevice(IDevicesFactory::Device::PRIMARY, returnIn(result, device)); in openPrimaryDevice()
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2SwitchPreviewTest.java166 openDevice(id); in testPreviewSwitchBackFrontCamera()
197 openDevice(id); in testPreviewSwitchBackFrontVideo()
223 openDevice(id); in testPreviewSwitchBackCameraVideo()
234 openDevice(id); in testPreviewSwitchBackCameraVideo()
265 openDevice(id); in testPreviewSwitchFrontCameraVideo()
276 openDevice(id); in testPreviewSwitchFrontCameraVideo()
416 openDevice(id); in cameraColorOutputCheck()
/aosp12/hardware/libhardware/modules/camera/3_4/
H A Dv4l2_camera_hal.cpp159 int V4L2CameraHAL::openDevice(const hw_module_t* module, in openDevice() function in v4l2_camera_hal::V4L2CameraHAL
175 return mCameras[id]->openDevice(module, device); in openDevice()
213 return gCameraHAL.openDevice(module, name, device); in open_dev()
H A Dv4l2_camera_hal.h53 int openDevice(const hw_module_t* mod, const char* name, hw_device_t** dev);
/aosp12/packages/services/Mtp/tests/src/com/android/mtp/
H A DMtpDocumentsProviderTest.java88 mProvider.openDevice(0); in testOpenAndCloseDevice()
98 mProvider.openDevice(1); in testOpenAndCloseErrorDevice()
124 mProvider.openDevice(0); in testOpenAndCloseErrorDevice()
209 mProvider.openDevice(0); in testQueryRoots()
227 mProvider.openDevice(1); in testQueryRoots()
270 mProvider.openDevice(0); in testQueryRoots_error()
273 mProvider.openDevice(1); in testQueryRoots_error()
633 synchronized MtpDeviceRecord openDevice(int deviceId) in testBusyDevice()
734 mProvider.openDevice(0); in testMappingDisconnectedDocuments()
958 mProvider.openDevice(deviceId); in setupRoots()
H A DTestUtil.java95 final UsbDeviceConnection connection = usbManager.openDevice(device); in findMtpDevice()
104 manager.openDevice(device.getDeviceId()); in findMtpDevice()
/aosp12/packages/services/Mtp/src/com/android/mtp/
H A DMtpDocumentsProvider.java253 openDevice(parentIdentifier.mDeviceId); in queryChildDocuments()
289 openDevice(identifier.mDeviceId); in openDocument()
343 openDevice(identifier.mDeviceId); in openDocumentThumbnail()
358 openDevice(identifier.mDeviceId); in deleteDocument()
397 openDevice(parentId.mDeviceId); in createDocument()
582 void openDevice(int deviceId) throws IOException { in openDevice() method in MtpDocumentsProvider
590 final MtpDeviceRecord device = mMtpManager.openDevice(deviceId); in openDevice()
H A DReceiverActivity.java44 provider.openDevice(device.getDeviceId()); in onCreate()
H A DMtpManager.java77 synchronized MtpDeviceRecord openDevice(int deviceId) throws IOException { in openDevice() method in MtpManager
98 mManager.openDevice(rawDevice), in openDevice()
/aosp12/hardware/interfaces/audio/common/7.0/example/
H A DDevicesFactory.h27 ::android::hardware::Return<void> openDevice(const ::android::hardware::hidl_string& device,
H A DDevicesFactory.cpp28 Return<void> DevicesFactory::openDevice(const hidl_string& device, openDevice_cb _hidl_cb) { in openDevice() function in android::hardware::audio::V7_0::implementation::DevicesFactory
/aosp12/frameworks/av/media/libaudiohal/include/media/audiohal/
H A DDevicesFactoryHalInterface.h38 virtual status_t openDevice(const char *name, sp<DeviceHalInterface> *device) = 0;
/aosp12/hardware/libhardware/modules/usbcamera/
H A DUsbCamera.h37 int openDevice();
H A DCamera.h67 virtual int openDevice() = 0;
/aosp12/frameworks/base/media/java/android/media/midi/
H A DMidiManager.java246 public void openDevice(MidiDeviceInfo deviceInfo, OnDeviceOpenedListener listener, in openDevice() method in MidiManager
266 mService.openDevice(mToken, deviceInfo, callback); in openDevice()
H A DIMidiManager.aidl38 …void openDevice(IBinder clientToken, in MidiDeviceInfo device, in IMidiDeviceOpenCallback callback… in openDevice() method

123