Commit Graph

395 Commits

Author SHA1 Message Date
Jason Monk
2977ba2cd7 QS: Add content description to page indicator
Change-Id: I4e9bdfe803d681484eb4c8915c44e37be40d8aa2
Fixes: 27325720
2016-04-13 13:01:14 -04:00
Winson Chung
87c343cddc Merge "Updating visuals for incompatible apps." into nyc-dev 2016-04-12 01:51:06 +00:00
Winson
9b001396c2 Updating visuals for incompatible apps.
Bug: 26774190
Change-Id: I688d5dbab0305e794cad832ae92a8e5c9440737a
2016-04-11 18:48:49 -07:00
Jason Monk
bc4574352d Fix QS accessibility issues
- Add label to quick settings expand indicator
 - Add battery tile content description

Change-Id: I112c3ba23906a4afe8068acf916e710ec9d40917
Fixes: 28073200
2016-04-11 11:36:55 -04:00
Julia Reynolds
dfe0b4df7e Improve content descriptions for volume dialog icons.
Bug: 27971063
Change-Id: I9282083f68a5cd607fe0cb2893829675559acb6d
2016-04-08 17:16:09 -04:00
Jorim Jaggi
d53f09254e Dismiss docked stack when opening non-resizable activity
- Also move the toast to SysemUI as a cleanup.

Bug: 27341740
Bug: 28026841
Change-Id: Ic6196ed75511751c6fadb12fa24574c881100f65
2016-04-07 16:07:27 -07:00
Winson
b92dd63581 Adding content description for app-info button when talkback is enabled.
Bug: 27699389
Change-Id: Ia4a0e5f197fa5c51585c3cfb9c71aee858836047
2016-04-04 22:08:50 +00:00
Clara Bayarri
1d648a14a4 Keyboard Shortcuts Helper: Include all System shortcuts
Also add support for shortcuts with no base character or keycode,
as needed by "Search" being triggered with just Meta.

Bug: 27454997
Change-Id: I75bc9d22c30f9ebcdcbea3fb53f166d942dc7b90
2016-03-30 17:12:08 +01:00
Jason Monk
39c98e652f QS edit drag and drop accessibility
Bug: 27667843
Change-Id: Ief0980af25d855942b0565e5a9bfcc0d266bdbe0
2016-03-28 09:57:39 -04:00
Jorim Jaggi
2adba07d75 Show a scrim activity if task is not resizable
Add a callback to TaskStackChangeListener which gets fired when the system
might need to inform the user that a specific app might not work in
multi-window.

Use that callback in SysUI to show a translucent activity which scrims the
activity behind to inform that it might not be resizable.

Debounce the information to once per multi-window session, to not make it
annoying.

Introduce launchTaskId to start an activity in an existing task, and protect
that with START_TASKS_FROM_RECENTS permission.

Bug: 27327287
Bug: 27431869
Change-Id: I89e8d653872ab01ba3c1e252b426e5481da0e6ca
2016-03-25 14:23:41 -07:00
Clara Bayarri
bfd996f5cd Merge "Keyboard Shortcuts: Add Keycodes for shortcut representation" into nyc-dev 2016-03-24 11:49:05 +00:00
Clara Bayarri
4e850ffaa7 Keyboard Shortcuts: Add Keycodes for shortcut representation
This changes the current API given app feedback received. In order to use
keycodes as well as chars we also must implement a mapping of Keycodes to
Display labels as only keys with a single char representation are provided
by KeyCharacterMap.

Bug: 27409783
Change-Id: I3da653adc4b8cbc66a4d1aa24a5f9181f71e83c3
2016-03-24 11:47:23 +00:00
Winson
8f6ee48225 Completely removing dead code related to history view.
- This CL repurposes the history button above the stack to a more
  generic “stack action” button in preparation for a future change.

