History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6f7705666643156ad6cbe987b8263299f0b4693a 17-Mar-2017 Jason Monk <jmonk@google.com> Fix up QS edit UI

Turns out QS Edit mode didn't like the changes to dual target tiles.
Clean this up a bit.

Test: visual
Change-Id: I158fe8dba6729de102cfc592314ec483a969417d
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.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/customize/TileQueryHelper.java
702e2ebf9fbfb715c1d9b716683c9e4d182b575e 03-Mar-2017 Jason Monk <jmonk@google.com> Add plugin API for individual QS tiles

This will allow prototyping of individual QS tiles and/or their
visual representation without having to write a plugin for the
entire panel. This will allow quick iteration on QS UI + dual
target tiles.

Test: Install plugin using new API
Change-Id: I05ca9d9f5a200a1dad2c3582251a36edb5cb9aba
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
6b28473635e5c9550b7a57c7ec23e60ed9185b2b 28-Feb-2017 Evan Laird <evanlaird@google.com> Fix qs tiles disappearing when leaving edit

On presenting the customizer view to edit quick settings tiles, the
tiles were fetched in background threads (2 different ones). If the user
then managed to dismiss the view too quickly, a save would occur before
all tiles were loaded and they would disappear. This change coerces
tiles to load on the same background thread and allows the customizer
view to know when that operation is complete. Thus, it can save only
when it knows that all possible tiles were loaded.

Fixes:35556395
Test: runtest -x SystemUI/tests/src/com/android/systemui/qs/customize/TileQueryHelperTest.java
Change-Id: Ie232d3c28645d38aad97a8763b7418e6b044b5cc
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.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/customize/TileQueryHelper.java
95319337979b2c6fe81c17d6a14c2704bcaa5a0d 17-Oct-2016 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Merge "Avoid automatically mirroring Drawable of CustomTile"
am: 9a904d68c7

Change-Id: I337620f4a2514a00a6b49275cadde6087e11dddf
eb09362c729aaf5f91597d88de49d099f9f95c60 17-Aug-2016 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Avoid automatically mirroring Drawable of CustomTile

Developers of custom tiles should decide whether
the Drawable of their own tiles should be automatically mirrored.
So State#autoMirrorDrawable should be false by default.

Bug: 30930145
Test: manual - change to RTL language and open Quick Settings

Change-Id: Ia3fd8c2aeddb4a27b9ecfaaf52edbcce01fd7f48
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
dd1bd9875f7b9834bceb133f2a820dadd139f720 14-Oct-2016 Yuta Yamada <yuta.x.yamada@sonymobile.com> Merge "Fix memory leak of Dnd tile" am: 6057a8360a am: 465397e28e
am: be3b53beca

Change-Id: I12dae89a0b577379e7a868182b535f5dcda09d36
99fd277a4737e4369246fc3d210c14c83d1fbce7 06-Oct-2016 Yuta Yamada <yuta.x.yamada@sonymobile.com> Fix memory leak of Dnd tile

The instance of Dnd tile leaks when user taps the edit button
of Quick Settings. To fix this issue, QSTile#destroy should be
called when the tile is no longer needed.

Bug: 32103239
Test: manual - go to Quick Settings -> Edit repeatedly

Change-Id: I9bc9ee836be5c8e46eb1ccd202bd5cc50070ef47
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
726aee885ae7b58ec8fb058181c1c61d215625b8 22-Jun-2016 Jason Monk <jmonk@google.com> Merge \"QS: Fix default icon handling for services\" into nyc-dev
am: 94a20367b5

Change-Id: I626992cdd9c5ff507b001dae2816df09872872ca
a5f6ed355eb19a64fc881f0159b8a8cd3a4fb5f5 22-Jun-2016 Jason Monk <jmonk@google.com> QS: Fix default icon handling for services

Change-Id: I3b25df8b8d02cd99a943571de14cf0a8c5b051bd
Fixes: 29452288
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
a78fd8a31b4e2c9ae230fb63e6a3fb6bade0e1a1 13-Jun-2016 Jason Monk <jmonk@google.com> Merge \"Fix QS edit view accessibility classes\" into nyc-dev
am: 0809964452

Change-Id: Ia562b52fff2f6efa4355b9d6ffe8af67fd845b98
50a352bc8d599cfae6f64ca9102e188bd18ef0df 13-Jun-2016 Jason Monk <jmonk@google.com> Fix QS edit view accessibility classes

Change-Id: I6aecd900ac6123e3499ab65db8896d51b70e2f89
Fixes: 29126464
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
beb1f177ef15a3a22414144bb9d06ad421746d3c 06-Jun-2016 Will Harmon <xlythe@google.com> Bug: 28875393
Bug: 28879732

Fixes a bug where setting an app as a default quicksettings tile will
show it twice.

Change-Id: Ie71746d85c6782810966c62be416a62545329859
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
e5107a36b0547135791bfe2b692898994ef0887d 31-May-2016 Jason Monk <jmonk@google.com> QS: Only put visible tiles in listening state

