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

The following examples show how to use android.os.ParcelUuid#equals() . 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
Source File: BluetoothUuidCompat.java    From AndroidBleManager with Apache License 2.0 5 votes vote down vote up
/**
 * 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
Source File: BluetoothUuid.java    From EFRConnect-android with Apache License 2.0 5 votes vote down vote up
/**
 * 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
Source File: BluetoothUuid.java    From BLExplorer with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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
Source File: BluetoothUuid.java    From BLExplorer with GNU General Public License v3.0 4 votes vote down vote up
public static boolean isMap(ParcelUuid uuid) {
    return uuid.equals(MAP);
}
 
Example 5
Source File: BluetoothUuidCompat.java    From AndroidBleManager with Apache License 2.0 4 votes vote down vote up
public static boolean isHeadset(ParcelUuid uuid) {
    return uuid.equals(HSP);
}
 
Example 6
Source File: BluetoothUuid.java    From physical-web with Apache License 2.0 4 votes vote down vote up
public static boolean isAvrcpTarget(ParcelUuid uuid) {
    return uuid.equals(AvrcpTarget);
}
 
Example 7
Source File: BluetoothUuid.java    From EFRConnect-android with Apache License 2.0 4 votes vote down vote up
public static boolean isAvrcpTarget(ParcelUuid uuid) {
    return uuid.equals(AvrcpTarget);
}
 
Example 8
Source File: BluetoothUuid.java    From BLExplorer with GNU General Public License v3.0 4 votes vote down vote up
public static boolean isAudioSink(ParcelUuid uuid) {
    return uuid.equals(AudioSink);
}
 
Example 9
Source File: BluetoothUuid.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public static boolean isMas(ParcelUuid uuid) {
    return uuid.equals(MAS);
}
 
Example 10
Source File: BluetoothUuid.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public static boolean isMns(ParcelUuid uuid) {
    return uuid.equals(MNS);
}
 
Example 11
Source File: BluetoothUuidCompat.java    From AndroidBleManager with Apache License 2.0 4 votes vote down vote up
public static boolean isInputDevice(ParcelUuid uuid) {
    return uuid.equals(Hid);
}
 
Example 12
Source File: BluetoothUuid.java    From BLExplorer with GNU General Public License v3.0 4 votes vote down vote up
public static boolean isInputDevice(ParcelUuid uuid) {
    return uuid.equals(Hid);
}
 
Example 13
Source File: BluetoothUuid.java    From BLExplorer with GNU General Public License v3.0 4 votes vote down vote up
public static boolean isBnep(ParcelUuid uuid) {
    return uuid.equals(BNEP);
}
 
Example 14
Source File: BluetoothUuid.java    From physical-web with Apache License 2.0 4 votes vote down vote up
public static boolean isMas(ParcelUuid uuid) {
    return uuid.equals(MAS);
}
 
Example 15
Source File: BluetoothUuid.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public static boolean isAvrcpTarget(ParcelUuid uuid) {
    return uuid.equals(AvrcpTarget);
}
 
Example 16
Source File: BluetoothUuid.java    From physical-web with Apache License 2.0 4 votes vote down vote up
public static boolean isMap(ParcelUuid uuid) {
    return uuid.equals(MAP);
}
 
Example 17
Source File: BluetoothUuid.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public static boolean isHeadset(ParcelUuid uuid) {
    return uuid.equals(HSP);
}
 
Example 18
Source File: BluetoothUuid.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public static boolean isHandsfree(ParcelUuid uuid) {
    return uuid.equals(Handsfree);
}
 
Example 19
Source File: BluetoothUuid.java    From BLExplorer with GNU General Public License v3.0 4 votes vote down vote up
public static boolean isMns(ParcelUuid uuid) {
    return uuid.equals(MNS);
}
 
Example 20
Source File: BluetoothUuid.java    From physical-web with Apache License 2.0 4 votes vote down vote up
public static boolean isAudioSource(ParcelUuid uuid) {
    return uuid.equals(AudioSource);
}