History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c548340ba9343dae277f849be70cadca8a73638c 26-Apr-2018 Amin Shaikh <ashaikh@google.com> Fix bluetooth state updated in systemui.

- Update both bluetooth and bluetooth connection state when bluetooth
state changes. This ensures that connection state is not stale when
bluetooth is turning off when establishing a connection.
- Display "Connecting..." when bluetooth is actively trying to establish
a connection instead of "Turning on..."

Change-Id: I16463f3f57c8adb6d9401fe478acaad5f987fa76
Fixes: 77528964
Test: runtest systemui
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
45fb7a75cf6d81f275303d2a3b74b4140fd694da 18-Apr-2018 Amin Shaikh <ashaikh@google.com> Update bluetooth QS tile secondary text.

Only show detailed status when connected to exactly one device.
Otherwise show "X devices".
Also, listen for bluetooth profile service callbacks to initialize the
bluetooth device state after systemui crashes.

TODO: Update string to "X devices connected" after P

Change-Id: I99a3484c3dfa7eb0d6d8836336ebb84cbdaadbe5
Fixes: 76102598
Fixes: 77498698
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
3468e5a0165225cd30e49e0f1fc4a0def8b5f3ee 18-Apr-2018 Amin Shaikh <ashaikh@google.com> Rely on tile state for on/off a11y announcement.

Do not include on/off in QS tile content descriptions.

Change-Id: I10ddeb6c56f99fe4dad3eaaa98a56cafba68be9f
Fixes: 78171152
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
8c4a19c8c6b57d4c6dbbc652d887881e21bf4ec8 20-Mar-2018 Amin Shaikh <ashaikh@google.com> Fix QSTileImpl NPE on startup.

Do not call protected methods before the object is fully instantiated.
Remove paranoid null check for private final nonnull fields for
sublasses of QSTileImpl.

Fixes: 75995708
Test: runtest systemui
Change-Id: I0a11131d796e08d598d696babdf3d7db30e02149
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
d03a74310f84af6b0afdd87237fee28187998894 01-Mar-2018 Amin Shaikh <ashaikh@google.com> Immediately enter transient enabling state in QS.

Toggling bluetooth/wifi/tethering can feel unresponsive due to the time
it takes for these services to become enabled. This change immediately
updates the QS tile UI to reflect the transient enabling state.

Fixes: 73714270
Test: visually tapping on each tile slowly and rapidly
Change-Id: Iec10054f2af4ed78e2ddc2fdcd10245a627ca50a
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
4f4cdb26cf0ea5b4568fd5f9634a7a002351576d 16-Feb-2018 Bruno Martins <bgcngm@gmail.com> Merge "BluetoothTile: Avoid NPE during boot up phase" am: 977bcea1f0 am: a1f96ff00e
am: db10020d15

Change-Id: Id635f3ca0463165a149ffffc9169676a486a4442
db10020d159137c8113a692b1e3f794723a64ddf 16-Feb-2018 Bruno Martins <bgcngm@gmail.com> Merge "BluetoothTile: Avoid NPE during boot up phase" am: 977bcea1f0
am: a1f96ff00e

Change-Id: Id61a5fe96c065377916a630da4842bd675c8ab14
43216489d5adeccfd39096baab1de4646bf6ec23 09-Feb-2018 Rohan Shah <shahrk@google.com> Remove battery from bluetooth tile icon

Removing the battery info from the tile icon for bluetooth since it
doesn't really fit anymore thanks to the updated secondary label text.

Test: visually, tried dark mode as well
Change-Id: Ia9ba91789f0271a8b967ee0f5e25064b7463d49a
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
5aefbafb37f35d33d9d1270cda828e27f4107773 02-Feb-2018 Bruno Martins <bgcngm@gmail.com> BluetoothTile: Avoid NPE during boot up phase

* Listening handling can only take place once mController
is properly initialized.

