summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/le/ScanResult.java
diff options
context:
space:
mode:
Diffstat (limited to 'framework/java/android/bluetooth/le/ScanResult.java')
-rw-r--r--framework/java/android/bluetooth/le/ScanResult.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/le/ScanResult.java b/framework/java/android/bluetooth/le/ScanResult.java
index 57dad1a025..5228456284 100644
--- a/framework/java/android/bluetooth/le/ScanResult.java
+++ b/framework/java/android/bluetooth/le/ScanResult.java
@@ -16,8 +16,11 @@
package android.bluetooth.le;
+import android.annotation.NonNull;
import android.annotation.Nullable;
import android.bluetooth.BluetoothDevice;
+import android.content.Attributable;
+import android.content.AttributionSource;
import android.os.Parcel;
import android.os.Parcelable;
@@ -26,7 +29,7 @@ import java.util.Objects;
/**
* ScanResult for Bluetooth LE scan.
*/
-public final class ScanResult implements Parcelable {
+public final class ScanResult implements Parcelable, Attributable {
/**
* For chained advertisements, inidcates tha the data contained in this
@@ -195,6 +198,11 @@ public final class ScanResult implements Parcelable {
return 0;
}
+ /** {@hide} */
+ public void setAttributionSource(@NonNull AttributionSource attributionSource) {
+ Attributable.setAttributionSource(mDevice, attributionSource);
+ }
+
/**
* Returns the remote Bluetooth device identified by the Bluetooth device address.
*/