Merge "Fix extracting 32-bit uuid error via calling method uuidToBytes"

am: ac421b8f44

Change-Id: I9c6b453e0ef71a70cd972a47763d042943fe3f36
This commit is contained in:
Ruina Liu
2017-09-18 17:53:31 +00:00
committed by android-build-merger

View File

@@ -232,7 +232,7 @@ public final class BluetoothUuid {
*/
public static int getServiceIdentifierFromParcelUuid(ParcelUuid parcelUuid) {
UUID uuid = parcelUuid.getUuid();
long value = (uuid.getMostSignificantBits() & 0x0000FFFF00000000L) >>> 32;
long value = (uuid.getMostSignificantBits() & 0xFFFFFFFF00000000L) >>> 32;
return (int) value;
}