History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c673fbc2c2eb37037dae9a8c55b1588ab398a116 14-Apr-2017 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Collapse QS panel forcibly after dismissing Keyguard

The Quick Settings panel is not collapsed when the screen lock is
unlocked by using TileService APIs (unlockAndRun() and
startActivityAndCollapse()).
To fix this issue, the QS panel should be collapsed forcibly when
startActivityAndCollapse() is called.

Bug: 38252721
Test: manual - install an app which calls startActivityAndCollapse()
inside the runnable passed to unlockAndRun().

Author: Yuta Yamada <yuta.x.yamada@sonymobile.com>
Change-Id: I82d1df368d5024283f58ee5cc2d42559aac28467
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
1a74942fbfa36bf62013b51d8ad9fb4c0e44c6f4 28-Apr-2017 Jeff Sharkey <jsharkey@android.com> Respond to API council feedback.

Test: builds
Bug: 37752002
Change-Id: I7ae1699c4c5e1a098d16465c41fb41510478b678
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
e5b770e47d44a40d412c7d42010b2cf67920d9e3 04-Mar-2017 Jason Monk <jmonk@google.com> Updated QS UI

- Adds footer to QS which contains the date/alarm info
and all touch targets (settings, edit, etc.)
- Swaps out emergency + carrier text on cell tile for a
standard CarrierText from lock screen in the header
to make the header only contain status info.
- Add dividing line
- Work on animations

Test: runtest systemui
Change-Id: I97dfea1b1ea7006b53eb61ac3a1f942c64dd282d
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
4cfd8c740dee6cd8fe361a59487acde4e465f31f 15-Feb-2017 Jason Monk <jmonk@google.com> Fix test failures on treehugger?

Test: runtest systemui
Change-Id: I0660729aade05cd63b240eed13ed9d5c9ff8de91
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
809aadf69e087eb951e94d19e1d4705e029be68c 27-Jan-2017 Jason Monk <jmonk@google.com> SysUI: Fix race condition that is causing test failure

Test: runtest systemui
Change-Id: I7f3bf7bbcc75820231fd59ca20551ac377dea601
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
9c7844cb91b43929d0a86b1c90aa1efb37f5463a 18-Jan-2017 Jason Monk <jmonk@google.com> Work on sysui dependencies

One of the many problems with PhoneStatusBar is that it holds
dependencies for many other parts of SysUI. Fix this by creating
a static method of grabbing dependencies that are global to sysui
this cleans up a lot of chains of interdependence.

Also add easy way to inject mocks of these dependencies for the
purpose of testing.

Test: runtest systemui
Change-Id: Ia0e947faea62d15b665facada47ac9916c99f895
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
8852905b0b3837e326127c6dfef6f699124ce715 04-Nov-2016 Jason Monk <jmonk@google.com> Unit testing for fragments.

Set up a base class for testing fragments that will generate the host
and run the fragment through some lifecycle checks to make sure it
does ok with standard lifecycle.

Fragment tests will also automatically check for any sort of leaks
related to bindings, receivers, or other callbacks in sysui. This
requires changing the statusbar.policy classes with callbacks to
have a common interface.

Lastly also fixes a few lifecycle bugs in QS found from the above
tests.

Bug: 32609190
Test: runtest systemui
Change-Id: I52007c696c2fd41914bba4ba9d8055f2b564a7d8
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
016bc90331cd8b7dd3b8ec58b4ea6f64d3953bba 20-Jul-2016 Jason Monk <jmonk@google.com> QS: Fix crash in tile API

Change-Id: I9062839ab59236c20e35645701254ea2d24cc876
Fixes: 30224352
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
ee68fd889c2dfcd895b8e73fc39d7b97826dc3d8 23-Jun-2016 Jason Monk <jmonk@google.com> QS: Don't use ComponentName to identify tiles

Evidently some apps redirect/obscure tiles in a way that makes
creating a ComponentName from the TileService useless. Instead
generate a token which will be a much more stable way of identifying
tiles henceforth.

Change-Id: Id68550bcdcdc3e3987f09380f258610e7a5aca85
Fixes: 29121793
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
8753e184f967d1db91de34cb66aae0a977259a60 22-Jun-2016 Jason Monk <jmonk@google.com> QS Tiles: Fix some problems with connecting through intent

- Don't send Tile through intent, it can cause crashes
- Clean up other issues surrounding this

