Home
last modified time | relevance | path

Searched refs:vendorId (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DVendorSpecificData.java46 public final int vendorId; field in VendorSpecificData
58 public static VendorSpecificData fromBytes(@NonNull byte[] bytes, Optional<Integer> vendorId) { in fromBytes() argument
64 if (!vendorId.isPresent() && bytes.length < MIN_VENDOR_SPECIFIC_DATA_SIZE) { in fromBytes()
71 if (vendorId.isPresent()) { in fromBytes()
72 id = vendorId.get().intValue(); in fromBytes()
90 byte[] id = DataTypeConversionUtil.i32ToLeByteArray(info.vendorId); in toBytes()
94 public VendorSpecificData(@IntRange(from = 0, to = 65535) int vendorId, byte[] vendorData) { in VendorSpecificData()
95 this.vendorId = vendorId; in VendorSpecificData()
103 .append(vendorId) in toString()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DVendorCommandResponseProcessor.java70 public boolean sendCommand(int vendorId, String atCommand, BluetoothDevice device) { in sendCommand() argument
99 if (!Objects.equals(SUPPORTED_VENDOR_AT_COMMANDS.get(commandWord), vendorId)) { in sendCommand()
100 Log.e(TAG, "Invalid command " + atCommand + ", " + vendorId + ". Cand=" + commandWord); in sendCommand()
138 Integer vendorId = SUPPORTED_VENDOR_EVENTS.get(eventCode); in isAndroidAtCommand() local
139 if (vendorId == null) { in isAndroidAtCommand()
142 return vendorId == BluetoothAssignedNumbers.GOOGLE; in isAndroidAtCommand()
152 Integer vendorId = SUPPORTED_VENDOR_EVENTS.get(eventCode); in processEvent() local
153 if (vendorId == null) { in processEvent()
157 broadcastVendorSpecificEventIntent(vendorId, eventCode, atString, device); in processEvent()
161 + vendorId in processEvent()
[all …]
DHeadsetClientService.java574 BluetoothDevice device, int vendorId, String atCommand, AttributionSource source) { in sendVendorAtCommand() argument
580 return service.sendVendorAtCommand(device, vendorId, atCommand); in sendVendorAtCommand()
1105 public boolean sendVendorAtCommand(BluetoothDevice device, int vendorId, String atCommand) { in sendVendorAtCommand() argument
1119 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand); in sendVendorAtCommand()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsAvp.java66 public final int vendorId; field in EapTtlsAvp
85 vendorId = buffer.getInt(); in EapTtlsAvp()
88 vendorId = 0; in EapTtlsAvp()
107 private EapTtlsAvp(int avpCode, int vendorId, boolean isMandatory, byte[] data) { in EapTtlsAvp() argument
109 this.vendorId = vendorId; in EapTtlsAvp()
113 if (vendorId != 0) { in EapTtlsAvp()
150 encodedBuffer.putInt(vendorId); in encode()
164 public static EapTtlsAvp getEapMessageAvp(int vendorId, byte[] data) { in getEapMessageAvp() argument
165 return new EapTtlsAvp(EAP_MESSAGE_AVP_CODE, vendorId, true /* isMandatory */, data); in getEapMessageAvp()
247 + decodedAvp.vendorId); in decode()
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DSdpDipRecordTest.java37 int vendorId = 1; in createSdpDipRecord() local
46 vendorId, in createSdpDipRecord()
53 assertThat(record.getVendorId()).isEqualTo(vendorId); in createSdpDipRecord()
63 int vendorId = 1; in writeToParcel() local
72 vendorId, in writeToParcel()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeVendorPayload.java33 public final byte[] vendorId; field in IkeVendorPayload
43 vendorId = payloadBody; in IkeVendorPayload()
64 return GENERIC_HEADER_LENGTH + vendorId.length; in getPayloadLength()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sdp/
DDipTest.java97 int vendorId, in verifyDipSdpRecordIntent() argument
115 assertThat(vendorId).isEqualTo(record.getVendorId()); in verifyDipSdpRecordIntent()
129 int vendorId = 0x18d1; in testDipCallbackSuccess() local
142 vendorId, in testDipCallbackSuccess()
159 vendorId, in testDipCallbackSuccess()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsAvpTest.java147 assertEquals(DEFAULT_VENDOR_ID, avp.vendorId); in testEapTtlsAvp_success_withoutVendorId()
161 assertEquals(SAMPLE_VENDOR_ID, avp.vendorId); in testEapTtlsAvp_success_withVendorId()
191 assertEquals(DEFAULT_VENDOR_ID, avp.vendorId); in testAvpDecoding_success_multipleAvps_withoutVendorId()
206 assertEquals(SAMPLE_VENDOR_ID, avp.vendorId); in testAvpDecoding_success_multipleAvps_withVendorId()
264 private void verifyEapMessageAvpEncoding(int vendorId, byte[] avpData, byte[] expectedResult) { in verifyEapMessageAvpEncoding() argument
265 EapTtlsAvp eapTtlsAvp = EapTtlsAvp.getEapMessageAvp(vendorId, avpData); in verifyEapMessageAvpEncoding()
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_vendor_aptx_hd.cc43 uint32_t vendorId; member
111 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoAptxHd()
112 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoAptxHd()
113 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoAptxHd()
114 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoAptxHd()
154 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoAptxHd()
162 if (p_ie->vendorId != A2DP_APTX_HD_VENDOR_ID || in A2DP_ParseInfoAptxHd()
663 result_config_cie.vendorId = a2dp_aptx_hd_source_caps.vendorId; in setCodecConfig()
Da2dp_vendor_aptx.cc42 uint32_t vendorId; member
103 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoAptx()
104 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoAptx()
105 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoAptx()
106 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoAptx()
142 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoAptx()
150 if (p_ie->vendorId != A2DP_APTX_VENDOR_ID || in A2DP_ParseInfoAptx()
643 result_config_cie.vendorId = a2dp_aptx_source_caps.vendorId; in setCodecConfig()
Da2dp_vendor_opus.cc42 uint32_t vendorId; member
142 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoOpus()
143 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoOpus()
144 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoOpus()
145 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoOpus()
208 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoOpus()
216 if (p_ie->vendorId != A2DP_OPUS_VENDOR_ID || in A2DP_ParseInfoOpus()
936 result_config_cie.vendorId = p_a2dp_opus_caps->vendorId; in setCodecConfig()
Da2dp_vendor_ldac.cc44 uint32_t vendorId; member
124 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoLdac()
125 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoLdac()
126 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoLdac()
127 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoLdac()
171 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoLdac()
179 if (p_ie->vendorId != A2DP_LDAC_VENDOR_ID || in A2DP_ParseInfoLdac()
981 result_config_cie.vendorId = p_a2dp_ldac_caps->vendorId; in setCodecConfig()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java753 private void runSupportedVendorAtCommand(String atCommand, int vendorId) {
763 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand);
779 int vendorId = BluetoothAssignedNumbers.APPLE;
781 runSupportedVendorAtCommand(atCommand, vendorId);
788 int vendorId = BluetoothAssignedNumbers.APPLE;
790 runSupportedVendorAtCommand(atCommand, vendorId);
794 public void runUnsupportedVendorAtCommand(String atCommand, int vendorId) {
804 HeadsetClientStateMachine.SEND_VENDOR_AT_COMMAND, vendorId, 0, atCommand);
816 int vendorId = BluetoothAssignedNumbers.APPLE;
817 runUnsupportedVendorAtCommand(atCommand, vendorId);
[all …]
DHeadsetClientServiceBinderTest.java239 int vendorId = 5; in sendVendorAtCommand_callsServiceMethod() local
242 mBinder.sendVendorAtCommand(mRemoteDevice, vendorId, cmd, null); in sendVendorAtCommand_callsServiceMethod()
244 verify(mService).sendVendorAtCommand(mRemoteDevice, vendorId, cmd); in sendVendorAtCommand_callsServiceMethod()
/packages/modules/Wifi/framework/java/android/net/wifi/
DAnqpInformationElement.java63 public AnqpInformationElement(int vendorId, int elementId, byte[] payload) { in AnqpInformationElement() argument
64 mVendorId = vendorId; in AnqpInformationElement()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DSdpDipRecord.java32 int vendorId, in SdpDipRecord() argument
39 this.mVendorId = vendorId; in SdpDipRecord()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DVendorSpecificDataTest.java56 assertThat(info.vendorId).isEqualTo(ID); in fromBytes_succeed()
65 assertThat(info.vendorId).isEqualTo(ID); in fromBytes_succeedProvidedId()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceFilter.java88 int vendorId = -1; in read() local
146 vendorId = intValue; in read()
158 return new UsbDeviceFilter(vendorId, productId, in read()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionConfigurationTest.java136 for (byte[] vendorId : REMOTE_VENDOR_IDS) { in testBuildWithBuilder()
137 builder.addRemoteVendorId(vendorId); in testBuildWithBuilder()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sdp/
DSdpManagerNativeInterface.java365 int vendorId, in sdpDipRecordFoundCallback() argument
376 vendorId, in sdpDipRecordFoundCallback()
DSdpManager.java392 int vendorId, in sdpDipRecordFoundCallback() argument
411 vendorId, in sdpDipRecordFoundCallback()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DPhysicalKeyboardFragment.java302 String vendorId = String.valueOf(hardKeyboardDeviceInfo.mVendorId); in updateHardKeyboards() local
304 vendorAndProductId.append(vendorId); in updateHardKeyboards()
560 @NonNull int vendorId, in HardKeyboardDeviceInfo() argument
566 mVendorId = vendorId; in HardKeyboardDeviceInfo()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java793 String vendorId = "android-dhcp-" + Build.VERSION.RELEASE; in getVendorId()
797 vendorId = readAsciiString(option.value, false); in getVendorId()
802 return vendorId; in getVendorId()
1012 String vendorId = null; in decodeFullPacket() local
1274 vendorId = readAsciiString(packet, optionLen, true); in decodeFullPacket()
1401 newPacket.mVendorId = vendorId; in decodeFullPacket()
/packages/modules/Uwb/service/support_lib/test/
DFiraTests.java126 byte[] vendorId = new byte[] {(byte) 0xFE, (byte) 0xDC}; in testOpenSessionParams()
193 .setVendorId(vendorId) in testOpenSessionParams()
265 assertArrayEquals(params.getVendorId(), vendorId); in testOpenSessionParams() local
336 assertArrayEquals(fromBundle.getVendorId(), vendorId); in testOpenSessionParams() local
413 assertArrayEquals(fromCopy.getVendorId(), vendorId); in testOpenSessionParams() local
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbConfigurationManagerTest.java248 byte[] vendorId = new byte[] {(byte) 0xFE, (byte) 0xDC}; in getFiraParams()
305 .setVendorId(vendorId) in getFiraParams()

12