Commit Graph

2553 Commits

Author SHA1 Message Date
TreeHugger Robot
9c7990d70f Merge "Fixed padding of QuickQSPanel in small screens." 2018-09-05 19:26:09 +00:00
Fabian Kozynski
71f80074b5 Fixed padding of QuickQSPanel in small screens.
Added padding for small screens so contents are not against edges.

Test: Visual
Change-Id: I3ac2a93da0dbc4f2ba1fe8d647ec3858349bbbc7
2018-09-05 12:39:50 -04:00
Lucas Dupin
90a38dd7f7 Removed shade drawing optimization
Why?
- This optimization has caused many glitches, it easy to break and
  we've done so a few times (technical debt.)
- It's unclear if not calling glClear() is still an optimization.
  Most graphics cards actually expect a glClear and are optimized
  to discard old frame buffers when the method is invoked

Change-Id: If1bb9b8bf4c907ca907dc1205ad05dabfefeba1b
Fixes: 113286511
Test: manual
Test: shalac@ is keeping an eye on the performance dashboard
2018-09-05 09:37:37 -07:00
Amin Shaikh
061b36e47d Vertically center QS customizer heading.
Bug: 77326457
Test: manual
Change-Id: I1938453184d0dea1a98374710e84604931fbf2ff
2018-08-28 16:33:21 -04:00
Lucas Dupin
be3a75cb55 Merge "Fix color resolution on status bar" 2018-08-24 01:27:39 +00:00
Lucas Dupin
098188a938 Fix color resolution on status bar
Test: visual
Change-Id: I306d6ffe0cc0b861d17bc26784b6e2c1db2ee2c2
Fixes: 112823374
2018-08-23 16:19:46 -07:00
Jovana Knezevic
b64490ed86 Merge "Adds an info dialog when a maximum number of users on the device is reached." 2018-08-23 22:50:19 +00:00
TreeHugger Robot
2d7b871a3c Merge "Added experiment for back gesture dragging home button" 2018-08-23 20:07:31 +00:00
Fabian Kozynski
1720c36285 Changed font in QSEdit headers to Google Sans.
Created new style with same parameters as before but using
placeholder for Google Sans.

Fixes: 79166531
Test: Manual
Change-Id: I12cc34c4fa8e0eeb4e94dafe64f0d6664c8d0da0
2018-08-23 13:14:44 +00:00
TreeHugger Robot
a41579bf5c Merge "Added header to QS Edit view" 2018-08-22 22:25:22 +00:00
Matthew Ng
c83b989c46 Added experiment for back gesture dragging home button
Dragging the opposite direction of quickscrub will execute the back
functionality as if you pressed the button. If you hold the home button
while in gesture, every second it will execute back command. Both adb
commands below are default to false so they must be enabled first.

Enable the setprop value for enabling this functionality.
adb shell setprop persist.quickstepcontroller.homegoesback true

Fully remove the back (and ime up) arrow button. Dependent of above.
adb shell setprop persist.quickstepcontroller.hideback true
Then go home or start the ime/keyboard to see changes.

Test: manual
Bug: 112934365
Change-Id: I68b7f0415107fc134d51fafbd55bc641d4312815
2018-08-22 15:13:09 -07:00
Fabian Kozynski
39ec861009 Added header to QS Edit view
The TileAdapter associated with the RecyclerView used to Edit
the Quick Settings was modified to contain a TextView as a Header.

Position arguments were corrected by 1 to support this. In particular
those of the Accessibility contexts.

Padding in the TextView as well as the RecyclerView was reduced to
minimize the movement of the tiles when switching into the Edit View.
This is not completely achieved and it is dependent on the size of
the font.

Change-Id: Ic89cec8cae15c238ac6e0b1c554c06c6b7086bab
Bug: 77326457
Bug: 36076720#24
Test: Manual - Screenshots
2018-08-22 15:22:55 -04:00
Aurimas Liutikas
dcb3b508a8 Add positions to strings in SystemUI that had multiple place holders.
This shuts aapt2 up about "multiple substitutions specified in non-positional format"

Test: None
Change-Id: I0366b4d530c7c9f6e8b79dce5b739b059a74c271
2018-08-22 11:14:44 -07:00
jovanak
a17e16897c Adds an info dialog when a maximum number of users on the device is reached.
Change-Id: I559ddbcbc22f0388af22d807711533659eed8421
Fixes: 111075706
Test: Manual tests on mojave, pre-limit and post-limit reached.
(cherry picked from commit bc4d90d0c99607cf2b812345c2192814a06649aa)
2018-08-22 00:02:18 +00:00
Adrian Roos
031546664b Merge "Cutout: Add developer setting to mask the display cutout" into pi-dev am: c05c2d1e48
am: 6a403d8d5b