Change-Id: I08c626cf39b36d349592c1e0b81627b9bc7eeeb3
Fixes: 29519485
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
a3453b8bd9af44566c6a31fd0156cc76e6028f6d 17-Jun-2016 Jason Monk <jmonk@google.com> QS API: Fix mService and mTile being null once and for all

Change-Id: Idd82e4c2f6cfc2b30432e15e23963c1d7a959e43
Fixes: 29121793
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
07f55a2a04f8bfbb1702ca226f394607b5130908 11-Apr-2016 Jason Monk <jmonk@google.com> Remove QS tiles that get uninstalled

Change-Id: Ib4c7250a38c0630b0d828f1f55ce5c0dc4d3bb44
Fixes: 27893200
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
97d2272be0bf3e77474e7ff9984217dfe247f4d0 07-Apr-2016 Jason Monk <jmonk@google.com> Allow mode of TileService to be changed

Since the mode of a tile service was set in onTileAdded, it couldn't
be controlled by developers if they updated their tile. To handle
the mode has been moved to a boolean meta-data flag to indicate
a tile should be an active tile.

Bug: 28043969
Change-Id: I6403d34f8cb70809edc07769389d5a1f835c1ab3
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
1c2fea8df7054d1bc23945c38460a123ce453c4a 11-Mar-2016 Jason Monk <jmonk@google.com> Fix QS FBE-ness

- Get service info for encryption-unaware apps
- SysUI assumes tiles in unavailable state when waiting for
binding
- Attempt rebind after unlock is complete
- Fix random crash that was making testing hard

Bug: 26940789
Bug: 27556723
Change-Id: I0b3600d35d4c74bb0d6c47a34a7d267bb9731bc4
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
34a5cef6298cc44fc0614c4747c4b17137cff441 29-Jan-2016 Jason Monk <jmonk@google.com> Let SysUI watch TileService's dialog lifecycle

That way it can better handle tokens and service binding.

Change-Id: I9b882181ecbe52a65e731a2c45f1d296315884b4
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
c0d7058b14c24cd07912f5629c26b39b7b4673d5 29-Jan-2016 Winson <winsonc@google.com> Referencing static interpolators.

Change-Id: I5d2292016e869ed533f5873e373a1eccce651fc5
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
9429513cc3ea6e58e330865bd621b57cb3477551 12-Jan-2016 Jason Monk <jmonk@google.com> 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
66c89c15a0baabf001e69498dbc09903f72cc63d 06-Jan-2016 Jason Monk <jmonk@google.com> Add API for System QS tiles to set status icons

Allow system apps that have a Quick Settings tile to show a
status bar icon. If the quick settings tile is removed, the
status bar icon will no longer be shown.

Change-Id: I875b962bbdf4ff863012de688a3dd29a8d7e11ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
e06b4d1d9f718b9fe02980fea794a36831a16db2 06-Jan-2016 Jeff Sharkey <jsharkey@android.com> Consistent naming for PackageManager methods.

When hidden PackageManager methods take a userId argument, they
should be named explicitly with the "AsUser" suffix. This fixes
several lagging examples so that we can pave the way to safely
start passing flags to new methods without scary overloading.

Also fix spacing issues in various logging statements.

Change-Id: I1e42f7f66427410275df713bea04f6e0445fba28
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
fe8f6826ce3c2beeb1fce54c67978ce69f849407 21-Dec-2015 Jason Monk <jmonk@google.com> More QS Tile modes in the API

Allow tiles to request when they are bound instead of doing it
automatically for them when in the listening state. Only one
of these modes is allowed for a given tile, meaning it can either
push updates when it thinks they matter, or it can be told when
to update.

Change-Id: I165b39dddb836df90d253aeb5ebea48e62ea0dae
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java
d5a204f16e7c71ffdbc6c8307a4134dcc1efd60d 21-Dec-2015 Jason Monk <jmonk@google.com> Better service management for QS 3rd party tiles

Better wrapper around the service that will handle rebinding
when it dies, binding when it becomes available, and forwarding
along all messages to the service once it binds.

Also better handling of too many services at a time. Will only
ever bind to at most 3 tiles and will manage which ones are most
important to show based on pending clicks, last update, etc.

Change-Id: I5f4da0bc751f7eb25baa32e5c0bb9f1bc418f5bb
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java