Change-Id: Ice0c19321d8632bd55e1d403de95914ad53bad30
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
d5df175971ae3fe2b81ce47a5138d4bebad6a244 19-Jan-2018 Rohan Shah <shahrk@google.com> [QS] Update secondary text + label for bluetooth tile

Switches the label to be the device name when a device is connected and
updates the secondary label to be the battery level/device type.

We've retained the battery sub-icon for now next to the Bluetooth icon.

Test: Visually/manually tested with some devices+toggling bluetooth
Bug: 70799372
Change-Id: Ida6303ec34b5d5c5bf24703550febebc580d0afa
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
c17b7d9143c029f5f17232dab6a06137b32aa7ac 15-Jan-2018 Jason Monk <jmonk@google.com> Add support for secondary text in QS

Test: visual
Bug: 70799372
Change-Id: I64b1d050807e69f1755604e0baff94b89c9aeb2b
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
c9d6a17f906f127f91792b90fdd18975df6e3216 19-Sep-2017 jackqdyulei <jackqdyulei@google.com> Move the bluetooth icon logic to settingslib

This cl contains the moving about:
1. Several methods in Bluetooth/Utils.java
2. Bluetooth icon drawables
3. Bluetooth strings
4. Tests

After this cl, in quick settings detail page we could display
specific bluetooth icon(i.e. laptop, phone) with battery level.

Bug: 65488978
Test: RunSettingslibRoboTests

Change-Id: I92d2780825a986e40404dd4651e45914ca9a09eb
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
786a490dd78134c70fe22590cd8e9491e446b103 24-Oct-2017 jackqdyulei <jackqdyulei@google.com> Renaming in BluetoothTile and QSDetailItems

Rename the fields so they could disclose the type.

1. Rename icon to iconResId(type: int)
2. Rename iconDrawable to icon(type QSTile.Icon)
3. Rename BluetoothBatteryDrawable to BluetoothBatteryTileIcon

Bug: 68008183
Test: Build

Change-Id: I5edb24c2fcfa114c2d7134898d4e2b2bcedf0758
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
4b7f43bcae20e5fe0f452098c70359e6d54885c5 19-Oct-2017 jackqdyulei <jackqdyulei@google.com> Reuse the BluetoothBatteryDrawable in QS detail

BluetoothBatteryDrawable creates the drawable lazily using
the latest(and most correct) context. So it could get the
correct color from the theme.

Also add iconScale field in BluetoothBatteryDrawable so the size
of the battery icon could be scaled.

Bug: 67377756
Test: Manual - connected to bluetooth headphone and open the qs
page and detail page. Retest it after changing it to dark theme.
Change-Id: Ic6c871985a89a503221755eed4bc2605ab53f630
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
4673c381fa2ee0ff782c1efb3f8042093c169d1a 27-Sep-2017 Evan Laird <evanlaird@google.com> Use QS context when creating the bluetooth battery indicator

SysUI context doesn't know about the dark theme change when trying to
set the tint on the BluetoothDeviceLayerDrawable, so change the icon to
one that isn't cached so it can use the QS context and use the right
tint when in dark mode.

Test: set dark background, visual
Change-Id: If9255e2d2155ebcd355ddf26f06385e73aab68d6
Fixes: 66497162
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
a57aea0d61b9c277225d3c71e59d3043d241135e 14-Sep-2017 Lei Yu <jackqdyulei@google.com> Merge "Change battery icon to the side of bt icon" into oc-mr1-dev
98b7fdbd5c11af30afdf147d0c4cc44fe4ef240a 07-Sep-2017 jackqdyulei <jackqdyulei@google.com> Change battery icon to the side of bt icon

Also add a new parameter to control the size of battery icon at
the side.

In spec the height of battery icon should be 55% of the bt icon.
Since bt icon has different natural margin in its vector drawable.
This cl adds a padding and then change the ratio to 75%.

