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

Commit c6f0cf26 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Renamed getTimeStamp to getTimestampMillis and added docs." am: 86e4a8ba am: d8935b34f4

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1869978

Change-Id: I4ad9815b55742305007388054eb34397de03cb4d
parents a44cae52 86e4a8ba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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)