/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | USBDeviceInfoHelper.java | 29 public static int calcMaxChannelCount(AudioDeviceInfo deviceInfo) { in calcMaxChannelCount() argument 30 if (deviceInfo == null) { in calcMaxChannelCount() 35 int[] counts = deviceInfo.getChannelCounts(); in calcMaxChannelCount() 45 public static int getPlayChanMask(AudioDeviceInfo deviceInfo) { in getPlayChanMask() argument 46 int numChans = calcMaxChannelCount(deviceInfo); in getPlayChanMask() 70 public static int getRecordChanMask(AudioDeviceInfo deviceInfo) { in getRecordChanMask() argument 71 int numChans = calcMaxChannelCount(deviceInfo); in getRecordChanMask()
|
D | PeripheralProfile.java | 108 public static boolean matches(ProfileAttributes attribs, AudioDeviceInfo deviceInfo) { in matches() argument 110 ListsHelper.isMatch(deviceInfo.getChannelCounts(), attribs.mChannelCounts) && in matches() 111 ListsHelper.isMatch(deviceInfo.getChannelIndexMasks(), attribs.mChannelIndexMasks) && in matches() 112 ListsHelper.isMatch(deviceInfo.getChannelMasks(), attribs.mChannelPositionMasks) && in matches() 113 ListsHelper.isMatch(deviceInfo.getEncodings(), attribs.mEncodings) && in matches() 114 ListsHelper.isMatch(deviceInfo.getSampleRates(), attribs.mSampleRates); in matches()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | EnumDevicesTest.java | 118 AudioDeviceInfo deviceInfo = deviceList[index]; in test_devicesInfoFields() local 121 int id = deviceInfo.getId(); in test_devicesInfoFields() 124 CharSequence productName = deviceInfo.getProductName(); in test_devicesInfoFields() 129 String address = deviceInfo.getAddress(); in test_devicesInfoFields() 134 assertTrue(deviceInfo.isSource() != deviceInfo.isSink()); in test_devicesInfoFields() 137 int[] sampleRates = deviceInfo.getSampleRates(); in test_devicesInfoFields() 142 int[] channelMasks = deviceInfo.getChannelMasks(); in test_devicesInfoFields() 147 int[] indexMasks = deviceInfo.getChannelIndexMasks(); in test_devicesInfoFields() 153 int[] channelCounts = deviceInfo.getChannelCounts(); in test_devicesInfoFields() 158 int[] encodings = deviceInfo.getEncodings(); in test_devicesInfoFields() [all …]
|
D | AudioNativeTest.java | 272 for (AudioDeviceInfo deviceInfo : inputDevices) { in testInputChannelMasksPreQ() 273 for (int channels : deviceInfo.getChannelCounts()) { in testInputChannelMasksPreQ()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | USBAudioPeripheralAttributesActivity.java | 189 AudioDeviceInfo deviceInfo = mOutputDevInfo; in updateConnectStatus() local 195 if (deviceInfo.getChannelCounts().length == 0) { in updateConnectStatus() 197 … } else if (!ListsHelper.isSubset(deviceInfo.getChannelCounts(), attribs.mChannelCounts)) { in updateConnectStatus() 199 " d" + ListsHelper.textFormatDecimal(deviceInfo.getChannelCounts()) + in updateConnectStatus() 204 if (deviceInfo.getEncodings().length == 0) { in updateConnectStatus() 206 } else if (!ListsHelper.isSubset(deviceInfo.getEncodings(), attribs.mEncodings)) { in updateConnectStatus() 208 " d" + ListsHelper.textFormatHex(deviceInfo.getEncodings()) + in updateConnectStatus() 213 if (deviceInfo.getSampleRates().length == 0) { in updateConnectStatus() 215 … } else if (!ListsHelper.isSubset(deviceInfo.getSampleRates(), attribs.mSampleRates)) { in updateConnectStatus() 217 " d" + ListsHelper.textFormatHex(deviceInfo.getSampleRates()) + in updateConnectStatus() [all …]
|
D | AudioDevicesDialog.java | 144 for (AudioDeviceInfo deviceInfo : inputDevices) { in displayDeviceSupport() 146 .appendText(AudioDeviceUtils.getShortDeviceTypeName(deviceInfo.getType())) in displayDeviceSupport() 160 for (AudioDeviceInfo deviceInfo : outputDevices) { in displayDeviceSupport() 162 .appendText(AudioDeviceUtils.getShortDeviceTypeName(deviceInfo.getType())) in displayDeviceSupport()
|
D | ProAudioActivity.java | 141 for (AudioDeviceInfo deviceInfo : addedDevices) { in handleDeviceConnection() 142 Log.i(TAG, " " + deviceInfo.getProductName() + " type:" + deviceInfo.getType()); in handleDeviceConnection() 143 if (deviceInfo.isSink() && deviceInfo.getType() == AudioDeviceInfo.TYPE_HDMI) { in handleDeviceConnection() 144 mHDMIDeviceInfo = deviceInfo; in handleDeviceConnection()
|
D | MidiJavaTestActivity.java | 156 MidiDeviceInfo deviceInfo = device.getInfo(); in openUSBEchoDevice() local 157 int numOutputs = deviceInfo.getOutputPortCount(); in openUSBEchoDevice() 163 int numInputs = deviceInfo.getInputPortCount(); in openUSBEchoDevice()
|
D | PreferredMixerAttributesTestActivity.java | 242 for (AudioDeviceInfo deviceInfo : deviceInfos) { in detectUSBDevice() 243 if (deviceInfo.isSink() && (deviceInfo.getType() == AudioDeviceInfo.TYPE_USB_DEVICE in detectUSBDevice() 244 || deviceInfo.getType() == AudioDeviceInfo.TYPE_USB_HEADSET)) { in detectUSBDevice() 245 mUsbDevices.add(deviceInfo); in detectUSBDevice()
|
D | AudioDescriptorActivity.java | 192 for (AudioDeviceInfo deviceInfo : deviceInfos) { in detectHDMIDevice() 193 Log.i(TAG, " " + deviceInfo.getProductName() + " type:" + deviceInfo.getType()); in detectHDMIDevice() 194 if (deviceInfo.isSink() && deviceInfo.getType() == AudioDeviceInfo.TYPE_HDMI) { in detectHDMIDevice() 195 mHDMIDeviceInfo = deviceInfo; in detectHDMIDevice()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_VulkanPreTransformCtsActivity.cpp | 50 DeviceInfo deviceInfo; in createNativeTest() local 52 VkTestResult ret = deviceInfo.init(env, jSurface); in createNativeTest() 59 SwapchainInfo swapchainInfo(&deviceInfo); in createNativeTest() 63 Renderer renderer(&deviceInfo, &swapchainInfo); in createNativeTest()
|
D | VulkanPreTransformTestHelpers.h | 56 SwapchainInfo(const DeviceInfo* const deviceInfo); 77 Renderer(const DeviceInfo* const deviceInfo, const SwapchainInfo* const swapchainInfo);
|
D | VulkanPreTransformTestHelpers.cpp | 251 SwapchainInfo::SwapchainInfo(const DeviceInfo* const deviceInfo) in SwapchainInfo() argument 252 : mDeviceInfo(deviceInfo), in SwapchainInfo() 350 Renderer::Renderer(const DeviceInfo* const deviceInfo, const SwapchainInfo* const swapchainInfo) in Renderer() argument 351 : mDeviceInfo(deviceInfo), in Renderer()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioDeviceUtils.java | 113 public static String formatDeviceName(AudioDeviceInfo deviceInfo) { in formatDeviceName() argument 115 if (deviceInfo != null) { in formatDeviceName() 116 sb.append(deviceInfo.getProductName()); in formatDeviceName() 117 sb.append(" - " + getDeviceTypeName(deviceInfo.getType())); in formatDeviceName() 129 public static boolean isMicDevice(AudioDeviceInfo deviceInfo) { in isMicDevice() argument 130 if (deviceInfo == null || !deviceInfo.isSource()) { in isMicDevice() 134 switch (deviceInfo.getType()) { in isMicDevice()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/midilib/ |
D | MidiIODevice.java | 123 MidiDeviceInfo deviceInfo = device.getInfo(); in openPorts() local 124 int numOutputs = deviceInfo.getOutputPortCount(); in openPorts() 130 int numInputs = deviceInfo.getInputPortCount(); in openPorts()
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/duplex/ |
D | DuplexAudioManager.java | 97 public void setPlayerRouteDevice(AudioDeviceInfo deviceInfo) { in setPlayerRouteDevice() argument 98 mPlayerSelectedDevice = deviceInfo; in setPlayerRouteDevice() 101 public void setRecorderRouteDevice(AudioDeviceInfo deviceInfo) { in setRecorderRouteDevice() argument 102 mRecorderSelectedDevice = deviceInfo; in setRecorderRouteDevice()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/ |
D | MtpHostTestActivity.java | 308 final MtpDeviceInfo deviceInfo = mMtpDevice.getDeviceInfo(); 309 assertNotNull(deviceInfo.getOperationsSupported()); 310 assertTrue(deviceInfo.isOperationSupported(MtpConstants.OPERATION_SEND_OBJECT_INFO)); 311 assertTrue(deviceInfo.isOperationSupported(MtpConstants.OPERATION_SEND_OBJECT));
|
/cts/tests/tests/midi/src/android/midi/cts/ |
D | MidiEchoTest.java | 853 MidiDeviceInfo deviceInfo = umpService.getDeviceInfo(); in testMidiUmpDeviceServiceApis() local 854 assertTrue("null device info", deviceInfo != null); in testMidiUmpDeviceServiceApis()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarAudioManagerTest.java | 828 AudioDeviceInfo deviceInfo = mCarAudioManager.getOutputDeviceForUsage(PRIMARY_AUDIO_ZONE, in getOutputDeviceForUsage_succeeds() local 832 .that(deviceInfo).isNotNull(); in getOutputDeviceForUsage_succeeds() 834 .that(deviceInfo.isSink()).isTrue(); in getOutputDeviceForUsage_succeeds()
|