Change-Id: Ifc872c48e4670183f1f0fd3a4162d1eeb6c5c5e4
2018-08-21 13:38:33 -07:00
Adrian Roos
6a403d8d5b Merge "Cutout: Add developer setting to mask the display cutout" into pi-dev
am: c05c2d1e48

Change-Id: I728ce64b53d02f5a75f04071a04f5e6d0f61987c
2018-08-21 13:11:53 -07:00
Adrian Roos
8c28c7c2d9 Cutout: Add developer setting to mask the display cutout
Adds an option to mask the cutout by effectively shrinking the logical display
such that developers can test apps as if the device did not have a notch.

Bug: 112876936
Test: Go to Settings > Developer Options > Simulate display with cutout > "No cutout". Cutout should be hidden. Rotate screen, take screenshots, screenrecord, screen off animation should all work as expected.
Change-Id: I5cdb201734d238bf3785ab55843114e4b5b4ee41
2018-08-21 21:47:51 +02:00
Fabian Kozynski
8f3763dc71 Talkback for edit QS, action as part of context.
Accessibility context for moving or adding tiles has context label as
"Add tile X to position Y" or "Move tile X to position Y" while moving
cursor. No confirmation announcement after accepting.

Removed unused strings.

Change-Id: I6cf0fbe110f9231e592ee51820edd24541f98c5c
Fixes: 79154713
Test: Manual
2018-08-16 11:37:17 -04:00
CY Cheng
0f7856add6 resolve merge conflicts of e58c780571 to stage-aosp-master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I6d2feec990c23fb3536fc6b3e19c0b2696b81441
Merged-In: I9c920e31433c0ac23165f917d8dd2befaaa4938d
Merged-In: I8e6bb72ce7b8cecdb6bd01150b53f61f1515dbb1
Merged-In: Ic08cabc63daebc4001c8eda751857d11cb0e6352
2018-08-16 10:43:49 +00:00
Wesley.CW Wang
00e2fcf978 Add separated emergency option on power menu
- Add a separated button on power menu to launch emergency dialer.
 - Change HardwareUiLayout.java FrameLayout to LinearLayout, let it can
display separated button.
 - Add a flag to recognize separated button should show/hide, if
EmergencyAffordance(India) enabled, separated button will hide,
otherwise power menu will display separated button & power
menu last item won't get white background.

Test: Manually, use "adb shell settings put global faster_emergency_phone_call_enabled 1" to show/hide separated emergency option, press emergency option will go to emergency dialer.
Change-Id: I1140fa412b655c16f3052cbabd118df278fd7f23
Merged-In: I8e6bb72ce7b8cecdb6bd01150b53f61f1515dbb1
Bug: 80376488
2018-08-13 12:02:13 +08:00
TreeHugger Robot
1519a2870b Merge "Rotate the back button between normal and ime state" 2018-08-07 18:23:10 +00:00
Jovana Knezevic
8d6250528c Merge "Always displays an option for starting a guest session in the full screen switcher." 2018-08-07 05:40:49 +00:00
jovanak
2d26ae3cc7 Always displays an option for starting a guest session in the full screen switcher.
If guest is already in the foreground, switcher will just get dimissed upon
the selection of starting a new guest session.

Change-Id: Ia79325a1583f00f35e32e30813163a208acfa0b5
Fixes: 111999338
Fixes: 111453367
Test: Manual in emulator while being logged in as Guest and interacting with the switcher.
2018-08-07 02:10:47 +00:00
Bill Lin
ef81cbdec4 Device show "No SIM card" and then showing carrier name during boot
Keyguard default show NO SIM earlier than Telephony/Subscription callback
Refactor CarrierText & KeyguardUpdateMonitor
 - Replace setup flag by resource attr(showMissingSim/showAirplaneMode)
 - Remove setDiplayFlags API, and add mTelephonyCapable flag
 - Implement MSG_TELEPHONY_CAPABLE in KeyguardUpdateMonitor
 - Default do not show AirplaneMode & NO_SIM label unless define in xml

