private static int parseServiceUuid ( byte [ ] scanRecord , int currentPos , int dataLength , int uuidLength , List < ParcelUuid > serviceUuids ) { while ( dataLength > 0 ) { byte [ ] uuidBytes = extractBytes ( scanRecord , currentPos , uuidLength ) ; serviceUuids . add ( parseUuidFrom ( uuidBytes ) ) ; dataLength -= uuidLength ; currentPos += uuidLength ; } return currentPos ; }
Parse service UUIDs .