fb: TRDS change auto detect light conditions method
Currently on critical light conditions it still switches to often between
on and off which results in bad UX and in worse cases to unusable phone
due that it is permanently switching. To prevend that slacken the light mode
level detection and set it when it goes to dark mode way more higher (LIGHT_CONDITION)
and when into light mode back to lower level (DARK_CONDITION)

PS
- 25 looks good

Change-Id: I2b824c022e6886c6b6bc5446597d7a53d85e7d8b
Frameworks: TRDS fix possible UI freeze on auto mode change
- only call on theme mode change when auto mode changes. Under special conditions
  it can happen that it is called twice
- ensure that whenever a mode change is really done to close the notification shade
- minor cleanup

Change-Id: Ieb3eb67fa9dff0060ac6419c357dbf5a5d849a28
Revert "fb: TRDS some tweaks and fixes (1/2)"

This reverts commit 1ce245db4d1325cbd5eec6d8c3cb0f00c8fea780.

Conflicts:
	services/java/com/android/server/UiModeManagerService.java

Change-Id: I6feaf3b639061031333803040ade070586fd60bc