Bug: 109731429
Test: atest SystemUITests
      atest frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java
      Manual:
         1) Insert SIM and reboot device, only show "No Service"->"Operator"
	 2) Remove SIM and reboot device, only show "No SIM"
	 3) Enable AirplaneMode reboot, only show "Airplane mode"
	 4) Insert SIM and trigger sysui crash, state same as 1)
	 5) Remove SIM and trigger sysui crash, state same as 2)
	 6) Enable APM trigger sysui crash, state same as 3)
	 7) Enable APM & WFC, turn on wifi in keyguard showing
	    -> "Airplane mode" -> "" -> "WiFi Calling"
	 8) Enable APM & WFC, turn off wifi in keyguard showing
	    -> "Wifi Calling" -> "Airplane mode"

Change-Id: I4459997420484431751a4c088aa3856724affe6a
2018-08-07 00:15:40 +00:00
Matthew Ng
ca4592bb0c Rotate the back button between normal and ime state
Back button rotates and moves up in portrait to line up with the other
nav buttons in 3 button layout. For quickstep enabled no difference in
positioning occurs.

Change-Id: Ifb1b5361728811f8ae3e4bcea63fcaca3bace839
Fixes: 111907556
Test: start ime and press back
2018-08-06 15:31:27 -07:00
TreeHugger Robot
bd1056fc2a Merge changes from topic "biometric-prompt"
* changes:
  Refactor FingerprintDialog to be Biometric
  Clean up interface between controller and view
2018-08-02 05:42:34 +00:00
Beverly
47fb7e76bb Use AVD files for wireless charging animation
- use avd files instead of programatically drawing animation

Test: manual
Change-Id: I387080a0e8412fecdf7d935c0ab26f3d5e9f02cc
2018-07-25 11:19:26 -04:00
Kevin Chyn
e927566c5a Refactor FingerprintDialog to be Biometric
Bug: 111704270

Test: tested with sample app, fingerprint UI still works fine
Change-Id: I6842f6589f6e9eaeee0482602605a0b149d3fc21
2018-07-24 13:01:40 -07:00
Lucas Dupin
401ea1647a Merge "Dark Notification Shade" 2018-07-13 02:09:31 +00:00
Evan Laird
67a6e07ed3 Merge "DO NOT MERGE: Use minimumHeight in QS header" into pi-dev
am: 090e9d232c

Change-Id: Ifdd605c54262b533b405a6161b7b857609d576bc
2018-07-12 17:54:51 -07:00
Lucas Dupin
f03e752407 Dark Notification Shade
Test: adb shell service call uimode 4 i32 1 # day
Test: adb shell service call uimode 4 i32 2 # night
Bug: 110758454
Change-Id: Ib6fce91d1aeff7e1fbfe8a7a528095487fbdb3f8
2018-07-12 17:30:34 -07:00
Evan Laird
13c89f2b1f DO NOT MERGE: Use minimumHeight in QS header
Allow QuickStatusBarHeader to use a minimum hieight so that it doesn't
draw underneath of a notch when display densities are low.

Bug: 78110564
Test: visual
Change-Id: I44df89c3b98dc0bdb8455b36e7ad023b92676c9d
2018-07-12 20:31:01 +00:00
Evan Laird
84b98954d0 Use minimumHeight in QS header
Allow QuickStatusBarHeader to use a minimum hieight so that it doesn't
draw underneath of a notch when display densities are low.

Bug: 78110564
Test: visual
Change-Id: I44df89c3b98dc0bdb8455b36e7ad023b92676c9d
2018-07-11 13:23:09 -04:00
Lucas Dupin
40ec6b7814 Migrate SysUI theme to UiMode
Legacy RRO was deleted and resources migrated to DeviceDefault theme.
Theming via overlays is still possible, but the overlay should provide
both themes: day and night.

Test: adb shell service call uimode 4 i32 1
Test: adb shell service call uimode 4 i32 2
Change-Id: I5dee2f94764c5c2f4e11cfabfff97656b3822e8a
2018-07-04 18:15:25 -07:00
Lucas Dupin
a9cd9d475b Merge "Move charging indication vertically on time tick" into pi-dev
am: 5baaf461a6

Change-Id: I455c53bf85fd7fcfe87daef6d76888a37fecb015
2018-07-02 11:50:37 -07:00
Lucas Dupin
8c556d72f1 Move charging indication vertically on time tick
Before, a new translation was only calculated when the device enters
AOD, and then, during time tick, we would only move it 5px wich isn't
enough.
Now, the translation varies 5dps vertically on every time tick.

