Commit Graph

1834 Commits

Author SHA1 Message Date
Fabian Kozynski
3f78933e89 Fixes race condition in animation on Ringer Status.
Race condition caused by setting the container to INVISIBLE regardless
of new status.

Change-Id: I28b2d8bf5ae6587ac8aa5ab807e835a7fd2a97f9
Fixes: 111137359
Test: Visual and runtest
2018-09-05 12:50:41 -04:00
Amin Shaikh
061b36e47d Vertically center QS customizer heading.
Bug: 77326457
Test: manual
Change-Id: I1938453184d0dea1a98374710e84604931fbf2ff
2018-08-28 16:33:21 -04: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
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
Lucas Dupin
cfc19df738 Use theme attribute instead of named colors
Test: visual
Change-Id: I442c5338f073b99135b39b7905579ae79af4ef22
Fixes: 112644692
2018-08-20 23:47:03 +00:00
TreeHugger Robot
81d43788b2 Merge "Allow nearesttouchframe to hit the recents button in 3 button layout" 2018-08-13 18:37:34 +00:00
Matthew Ng
7e77da4309 Allow nearesttouchframe to hit the recents button in 3 button layout
Menu Ime for 3 button layout cannot be hit because nearesttouchframe is
trying to hit the framelayout of menu_ime that contains nothing inside.
Making it check for non-focused buttons will allow it to hit the recents
button.

Change-Id: Id464e9931345911ffba374a1349536cbf270abdf
Fixes: 112432937
Test: atest NearestTouchFrameTest
2018-08-10 15:43:58 -07:00
Matthew Ng
9e90f24dc5 Reduce NearestTouchFrame size to prevent button taps on nav bar
The NearestTouchFrame spanned the entire nav bar that took any tap to
hit the nearest button such as the back button. Reducing it prevents
taps from the edge of the nav bar. Related: ag/4179853

Change-Id: I25a73cc995ed8d479ca9d5da85ec8a7cb629769d
Fixes: 112298917
Test: tap the left side of the nav bar
2018-08-09 14:04:55 -07: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
Anthony Chen
047c56dd26 Remove usage of "inverse" color.
This value has been removed from the support library. Instead, fix the
color to light as the user switcher is always dark.

Bug: 112040188
Test: built system UI and ensure that the color is always light for the
user switcher ripple

Change-Id: I49dae3b6869fa04aadf962ef8ddb0a6d2c2c8e37
2018-08-01 18:25:12 +00:00
Anthony Chen
82d73e2ade Remove usage of DayNightStyle attribute.
This attribute has been deprecated. Instead, set the color of the list
through the theme.

Bug: 111807700
Test: build SystemUI and verify the list on the user picker page and
QuickSettings.

Change-Id: I173cb98335619d129720a6c7514dba1449989abf
2018-07-26 18:19:15 +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
Fan Zhang
7d0d54e5a7 Use standard Activity as TunerActivity's base.
This is the last activity that depends on SettingsDrawerActivity. This
activity doesn't actually need any functionality from
SettingsDrawerActivity, so we can switch to a standard Activity to
reduce dependency and improve performance.

Bug: 77600770
Test: adb shell am start -a com.android.settings.action.DEMO_MODE
Change-Id: I78ff488be764ae996a96ad4eee05a8c1774a1835
2018-07-20 00:04:33 +00:00
Rohan Shah
ad723390a1 Merge "Organize notification classes in row/stack" 2018-07-18 20:45:29 +00:00
Rohan Shah
20790b89c7 Organize notification classes in row/stack
No functional changes. Reorganized logic under either row, stack,
logging, or row/wrapper. Haven't moved all classes over since there's
some classes that create conflicts due to weird use of
package-private/protected (primarily waiting for HUN and shelf classes).

Test: built, ran, used notifications
Bug: 110802404
Change-Id: Ia2152603bdbeb12c522360193511946c843b9266
2018-07-18 11:20:32 -07:00
TreeHugger Robot
f67299cf53 Merge "Remove menu container's focus to avoid feedback background" 2018-07-17 03:03:03 +00:00
TreeHugger Robot
a22df3cf9b Merge "Menu ime button takes nav button width to show recents button for tablets" 2018-07-17 01:33:19 +00:00
Matthew Ng
c07ed4a001 Remove menu container's focus to avoid feedback background
Menu container contains no icons but holds a few buttons that may appear
later but using a mouse a square background will appear because it has
focus. Remove the focus to remove the feedback background ripple.

