Home
last modified time | relevance | path

Searched refs:devices (Results 1 – 25 of 178) sorted by relevance

12345678

/hardware/interfaces/neuralnetworks/utils/service/src/
DService.cpp54 std::vector<nn::SharedDevice>* devices, in getHidlDevicesForVersion() argument
56 CHECK(devices != nullptr); in getHidlDevicesForVersion()
66 devices->push_back(std::move(device)); in getHidlDevicesForVersion()
75 void getAidlDevices(std::vector<nn::SharedDevice>* devices, in getAidlDevices() argument
78 CHECK(devices != nullptr); in getAidlDevices()
99 devices->push_back(std::move(device)); in getAidlDevices()
111 std::vector<nn::SharedDevice> devices; in getDevices() local
116 getAidlDevices(&devices, &registeredDevices, maxFeatureLevelAllowed); in getDevices()
118 getHidlDevicesForVersion(V1_3::IDevice::descriptor, &V1_3::utils::getDevice, &devices, in getDevices()
120 getHidlDevicesForVersion(V1_2::IDevice::descriptor, &V1_2::utils::getDevice, &devices, in getDevices()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
Dalsa_default.cpp197 static void switchDevice(alsa_handle_t *handle, uint32_t devices, uint32_t mode);
198 static char *getUCMDevice(uint32_t devices, int input, char *rxDevice);
392 void switchDevice(alsa_handle_t *handle, uint32_t devices, uint32_t mode) in switchDevice() argument
401 ALOGD("%s: device %d mode:%d", __FUNCTION__, devices, mode); in switchDevice()
404 if ((devices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) || in switchDevice()
405 (devices & AudioSystem::DEVICE_IN_WIRED_HEADSET)) { in switchDevice()
406 devices = devices | (AudioSystem::DEVICE_OUT_WIRED_HEADSET | in switchDevice()
408 } else if (devices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE) { in switchDevice()
409 devices = devices | (AudioSystem::DEVICE_OUT_WIRED_HEADPHONE | in switchDevice()
411 } else if (devices & AudioSystem::DEVICE_IN_BUILTIN_MIC) { in switchDevice()
[all …]
DAudioHardwareALSA.cpp721 AudioHardwareALSA::openOutputStream(uint32_t devices, in openOutputStream() argument
729 devices, *channels, *sampleRate); in openOutputStream()
738 if (devices & (devices - 1)) { in openOutputStream()
746 if((devices == AudioSystem::DEVICE_OUT_DIRECTOUTPUT) && in openOutputStream()
775 alsa_handle.devices = devices; in openOutputStream()
805 alsa_handle.devices = AudioSystem::DEVICE_OUT_PROXY; in openOutputStream()
828 err = out->set(format, channels, sampleRate, devices); in openOutputStream()
838 (devices == AudioSystem::DEVICE_OUT_AUX_DIGITAL)) { in openOutputStream()
844 alsa_handle.devices = devices; in openOutputStream()
891 mALSADevice->route(&(*it), devices, mode()); in openOutputStream()
[all …]
/hardware/interfaces/audio/aidl/default/primary/
DStreamPrimary.cpp71 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices) { in switchCurrentStream() argument
73 if (devices.size() > 1) { in switchCurrentStream()
75 << devices.size(); in switchCurrentStream()
78 if (devices.empty() || useStubStream(devices[0]) == isStubStream()) { in switchCurrentStream()
85 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices, in createNewStream() argument
87 if (devices.empty()) { in createNewStream()
90 if (useStubStream(devices[0])) { in createNewStream()
137 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices) { in switchCurrentStream() argument
139 if (devices.size() > 1) { in switchCurrentStream()
141 << devices.size(); in switchCurrentStream()
[all …]
/hardware/libhardware_legacy/audio/
Daudio_policy.conf33 devices AUDIO_DEVICE_OUT_SPEAKER
42 devices AUDIO_DEVICE_IN_BUILTIN_MIC
52 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
60 devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
DAudioHardwareGeneric.cpp68 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream()
102 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument
106 if (!AudioSystem::isInputDevice((AudioSystem::audio_devices)devices)) { in openInputStream()
122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream()
195 uint32_t devices, in set() argument
225 mDevice = devices; in set()
314 uint32_t devices, in set() argument
335 mDevice = devices; in set()
DAudioHardwareGeneric.h45 uint32_t devices,
78 uint32_t devices,
121 uint32_t devices,
129 uint32_t devices,
DAudioDumpInterface.cpp60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
100 devices, lFormat, lChannels, lRate); in openOutputStream()
126 AudioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channel… in openInputStream() argument
134 …inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
166 devices, lFormat, lChannels, lRate); in openInputStream()
261 uint32_t devices, in AudioStreamOutDump() argument
266 mSampleRate(sampleRate), mFormat(format), mChannels(channels), mLatency(0), mDevice(devices), in AudioStreamOutDump()
422 uint32_t devices, in AudioStreamInDump() argument
427 mSampleRate(sampleRate), mFormat(format), mChannels(channels), mDevice(devices), in AudioStreamInDump()
/hardware/qcom/sm7250/media/media-prop/
Dinit.qti.media.sh35 if [ -f /sys/devices/soc0/soc_id ]; then
36 soc_hwid=`cat /sys/devices/soc0/soc_id` 2> /dev/null
38 soc_hwid=`cat /sys/devices/system/soc/soc0/id` 2> /dev/null
47 sku_ver=`cat /sys/devices/platform/soc/5a00000.qcom,vidc1/sku_version` 2> /dev/null
59 sku_ver=`cat /sys/devices/platform/soc/5a00000.qcom,vidc/sku_version` 2> /dev/null
/hardware/qcom/sm7250/display/init/
Dinit.qti.display_boot.sh66 if [ -f /sys/devices/soc0/soc_id ]; then
67 soc_hwid=`cat /sys/devices/soc0/soc_id`
69 soc_hwid=`cat /sys/devices/system/soc/soc0/id`
/hardware/google/pixel/powerstats/
Dandroid.hardware.power.stats-service.pixel.rc4 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH0=BUCK9M"
7 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH0=BUCK9M"
10 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH0=BUCK9M"
13 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH0=BUCK9M"
/hardware/interfaces/thermal/1.0/
DIThermal.hal29 * devices (such as CPUs, GPUs and etc.) in the list must be kept
31 * they go offline, if these devices exist on boot. The method
59 * Retrieves the cooling devices information.
64 * @return devices If status code is SUCCESS, it's filled with the current
66 * devices in the list must be kept the same regardless the number
67 * of calls to this method even if they go offline, if these devices
69 * the list such cooling devices.
76 generates (ThermalStatus status, vec<CoolingDevice> devices);
/hardware/interfaces/camera/device/
DREADME.md7 individual camera devices. Instances of camera.device HAL interface can be obtained
17 [source.android.com](http://source.android.com/devices/camera/index.html).
23 HIDL version of the legacy camera device HAL. Intended as a shim for devices
26 May be used in HIDL passthrough mode for devices upgrading to the Android O
27 release; must be used in binderized mode for devices launching in the O release.
29 It is strongly recommended to not use this interface for new devices, as new
30 devices may not use this interface starting with the Android P release, and all
59 May be used in passthrough mode for devices upgrading to the Android O release;
60 must be used in binderized mode for all new devices launching with Android O or
/hardware/interfaces/camera/provider/
DREADME.md7 query, and open individual camera devices.
9 It also allows for direct control of the flash unit of camera devices that have
13 [source.android.com](http://source.android.com/devices/camera/index.html).
43 $ANDROID_BUILD_TOP/hardware/google/camera/devices/EmulatedCamera
/hardware/google/camera/devices/EmulatedCamera/hwl/tools/
Dparse_bugreport.py55 devices = re.split(deviceRegExp, file.read())
56 if len(devices) != 3 and len(devices) != 2:
60 physicalDevices = re.split(physicalDeviceRegExp, devices[1])
/hardware/interfaces/audio/aidl/default/include/core-impl/
DStreamPrimary.h48 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices)
51 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices,
73 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices)
76 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices,
DStreamRemoteSubmix.h86 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices)
89 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices,
108 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices)
111 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices,
/hardware/interfaces/audio/aidl/default/
DStreamSwitcher.cpp176 ndk::ScopedAStatus StreamSwitcher::setConnectedDevices(const std::vector<AudioDevice>& devices) { in setConnectedDevices() argument
177 LOG(DEBUG) << __func__ << ": " << ::android::internal::ToString(devices); in setConnectedDevices()
178 if (mStream->getConnectedDevices() == devices) return ndk::ScopedAStatus::ok(); in setConnectedDevices()
179 const DeviceSwitchBehavior behavior = switchCurrentStream(devices); in setConnectedDevices()
182 } else if (behavior == DeviceSwitchBehavior::SWITCH_TO_STUB_STREAM && !devices.empty()) { in setConnectedDevices()
195 mStream = createNewStream(devices, mContext, mMetadata); in setConnectedDevices()
212 (void)mStream->setConnectedDevices(devices); in setConnectedDevices()
216 RETURN_STATUS_IF_ERROR(mStream->setConnectedDevices(devices)); in setConnectedDevices()
/hardware/interfaces/thermal/2.0/
DIThermal.hal36 * devices (such as CPUs, GPUs and etc.) in the list must be kept
38 * they go offline, if these devices exist on boot. The method
54 * devices (such as CPUs, GPUs and etc.) in the list must be kept
56 * they go offline, if these devices exist on boot. The method
102 * Retrieves the cooling devices information.
110 * @return devices If status code is SUCCESS, it's filled with the current
112 * devices in the list must be kept the same regardless of the number
113 * of calls to this method even if they go offline, if these devices
115 * the list such cooling devices.
118 generates (ThermalStatus status, vec<CoolingDevice> devices);
/hardware/qcom/audio/hal/msm8960/
Dplatform.c660 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices) in platform_get_output_snd_device() argument
667 ALOGV("%s: enter: output devices(%#x)", __func__, devices); in platform_get_output_snd_device()
668 if (devices == AUDIO_DEVICE_NONE || in platform_get_output_snd_device()
669 devices & AUDIO_DEVICE_BIT_IN) { in platform_get_output_snd_device()
670 ALOGV("%s: Invalid output devices (%#x)", __func__, devices); in platform_get_output_snd_device()
675 if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_output_snd_device()
676 devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_output_snd_device()
683 else if (devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) in platform_get_output_snd_device()
687 } else if (devices & AUDIO_DEVICE_OUT_ALL_SCO) { in platform_get_output_snd_device()
693 } else if (devices & AUDIO_DEVICE_OUT_SPEAKER) { in platform_get_output_snd_device()
[all …]
/hardware/interfaces/camera/
DREADME.md7 operate camera devices available on the device.
12 [source.android.com](http://source.android.com/devices/camera/index.html).
/hardware/interfaces/camera/common/1.0/
Dtypes.hal129 * At startup, the camera service must assume all internal camera devices listed
132 * service of any initially NOT_PRESENT internal devices, and of any PRESENT
133 * external camera devices, as soon as the camera service has called
155 * By default, the framework must assume all devices returned by
186 * external camera devices when they are initially connected.
224 * for other previously-on torch modes if HAL cannot keep multiple devices'
263 * and any usage conflicts between multiple camera devices.
278 * combination of camera devices exposed by the HAL where the sum of
286 * of camera devices with a total resource cost > 100. This may succeed or
288 * supported due to resource constraints from having multiple open devices
[all …]
/hardware/interfaces/audio/aidl/default/r_submix/
DStreamRemoteSubmix.cpp371 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices) { in switchCurrentStream() argument
375 if (devices.size() == 1) { in switchCurrentStream()
376 auto deviceDesc = devices.front().type; in switchCurrentStream()
392 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices, in createNewStream() argument
395 new InnerStreamWrapper<StreamRemoteSubmix>(context, metadata, devices.front().address)); in createNewStream()
405 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices) { in switchCurrentStream() argument
409 if (devices.size() == 1) { in switchCurrentStream()
410 auto deviceDesc = devices.front().type; in switchCurrentStream()
426 const std::vector<::aidl::android::media::audio::common::AudioDevice>& devices, in createNewStream() argument
429 new InnerStreamWrapper<StreamRemoteSubmix>(context, metadata, devices.front().address)); in createNewStream()
/hardware/interfaces/tv/hdmi/
DREADME.md1 # HDMI-related AIDL HALs for Android devices
6 the CEC and the eARC implementation. Therefore, devices that implement CEC need to support the HDMI
/hardware/qcom/audio/hal/msm8916/
Dplatform.c1911 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices)
1918 ALOGV("%s: enter: output devices(%#x)", __func__, devices);
1919 if (devices == AUDIO_DEVICE_NONE ||
1920 devices & AUDIO_DEVICE_BIT_IN) {
1921 ALOGV("%s: Invalid output devices (%#x)", __func__, devices);
1925 if (popcount(devices) == 2) {
1926 if (devices == (AUDIO_DEVICE_OUT_WIRED_HEADPHONE |
1929 } else if (devices == (AUDIO_DEVICE_OUT_LINE |
1932 } else if (devices == (AUDIO_DEVICE_OUT_WIRED_HEADSET |
1935 } else if (devices == (AUDIO_DEVICE_OUT_AUX_DIGITAL |
[all …]

12345678