Java Code Examples for android.os.ParcelUuid#equals()

The following examples show how to use android.os.ParcelUuid#equals() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
/**
 * Returns true if ParcelUuid is present in uuidArray
 *
 * @param uuidArray - Array of ParcelUuids
 * @param uuid
 */
public static boolean isUuidPresent(ParcelUuid[] uuidArray, ParcelUuid uuid) {
    if ((uuidArray == null || uuidArray.length == 0) && uuid == null) return true;

    if (uuidArray == null) return false;

    for (ParcelUuid element : uuidArray) {
        if (element.equals(uuid)) return true;
    }
    return false;
}
 
Example 2
/**
 * Returns true if ParcelUuid is present in uuidArray
 *
 * @param uuidArray - Array of ParcelUuids
 * @param uuid
 */
public static boolean isUuidPresent(ParcelUuid[] uuidArray, ParcelUuid uuid) {
    if ((uuidArray == null || uuidArray.length == 0) && uuid == null) {
        return true;
    }
    if (uuidArray == null) {
        return false;
    }
    for (ParcelUuid element : uuidArray) {
        if (element.equals(uuid)) {
            return true;
        }
    }
    return false;
}
 
Example 3
/**
 * Returns true if ParcelUuid is present in uuidArray
 *
 * @param uuidArray - Array of ParcelUuids
 * @param uuid
 */
public static boolean isUuidPresent(ParcelUuid[] uuidArray, ParcelUuid uuid) {
    if ((uuidArray == null || uuidArray.length == 0) && uuid == null)
        return true;

    if (uuidArray == null)
        return false;

    for (ParcelUuid element : uuidArray) {
        if (element.equals(uuid)) return true;
    }
    return false;
}
 
Example 4
public static boolean isInputDevice(ParcelUuid uuid) {
    return uuid.equals(Hid);
}
 
Example 5
Source Project: physical-web   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isAudioSource(ParcelUuid uuid) {
    return uuid.equals(AudioSource);
}
 
Example 6
public static boolean isMns(ParcelUuid uuid) {
    return uuid.equals(MNS);
}
 
Example 7
Source Project: android_9.0.0_r45   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isHandsfree(ParcelUuid uuid) {
    return uuid.equals(Handsfree);
}
 
Example 8
Source Project: android_9.0.0_r45   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isHeadset(ParcelUuid uuid) {
    return uuid.equals(HSP);
}
 
Example 9
Source Project: physical-web   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isMap(ParcelUuid uuid) {
    return uuid.equals(MAP);
}
 
Example 10
Source Project: android_9.0.0_r45   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isAvrcpTarget(ParcelUuid uuid) {
    return uuid.equals(AvrcpTarget);
}
 
Example 11
Source Project: physical-web   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isMas(ParcelUuid uuid) {
    return uuid.equals(MAS);
}
 
Example 12
public static boolean isBnep(ParcelUuid uuid) {
    return uuid.equals(BNEP);
}
 
Example 13
public static boolean isInputDevice(ParcelUuid uuid) {
    return uuid.equals(Hid);
}
 
Example 14
public static boolean isMap(ParcelUuid uuid) {
    return uuid.equals(MAP);
}
 
Example 15
Source Project: android_9.0.0_r45   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isMns(ParcelUuid uuid) {
    return uuid.equals(MNS);
}
 
Example 16
Source Project: android_9.0.0_r45   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isMas(ParcelUuid uuid) {
    return uuid.equals(MAS);
}
 
Example 17
public static boolean isAudioSink(ParcelUuid uuid) {
    return uuid.equals(AudioSink);
}
 
Example 18
public static boolean isAvrcpTarget(ParcelUuid uuid) {
    return uuid.equals(AvrcpTarget);
}
 
Example 19
Source Project: physical-web   File: BluetoothUuid.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean isAvrcpTarget(ParcelUuid uuid) {
    return uuid.equals(AvrcpTarget);
}
 
Example 20
public static boolean isHeadset(ParcelUuid uuid) {
    return uuid.equals(HSP);
}