diff options
author | Etienne Ruffieux <eruffieux@google.com> | 2021-10-26 15:52:10 +0000 |
---|---|---|
committer | Etienne Ruffieux <eruffieux@google.com> | 2021-10-26 15:52:10 +0000 |
commit | 28b7b6464c541f14efb677bb3ec6e40afa07e763 (patch) | |
tree | 7c28e9b4e695271fa9169546408f29248aeb33f4 /framework/java/android/bluetooth/BluetoothActivityEnergyInfo.java | |
parent | 9dbdb46fac98075ccacc9f5d17ae3aee1a196e4f (diff) |
Renamed getTimeStamp to getTimestampMillis and added docs.
Tag: #feature
Test: Manual
Bug: 204179568
Change-Id: Ibea9f98eb25447e7ca3a07310615d14caf2c8aa1
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothActivityEnergyInfo.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothActivityEnergyInfo.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/java/android/bluetooth/BluetoothActivityEnergyInfo.java b/framework/java/android/bluetooth/BluetoothActivityEnergyInfo.java index f371c6d782..c17a7b4b3d 100644 --- a/framework/java/android/bluetooth/BluetoothActivityEnergyInfo.java +++ b/framework/java/android/bluetooth/BluetoothActivityEnergyInfo.java @@ -16,6 +16,7 @@ package android.bluetooth; +import android.annotation.ElapsedRealtimeLong; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.SystemApi; @@ -167,7 +168,7 @@ public final class BluetoothActivityEnergyInfo implements Parcelable { /** * @return timestamp (real time elapsed in milliseconds since boot) of record creation */ - public long getTimeStamp() { + public @ElapsedRealtimeLong long getTimestampMillis() { return mTimestamp; } @@ -189,7 +190,7 @@ public final class BluetoothActivityEnergyInfo implements Parcelable { } /** - * @return true if the record is valid + * @return true if the record Tx time, Rx time, and Idle time are more than 0. */ public boolean isValid() { return ((mControllerTxTimeMs >= 0) && (mControllerRxTimeMs >= 0) |