Bug: 27742174
Change-Id: I1da274bf88c77bdc09d91072683b2ea7ca022432
2016-03-23 18:49:22 -07:00
Mady Mellor
d5d8866c67 Merge "Add content description for gear behind notifications" into nyc-dev 2016-03-23 00:07:17 +00:00
Selim Cinek
c897bd3e91 Introduced a number indicating more children in a group
Bug: 25376106
Change-Id: I97dc60c4fea599c668c9e74e11b7d693fd78589b
2016-03-22 11:00:59 -07:00
Jason Monk
b6408ca428 Merge "Change drag label while dragging QS tiles" into nyc-dev 2016-03-17 13:32:04 +00:00
Jason Monk
24dbd51bda Change drag label while dragging QS tiles
Bug: 27316050
Change-Id: I20b4f3c94f1362e9990cebefdfa900a23636a938
2016-03-16 14:56:42 -04:00
Winson
e0657680dc Removing paging tuner setting.
Bug: 26962865
Change-Id: I4f0290fa334b6153cc160cb5dbe6e333a002334c
2016-03-16 11:00:59 -07:00
Winson
196e861b2a Updating empty state graphic.
Change-Id: I7fb1f704dfbf0a300e00805d75c08b2fdabf7260
2016-03-16 11:00:49 -07:00
Mady Mellor
3fd273e611 Add content description for gear behind notifications
Bug: 27498876
Change-Id: I244286e3eaff04268b25e40f1031b5ff7d0b3aee
2016-03-16 09:53:13 -07:00
Winson
44dbe294fb Fixing issue where screenshot notification remains non-dismissible.
- Ensure that we start the screenshot as a foreground service to reduce
  likelihood that it is killed while taking a screenshot.
- If the screenshot process times out or gets killed for any reason, 
  ensure that we update the notification with an appropriate error 
  message.

Bug: 27389179
Change-Id: I5007bda95538044bc753e4ceffd2f59a069c857b
2016-03-11 10:39:41 -08:00
Felipe Leme
3e5e84152f Added Talkback announcements for Data Saver switch.
BUG: 27504554
Change-Id: I6a6b996fe03a565edc051cf24a8ec7de4e8e5644
2016-03-09 15:44:23 -08:00
Julia Reynolds
abf11299b7 Merge "Introduce IMPORTANCE_MIN." into nyc-dev 2016-02-26 16:11:00 +00:00
Jason Monk
611994e01f Add unavailable state to the flashlight icon
Bug: 26851684
Change-Id: I08c438aaef3e5f0731fbd1b5fef79c87c75d3022
2016-02-26 16:04:07 +00:00
Julia Reynolds
f0f629ffe4 Introduce IMPORTANCE_MIN.
Allow HUNs for >= IMPORTANCE_HIGH.
Allow full screen intents for IMPORTANCE_MAX.

Bug: 22960980
Bug: 26918284
Change-Id: Id4d2b90ea2e21563dbc716db411060d826e73699
2016-02-26 10:54:08 -05:00
Julia Reynolds
3070d75bf3 Merge "Remove inline settings slider." into nyc-dev 2016-02-26 14:41:31 +00:00
Winson
931845fcb3 Dev preview changes for incompatible apps.
- Disable drop targets when picking up a task that can’t be docked, and
  show toast notifying user (for now)
- When a task is docked, update the task headers for non-dockable tasks
  to indicate that they don’t support multi window.  Update these 
  headers every time the multi window state changes.

Bug: 26774190
Change-Id: I020dcbac9b1230dba166eecaa12366986e684f9e
2016-02-25 14:16:23 -08:00
Julia Reynolds
4077945e1b Remove inline settings slider.
Bug: 22451710
Change-Id: Ia4f85569f878531102d91564d0728a94783cc79d
2016-02-25 15:39:35 -05:00
Jorim Jaggi
88afd020b6 Accessibility for split-screen divider
- Add label
- Add actions

Bug: 27274494
Bug: 26894949
Change-Id: I041c44f793f1ec86ec27951cc8e87868148b527d
2016-02-25 13:18:12 -05:00
Winson
e559171fe1 Fixing issue with persistent screenshot notification
- Ensure that we dismiss notifications when cancelled
- Removing unnecessary notification id and cancel extra
- Fixing the strings when capturing a screenshot fails

Bug: 27149651
Bug: 27177097
Change-Id: Ie2ea4318309fff4041acb04833216fdd5cf8838a
2016-02-24 16:30:38 -08:00
Jason Monk
72195a0111 Hide some tuner stuff that isn't ready.
Change-Id: I075098068f4c9f91705e1196b40ab2d36d658bab
2016-02-24 13:01:53 -05:00
Jason Monk
ea168d229d Merge changes Ie427a2d8,I213f1f76 into nyc-dev
* changes:
  SysUI Tuner: UI cleanup and grouping
  SysUI Tuner: Night mode v3
2016-02-19 18:50:05 +00:00
Jason Monk
8816dff9f2 SysUI Tuner: UI cleanup and grouping
Clean up strings and locations of various features.