Bug: 65397557
Test: RunSettingsLibRoboTests

Change-Id: I442149392edcec2ee23f651232ffe3e204badc38
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
1c6116cbbb0c8000b576443e4b13026b1d8529d9 06-Sep-2017 Jason Monk <jmonk@google.com> Update QS if the content gets stale

For system tiles this is more often, but for 3P tiles its pretty rare
except for on boot.

Test: runtest systemui
Fixes: 34804413

Change-Id: I166e2ab6a609acd63b9b4f19579bab12beabba27
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
3fd0b14fe6ad26d99e626b98516b1c86c401d8b9 31-Aug-2017 Jason Monk <jmonk@google.com> Add bt battery level to QS icons

Test: visual
Change-Id: I690e496e3e88fd734d43ea2f25396772e922940c
Fixes: 63393322
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
48db7e6dcd78a9b5dda896ab022e4e4285af91b5 28-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "QS Tweaks" into oc-dr1-dev
3c3b650a4a6f763317ac52b7152e8504a09901d5 27-Jul-2017 Jason Monk <jmonk@google.com> QS Tweaks

Test: manual
Change-Id: I4293bb48690386db9a4fd741c2e86e16a1547821
Fixes: 63905317
Fixes: 63093290
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
a46af4e6479ed22e3649dcf373aabfb9b82a5f5a 27-Jul-2017 Jack He <siyuanh@google.com> Bluetooth: show multi-device status in Quick Settings

* In Quick Settings, BluetoothTile used BluetoothController to track
BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED intent
that is only fired when 1st device is connecting/connected and last
device is disconnecting/disconnected. As result, non-first device's
connecting/connected states and non-last device's
disconnecting/disconnected states are not tracked properly.
* Instead, CachedBluetoothDevice.getMaxConnectionState() should be used

Bug: 63509289
Test: Connect to multiple devices and disconnect from multiple devices
Change-Id: I9ccc2d3e9e4ae1a44f4d270368a8f07030353544
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
6258aae54824a7c3cd3974822b0b6835ab8a45de 30-Jun-2017 Jack He <siyuanh@google.com> Bluetooth: Display battery level of connected devices

* Add handler for BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED intent
* Check battery level information when UI is updated
* Show battery level in Quick Settings connected device summary line
* Show battery level in Bluetooth Settings connected device summary line
* Show battery level in Bluetooth device details page device summary
line
* Add unit test for CachedBluetoothDevice, change HeadsetProfile and
HidProfile to not final to enable mocking

Bug: 35874078
Test: make, unit test, connect to remote devices, connect/disconnect
profiles
Change-Id: I729048cace73aab29337a8002a2897d2acf22fa6
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
304f3a74be639ce812295ce17219a26286f885ba 13-Jun-2017 Jason Monk <jmonk@google.com> Merge "Fix sysui depending on slow bt calls" into oc-dev
am: 02d5b79cf6

Change-Id: If250b772445628e26fd73d0c81f31ea89e74f7fa
9ef03b463c0926ab60b5e6528f94a221e0dd5631 13-Jun-2017 Jason Monk <jmonk@google.com> Fix sysui depending on slow bt calls

Move calls to a background thread and cache the results to avoid
slowing down sysui when there are too many bluetooth devices.

Test: runtest systemui
Change-Id: Ica10e86ca6b2783c30ed9de68f1a91dc5cfdf068
Fixes: 38118549
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
395617fd35ef0e712945359a760a00eb1aaf7475 05-May-2017 Jason Monk <jmonk@google.com> Start drawing QS slashes rather than using AVDS

These need a bit more work like length control and animations, etc.
but this is a decent start.

Test: visual
Change-Id: I750d777b2b4a19f8c586066712f5a3f7e79befd6
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
6f991c296ad7469fcff58297b1e2632d787c24cc 18-Apr-2017 tturney <tturney@google.com> QS BluetoothTile proiritizes connected device

