Lines Matching defs:uuid

37      *  uuid * 2^96 + BASE_UUID
94 public static boolean isAudioSource(ParcelUuid uuid) {
95 return uuid.equals(AudioSource);
98 public static boolean isAudioSink(ParcelUuid uuid) {
99 return uuid.equals(AudioSink);
102 public static boolean isAdvAudioDist(ParcelUuid uuid) {
103 return uuid.equals(AdvAudioDist);
106 public static boolean isHandsfree(ParcelUuid uuid) {
107 return uuid.equals(Handsfree);
110 public static boolean isHeadset(ParcelUuid uuid) {
111 return uuid.equals(HSP);
114 public static boolean isAvrcpController(ParcelUuid uuid) {
115 return uuid.equals(AvrcpController);
118 public static boolean isAvrcpTarget(ParcelUuid uuid) {
119 return uuid.equals(AvrcpTarget);
122 public static boolean isInputDevice(ParcelUuid uuid) {
123 return uuid.equals(Hid);
126 public static boolean isPanu(ParcelUuid uuid) {
127 return uuid.equals(PANU);
130 public static boolean isNap(ParcelUuid uuid) {
131 return uuid.equals(NAP);
134 public static boolean isBnep(ParcelUuid uuid) {
135 return uuid.equals(BNEP);
137 public static boolean isMap(ParcelUuid uuid) {
138 return uuid.equals(MAP);
140 public static boolean isMns(ParcelUuid uuid) {
141 return uuid.equals(MNS);
143 public static boolean isMas(ParcelUuid uuid) {
144 return uuid.equals(MAS);
151 * @param uuid
153 public static boolean isUuidPresent(ParcelUuid[] uuidArray, ParcelUuid uuid) {
154 if ((uuidArray == null || uuidArray.length == 0) && uuid == null)
161 if (element.equals(uuid)) return true;
185 for (ParcelUuid uuid: uuidB) {
186 if (uuidSet.contains(uuid)) return true;
209 for (ParcelUuid uuid: uuidB) {
210 if (!uuidSet.contains(uuid)) return false;
216 * Extract the Service Identifier or the actual uuid from the Parcel Uuid.
223 UUID uuid = parcelUuid.getUuid();
224 long value = (uuid.getMostSignificantBits() & 0x0000FFFF00000000L) >>> 32;
233 * @param uuidBytes Byte representation of uuid.
256 // 128_bit_value = uuid * 2^96 + BASE_UUID
273 * Check whether the given parcelUuid can be converted to 16 bit bluetooth uuid.
276 * @return true if the parcelUuid can be converted to 16 bit uuid, false otherwise.
279 UUID uuid = parcelUuid.getUuid();
280 if (uuid.getLeastSignificantBits() != BASE_UUID.getUuid().getLeastSignificantBits()) {
283 return ((uuid.getMostSignificantBits() & 0xFFFF0000FFFFFFFFL) == 0x1000L);
288 * Check whether the given parcelUuid can be converted to 32 bit bluetooth uuid.
291 * @return true if the parcelUuid can be converted to 32 bit uuid, false otherwise.
294 UUID uuid = parcelUuid.getUuid();
295 if (uuid.getLeastSignificantBits() != BASE_UUID.getUuid().getLeastSignificantBits()) {
301 return ((uuid.getMostSignificantBits() & 0xFFFFFFFFL) == 0x1000L);