Home
last modified time | relevance | path

Searched refs:check_length (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DAdvertiseHelper.java71 check_length(type, nameLength + 1); in advertiseDataToBytes()
90 check_length(MANUFACTURER_SPECIFIC_DATA, concatenated.length + 1); in advertiseDataToBytes()
120 check_length(COMPLETE_LIST_16_BIT_SERVICE_UUIDS, serviceUuids16.size() + 1); in advertiseDataToBytes()
127 check_length(COMPLETE_LIST_32_BIT_SERVICE_UUIDS, serviceUuids32.size() + 1); in advertiseDataToBytes()
134 check_length(COMPLETE_LIST_128_BIT_SERVICE_UUIDS, serviceUuids32.size() + 1); in advertiseDataToBytes()
156 check_length(SERVICE_DATA_16_BIT_UUID, concatenated.length + 1); in advertiseDataToBytes()
161 check_length(SERVICE_DATA_32_BIT_UUID, concatenated.length + 1); in advertiseDataToBytes()
166 check_length(SERVICE_DATA_128_BIT_UUID, concatenated.length + 1); in advertiseDataToBytes()
192 check_length(LIST_16_BIT_SERVICE_SOLICITATION_UUIDS, serviceUuids16.size() + 1); in advertiseDataToBytes()
199 check_length(LIST_32_BIT_SERVICE_SOLICITATION_UUIDS, serviceUuids32.size() + 1); in advertiseDataToBytes()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DAdvertiseHelperTest.java76 assertThrows(IllegalArgumentException.class, () -> AdvertiseHelper.check_length(0X00, 256)); in checkLength_withGT255_throwsException()