package a.b.a.f;

import a.a.a.b;
import android.bluetooth.BluetoothAdapter;

public class d {

    /* renamed from: a  reason: collision with root package name */
    private static final String f13a = "BluetoothAdapterProxy";
    public static String b;
    public static int c;

    static {
        try {
            b = (String) BluetoothAdapter.class.getField("ACTION_BLE_STATE_CHANGED").get(null);
        } catch (IllegalAccessException | NoSuchFieldException e) {
            b.b(f13a, "Exception trace:", e);
        }
        try {
            c = ((Integer) BluetoothAdapter.class.getField("STATE_BLE_ON").get(null)).intValue();
        } catch (IllegalAccessException | NoSuchFieldException e2) {
            b.b(f13a, "Exception trace:", e2);
        }
    }

    public static boolean a(BluetoothAdapter bluetoothAdapter) {
        return ((Boolean) BluetoothAdapter.class.getDeclaredMethod("disableBLE", new Class[0]).invoke(bluetoothAdapter, new Object[0])).booleanValue();
    }

    public static boolean b(BluetoothAdapter bluetoothAdapter) {
        return ((Boolean) BluetoothAdapter.class.getDeclaredMethod("enableBLE", new Class[0]).invoke(bluetoothAdapter, new Object[0])).booleanValue();
    }

    public static boolean c(BluetoothAdapter bluetoothAdapter) {
        return ((Boolean) BluetoothAdapter.class.getDeclaredMethod("isLeEnabled", new Class[0]).invoke(bluetoothAdapter, new Object[0])).booleanValue();
    }
}
