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

Commit 691d97ef authored by Karthik Bharadwaj's avatar Karthik Bharadwaj Committed by Automerger Merge Worker
Browse files

Merge "Update code comments to mention sensor name uniqueness." into sc-dev...

Merge "Update code comments to mention sensor name uniqueness." into sc-dev am: 5f9e20b3 am: 072f70d5 am: 39029906

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

Change-Id: I88aa3aa2053e211ff387652a8ebc542d28fbb2c7
parents fc3b8d14 39029906
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -952,7 +952,8 @@ public final class Sensor {
    }

    /**
     * @return name string of the sensor.
     * @return name string of the sensor. The name is guaranteed to be unique
     * for a particular sensor type.
     */
    public String getName() {
        return mName;
+3 −1
Original line number Diff line number Diff line
@@ -399,7 +399,9 @@ public abstract class SensorManager {
     * Use this method to get the list of available sensors of a certain type.
     * Make multiple calls to get sensors of different types or use
     * {@link android.hardware.Sensor#TYPE_ALL Sensor.TYPE_ALL} to get all the
     * sensors.
     * sensors. Note that the {@link android.hardware.Sensor#getName()} is
     * expected to yield a value that is unique across any sensors that return
     * the same value for {@link android.hardware.Sensor#getType()}.
     *
     * <p class="note">
     * NOTE: Both wake-up and non wake-up sensors matching the given type are