When there is a connected device and the
Bluetooth Cacheded Device list is too large
it doesn't guarantee a connected device
will show up at all in the Bluetooth
Quick Settings Tile. This code modifies
the tile to match Wifi witch guarantees
connected devices be at the top of the
Bluetooth Tile list.

Bug: 37438599
Test: Manually pair multiple deivces to create
a large list and change connected states.

Change-Id: I93caa43743e1d63f4eab6b8bc636e8e8b2b40ec4
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
be3235abcddbcab63e60184de416c6243697abb7 05-Apr-2017 Jason Monk <jmonk@google.com> Updates for QS DND tile

- Make detail panels not close when turned off
- Add auto-rule state for DND tile

Test: manual
Change-Id: I533cf0a27c54e84cd74ede72dcf10e2e5f9a070f
Fixes: 34765805
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
110e5f6c169bed3d0312ed5003833bd12d562455 31-Mar-2017 Jason Monk <jmonk@google.com> QS: Add transient animations for bluetooth and wifi

Test: runtest systemui
Change-Id: I04a81e1b36a6595bfb102603ad07b079c8b0ee77
Fixes: 26781226
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
8c09ac7435c62a8ba2e34d57a7ac3be2ddf23adc 16-Mar-2017 Jason Monk <jmonk@google.com> Clean up and cover more QS metrics

Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
28df4ed8fbc674b4ae2150c5f737c45894d0dd49 23-Mar-2017 Jason Monk <jmonk@google.com> QS: Clean up dual target accessibility

Remove "Open..." strings from toggles, since they don't open, and
add those strings to the labels. Also switch label accessibility types
to buttons.

Change-Id: Ic8382aaaecf74182970b5f8fdd914079f0109f0f
Fixes: 36538210
Test: Accessibility - select dual target QS tile
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.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/tiles/BluetoothTile.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/tiles/BluetoothTile.java
ec34da8f6f31c5ee1e543c0c7999a067487e0ce9 24-Feb-2017 Jason Monk <jmonk@google.com> Add method for plugins to reference global dependencies

The new annotation versioning system allows plugins to share common
global interfaces that can be versioned on their own. To facilitate
this add a static method for plugins to get a hold of dependencies.
To get any dependency a plugin must @Requires it so it can be version
checked.

Test: Plugin that uses the new call.
Change-Id: I8e01260f8fbc14465502d506a7aa08212795ad9b
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
2db461915397e397ddcd9751787c7314d25fb84c 01-Feb-2017 Jason Monk <jmonk@google.com> QS: Remove circles and add lines

- Remove circles from icons.
- Add lines to indicate tiles with dual tap targets.
- Change default order

Test: visual
Change-Id: I1eb02641757a76ddf3e3876182f7b2503161bc9e
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.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/tiles/BluetoothTile.java
3250885c9feb9b42d60058a823c57a027c0dcf58 18-Jan-2017 Jason Monk <jmonk@google.com> Visual refresh for QS

Adds circles and things

Test: visual
Change-Id: I7d974fcfe6257357abfd1a7d0ee521f0e6cee588
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.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/tiles/BluetoothTile.java
0ceef211875515c2a7531f9baeae46339e700f3a 02-Nov-2016 Jason Monk <jmonk@google.com> Move QS to a fragment

There is now a bit too much of the view/layout logic touching the
fragment, but sort out that later and get something over to fragments
for now.

Bug: 32609190
Test: Manual
Change-Id: Icf677f4a70e6b92892a0fc27a0e673940ebc7a73
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
383db5ebcc3a4a615faf249bf4f126f42e80b82e 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
46767b77c004a3541c614f8e21d6a871dd148e54 18-Aug-2016 Jason Monk <jmonk@google.com> Extract plugin interface for QS

Users must implement the QSContainer interface to be returned by
a ViewProvider plugin. The QSContainer must contain a
BaseStatusBarHeader and have the id of quick_settings_container.

