Bluetooth: deprecate TruncatedFilter and ResultStorageDescriptor

It's not used anywhere, and the implementation actually never do
anything.

Bug: 192615539
Merged-In: Icf8906c972cf18d65a22d30c3a628fd54db59179
Change-Id: Icf8906c972cf18d65a22d30c3a628fd54db59179
This commit is contained in:
Jakub Pawlowski
2021-07-13 22:05:45 +02:00
parent 374836844e
commit 866cf34016
4 changed files with 22 additions and 13 deletions

View File

@@ -2213,17 +2213,17 @@ package android.bluetooth.le {
public final class BluetoothLeScanner { public final class BluetoothLeScanner {
method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_SCAN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(android.os.WorkSource, android.bluetooth.le.ScanCallback); method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_SCAN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(android.os.WorkSource, android.bluetooth.le.ScanCallback);
method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_SCAN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(java.util.List<android.bluetooth.le.ScanFilter>, android.bluetooth.le.ScanSettings, android.os.WorkSource, android.bluetooth.le.ScanCallback); method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_SCAN, android.Manifest.permission.UPDATE_DEVICE_STATS}) public void startScanFromSource(java.util.List<android.bluetooth.le.ScanFilter>, android.bluetooth.le.ScanSettings, android.os.WorkSource, android.bluetooth.le.ScanCallback);
method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void startTruncatedScan(java.util.List<android.bluetooth.le.TruncatedFilter>, android.bluetooth.le.ScanSettings, android.bluetooth.le.ScanCallback); method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void startTruncatedScan(java.util.List<android.bluetooth.le.TruncatedFilter>, android.bluetooth.le.ScanSettings, android.bluetooth.le.ScanCallback);
} }
public final class ResultStorageDescriptor implements android.os.Parcelable { @Deprecated public final class ResultStorageDescriptor implements android.os.Parcelable {
ctor public ResultStorageDescriptor(int, int, int); ctor @Deprecated public ResultStorageDescriptor(int, int, int);
method public int describeContents(); method @Deprecated public int describeContents();
method public int getLength(); method @Deprecated public int getLength();
method public int getOffset(); method @Deprecated public int getOffset();
method public int getType(); method @Deprecated public int getType();
method public void writeToParcel(android.os.Parcel, int); method @Deprecated public void writeToParcel(android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ResultStorageDescriptor> CREATOR; field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ResultStorageDescriptor> CREATOR;
} }
public final class ScanFilter implements android.os.Parcelable { public final class ScanFilter implements android.os.Parcelable {
@@ -2247,10 +2247,10 @@ package android.bluetooth.le {
method public android.bluetooth.le.ScanSettings.Builder setScanResultType(int); method public android.bluetooth.le.ScanSettings.Builder setScanResultType(int);
} }
public final class TruncatedFilter { @Deprecated public final class TruncatedFilter {
ctor public TruncatedFilter(android.bluetooth.le.ScanFilter, java.util.List<android.bluetooth.le.ResultStorageDescriptor>); ctor @Deprecated public TruncatedFilter(android.bluetooth.le.ScanFilter, java.util.List<android.bluetooth.le.ResultStorageDescriptor>);
method public android.bluetooth.le.ScanFilter getFilter(); method @Deprecated public android.bluetooth.le.ScanFilter getFilter();
method public java.util.List<android.bluetooth.le.ResultStorageDescriptor> getStorageDescriptors(); method @Deprecated public java.util.List<android.bluetooth.le.ResultStorageDescriptor> getStorageDescriptors();
} }
} }

View File

@@ -356,8 +356,11 @@ public final class BluetoothLeScanner {
/** /**
* Start truncated scan. * Start truncated scan.
* *
* @deprecated this is not used anywhere
*
* @hide * @hide
*/ */
@Deprecated
@SystemApi @SystemApi
@RequiresBluetoothScanPermission @RequiresBluetoothScanPermission
@RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN)

View File

@@ -23,8 +23,11 @@ import android.os.Parcelable;
/** /**
* Describes the way to store scan result. * Describes the way to store scan result.
* *
* @deprecated this is not used anywhere
*
* @hide * @hide
*/ */
@Deprecated
@SystemApi @SystemApi
public final class ResultStorageDescriptor implements Parcelable { public final class ResultStorageDescriptor implements Parcelable {
private int mType; private int mType;

View File

@@ -24,8 +24,11 @@ import java.util.List;
/** /**
* A special scan filter that lets the client decide how the scan record should be stored. * A special scan filter that lets the client decide how the scan record should be stored.
* *
* @deprecated this is not used anywhere
*
* @hide * @hide
*/ */
@Deprecated
@SystemApi @SystemApi
@SuppressLint("AndroidFrameworkBluetoothPermission") @SuppressLint("AndroidFrameworkBluetoothPermission")
public final class TruncatedFilter { public final class TruncatedFilter {