Fixes: 110888643
Test: take screenshots for N minutes and compare them
Change-Id: Ia3f239d669b83aad0d97d8d7a7f7374f4890777d
Merged-In: Ia3f239d669b83aad0d97d8d7a7f7374f4890777d
2018-07-02 17:43:08 +00:00
Lucas Dupin
039951ee99 Move charging indication vertically on time tick
Before, a new translation was only calculated when the device enters
AOD, and then, during time tick, we would only move it 5px wich isn't
enough.
Now, the translation varies 5dps vertically on every time tick.

Fixes: 110888643
Test: take screenshots for N minutes and compare them
Change-Id: Ia3f239d669b83aad0d97d8d7a7f7374f4890777d
2018-06-28 11:34:09 -07:00
Yuanjia Hsu
e3d3ca75dc Merge "Add separated emergency option on power menu" 2018-06-28 13:10:27 +00:00
Wesley.CW Wang
3004fcb949 Add separated emergency option on power menu
- Add a separated button on power menu to launch emergency dialer.
 - Change HardwareUiLayout.java FrameLayout to LinearLayout, let it can
display separated button.
 - Add a flag to recognize separated button should show/hide, if
EmergencyAffordance(India) enabled, separated button will hide,
otherwise power menu will display separated button & power
menu last item won't get white background.

Test: Manually, use "adb shell settings put global faster_emergency_phone_call_enabled 1" to show/hide separated emergency option, press emergency option will go to emergency dialer.
Bug: 80376488
Change-Id: I8e6bb72ce7b8cecdb6bd01150b53f61f1515dbb1
2018-06-26 14:46:25 +08:00
Matthew Ng
fe1740d9b4 Merge "Quick scrub has gradient follow user drag" into pi-dev am: 5f5c6e993f
am: d60292d292

Change-Id: I57cf675a23fb4b0dae376859f4ceddb8f252405c
2018-06-25 14:03:00 -07:00
Matthew Ng
d60292d292 Merge "Quick scrub has gradient follow user drag" into pi-dev
am: 5f5c6e993f

Change-Id: I173202bab30b6b8b5c45d1841a5070cb0d282a04
2018-06-25 13:54:19 -07:00
Matthew Ng
4fa3a9d4cf Quick scrub has gradient follow user drag
Removed the track drawable and draws a gradient translated to the
position of the drag of the user as the track's background.

Test: quickscrub
Change-Id: Iee893e5f96f4954c77307c5ff9b762a04bd7de9a
Fixes: 109882517
2018-06-25 11:06:36 -07:00
Julia Reynolds
1424138d36 Merge "Remove managed profile toast" into pi-dev
am: 7f4e9739e4

Change-Id: I78e08cc1e3a1ec52cc9bf813ab794c62a73da978
2018-06-22 08:29:21 -07:00
Julia Reynolds
c9afb8ba06 Remove managed profile toast
Change-Id: I9f324a94d7fab35b0f00a1bd9c675708dac6f85a
Fixes: 110418889
Test: atest SystemUITests
2018-06-21 14:05:01 -04:00
TreeHugger Robot
31b731d0e7 Merge "Ensure QQS does not clip tile views." 2018-06-20 18:09:52 +00:00
Julia Reynolds
fd3618a971 Merge changes I9f324a94,Ic3521f36
* changes:
  Remove managed profile toast
  Log notification interruptions to TRON
2018-06-20 12:59:50 +00:00
TreeHugger Robot
9ea3a32e3c Merge "Use a theme for screen pinning to set recents vector drawable tint" 2018-06-19 22:40:42 +00:00
Julia Reynolds
2ad4753fb6 Remove managed profile toast
Change-Id: I9f324a94d7fab35b0f00a1bd9c675708dac6f85a
Fixes: 110418889
Test: atest SystemUITests
2018-06-19 16:09:37 -04:00
Amin Shaikh
6a298d6202 Ensure QQS does not clip tile views.
- Remove qs_quick_tile_space_width resource in favor of specifying the
max size for QQS when the notification panel's size is large enough.

Change-Id: I6a3ee05fa20d6e8f8f4bd688d310de6a242d26f9
Fixes: 110276500
Test: manually changing window density/size and viewing QQS
2018-06-19 15:01:18 -04:00
TreeHugger Robot
07d0ac2e44 Merge "Add same padding to mobile datatype as wifi" 2018-06-18 23:03:28 +00:00