Test: Manual
Change-Id: Ibfaa835cad20855a530e4ae142d8a2aeba4a277b
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
2474b3f208efc93789584036cec1bd2b5299f1e5 19-Jul-2016 Jason Monk <jmonk@google.com> Merge \\"QS: Make BT detail be more consistent with Settings\\" into nyc-mr1-dev am: c357decc4f
am: bdaa4a84cc

Change-Id: I0d8cfea779411dfb7652f2fc5491991521554db1
fac2538e463138a8a1a92bc94af3f310d28718b4 19-Jul-2016 Jason Monk <jmonk@google.com> QS: Make BT detail be more consistent with Settings

- Show turning on as on
- Disable switch when in a turning on/off state

Change-Id: I55f977808d1b881f6dc27192dcc2e907b0576447
Fixes: 29237638
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
d6ed970c4ab84c67afd544f9744406db031ffaa8 15-Jul-2016 Jason Monk <jmonk@google.com> resolve merge conflicts of 4481b51 to master

Change-Id: I97489764bfe30507120b65e5e996aa4409435488
48e093e6dfceab58ea53f1f996d55e9a1dc51358 15-Jul-2016 Jason Monk <jmonk@google.com> QS Detail: Don't animate switch before panel open

This will make it more obvious that wifi gets turned on by opening
the panel as the animation of the state change will be visible.

Change-Id: I6ceb0bef914a9ff368b1bdb750d19aeb43593e78
Fixes: 29057528
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
594c3f02c59651957af1239b8f9d9e5911ef5e3a 06-May-2016 Julia Reynolds <juliacr@google.com> Merge "Quicksettings accessibility." into nyc-dev am: 450f91b529 am: 7af7a4f9af
am: 4a0238aca9

* commit '4a0238aca9c6a5c9bed79616c00442a12dffbe21':
Quicksettings accessibility.

Change-Id: Idfe3e7ae60ab5a773741122102c9b8dd93199ebb
20aef8a2914478a85aa679ec31bf739c7818eb3c 04-May-2016 Julia Reynolds <juliacr@google.com> Quicksettings accessibility.

Bug: 15696340
Change-Id: I6887e2dad4822911d3a1642aaec5703174b57330
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
0e9f538480073a37f8a566a44ae264f8321bead6 28-Apr-2016 Muyuan Li <muyuanli@google.com> sysui: refactor for extensibility.

Extended QSDetail / QSTile to control the behavior with
header / footer.

Bug: 28169547
Change-Id: Ice7d5fc16a0e9080a5c842295abe87bc1e2d71be
(cherry picked from commit dbdcb44b7fa49931fc506535a4cc02c20085bca5)
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
6573ef20790b0438cfd60c6306e58db0ef85c31b 06-Apr-2016 Jason Monk <jmonk@google.com> Work on QS landscape fitting

Battery/DND detail panels still need some work.

Bug: 27276984
Change-Id: I0c94d1ecdbe8c230a3f991daaf65dfbd81d08b85
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.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/tiles/BluetoothTile.java
76c67aa361f65dfb2f5e03d06cc1ccebce9cecd9 19-Feb-2016 Jason Monk <jmonk@google.com> Add QS long-press -> Settings

Bug: 27269699
Change-Id: I861cb65dbb6609d9c95d5341f5f5aebc3cc519f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.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/tiles/BluetoothTile.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/tiles/BluetoothTile.java
c17d3298255357ce6e49d889cb4548e33004344c 30-Jan-2016 Jason Monk <jmonk@google.com> Fix rare crash in bt detail panel

Since bond state is gotten directly from the bluetooth stack it is
possible it could change, and therefore change the number of devices
if pairing happens while the detail panel is updating. Fix this by
just dropping them into a list.

