Home
last modified time | relevance | path

Searched refs:metaDataLength (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/
DPublicBroadcastData.java36 public int metaDataLength; field in PublicBroadcastData.PublicBroadcastInfo
42 metaDataLength = 0; in PublicBroadcastInfo()
53 log("metaDataLength: " + metaDataLength); in print()
54 if (metaDataLength != 0) { in print()
91 publicBroadcastInfo.metaDataLength = serviceData[offset++] & 0xff; in parsePublicBroadcastData()
93 != (publicBroadcastInfo.metaDataLength + PUBLIC_BROADCAST_SERVICE_DATA_LEN_MIN)) { in parsePublicBroadcastData()
97 if (publicBroadcastInfo.metaDataLength != 0) { in parsePublicBroadcastData()
98 publicBroadcastInfo.metaData = new byte[publicBroadcastInfo.metaDataLength]; in parsePublicBroadcastData()
104 publicBroadcastInfo.metaDataLength); in parsePublicBroadcastData()
105 offset += publicBroadcastInfo.metaDataLength; in parsePublicBroadcastData()
[all …]
DBaseData.java70 public int metaDataLength; field in BaseData.BaseInformation
92 metaDataLength = 0; in BaseInformation()
131 log("metaDataLength: " + metaDataLength); in print()
132 if (metaDataLength != 0) { in print()
270 node.metaDataLength = serviceData[offset++] & 0xff; in parseLevelTwo()
271 if (node.metaDataLength != 0) { in parseLevelTwo()
272 node.metaData = new byte[node.metaDataLength]; in parseLevelTwo()
273 System.arraycopy(serviceData, offset, node.metaData, 0, node.metaDataLength); in parseLevelTwo()
274 offset += node.metaDataLength; in parseLevelTwo()
DBassClientStateMachine.java887 int metaDataLength = receiverState[offset++] & 0xFF; in parseBroadcastReceiverState() local
888 if (metaDataLength > 0) { in parseBroadcastReceiverState()
889 log("metadata of length: " + metaDataLength + "is available"); in parseBroadcastReceiverState()
890 byte[] metaData = new byte[metaDataLength]; in parseBroadcastReceiverState()
891 System.arraycopy(receiverState, offset, metaData, 0, metaDataLength); in parseBroadcastReceiverState()
892 offset += metaDataLength; in parseBroadcastReceiverState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBaseDataTest.java62 info.metaDataLength = 4; in baseInformation()
114 assertThat(level.metaDataLength).isEqualTo(3); in parseBaseData()
126 int metaDataLength = 142; in parseBaseData_longMetaData() local
149 (byte) metaDataLength, // metaDataLength 142 in parseBaseData_longMetaData()
154 (byte) (metaDataLength - 1), // length 141 in parseBaseData_longMetaData()
187 assertThat(level.metaDataLength).isEqualTo(metaDataLength); in parseBaseData_longMetaData()
DPublicBroadcastDataTest.java45 info.metaDataLength = 3; in publicBroadcastInfo()
100 int metaDataLength = 142; in parsePublicBroadcastData_longMetaData() local
119 (byte) metaDataLength, // metaDataLength in parsePublicBroadcastData_longMetaData()
124 (byte) (metaDataLength - 1), // length 141 in parsePublicBroadcastData_longMetaData()
136 assertThat(data.getMetadataLength()).isEqualTo(metaDataLength); in parsePublicBroadcastData_longMetaData()
DPeriodicAdvertisementResultTest.java154 info.metaDataLength = 3; in generatePublicBroadcastData()
DBassClientStateMachineTest.java1667 int metaDataLength = 142; in receiveSinkReceiveState_inConnectedState() local
1690 (byte) metaDataLength, // metaDataLength in receiveSinkReceiveState_inConnectedState()
1695 (byte) (metaDataLength - 1), // length 141 in receiveSinkReceiveState_inConnectedState()
1732 assertThat(metaData.getRawMetadata().length).isEqualTo(metaDataLength); in receiveSinkReceiveState_inConnectedState()