63 lines
1.9 KiB
Java
63 lines
1.9 KiB
Java
package c.a.q.k0;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.bluetooth.BluetoothHeadset;
|
|
import d0.g;
|
|
import d0.z.d.o;
|
|
import java.lang.reflect.Method;
|
|
import kotlin.Lazy;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: BluetoothHeadsetPrivateApi.kt */
|
|
@SuppressLint({"DiscouragedPrivateApi"})
|
|
public final class d {
|
|
public static final Lazy a = g.lazy(a.i);
|
|
public static final Lazy b = g.lazy(b.i);
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public static final d f213c = null;
|
|
|
|
/* compiled from: BluetoothHeadsetPrivateApi.kt */
|
|
public static final class a extends o implements Function0<String> {
|
|
public static final a i = new a();
|
|
|
|
public a() {
|
|
super(0);
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public String mo1invoke() {
|
|
try {
|
|
Object obj = BluetoothHeadset.class.getField("ACTION_ACTIVE_DEVICE_CHANGED").get(null);
|
|
if (!(obj instanceof String)) {
|
|
obj = null;
|
|
}
|
|
return (String) obj;
|
|
} catch (Throwable unused) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* compiled from: BluetoothHeadsetPrivateApi.kt */
|
|
public static final class b extends o implements Function0<Method> {
|
|
public static final b i = new b();
|
|
|
|
public b() {
|
|
super(0);
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public Method mo1invoke() {
|
|
try {
|
|
return BluetoothHeadset.class.getDeclaredMethod("getActiveDevice", new Class[0]);
|
|
} catch (Throwable unused) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|