Commit Graph

5 Commits

Author SHA1 Message Date
Fan Zhang
f7802eacfd Sort imports
Having consistent import order will reduce chance of merge
conflict between internal and external master

Test: rebuild
Change-Id: I9acb311ec05f72f0a37f08b0d26785841fe91de5
2018-08-28 15:16:58 -07:00
Fan Zhang
106b1c0d80 Move brightness color conversion from SysUI to settingslib
The color space conversion logic in BrightnessController is also needed
by Settings app to display brightness percentage correctly. This change
moves the conversion logic to settingslib so it can be shared by other
UIs such as Settings/VrSettings.

Bug: 73810208
Test: atest RunSettingsLibRoboTests
Change-Id: If92f0da2d930fec797902b5d1b3731100e1d0ea4
2018-04-24 12:00:47 -07:00
Alan Viverette
df3a7cab8f Change density for the correct user
Bug: 30839993
Change-Id: I5368accddfc4a03b8025a257b4155fcdc6197f11
2016-09-06 17:13:41 -04:00
Alan Viverette
11f831f133 Use "real" display size for computing available densities
Avoid issues in split-screen mode.

Bug: 29835212
Change-Id: Ib11c1790cb4b2cc24ce5702f9d785ba188ad19c0
2016-07-14 14:27:17 -04:00
Alan Viverette
8890cfa67f Move DensityUtils into SettingsLib
Bug: 27644685
Change-Id: I24b9e53d9add294eba43b612b30e3c4d6f74c8b5
2016-03-25 14:56:38 -04:00