OSDN Git Service

Round out the QS API
authorJason Monk <jmonk@google.com>
Tue, 12 Jan 2016 16:27:02 +0000 (11:27 -0500)
committerJason Monk <jmonk@google.com>
Tue, 12 Jan 2016 22:27:52 +0000 (17:27 -0500)
commit9429513cc3ea6e58e330865bd621b57cb3477551
treedfbc0bf44a05bac7d7d067ccbb39c35d51f6bb58
parentca894a0f53ba71cb8bcb197c2cd39aeb7b73e72d
Round out the QS API

 - Add startActivityAndCollapse, to make collapsing the shade easy
 - Add isSecure()
 - Add isLocked()
 - Add unlockandRun(Runnable)
 - Add unavailable, active, and inactive states

The states are added to allow consistent UI across OEM devices, by
allowing UI tweaking and tinting to match system tiles with custom
ones.

The combination of isSecure() and isLocked() and unlockAndRun(Runnable)
allows all combinations of launching show when lockend and triggering
an unlock when needed for sensitive tiles.

Change-Id: Iade98ad9f2c22aa174e62090d8ccd44c86f3bb3c
14 files changed:
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/service/quicksettings/IQSService.aidl
core/java/android/service/quicksettings/IQSTileService.aidl
core/java/android/service/quicksettings/Tile.java
core/java/android/service/quicksettings/TileService.java
packages/SystemUI/res/values/colors.xml
packages/SystemUI/src/com/android/systemui/qs/customize/BlankCustomTile.java
packages/SystemUI/src/com/android/systemui/qs/external/CustomTile.java
packages/SystemUI/src/com/android/systemui/qs/external/QSTileServiceWrapper.java
packages/SystemUI/src/com/android/systemui/qs/external/TileLifecycleManager.java
packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
packages/SystemUI/tests/src/com/android/systemui/qs/external/TileLifecycleManagerTests.java