Bug: 26258223
Change-Id: I7703520391798fd7c9ab097b0057b7b43b877212
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
b6fc931204a3e7a40ac2dfda67f4b61aef9e4b5b 27-Jan-2016 Sudheer Shanka <sudheersai@google.com> Add padlocks to more qs tiles.

Bug: 26764485
Bug: 26765645
Change-Id: I89bb1b3b9a507772299778a1b3611884441408c9
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
f6e9228b8a97603d3ceb8f0d61e8d87cf19bd21f 27-Jan-2016 Chris Wren <cwren@android.com> move framework metrics over to new proto

Change-Id: Ie46e946dc787350c15c10aa4385a6b7df7e181a8
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
c06fbb12984a3d3e4c80ab9f819841acae5b0133 08-Jan-2016 Jason Monk <jmonk@google.com> Move battery saver notification to QS

Remove the battery saver notification and instead create a detail
panel within QS that allows it to be turned on and off.

Change-Id: I54654d26183586fa171fda04877a840701f8ef33
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
ba2318eff373a729f9768b146350a001dd22e4c5 08-Dec-2015 Jason Monk <jmonk@google.com> Remove visibility from tiles, make them always visible

Some tiles are statically not available on boot, etc.
based on hardware availability or settings, but most
are just always visible.

Change-Id: Ib1a45ef5b029fe710f9957cb997496dcb14f5875
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
dc35dcb14a8b6c4f221fccafffa5ca603894dbaa 04-Dec-2015 Jason Monk <jmonk@google.com> Working towards a better QS

Some work (mostly on the new QS only) to make things more like they
will be.

- Remove Quick Tiles
- Remove Dual Tiles
- All tiles are the same, with slightly different UI in the header
- QS tiles in the header match the beginning of QS
- handleClick is a click from QS, handleSecondaryClick is a click
from the header, but defaults to normal behavior.
- Opening a detail panel from the header opens QS and the detail
selected
- Fix onStartListening bug in CustomTile
- UI updates towards how QS will look

Change-Id: Id820586ccdaa258a5bcb72cadbeb14941fc5f935
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
bbadff8603ca6922a0ef89338bee5b59d6dcf641 06-Nov-2015 Jason Monk <jmonk@google.com> Add Quick Settings API

It is a little bit limited right now, but it contains
the lifecycle of a tile getting added/removed, and
listening/not listening and clicks.

SysUI side will need some cleanup later on.

Change-Id: I4db803c8a271f8bf44f2ef710517969a84a95cf0
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
caf3762ae67fe804eb66b280b6f7c5371b280573 18-Aug-2015 Jason Monk <jmonk@google.com> QS prototype work

- All work is defaulted to off, with no changes to UI
- Add 'quick' QS tiles, which have circles around them and no text,
they just toggle things like wifi
- Add tuner switch to hide brightness from QS panel
- Add paginated QS layout, it shows a row of the circle tiles across
the top, followed by 3 rows of normal tiles, following pages
have 4 rows, dual tiles are not allowed in this mode
- Add tuner switch to turn on paging for QS, and set to a set of tiles
that look ok with it

Change-Id: Ia2d2eb36f8953033ce4810cd3628fcb86315fe46
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
a7d92b6fdec6b4f572144611b768022e6a654736 27-May-2015 Jason Monk <jmonk@google.com> Cache bluetooth connection state from callback

Bug: 21444506
Change-Id: Idebcc1974fdd7551645d10eea4e30d9e1133556b
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
9e7283f6a31bc2beb75c84c6173968a46582c563 08-May-2015 Chris Wren <cwren@android.com> log more settings actions

airplane: quick and slow settings
bluetooth: quick and slow settings
cellular data: quick and slow settings
dnd: quick and slow settings
wifi: quick settings (slow already done)
cast: quick settings
user: quick settings

include state of the toggle in the action log

Back away slowly from the over-generalization of logging
around handleClick, the semantics of mState are particular
to the individual tiles.

