Home
last modified time | relevance | path

Searched refs:descriptors (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/base/services/usb/java/com/android/server/usb/descriptors/tree/
DUsbDescriptorsTree.java16 package com.android.server.usb.descriptors.tree;
18 import com.android.server.usb.descriptors.UsbACInterface;
19 import com.android.server.usb.descriptors.UsbConfigDescriptor;
20 import com.android.server.usb.descriptors.UsbDescriptor;
21 import com.android.server.usb.descriptors.UsbDescriptorParser;
22 import com.android.server.usb.descriptors.UsbDeviceDescriptor;
23 import com.android.server.usb.descriptors.UsbEndpointDescriptor;
24 import com.android.server.usb.descriptors.UsbInterfaceDescriptor;
25 import com.android.server.usb.descriptors.report.ReportCanvas;
102 ArrayList<UsbDescriptor> descriptors = parser.getDescriptors(); in parse() local
[all …]
DUsbDescriptorsTreeNode.java16 package com.android.server.usb.descriptors.tree;
18 import com.android.server.usb.descriptors.report.ReportCanvas;
19 import com.android.server.usb.descriptors.report.Reporting;
DUsbDescriptorsEndpointNode.java16 package com.android.server.usb.descriptors.tree;
18 import com.android.server.usb.descriptors.UsbEndpointDescriptor;
19 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbDescriptorsACInterfaceNode.java16 package com.android.server.usb.descriptors.tree;
18 import com.android.server.usb.descriptors.UsbACInterface;
19 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbDescriptorsDeviceNode.java16 package com.android.server.usb.descriptors.tree;
18 import com.android.server.usb.descriptors.UsbDeviceDescriptor;
19 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbDescriptorsConfigNode.java16 package com.android.server.usb.descriptors.tree;
18 import com.android.server.usb.descriptors.UsbConfigDescriptor;
19 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbDescriptorsInterfaceNode.java16 package com.android.server.usb.descriptors.tree;
18 import com.android.server.usb.descriptors.UsbInterfaceDescriptor;
19 import com.android.server.usb.descriptors.report.ReportCanvas;
/frameworks/av/media/libaudioclient/tests/
Daudioeffect_tests.cpp81 effect_descriptor_t descriptors[AudioEffect::kMaxPreProcessing]; in isEffectDefaultOnRecord() local
83 status_t ret = AudioEffect::queryDefaultPreProcessing(audioRecord->getSessionId(), descriptors, in isEffectDefaultOnRecord()
89 if ((memcmp(&descriptors[i].type, type, sizeof(effect_uuid_t)) == 0) && in isEffectDefaultOnRecord()
90 (memcmp(&descriptors[i].uuid, uuid, sizeof(effect_uuid_t)) == 0)) { in isEffectDefaultOnRecord()
97 void listEffectsAvailable(std::vector<effect_descriptor_t>& descriptors) { in listEffectsAvailable() argument
103 descriptors.push_back(des); in listEffectsAvailable()
156 std::vector<effect_descriptor_t> descriptors; in TEST() local
157 ASSERT_NO_FATAL_FAILURE(listEffectsAvailable(descriptors)); in TEST()
159 for (auto i = 0; i < descriptors.size(); i++) { in TEST()
161 AudioEffect::getEffectDescriptor(&descriptors[i].uuid, &descriptors[i].type, in TEST()
[all …]
/frameworks/av/media/libaudiohal/impl/
DEffectsFactoryHalHidl.cpp66 hidl_vec<EffectDescriptor> descriptors; in queryAllDescriptors() local
71 descriptors = result; in queryAllDescriptors()
76 mLastDescriptors = descriptors; in queryAllDescriptors()
78 return {std::move(ret), retval, std::move(descriptors)}; in queryAllDescriptors()
91 auto [ret, retval, descriptors] = mCache->queryAllDescriptors(mEffectsFactory.get()); in queryNumberEffects()
93 *pNumEffects = descriptors.size(); in queryNumberEffects()
107 auto [ret, retval, descriptors] = mCache->queryAllDescriptors(mEffectsFactory.get()); in getDescriptor()
109 if (index >= descriptors.size()) return NAME_NOT_FOUND; in getDescriptor()
110 EffectUtils::effectDescriptorToHal(descriptors[index], pDescriptor); in getDescriptor()
142 std::vector<effect_descriptor_t> *descriptors) { in getDescriptors() argument
[all …]
/frameworks/base/tests/UsbTests/res/raw/
Dreadme.txt1 The usbdescriptors_ files contain raw USB descriptors from the Google
6 - The descriptors when the jack is disconnected.
9 - The descriptors when the jack is connected to 32-ohm headphones,
17 - The descriptors when the jack is connected to a PC line-in jack.
24 - The descriptors when a headset with microphone and low-impedance
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbBinaryParser.java16 package com.android.server.usb.descriptors;
21 import com.android.server.usb.descriptors.report.UsbStrings;
60 public void parseDescriptors(UsbDeviceConnection connection, byte[] descriptors, in parseDescriptors() argument
64 ByteStream stream = new ByteStream(descriptors); in parseDescriptors()
DUsbDescriptorParser.java16 package com.android.server.usb.descriptors;
59 public UsbDescriptorParser(String deviceAddr, ArrayList<UsbDescriptor> descriptors) { in UsbDescriptorParser() argument
61 mDescriptors = descriptors; in UsbDescriptorParser()
63 mDeviceDescriptor = (UsbDeviceDescriptor) descriptors.get(0); in UsbDescriptorParser()
298 public void parseDescriptors(byte[] descriptors) { in parseDescriptors() argument
299 ByteStream stream = new ByteStream(descriptors); in parseDescriptors()
581 ArrayList<UsbDescriptor> descriptors = in hasAudioInterface() local
583 return !descriptors.isEmpty(); in hasAudioInterface()
671 ArrayList<UsbDescriptor> descriptors = in hasHIDInterface() local
673 return !descriptors.isEmpty(); in hasHIDInterface()
[all …]
DUsb10ASGeneral.java16 package com.android.server.usb.descriptors;
18 import com.android.server.usb.descriptors.report.ReportCanvas;
19 import com.android.server.usb.descriptors.report.UsbStrings;
DUsbACTerminal.java16 package com.android.server.usb.descriptors;
18 import com.android.server.usb.descriptors.report.ReportCanvas;
19 import com.android.server.usb.descriptors.report.UsbStrings;
DUsbASFormat.java16 package com.android.server.usb.descriptors;
18 import com.android.server.usb.descriptors.report.ReportCanvas;
19 import com.android.server.usb.descriptors.report.UsbStrings;
DUsbVCInputTerminal.java16 package com.android.server.usb.descriptors;
20 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbVCSelectorUnit.java16 package com.android.server.usb.descriptors;
20 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbVCProcessingUnit.java16 package com.android.server.usb.descriptors;
20 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbVCOutputTerminal.java16 package com.android.server.usb.descriptors;
20 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbVCHeader.java16 package com.android.server.usb.descriptors;
20 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbVCHeaderInterface.java16 package com.android.server.usb.descriptors;
18 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbMSMidiInputJack.java16 package com.android.server.usb.descriptors;
18 import com.android.server.usb.descriptors.report.ReportCanvas;
DUsbMSMidiOutputJack.java16 package com.android.server.usb.descriptors;
18 import com.android.server.usb.descriptors.report.ReportCanvas;
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiEarcLocalDeviceTxTest.java155 List<AudioDescriptor> descriptors = attributes.getAudioDescriptors(); in earcGetsConnected_capsReportedInTime_sad() local
171 assertThat(descriptors).isEqualTo(expectedDescriptors); in earcGetsConnected_capsReportedInTime_sad()
187 List<AudioDescriptor> descriptors = attributes.getAudioDescriptors(); in earcGetsConnected_capsReportedInTime_sad_sadb() local
205 assertThat(descriptors).isEqualTo(expectedDescriptors); in earcGetsConnected_capsReportedInTime_sad_sadb()
246 List<AudioDescriptor> descriptors = attributes.getAudioDescriptors(); in earcGetsConnected_capsReportedInTime_sad_sadb_vsadb() local
266 assertThat(descriptors).isEqualTo(expectedDescriptors); in earcGetsConnected_capsReportedInTime_sad_sadb_vsadb()
277 List<AudioDescriptor> descriptors = attributes.getAudioDescriptors(); in earcGetsConnected_capsReportedTooLate() local
278 assertThat(descriptors).hasSize(0); in earcGetsConnected_capsReportedTooLate()
296 List<AudioDescriptor> descriptors = attributes.getAudioDescriptors(); in earcGetsConnected_earcGetsDisconnectedBeforeCapsReported() local
297 assertThat(descriptors).hasSize(0); in earcGetsConnected_earcGetsDisconnectedBeforeCapsReported()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEffectsTest.java94 AudioEffect.Descriptor[] descriptors = AudioEffect.queryEffects(); in onCreate() local
97 list.setAdapter(new EffectListAdapter(this, descriptors)); in onCreate()
107 public EffectListAdapter(Context context, AudioEffect.Descriptor[] descriptors) { in EffectListAdapter() argument
110 mDescriptors = descriptors; in EffectListAdapter()
150 public EffectView(Context context, AudioEffect.Descriptor[] descriptors) { in EffectView() argument
154 mDescriptors = descriptors; in EffectView()

12345