blob: 11529eb05e015c3794c74f530cfa08419807666c [file] [edit]
// Signature format: 6.0
// - style=java
package android.bluetooth {
@FlaggedApi("com.android.bluetooth.flags.powered_off_finding_callbacks") public interface AdapterSuspendCallback {
method @FlaggedApi("com.android.bluetooth.flags.powered_off_finding_callbacks") public void onResumed();
method @FlaggedApi("com.android.bluetooth.flags.powered_off_finding_callbacks") public void onSuspended();
}
public final class BluetoothAdapter {
method @FlaggedApi("com.android.bluetooth.flags.powered_off_finding_callbacks") @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean isAdapterSuspendSupported();
method @FlaggedApi("com.android.bluetooth.flags.powered_off_finding_callbacks") @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean registerForAdapterSuspendCallbacks(@NonNull java.util.concurrent.Executor, @NonNull android.bluetooth.AdapterSuspendCallback);
method @FlaggedApi("com.android.bluetooth.flags.powered_off_finding_callbacks") @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) public boolean unregisterForAdapterSuspendCallbacks(@NonNull android.bluetooth.AdapterSuspendCallback);
}
public class BluetoothFrameworkInitializer {
method public static void registerServiceWrappers();
method public static void setBinderCallsStatsInitializer(@NonNull java.util.function.Consumer<android.content.Context>);
method public static void setBluetoothServiceManager(@NonNull android.os.BluetoothServiceManager);
}
public final class BluetoothPan implements android.bluetooth.BluetoothProfile {
method @Nullable @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED, android.Manifest.permission.TETHER_PRIVILEGED}) public android.net.TetheringManager.TetheredInterfaceRequest requestTetheredInterface(@NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.TetheredInterfaceCallback);
}
}