Home
last modified time | relevance | path

Searched refs:luxValues (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/hardware/display/
DBrightnessChangeEvent.java53 public final float[] luxValues; field in BrightnessChangeEvent
106 int userId, float[] luxValues, long[] luxTimestamps, float batteryLevel, in BrightnessChangeEvent() argument
114 this.luxValues = luxValues; in BrightnessChangeEvent()
133 this.luxValues = other.luxValues; in BrightnessChangeEvent()
151 luxValues = source.createFloatArray(); in BrightnessChangeEvent()
185 dest.writeFloatArray(luxValues); in writeToParcel()
241 public Builder setLuxValues(float[] luxValues) { in setLuxValues() argument
242 mLuxValues = luxValues; in setLuxValues()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java349 float[] luxValues = new float[readingCount]; in handleBrightnessChanged() local
358 luxValues[pos] = reading.lux; in handleBrightnessChanged()
363 builder.setLuxValues(luxValues); in handleBrightnessChanged()
563 StringBuilder luxValues = new StringBuilder(); in writeEventsLocked() local
565 for (int j = 0; j < toWrite[i].luxValues.length; ++j) { in writeEventsLocked()
567 luxValues.append(','); in writeEventsLocked()
570 luxValues.append(Float.toString(toWrite[i].luxValues[j])); in writeEventsLocked()
573 out.attribute(null, ATTR_LUX, luxValues.toString()); in writeEventsLocked()
651 float[] luxValues = new float[luxValuesStrings.length]; in readEventsLocked() local
653 for (int i = 0; i < luxValues.length; ++i) { in readEventsLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java267 assertEquals(1, event.luxValues.length); in testBrightnessEvent()
268 assertEquals(1.0f, event.luxValues[0], FLOAT_DELTA); in testBrightnessEvent()
302 assertArrayEquals(new float[] {1000.0f}, event.luxValues, 0.01f); in testBrightnessFullPopulatedEvent()
396 assertEquals(12, event.luxValues.length); in testLimitedSensorEvents()
446 assertArrayEquals(new float[] {32.2f, 31.1f}, event.luxValues, FLOAT_DELTA); in testReadEvents()
463 assertArrayEquals(new float[] {132.2f, 131.1f}, event.luxValues, FLOAT_DELTA); in testReadEvents()
563 assertArrayEquals(new float[] {2000.0f, 3000.0f}, event.luxValues, FLOAT_DELTA); in testWriteThenRead()
614 assertArrayEquals(new float[] {2000.0f, 3000.0f}, event.luxValues, FLOAT_DELTA); in testWritePrunesOldEvents()
630 float[] luxValues = new float[2]; in testParcelUnParcel() local
631 luxValues[0] = 3000.0f; in testParcelUnParcel()
[all …]
/frameworks/base/api/
Dtest-lint-baseline.txt802 MissingNullability: android.hardware.display.BrightnessChangeEvent#luxValues:
Dtest-current.txt945 field public final float[] luxValues;
Dsystem-current.txt2118 field public final float[] luxValues;
/frameworks/base/non-updatable-api/
Dsystem-current.txt2118 field public final float[] luxValues;