Loading system/binder/android/bluetooth/IBluetooth.aidl +16 −0 Original line number Original line Diff line number Diff line Loading @@ -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)") Loading @@ -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)") Loading Loading @@ -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)") Loading @@ -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); Loading Loading @@ -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)") Loading system/binder/android/bluetooth/IBluetoothA2dp.aidl +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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); Loading system/binder/android/bluetooth/IBluetoothManager.aidl +6 −0 Original line number Original line Diff line number Diff line Loading @@ -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); Loading @@ -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); } } system/binder/android/bluetooth/IBluetoothMetadataListener.aidl +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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); } } system/binder/android/bluetooth/IBluetoothProfileServiceConnection.aidl +2 −0 Original line number Original line Diff line number Diff line Loading @@ -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); } } Loading
system/binder/android/bluetooth/IBluetooth.aidl +16 −0 Original line number Original line Diff line number Diff line Loading @@ -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)") Loading @@ -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)") Loading Loading @@ -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)") Loading @@ -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); Loading Loading @@ -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)") Loading
system/binder/android/bluetooth/IBluetoothA2dp.aidl +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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); Loading
system/binder/android/bluetooth/IBluetoothManager.aidl +6 −0 Original line number Original line Diff line number Diff line Loading @@ -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); Loading @@ -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); } }
system/binder/android/bluetooth/IBluetoothMetadataListener.aidl +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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); } }
system/binder/android/bluetooth/IBluetoothProfileServiceConnection.aidl +2 −0 Original line number Original line Diff line number Diff line Loading @@ -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); } }