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

Commit 1506a7d4 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7292112 from 03b2b7ec to sc-release

Change-Id: Ibd1fb9e6f91dfecfd21c8090d527d58530720fde
parents 587c3b22 03b2b7ec
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -38,6 +38,7 @@ import android.os.ResultReceiver;
 */
 */
interface IBluetooth
interface IBluetooth
{
{
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    int getState();
    int getState();


    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
@@ -54,6 +55,8 @@ interface IBluetooth
    boolean setName(in String name);
    boolean setName(in String name);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    String getName();
    String getName();
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE)")
    int getNameLengthForAdvertise();
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    BluetoothClass getBluetoothClass();
    BluetoothClass getBluetoothClass();
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
@@ -87,7 +90,9 @@ interface IBluetooth
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    long getDiscoveryEndMillis();
    long getDiscoveryEndMillis();


    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    int getAdapterConnectionState();
    int getAdapterConnectionState();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    int getProfileConnectionState(int profile);
    int getProfileConnectionState(int profile);


    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
@@ -103,6 +108,7 @@ interface IBluetooth
    int getBondState(in BluetoothDevice device);
    int getBondState(in BluetoothDevice device);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    boolean isBondingInitiatedLocally(in BluetoothDevice device);
    boolean isBondingInitiatedLocally(in BluetoothDevice device);
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    long getSupportedProfiles();
    long getSupportedProfiles();
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    int getConnectionState(in BluetoothDevice device);
    int getConnectionState(in BluetoothDevice device);
@@ -161,19 +167,29 @@ interface IBluetooth
    void unregisterCallback(in IBluetoothCallback callback);
    void unregisterCallback(in IBluetoothCallback callback);


    // For Socket
    // For Socket
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    IBluetoothSocketManager getSocketManager();
    IBluetoothSocketManager getSocketManager();


    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    boolean factoryReset();
    boolean factoryReset();


    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isMultiAdvertisementSupported();
    boolean isMultiAdvertisementSupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isOffloadedFilteringSupported();
    boolean isOffloadedFilteringSupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isOffloadedScanBatchingSupported();
    boolean isOffloadedScanBatchingSupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isActivityAndEnergyReportingSupported();
    boolean isActivityAndEnergyReportingSupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isLe2MPhySupported();
    boolean isLe2MPhySupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isLeCodedPhySupported();
    boolean isLeCodedPhySupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isLeExtendedAdvertisingSupported();
    boolean isLeExtendedAdvertisingSupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isLePeriodicAdvertisingSupported();
    boolean isLePeriodicAdvertisingSupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    int getLeMaximumAdvertisingDataLength();
    int getLeMaximumAdvertisingDataLength();


    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
+1 −0
Original line number Original line Diff line number Diff line
@@ -51,6 +51,7 @@ interface IBluetoothA2dp {
    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
    boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    int getConnectionPolicy(in BluetoothDevice device);
    int getConnectionPolicy(in BluetoothDevice device);
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isAvrcpAbsoluteVolumeSupported();
    boolean isAvrcpAbsoluteVolumeSupported();
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    oneway void setAvrcpAbsoluteVolume(int volume);
    oneway void setAvrcpAbsoluteVolume(int volume);
+6 −0
Original line number Original line Diff line number Diff line
@@ -42,8 +42,10 @@ interface IBluetoothManager
    boolean enableNoAutoConnect(String packageName);
    boolean enableNoAutoConnect(String packageName);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    boolean disable(String packageName, boolean persist);
    boolean disable(String packageName, boolean persist);
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    int getState();
    int getState();
    @UnsupportedAppUsage
    @UnsupportedAppUsage
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    IBluetoothGatt getBluetoothGatt();
    IBluetoothGatt getBluetoothGatt();


    boolean bindBluetoothProfileService(int profile, IBluetoothProfileServiceConnection proxy);
    boolean bindBluetoothProfileService(int profile, IBluetoothProfileServiceConnection proxy);
@@ -57,13 +59,17 @@ interface IBluetoothManager
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
    boolean onFactoryReset();
    boolean onFactoryReset();


    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isBleScanAlwaysAvailable();
    boolean isBleScanAlwaysAvailable();
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    boolean enableBle(String packageName, IBinder b);
    boolean enableBle(String packageName, IBinder b);
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)")
    boolean disableBle(String packageName, IBinder b);
    boolean disableBle(String packageName, IBinder b);
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isBleAppPresent();
    boolean isBleAppPresent();
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    boolean isHearingAidProfileSupported();
    boolean isHearingAidProfileSupported();


    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    List<String> getSystemConfigEnabledProfilesForPackage(String packageName);
    List<String> getSystemConfigEnabledProfilesForPackage(String packageName);
}
}
+1 −0
Original line number Original line Diff line number Diff line
@@ -24,5 +24,6 @@ import android.bluetooth.BluetoothDevice;
 * @hide
 * @hide
 */
 */
oneway interface IBluetoothMetadataListener {
oneway interface IBluetoothMetadataListener {
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    void onMetadataChanged(in BluetoothDevice devices, in int key, in byte[] value);
    void onMetadataChanged(in BluetoothDevice devices, in int key, in byte[] value);
}
}
+2 −0
Original line number Original line Diff line number Diff line
@@ -25,6 +25,8 @@ import android.os.IBinder;
 * {@hide}
 * {@hide}
 */
 */
oneway interface IBluetoothProfileServiceConnection {
oneway interface IBluetoothProfileServiceConnection {
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    void onServiceConnected(in ComponentName comp, in IBinder service);
    void onServiceConnected(in ComponentName comp, in IBinder service);
    @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission")
    void onServiceDisconnected(in ComponentName comp);
    void onServiceDisconnected(in ComponentName comp);
}
}