Bug: 20264417
Change-Id: I4cecbd3361af64d08de9fb41b8dca210a8086a80
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
457a21cdeac04565a0c40ad8c43a928c1182ddd1 06-May-2015 Chris Wren <cwren@android.com> add logging to quick settings tiles

QS Grid visibility
Tiles that are visibile in the grid
Taps on tiles
Detail visibility for DND, Users, and Data

Bug: 20264417
Change-Id: I95e65484a9be0a53a071bc12ce8195120582621e
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
be3c5dbee66758517a8198f98ed2e20c80af326b 04-Feb-2015 Jason Monk <jmonk@google.com> Make QS use SettingsLib's BT code

A couple of changes needed to be made to SettingsLib to support this.
- SettingsLib needed to track ACTION_CONNECTION_STATE_CHANGED
- The summary code needed to move from Settings up into SettingsLib
- Added a getMaxConnectionState to CachedBluetoothDevice
- This simplifies the states of all of the profiles into
one.

Change-Id: I7f828f0038ad0cf39274986ece6d486d545f0286
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
0ed01deb2fc99603a33f968044703a740673c7b3 11-Dec-2014 Jorim Jaggi <jjaggi@google.com> Limit item count in QS detail

- Introduce a maximum number of items to be shown in QS detail view
depending on the device configuration.
- For Wifi and Cast, make the panel exactly that height as we would
show the maximum count of items, in order to prevent that the
buttons jump around.

Bug: 18665311
Change-Id: I7c0c383a902d295f1b486b8a074e15b990fbe562
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
cd356f0dda78aceec01a66d88667f55b2b384235 18-Nov-2014 Jason Monk <jmonk@google.com> Automatically enable BT when entering BT QS panel

Bug: 18334326
Change-Id: Ifbcdee1a8260ce959eae53c0900851f8da2f97ee
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
2d695813b44690ca146f95939acb00f0c14dac29 30-Oct-2014 John Spurlock <jspurlock@google.com> QS: New rotation-lock tile icon, using AVDs.

Also:
- Better icon change detection, unify tile.icon vs tile.iconId.
- Fix regression in touch feedback by fixing a11y string calculation.

Bug: 17426910
Change-Id: I14772f4e9b3be127bc39106ae9146ed46488fa48
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
5d325074b14e102a90c211a8d7b65316158ac0e4 27-Oct-2014 Jason Monk <jmonk@google.com> QS: Bring back BT/Wi-Fi sub-panels

Bluetooth has stayed pretty much the same, just came back.

Wi-Fi now shows the currently available networks like settings does.
Networks that require extra steps are taken to Settings to complete
the process.

Bug: 17722817
Change-Id: Idfcfd92f557b20168693ced26d4001f3708f08a4
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
6cdeaa0d039f29e94396c578550d8c2ec857c6cd 06-Oct-2014 PauloftheWest <paulofthewest@google.com> Fixed a Bluetooth Quick Settings update bug.

+ Now when a Bluetooth device disconnects, and the user is looking at quick
settings, the Bluetooth icon and text will update with the new state of
diconnected.

Bug: 17677593
Change-Id: Iccaf16a23f7e0b8690a32945906a9ccc2382cdd0
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
06d3bca095aecbb7542ebf4bdaa56b368261dd9d 26-Aug-2014 Selim Cinek <cinek@google.com> Made quick settings RTL compatible.

The layout is now mirrored correctly and the icons as well.

Bug: 15284805
Change-Id: I3d6fadad0a987adb49f826d4189f9dd58e20d326
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
7a605e821c3b18cbe2273a9baabe757a36e8e762 21-Aug-2014 John Spurlock <jspurlock@google.com> QS: Repoint Wifi + BT dual tile labels to settings.

Bug:17179601
Change-Id: I7854ac04be60ff2dedb29d451e98b6c0d9cce46e
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
4fda7b2d97c77c64bac0b44dc7a44597ad2c48b0 18-Aug-2014 Selim Cinek <cinek@google.com> Announcing quick settings changes now via talkback