- Make it so the QSPanel doesn't listen until expansion starts
- Push listening state through the TileLayout
- Make PagedTileLayout only listen for visible pages
- Push setListening onto background thread

Change-Id: Id7c008c9447f9a5dac69469fef72bc580f423b0c
Fixes: 28962155
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
21582d4643e3e999b7a98e232f4a9774331a3ed8 21-Apr-2016 Jason Monk <jmonk@google.com> QS: Use current tile state when removing custom tiles

Change-Id: If12415c051239348261386fb23e88d6725767ba0
Fixes: 27912532
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
4a906f9da6f49ef26f6bd4690338a19ade7cd55f 20-Apr-2016 Jason Monk <jmonk@google.com> QS custom tiles - better handling of invalid icons

Change-Id: I7b174a078a9df840eb73def101d865a8d630db19
Fixes: 27871180
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
0b349adcd8ad85621fd2bd7fc9fc6f878a4b92d8 04-Apr-2016 Jason Monk <jmonk@google.com> Add app attribution to QS editing

Add a divider between where system tiles and custom tiles are and
add their app label to them as well.

Change-Id: I8890a7fee54e4c5340bbe95c6e100c58f81ee5c3
Fixes: 27874624
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
39c98e652fd3e0e3ea3a334d60ba6ee979985978 16-Mar-2016 Jason Monk <jmonk@google.com> QS edit drag and drop accessibility

Bug: 27667843
Change-Id: Ief0980af25d855942b0565e5a9bfcc0d266bdbe0
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
1b0afebf370ebd89182833ab1e1b26866383838b 04-Mar-2016 Jason Monk <jmonk@google.com> Fix night mode availability

Night mode tile is getting auto-added. Do the safe thing for now
and fix the checks around the tile availability to make sure it
isn't shown when it shouldn't be, then fix the auto-add logic later.

Bug: 27480924
Change-Id: I3d032038cbc77bf478e3c769c6796be289a8d993
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
cb654cb1722d72062461eaa604d077e0368ddb23 25-Feb-2016 Jason Monk <jmonk@google.com> Fix drag to add tiles showing too many times

It was appearing from the night tile being unavailable and causing
extra nulls in the list. Fix the night mode tile so the nulls don't
happen. Also fix the null handling to avoid this happening with other
bad specs.

Bug: 27061683
Change-Id: I48f769c06ed17c2ff1f166434857ec1faff14d02
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
b53b6c566f8e4754406cd1c3fddfa16a27515a7e 24-Feb-2016 Jason Monk <jmonk@google.com> QS Tweaks

- Bring back toolbar, save on close, reset -> overflow
- Fix drag on touch
- Fix battery icon size
- Verify correct permission to display QS tile

Bug: 27327479
Bug: 27250519
Bug: 27341503
Change-Id: I8984e441222e004f7ddd4b280b0c154bda2cc742
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
5dbd4aad809e6fec51df62280bcc1bfe05cc7df5 07-Feb-2016 Jason Monk <jmonk@google.com> SysUI Tuner: Night mode v3

TwilightService:
- Add support for locking on/off twilight globally
- Change twilight state to have float amount rather than
having clients calculate it using the sunrise/set values
- State controlled through secure setting
- Override mode which locks to a state for a couple hours then
resets
- Add broadcast for SysUI to listen to

Brightness/Power:
- Updates to handle TwilightService changes
- Added secure setting to control whether or not to use
twilight when calculating brightness.

Tuner:
- UI Overhall
- NightModeController will set the values of the custom color matrix
taking into account the current twilight service state and any
custom calibration set by the user.
- Probably other stuff.

Change-Id: I213f1f76a143e711c507b2ba7d784f581bfc32b4
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
4c4f3ee4f5bbe85a06ed452dbe7e55c932421f1e 16-Feb-2016 Jason Monk <jmonk@google.com> Add missing cast tile

Bug: 27061481
Change-Id: Icf037b199c382096d2145a7b3a169be2f6079e54
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
c3f42c102422f70f5bbe67105e16515ce9c306a3 05-Feb-2016 Jason Monk <jmonk@google.com> Add support for auto-adding tiles

hotspot, color inversion, data saver, and work profiles should add
themselves when they first become applicable.

Also refactor the availability flow a little bit.

Change-Id: Iaed89059540a98fefd4d26ce69edc0dde987b992
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
e24194f0792f4a0ab99a4e9a6c9e4011a505ea18 05-Feb-2016 Jason Monk <jmonk@google.com> Update QS defaults list

Also allow custom tiles to be in the default list.

Bug: 26425051
Change-Id: I88af8b251dda333f1392e9959c8505e85f4cbafa
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java
62b63a02d7ca630e3ad39991ea6550cab57e5d22 02-Feb-2016 Jason Monk <jmonk@google.com> Rewrite QS customizer

Instead of custom draginess, use RecyclerView with a GridLayoutManager.

Still needs a bit of work, but the overall feel is significantly better
than before.

Change-Id: I3b3927472f69721e265ef7591de2f3052862f392
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/TileQueryHelper.java