Test: use mouse and tap the area right of the home button
Change-Id: If4e57c1a27ca7fbe38712dc1ac6f9e5d2bb76c49
Fixes: 110042464
2018-07-16 17:49:26 -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
Matthew Ng
eb9bf01fd8 Menu ime button takes nav button width to show recents button for tablets
Menu ime button was pushing the recents button out of screen because of
the order of the nav layout (where right side was before the recents
button) and menu ime button took full width (match parent). Fixed with
a fixed width for menu ime button to show the recents button on nav bar
for tablets (screen density smaller than ~250).

Change-Id: I61a0206e40b7a69d52db4a97a1b76767ba752f85
Fixes: 77913318
Test: 'adb shell wm density 240' on phone
2018-07-03 14:33:04 -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
Aaron Heuckroth
1179c53800 Adjust 'No notifications' text styling to match buttons.
Test: Visual inspection.
Change-Id: I968ee83d08ef2a4e6a2e677d06ef5cf763fbe877
Fixes: 110489135
2018-06-25 16:39:34 -04:00
Rohan Shah
482193f224 [Notif] Add custom view to made undo text push button down
Added a custom FrameLayout that computes the correct height if the text
overlaps with the button and re-positions the button to be below the
text as necessary.

Test: Manually tested w/ different text, including layout bounds + RTL
Change-Id: I80b0eb4ce3a108d350924d6a7b964cd0b59f1cac
Fixes: 77810898
Bug: 109839789
2018-06-21 17:23:59 +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
Evan Laird
747459a590 Add same padding to mobile datatype as wifi
SignalCluster view used to have a start-margin of 2.5dp, so now both the
wifi icon and the mobile data indicator need that padding (because you
will only ever see the data type indicator if wifi is not on.

Test: visual
Change-Id: I7b34fd80eb222610fc7df76be7a76c0f5f6e0fbb
Fixes: 110225644
2018-06-15 16:59:57 -04:00
Matthew Ng
32afc62d93 Use a theme for screen pinning to set recents vector drawable tint
Test: pin screen with nav 3 button layout
Fixes: 109909471
Change-Id: Icc27efdb4d623a9927c1f7fc0472ccacc596a28b
2018-06-14 23:39:52 +00:00
Anthony Chen
e87f127203 Merge "Remove usage of deprecated DayNightStyle values." into pi-dev am: a0d475a43f
am: 4d4b5b6810

Change-Id: I29d9ee5ce0de960c832386c1443c33acb424c55c
2018-06-07 18:58:28 -07:00
TreeHugger Robot
a0d475a43f Merge "Remove usage of deprecated DayNightStyle values." into pi-dev 2018-06-07 22:23:12 +00:00
Rohan Shah
381678be2f Merge "[QS] Change Date font in QQS" into pi-dev am: c754707b76
am: dc47eecd52

Change-Id: If8254f9558a2a27e338fbce7dba7ed7ba3681ddb
2018-06-06 14:19:43 -07:00
Rohan Shah
c754707b76 Merge "[QS] Change Date font in QQS" into pi-dev 2018-06-06 18:43:06 +00:00
Anthony Chen
5207d7686a Remove usage of deprecated DayNightStyle values.
Fixes: 80444085
Test: Build system and open quick settings and user panel on mojave.
Ensure no breakages.

Change-Id: I7b1fb5c4b39f7b6c7f9191d8a28bb20e453c4a63
2018-06-05 16:43:37 -07:00
Julia Reynolds
027d3a6a93 Update volume dialog colors
Test: manual
Fixes: 79699643

Change-Id: I73bde7f30a9aad5b7c084d37987f808df342cc75
2018-05-29 12:52:34 -04:00
TreeHugger Robot
aa8391d544 Merge "DO NOT MERGE Update volume dialog colors" into pi-dev 2018-05-25 21:05:55 +00:00
Julia Reynolds
37ccf08a7e DO NOT MERGE Update volume dialog colors
Test: manual
Fixes: 79699643

Change-Id: I73bde7f30a9aad5b7c084d37987f808df342cc75
2018-05-25 19:53:24 +00:00
Tracy Zhou
319d6c0bcb Merge "Do not truncate onboarding tip text." into pi-dev am: 8ac5fc68a9
am: 522c4f7e4c

Change-Id: I0f7489fc5adbf1e6af2376333ab43dee5fdf920b
2018-05-25 12:16:08 -07:00
TreeHugger Robot
8ac5fc68a9 Merge "Do not truncate onboarding tip text." into pi-dev 2018-05-25 18:51:40 +00:00
Evan Laird
488282ffed Merge "Put a little space between wifi and data type" into pi-dev am: 2640b2142e
am: f3a994f510

Change-Id: I4084ea05f6be2209ed6f977bcf4579edbfaabb3f
2018-05-24 21:41:14 -07:00
Mike Digman
ea4442a340 Merge "Merge "Fork navbar layout for quickstep" into pi-dev am: 5d8559fea3" into pi-dev-plus-aosp
am: 92b686dd69

Change-Id: Ic2c63428d5f217ef53a6233d01292be26bd89699
2018-05-24 16:59:53 -07:00
Tracy Zhou
e286c7cd19 Do not truncate onboarding tip text.
Change-Id: I7ecc4a4dae7fc89d9287372a29c63914f411c412
Fixes: 80244379
Test: manual test
2018-05-24 15:37:43 -07:00
TreeHugger Robot
2640b2142e Merge "Put a little space between wifi and data type" into pi-dev 2018-05-24 22:12:16 +00:00
Rohan Shah
022d04c9b6 [QS] Change Date font in QQS
Changed to 12sp (mirrors the tile label text appearance)

Test: Manually
Bug: 79553802
Change-Id: Iab39d66a2a7267e1877c18ffadd231c3c44242dd
2018-05-24 15:01:46 -07:00
TreeHugger Robot
5d8559fea3 Merge "Fork navbar layout for quickstep" into pi-dev 2018-05-24 05:03:14 +00:00
Winson Chung
d9ff3e1454 Merge "Replace nav bar assets from png to vector drawables (1/2)" into pi-dev am: 98cb40cf4b
am: a6b326b91f

Change-Id: Ida93a11bada02df266352e47cdbc35fded5d6ce5
2018-05-23 18:25:21 -07:00
Mike Digman
f77fb9176e Fork navbar layout for quickstep
Different navbar layouts are loaded via config.xml depending
on if Quickstep is enabled. A contextual button frame is added
to replace the right nav buttons so different styling can be
applied. New back, rotate and keyboard icons are added.

Maintains support for custom navbar layouts. Adds support for
nested reversable elements, needed for contextual button frame.
Fixes navbar gravity support by using RelativeLayout's gravity
and top/bottom switching.

Change-Id: I5e24b2392c377313d421c0f95c3a7a0b99f32590
Fixes: 79930722
Fixes: 79930974
Fixes: 80164476
Test: manual, crash sysui, test against a11y, gb menu, rotate
2018-05-23 18:03:35 -07:00
Evan Laird
af56a33f11 Put a little space between wifi and data type
Also remove it from the mobile signal group when it's not needed

Test: visual; demo mode
Change-Id: Iaade5144e5ad762e6a57e49c52b9c5272bac8b48
Fixes: 77822905
2018-05-23 19:52:34 -04:00
TreeHugger Robot
45bdc4c841 Merge "Fix bug when pressing the add user cancel button results in a black screen Test: Tested on Mojave Bug: 80187163 Change-Id: Ie46c228dea9de71b97a276f7e4f2d60fe98649b6" 2018-05-23 21:25:00 +00:00
Sanry Huang
4094c84fd4 Merge "Fix User unable to view the keyboard input" into pi-dev am: 89d55288d9
am: bc21e9ef7b

Change-Id: I9672a83e06fa5b023daf9111ba255de51130ec7d
2018-05-23 14:02:38 -07:00
Aarthi Balachander
a70960037e Fix bug when pressing the add user cancel button results in a black screen
Test: Tested on Mojave
Bug: 80187163
Change-Id: Ie46c228dea9de71b97a276f7e4f2d60fe98649b6
2018-05-23 20:10:14 +00:00
Aarthi Balachander
47fe2d2885 DO NOT MERGE
Fix bug when pressing the add user cancel button results in a black screen
Test: Tested on Mojave
Bug: 80187163
Change-Id: Ie46c228dea9de71b97a276f7e4f2d60fe98649b6
2018-05-23 18:54:53 +00:00