All tiles now report when their state changes due
to a user clicking on it. Also cleaned up some accessibility
strings.

Bug: 15682239
Change-Id: Ide97fb97a0253618db206562573dadd0036dab45
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
e5557a972ca190cb82026a5dd0c53f4d119fa05a 15-Aug-2014 Selim Cinek <cinek@google.com> Fixed accessibility issues with quick settings

The dual mode tiles now have better accessibility descriptions,
where the label is now seperate from the clickable button.
Also fixed an anouncment problem with the battery indicators.
Finally fixed an issue where GPRS null was anounced when no signal
was available.

Bug: 15682124
Bug: 15696954
Change-Id: Ica2b70173e64d51747b100d0b686875fc8076e6f
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
64fe15846c541950b574bfb681efb8a794183ff6 30-Jul-2014 PauloftheWest <paulofthewest@google.com> Fixed a bug where Bluetooth was turned on with the drop-down in quick settings.

Bug: 16547579

Change-Id: I3326aa1f4076d46dc0f8f87f14b44f097e684105
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
486b78e42652466f6241eb87d5bed60040db7a25 07-Jul-2014 John Spurlock <jspurlock@google.com> QS: Introduce bluetooth control panel.

- Factor out common detail item panel view, share with Wifi.
- Add an empty state (large icon + text)
- Implement connect / disconnect for supported BT profiles.
- Wire up "scanning" state, but still waiting on asset.
- Add BT controller info to dump.

Bug:16235253
Change-Id: Icf854cafba962fe4b63767d7206e309d80b7b87b
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
a625b7412069342c30e9f964ce9abc969bf097b4 05-Jun-2014 John Spurlock <jspurlock@google.com> QuickSettings: Bluetooth updates.

- Use "Bluetooth" string when connecting.
- Use @hidden device alias (instead of name) for label.
- Use the same icon in the status bar.

Bug:15186962
Change-Id: I25613bebf069c91e76d6933f2512b3f0a8020474
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
012d4a229c2373519b5ebc3e19d8b27d6ce55843 04-Jun-2014 John Spurlock <jspurlock@google.com> QuickSettings: Tile label string updates.

Bug:15186962
Change-Id: I4a1167e094de81ffbcb498815bb1c7c03fc2be7b
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
d1c86e2cb272f8b8be5b9b47aa4ec7084fe61c22 01-Jun-2014 John Spurlock <jspurlock@google.com> QuickSettings: Icon updates + BT connecting state.

Bug:15186962
Change-Id: I56de6f3cabcb36b13617d4027323a078cceb9587
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
83e2848c562bf951fd49d85da338eb6dc459cff2 18-May-2014 John Spurlock <jspurlock@google.com> QuickSettings: Remove vector drawable runtime processing.

Remove temporary harness responsible for creating enabled/disabled
versions of vectors at runtime. Instead, pre-compute the necessary
states as separate files.

Normalize all qs icon names, cleanup obsolete pngs, and replace
the DND hangtag.

Bug:14133785
Change-Id: Ifb58635b832d25ca1de7e9f79cf8ec3503ea8cec
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
ccb6b9a90f228cc4e31a9442ed28756ff474c080 17-May-2014 John Spurlock <jspurlock@google.com> QuickSettings: only listen when expanded.

Register for active state updates only when the quick settings
panel is open.

Don't allow a dual-target tile and single-target tile on the same row.

Bug:14133785
Change-Id: I8a5ad3df9b67b5bc3518210d62b705483a422d8e
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
af8d6c44f06d2f8baac2c5774a9efdae3fc36797 07-May-2014 John Spurlock <jspurlock@google.com> New quick settings implementation.

Bug:14133785
Change-Id: I7f57f8e7ebcc3e1a06fa5204f477470f14299e1f
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java