package com.dss.ups.sp51a.ble.utils;

import android.bluetooth.BluetoothGattCharacteristic;
import kotlin.Metadata;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes.dex */
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\u001a\u0011\u0010\u0002\u001a\u00020\u0001*\u00020\u0000¢\u0006\u0004\b\u0002\u0010\u0003\u001a\u0011\u0010\u0004\u001a\u00020\u0001*\u00020\u0000¢\u0006\u0004\b\u0004\u0010\u0003\u001a\u0011\u0010\u0005\u001a\u00020\u0001*\u00020\u0000¢\u0006\u0004\b\u0005\u0010\u0003\u001a\u0011\u0010\u0007\u001a\u00020\u0006*\u00020\u0000¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Landroid/bluetooth/BluetoothGattCharacteristic;", "", "isNotifiable", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "isReadable", "isWritable", "", "shortUuid", "(Landroid/bluetooth/BluetoothGattCharacteristic;)I", "lib_release"}, k = 2, mv = {1, 5, 1})
public final class CharacteristicExtKt {
    public static final boolean isNotifiable(BluetoothGattCharacteristic bluetoothGattCharacteristic) {
        o.f(bluetoothGattCharacteristic, "<this>");
        return (bluetoothGattCharacteristic.getProperties() & 16) != 0;
    }

    public static final boolean isReadable(BluetoothGattCharacteristic bluetoothGattCharacteristic) {
        o.f(bluetoothGattCharacteristic, "<this>");
        return (bluetoothGattCharacteristic.getProperties() & 2) != 0;
    }

    public static final boolean isWritable(BluetoothGattCharacteristic bluetoothGattCharacteristic) {
        o.f(bluetoothGattCharacteristic, "<this>");
        return (bluetoothGattCharacteristic.getProperties() & 8) != 0;
    }

    public static final int shortUuid(BluetoothGattCharacteristic bluetoothGattCharacteristic) {
        o.f(bluetoothGattCharacteristic, "<this>");
        BitUtils bitUtils = BitUtils.INSTANCE;
        String string = bluetoothGattCharacteristic.getUuid().toString();
        o.e(string, "uuid.toString()");
        return bitUtils.shortIdFromUuid(string);
    }
}
