Home
last modified time | relevance | path

Searched refs:AudioDeviceUtils (Results 1 – 14 of 14) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioDataPathsUSBActivity.java25 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
44 mUsbDeviceSupport = AudioDeviceUtils.supportsUsbAudioInterface(this); in onCreate()
45 mUsbHeadsetSupport = AudioDeviceUtils.supportsUsbHeadset(this); in onCreate()
51 mCanRunTest = mUsbDeviceSupport != AudioDeviceUtils.SUPPORTSDEVICE_NO in onCreate()
52 || mUsbHeadsetSupport != AudioDeviceUtils.SUPPORTSDEVICE_NO; in onCreate()
69 boolean doUsbDevice = mUsbDeviceSupport != AudioDeviceUtils.SUPPORTSDEVICE_NO; in gatherTestModules()
70 boolean doUsbHeadset = mUsbHeadsetSupport != AudioDeviceUtils.SUPPORTSDEVICE_NO; in gatherTestModules()
137 AudioDeviceUtils.validateUsbDevice(this); in postValidateTestDevices()
141 if (mUsbDeviceSupport == AudioDeviceUtils.SUPPORTSDEVICE_YES in postValidateTestDevices()
142 && mUsbHeadsetSupport == AudioDeviceUtils.SUPPORTSDEVICE_YES) { in postValidateTestDevices()
[all …]
DAudioNotificationsBaseActivity.java33 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
80 mAnalogHeadsetSupport = AudioDeviceUtils.supportsAnalogHeadset(mContext); in onCreate()
81 mUsbHeadsetSupport = AudioDeviceUtils.supportsUsbHeadset(mContext); in onCreate()
82 mUsbInterfaceSupport = AudioDeviceUtils.supportsUsbAudioInterface(mContext); in onCreate()
122 case AudioDeviceUtils.SUPPORTSDEVICE_NO: in getSupportString()
125 case AudioDeviceUtils.SUPPORTSDEVICE_YES: in getSupportString()
128 case AudioDeviceUtils.SUPPORTSDEVICE_UNDETERMINED: in getSupportString()
180 mAnalogHeadsetSupport = AudioDeviceUtils.SUPPORTSDEVICE_YES; in scanConnectedDevices()
184 mUsbHeadsetSupport = AudioDeviceUtils.SUPPORTSDEVICE_YES; in scanConnectedDevices()
188 mUsbInterfaceSupport = AudioDeviceUtils.SUPPORTSDEVICE_YES; in scanConnectedDevices()
DAudioDataPathsAnalogActivity.java25 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
47 AudioDeviceUtils.supportsAnalogHeadset(this) != AudioDeviceUtils.SUPPORTSDEVICE_NO; in onCreate()
84 int headsetSupport = AudioDeviceUtils.supportsAnalogHeadset(this); in postValidateTestDevices()
85 if (headsetSupport == AudioDeviceUtils.SUPPORTSDEVICE_YES) { in postValidateTestDevices()
92 } else if (headsetSupport == AudioDeviceUtils.SUPPORTSDEVICE_NO) { in postValidateTestDevices()
DAudioDevicesDialog.java33 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
105 .appendText(AudioDeviceUtils.getShortDeviceTypeName(deviceType)) in displayDeviceSupport()
121 .appendText(AudioDeviceUtils.getShortDeviceTypeName(deviceType)) in displayDeviceSupport()
146 .appendText(AudioDeviceUtils.getShortDeviceTypeName(deviceInfo.getType())) in displayDeviceSupport()
162 .appendText(AudioDeviceUtils.getShortDeviceTypeName(deviceInfo.getType())) in displayDeviceSupport()
DAudioOutputDeviceNotificationsActivity.java28 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
57 AudioDeviceUtils.formatDeviceName(devInfo))); in onAudioDevicesAdded()
69 AudioDeviceUtils.formatDeviceName(devInfo))); in onAudioDevicesRemoved()
DAudioInputDeviceNotificationsActivity.java28 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
57 AudioDeviceUtils.formatDeviceName(devInfo))); in onAudioDevicesAdded()
69 AudioDeviceUtils.formatDeviceName(devInfo))); in onAudioDevicesRemoved()
DAudioLoopbackLatencyActivity.java44 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
427 mUSBAudioSupport = AudioDeviceUtils.supportsUsbAudio(this); in onCreate()
428 mAnalogJackSupport = AudioDeviceUtils.supportsAnalogHeadset(this); in onCreate()
543 case AudioDeviceUtils.SUPPORTSDEVICE_NO: in showRouteStatus()
547 case AudioDeviceUtils.SUPPORTSDEVICE_YES: in showRouteStatus()
551 case AudioDeviceUtils.SUPPORTSDEVICE_UNDETERMINED: in showRouteStatus()
559 case AudioDeviceUtils.SUPPORTSDEVICE_NO: in showRouteStatus()
562 case AudioDeviceUtils.SUPPORTSDEVICE_YES: in showRouteStatus()
566 case AudioDeviceUtils.SUPPORTSDEVICE_UNDETERMINED: in showRouteStatus()
685 AudioDeviceUtils.validateUsbDevice(mContext); in onAudioDevicesAdded()
[all …]
DAudioOutputRoutingNotificationsActivity.java31 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
146 mConnectedPeripheralName = AudioDeviceUtils.formatDeviceName(routedDevice); in onRoutingChanged()
DAudioInputRoutingNotificationsActivity.java31 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
146 mConnectedPeripheralName = AudioDeviceUtils.formatDeviceName(routedDevice); in onRoutingChanged()
DAudioLoopbackCalibrationDialog.java36 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
139 String devTypeString = AudioDeviceUtils.getDeviceTypeName(devInfo.getType()); in fillAdapter()
176 if (mSelectedInputDevice != null && AudioDeviceUtils.isMicDevice(mSelectedInputDevice)) { in startAudio()
DAudioMultichannelMixdownActivity.java35 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
568 AudioDeviceUtils.supportsUsbAudio(this) == AudioDeviceUtils.SUPPORTSDEVICE_YES; in onCreate()
571 AudioDeviceUtils.supportsAnalogHeadset(this) == AudioDeviceUtils.SUPPORTSDEVICE_YES; in onCreate()
1042 AudioDeviceUtils.validateUsbDevice(mContext); in onAudioDevicesAdded()
DAudioDataPathsBaseActivity.java40 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
429 return AudioDeviceUtils.getShortDeviceTypeName(mOutDeviceType); in getOutDeviceName()
433 return AudioDeviceUtils.getShortDeviceTypeName(mInDeviceType); in getInDeviceName()
554 String deviceName = AudioDeviceUtils.getShortDeviceTypeName(mOutDeviceType); in formatOutputAttributes()
562 String deviceName = AudioDeviceUtils.getShortDeviceTypeName(mInDeviceType); in formatInputAttributes()
DAudioTap2ToneActivity.java44 import com.android.cts.verifier.audio.audiolib.AudioDeviceUtils;
625 AudioDeviceUtils.validateUsbDevice(mContext); in onAudioDevicesAdded()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioDeviceUtils.java34 public class AudioDeviceUtils { class
346 UsbDevice usbDevice = AudioDeviceUtils.getConnectedUsbDevice(context); in validateUsbDevice()
348 AudioDeviceUtils.isUsbHeadsetValidForTest(usbDevice, true, context); in validateUsbDevice()