Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 652ee967 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add @UnsupportedAppUsage annotations for greylist."

parents 610f7012 58164387
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -35,12 +35,14 @@ import android.os.ResultReceiver;
 */
interface IBluetooth
{
    @UnsupportedAppUsage
    boolean isEnabled();
    int getState();
    boolean enable();
    boolean enableNoAutoConnect();
    boolean disable();

    @UnsupportedAppUsage
    String getAddress();
    ParcelUuid[] getUuids();
    boolean setName(in String name);
@@ -79,10 +81,12 @@ interface IBluetooth

    String getRemoteName(in BluetoothDevice device);
    int getRemoteType(in BluetoothDevice device);
    @UnsupportedAppUsage
    String getRemoteAlias(in BluetoothDevice device);
    boolean setRemoteAlias(in BluetoothDevice device, in String name);
    int getRemoteClass(in BluetoothDevice device);
    ParcelUuid[] getRemoteUuids(in BluetoothDevice device);
    @UnsupportedAppUsage
    boolean fetchRemoteUuids(in BluetoothDevice device);
    boolean sdpSearch(in BluetoothDevice device, in ParcelUuid uuid);
    int getBatteryLevel(in BluetoothDevice device);
@@ -102,6 +106,7 @@ interface IBluetooth
    int getSimAccessPermission(in BluetoothDevice device);
    boolean setSimAccessPermission(in BluetoothDevice device, int value);

    @UnsupportedAppUsage
    void sendConnectionStateChange(in BluetoothDevice device, int profile, int state, int prevState);

    void registerCallback(in IBluetoothCallback callback);
+6 −0
Original line number Diff line number Diff line
@@ -27,14 +27,20 @@ import android.bluetooth.BluetoothDevice;
 */
interface IBluetoothA2dp {
    // Public API
    @UnsupportedAppUsage
    boolean connect(in BluetoothDevice device);
    @UnsupportedAppUsage
    boolean disconnect(in BluetoothDevice device);
    @UnsupportedAppUsage
    List<BluetoothDevice> getConnectedDevices();
    @UnsupportedAppUsage
    List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
    @UnsupportedAppUsage
    int getConnectionState(in BluetoothDevice device);
    boolean setActiveDevice(in BluetoothDevice device);
    BluetoothDevice getActiveDevice();
    boolean setPriority(in BluetoothDevice device, int priority);
    @UnsupportedAppUsage
    int getPriority(in BluetoothDevice device);
    boolean isAvrcpAbsoluteVolumeSupported();
    oneway void setAvrcpAbsoluteVolume(int volume);
+2 −0
Original line number Diff line number Diff line
@@ -71,8 +71,10 @@ interface IBluetoothGatt {
    void registerSync(in ScanResult scanResult, in int skip, in int timeout, in IPeriodicAdvertisingCallback callback);
    void unregisterSync(in IPeriodicAdvertisingCallback callback);

    @UnsupportedAppUsage
    void registerClient(in ParcelUuid appId, in IBluetoothGattCallback callback);

    @UnsupportedAppUsage
    void unregisterClient(in int clientIf);
    void clientConnect(in int clientIf, in String address, in boolean isDirect, in int transport, in boolean opportunistic, in int phy);
    void clientDisconnect(in int clientIf, in String address);
+6 −0
Original line number Diff line number Diff line
@@ -29,8 +29,10 @@ import android.bluetooth.BluetoothDevice;
 */
interface IBluetoothHeadset {
    // Public API
    @UnsupportedAppUsage
    List<BluetoothDevice> getConnectedDevices();
    List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
    @UnsupportedAppUsage
    int getConnectionState(in BluetoothDevice device);
    boolean startVoiceRecognition(in BluetoothDevice device);
    boolean stopVoiceRecognition(in BluetoothDevice device);
@@ -40,9 +42,13 @@ interface IBluetoothHeadset {
                                         in String arg);

    // Hidden API
    @UnsupportedAppUsage
    boolean connect(in BluetoothDevice device);
    @UnsupportedAppUsage
    boolean disconnect(in BluetoothDevice device);
    @UnsupportedAppUsage
    boolean setPriority(in BluetoothDevice device, int priority);
    @UnsupportedAppUsage
    int getPriority(in BluetoothDevice device);
    int getAudioState(in BluetoothDevice device);
    boolean isAudioOn();
+3 −0
Original line number Diff line number Diff line
@@ -31,13 +31,16 @@ interface IBluetoothManager
{
    IBluetooth registerAdapter(in IBluetoothManagerCallback callback);
    void unregisterAdapter(in IBluetoothManagerCallback callback);
    @UnsupportedAppUsage
    void registerStateChangeCallback(in IBluetoothStateChangeCallback callback);
    @UnsupportedAppUsage
    void unregisterStateChangeCallback(in IBluetoothStateChangeCallback callback);
    boolean isEnabled();
    boolean enable(String packageName);
    boolean enableNoAutoConnect(String packageName);
    boolean disable(String packageName, boolean persist);
    int getState();
    @UnsupportedAppUsage
    IBluetoothGatt getBluetoothGatt();

    boolean bindBluetoothProfileService(int profile, IBluetoothProfileServiceConnection proxy);