Lines Matching refs:time

56     // Period of time in which to consider light samples in milliseconds.
69 // How long the current sensor reading is assumed to be valid beyond the current time.
74 // If true, enables the use of the current time as an auto-brightness adjustment.
82 // Specifies the maximum magnitude of the time of day adjustment.
85 // The amount of time after or before sunrise over which to start adjusting
135 // Amount of time to delay auto-brightness after screen on while waiting for
143 // The time when the light sensor was enabled.
159 // The time of the most light recent sample.
303 private void handleLightSensorEvent(long time, float lux) {
306 applyLightSensorMeasurement(time, lux);
307 updateAmbientLux(time);
310 private void applyLightSensorMeasurement(long time, float lux) {
312 mAmbientLightRingBuffer.prune(time - AMBIENT_LIGHT_HORIZON);
313 mAmbientLightRingBuffer.push(time, lux);
317 mLastObservedLuxTime = time;
373 private long nextAmbientLightBrighteningTransition(long time) {
375 long earliestValidTime = time;
385 private long nextAmbientLightDarkeningTransition(long time) {
387 long earliestValidTime = time;
398 long time = SystemClock.uptimeMillis();
399 mAmbientLightRingBuffer.prune(time - AMBIENT_LIGHT_HORIZON);
400 updateAmbientLux(time);
403 private void updateAmbientLux(long time) {
409 if (time < timeWhenSensorWarmedUp) {
412 + "time=" + time
419 setAmbientLux(calculateAmbientLux(time));
429 long nextBrightenTransition = nextAmbientLightBrighteningTransition(time);
430 long nextDarkenTransition = nextAmbientLightDarkeningTransition(time);
431 float ambientLux = calculateAmbientLux(time);
433 if (ambientLux >= mBrighteningLuxThreshold && nextBrightenTransition <= time
434 || ambientLux <= mDarkeningLuxThreshold && nextDarkenTransition <= time) {
444 nextBrightenTransition = nextAmbientLightBrighteningTransition(time);
445 nextDarkenTransition = nextAmbientLightDarkeningTransition(time);
449 // exceed the necessary threshold, then it's possible we'll get a transition time prior to
452 // should be enough time to decide whether we should actually transition to the new
455 nextTransitionTime > time ? nextTransitionTime : time + mLightSensorRate;
618 final long time = SystemClock.uptimeMillis();
620 handleLightSensorEvent(time, lux);
670 public void push(long time, float lux) {
691 mRingTime[next] = time;
713 // level for all points in time up until we receive a new measurement. Thus, we
715 // buffer and just set its measurement time to the horizon time since at that