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
108 int userId, float[] luxValues, long[] luxTimestamps, float batteryLevel, in BrightnessChangeEvent() argument
116 this.luxValues = luxValues; in BrightnessChangeEvent()
135 this.luxValues = other.luxValues; in BrightnessChangeEvent()
153 luxValues = source.createFloatArray(); in BrightnessChangeEvent()
187 dest.writeFloatArray(luxValues); in writeToParcel()
243 public Builder setLuxValues(float[] luxValues) { in setLuxValues() argument
244 mLuxValues = luxValues; in setLuxValues()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java358 float[] luxValues = new float[readingCount]; in handleBrightnessChanged() local
367 luxValues[pos] = reading.lux; in handleBrightnessChanged()
372 builder.setLuxValues(luxValues); in handleBrightnessChanged()
572 StringBuilder luxValues = new StringBuilder(); in writeEventsLocked() local
574 for (int j = 0; j < toWrite[i].luxValues.length; ++j) { in writeEventsLocked()
576 luxValues.append(','); in writeEventsLocked()
579 luxValues.append(Float.toString(toWrite[i].luxValues[j])); in writeEventsLocked()
582 out.attribute(null, ATTR_LUX, luxValues.toString()); in writeEventsLocked()
660 float[] luxValues = new float[luxValuesStrings.length]; in readEventsLocked() local
662 for (int i = 0; i < luxValues.length; ++i) { in readEventsLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java296 assertEquals(1, event.luxValues.length); in testBrightnessEvent()
297 assertEquals(1.0f, event.luxValues[0], FLOAT_DELTA); in testBrightnessEvent()
331 assertArrayEquals(new float[] {1000.0f}, event.luxValues, 0.01f); in testBrightnessFullPopulatedEvent()
422 assertEquals(12, event.luxValues.length); in testLimitedSensorEvents()
472 assertArrayEquals(new float[] {32.2f, 31.1f}, event.luxValues, FLOAT_DELTA); in testReadEvents()
489 assertArrayEquals(new float[] {132.2f, 131.1f}, event.luxValues, FLOAT_DELTA); in testReadEvents()
589 assertArrayEquals(new float[] {2000.0f, 3000.0f}, event.luxValues, FLOAT_DELTA); in testWriteThenRead()
637 assertArrayEquals(new float[] {2000.0f, 3000.0f}, event.luxValues, FLOAT_DELTA); in testWritePrunesOldEvents()
653 float[] luxValues = new float[2]; in testParcelUnParcel() local
654 luxValues[0] = 3000.0f; in testParcelUnParcel()
[all …]
/frameworks/base/api/
Dtest-lint-baseline.txt812 MissingNullability: android.hardware.display.BrightnessChangeEvent#luxValues:
Dtest-current.txt1248 field public final float[] luxValues;
Dsystem-current.txt2436 field public final float[] luxValues;
/frameworks/base/non-updatable-api/
Dsystem-current.txt2384 field public final float[] luxValues;