Change-Id: Ie427a2d8c51afa6f2a68b4cde1d6b15cda897e1a
2016-02-18 14:19:49 -05:00
Jason Monk
5dbd4aad80 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
2016-02-18 14:06:51 -05:00
Jason Monk
aa911b37ae Tuner volume dnd panel work
Change-Id: Id7852e96f987d13c06041e2280d44163a296f49b
2016-02-18 13:39:38 -05:00
Jorim Jaggi
185fa234a2 Fix some strings
Bug: 26411749
Bug: 27022727
Change-Id: I405ba61a46011365bfa2aebfdb0797738237e86b
2016-02-18 00:35:28 +00:00
Jason Monk
c18766d065 Merge "Battery graph in QS Detail" into nyc-dev 2016-02-16 21:26:25 +00:00
Jason Monk
96ab63640f Battery graph in QS Detail
Add new usage graph view to SettingsLib that shows usage with
same labels and whatnot.

Use that graph in the battery detail panel to show more stuffs.

Change-Id: I397b1314f65f668df566e93bdbc15420e1b3a280
2016-02-16 16:25:44 -05:00
Adam Lesinski
4c44359d91 Fix up some small resource issues
- the "save" string is a duplicate, and is overriden by the next definition below it.
  Due to the way AAPT handles overlays, this was accepted.
- the style attribute should not start with '@'.
- the 'raw' type is reserved for file references. Values should not be 'raw'.

Change-Id: Id611d5915207ce624d7a743b5d79bbb1258d3d51
2016-02-12 23:51:28 -08:00
Winson
14e15b2ca1 Adjusting the tuner flags to allow disabling fast toggle.
Change-Id: I0da29479c075a41ddb49e9852eb912604efa9aa8
2016-02-12 17:07:14 -08:00
Winson
8be1634a54 Disallow launching third party apps in safe mode.
- Also desaturates out the disabled task

Bug: 25785926
Change-Id: I9fa48c062cfaf6d9cb60a9e49291ca6e15c6b343
2016-02-11 11:58:56 -08:00
Jason Monk
2142843ea5 Move editing from long press to edit button
Change-Id: I2bd0e2febbde4babe05545c79d585280a7b2fb14
2016-02-10 16:44:51 -05:00
Jorim Jaggi
8f2a44f934 Hide swipe-up gesture behind tuner flag
(;゚︵゚;)

Bug: 26317834
Change-Id: If489d2bac21e376f2b24a3ce0537a2a8a29651ab
2016-02-04 14:39:46 -08:00
Selim Cinek
c3e3652126 Merge "Adapted the style of notification groups" 2016-02-04 18:26:56 +00:00
Jason Monk
62b63a02d7 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
2016-02-04 10:16:35 -05:00
Selim Cinek
a3d3b91a6e Adapted the style of notification groups
The title is now not using the spanned styling anymore
and the overflow is divided differently. Also fixed the
layout for RTL languagues and BIDI.

Change-Id: I5963e1990fe0efefd0355fcaae249546cbb75181
2016-02-03 20:29:36 -08:00
Vadim Tryshev
a22dd33419 Make user deletion dialog reusable.
This change will be immediately integrated into master.

This dialog will be also used by the alternate lock screen.

Bug: 25192625
Change-Id: Idc374312fe884af104e342d58f207e0510b9754a
(cherry picked from commit b29374806c393a06c993e5c6b92c62f06d5978c7)
2016-02-01 18:53:51 +00:00
Adam Powell
e7c74cc96e Revert "Pinning components in ChooserActivity"
This reverts commit ec6bc41e18.

Bug 26842512

Change-Id: I9fc775d21081885d0e26fca4ade412a18da45b7c
2016-01-28 09:04:20 -08:00
Jason Monk
a9f128832f Add preview section to nav bar tuner.
It uses density scaling to show a slightly smaller real time version
of the nav bar, so you can see edits without possibly breaking the
nav bar.

Also fix rotation in the tuner, cause it was broken.

Change-Id: I3de89c3df25c6adb18f0aef41b597c96446d1631
2016-01-27 23:05:11 -05:00
Jason Monk
8457ad89a8 Add keycode buttons to nav bar tuner
Allow a keycode (list generated from KeyEvent.java) and a image to
be selected as a new KeyButtonView to be shown in the nav bar.

Change-Id: I26fcad5b74a96090f2c5574fd214b4afbcadbb30
2016-01-27 23:05:11 -05:00