Commit Graph

3555 Commits

Author SHA1 Message Date
Julia Reynolds
323e9315d3 Unhide work profile icon
Test: Manual, dismiss work profile notif, look at history
Fixes: 150361222
Change-Id: I7bf17b400f084f5e1a0763c2b6d1ebe69c78b9c2
2020-02-27 11:12:46 -05:00
Julia Reynolds
fceea9d0a1 Increase size of touch target
Test: make
Fixes: 146848768
Change-Id: Ib1e5886f5953ed48b2a5b851a696e037124d45eb
2020-02-26 15:15:16 -05:00
Yanting Yang
5f503b87ea Set ClearDefaultsPreference as unselectable for talkback
ClearDefaultsPreference is a customized preference which contains a
TextView and a Button. In reality, the button is the only thing that the user can interact with. It's a no-op when the user clicks on the whole preference view.
 
Mark the ClearDefaultsPreference as unselectable can fix the talkback
issue for the user clicking on the preference view outside of the button.
 
In the meantime, the button of ClearDefaultsPreference has not applied the button style of Settings yet. Also fixed it by using the ActionPrimaryButton style of Settings.


Fixes: 146471192
Test: visual and robotests
Change-Id: Ife215d0901bd9fc3055495b0495ba175ed0dfa26
Merged-In: Ife215d0901bd9fc3055495b0495ba175ed0dfa26
(cherry picked from commit b9bcbddc46)
2020-02-24 08:41:22 +00:00
Joshua Duong
85a65e2dc6 [adb-wireless] Add Wireless Debugging Switch in Developer options.
Bug: 111434128
Bug: 119492574

Test: make RunSettingsRoboTests ROBOTEST_FILTER=WirelessDebugging
Change-Id: I188badb43035172642cf235bb27e56d3a1dea169
2020-02-21 00:01:58 -08:00
Pavel Grafov
c4d9980a5d Fix NPE when there's no forgot password button.
Test: manual
Bug: 149887743
Change-Id: If2238aec2e618f617b7459b819303c03f009941a
2020-02-20 12:42:12 +00:00
Automerger Merge Worker
888d17770a Merge "Update Settings UI for IKEv2/IPsec VPNs" am: 9579a76913 am: 033a021251 am: cad8efb2fa
Change-Id: I93d8d976705e382bf2ab0db3545ab847c1291450
2020-02-19 23:08:21 +00:00
Pavel Grafov
ea74ce990e Merge ""Forgot my password" to start profile in locked state." 2020-02-19 19:09:20 +00:00
Pavel Grafov
04f783c759 "Forgot my password" to start profile in locked state.
Currently if a work profile with a separate lock is turned off
(a.k.a. in quiet mode), and the user has forgotten the password,
profile owner app cannot use DPM.resetPasswordWithToken because
the profile user is not running.

In BYOD case the user can remove and re-provision the profile but
in the new COPE mode (a.k.a. on an organization owned device with
work profile) it is not possible to remove the profile. So full
factory reset is required.

This CL allows the user to start the profile in locked state
(a.k.a direct boot mode) so that the admin can reset the password.

This CL adds "Forgot my password" button to work profile credential prompt
if all of the following conditions are true:
 * Work profile is turned off
 * Profile owner app is capable of running in direct boot mode.
 * Profile owner app has an active password reset token.
 * The device is an FBE device (otherwise profile will be unlocked).

Clicking this button starts the profile in locked state and shows an
activity to the user that instruct them to go to their IT admin.

Bug: 143516540
Test: manual
Change-Id: I832f7121b43e39161c5afa816f44ce89584b66e2
2020-02-19 13:48:34 +00:00
Automerger Merge Worker
cad8efb2fa Merge "Update Settings UI for IKEv2/IPsec VPNs" am: 9579a76913 am: 033a021251
Change-Id: I62bce794bffab8425a4991484986481fd308933b
2020-02-19 08:07:38 +00:00
Automerger Merge Worker
033a021251 Merge "Update Settings UI for IKEv2/IPsec VPNs" am: 9579a76913
Change-Id: I6578907688551efef77caca68a2e7cafa818a30b
2020-02-19 07:51:14 +00:00
Victor Hsieh
cef970cda4 Revert "Support installation of the new app source certificate"
We decided to punt extra certificate to post-R.

This reverts commit c8a1960cf4.

Test: Treehugger
Bug: 112038744
Change-Id: Ic53e58944faebe7aa427975ebd77ce783bdddaf2
2020-02-18 11:03:07 -08:00
Benedict Wong
0c1abce1a6 Update Settings UI for IKEv2/IPsec VPNs
This CL updates Settings for IKEv2/IPsec Platform VPN profiles.

Platform VPN profiles currently configure DNS and routes based on the
configuration received from the server. As such, these parameters are
not required to start an always-on VPN.

Similarly, a numeric server address is not required, as the IKEv2
library will do the DNS resolution based on the current Network. This
has the nice property of allowing the VPN to run with IPv4 or IPv6 outer
addresses (as opposed to LegacyVpn, which runs only in IPv4)

Lastly, this always allows configuration of the IKEv2 local identifier,
whether MSCHAPv2, RSA or PSK authentication is used.

Bug: 148991741
Test: Compiles, manually tested.
Change-Id: Ib1049fdc602e349bb0d24de536767a6e15adf194
2020-02-17 16:19:20 -08:00
Julia Reynolds
2eb9ef4d6f Notification history improvements
- don't keep readding history list onresume
- remove unstyled background (just use elevation for contrast for now)
- remove summaries from snoozed and recently dimissed because the user
wouldn't have seen their content

Test: manual
Fixes: 149499024
Change-Id: Ie43c752f42a7dfcac5ca9e3d118df07124daf974
2020-02-14 21:33:56 +00:00
TreeHugger Robot
0eba407374 Merge "UX changes for the new cross profile settings page" 2020-02-14 13:44:59 +00:00
kholoud mohamed
00c46041b6 UX changes for the new cross profile settings page
Bug: 136249261
Bug: 140728653
Bug: 148594054
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesDetailsTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesSettingsTest

Change-Id: I9666b34a03e5c082eed7c4120e70a07017ab7ef0
2020-02-14 11:51:39 +00:00
TreeHugger Robot
74ad28ff90 Merge "Set the max length of user name field in Profile info" into qt-qpr1-dev am: 936ebd0367
Change-Id: I5cb48821cb1bd7cc4d88b33844af567dd9cfcf7a
2020-02-14 06:29:56 +00:00
Jean Chen
e9f289d5b3 Merge "Support autoclick secondary action (5/n)" 2020-02-14 01:28:15 +00:00
Julia Reynolds
3b29ff2559 Mode dnd title back to title bar
Test: manual
Fixes: 149183896
Change-Id: Ib5e0c3c79e3b36f58d9196a8435250230275a3f7
2020-02-13 11:17:04 -05:00
menghanli
0922c5a292 Fine tunes the color correction layout
Bug: 145968068
Test: Manual test
Change-Id: I291f2669c110ff6571039da2d224015dfef85488
2020-02-13 15:21:43 +08:00
ChenJean
fb85c52c32 Support autoclick secondary action (5/n)
Seekbar UI show complete on all of devices.

Bug: 146019277
Test: manual
Change-Id: I18227db46ba5040082b9a4a691ad8e5233e3e269
2020-02-13 15:14:48 +08:00
Jason Chiu
d13734fe59 Merge "Revise homepage sticky cards UI" 2020-02-12 15:58:52 +00:00
TreeHugger Robot
4bd4a72d5a Merge "Update notification history text styles" 2020-02-12 13:11:03 +00:00
Jason Chiu
55563896be Revise homepage sticky cards UI
- revmove material card layout
- remove slice header's divider
- add dividers below each sticky cards
- simplify contextual_slice_full_tile layout

Bug: 149371123
Test: visual
Change-Id: I13a8af21f565114220a093409e2a9ca664a57b02
2020-02-12 19:15:26 +08:00
Jason Chiu
cc781a38ef Merge "Change the font weight of the slice title to medium" 2020-02-12 02:25:20 +00:00
Jean Chen
2819ef134e Merge "Support autoclick secondary action (4/n)" 2020-02-12 01:28:12 +00:00
Julia Reynolds
cfabcd2386 Update notification history text styles
Test: manual
Bug: 137396965
Change-Id: I2736bbdb3b9ef7b9bd0696f592dce31c430623d6
2020-02-12 00:25:36 +00:00
Julia Reynolds
a4798d0d36 Merge "Improve notification history" 2020-02-11 21:54:54 +00:00
Julia Reynolds
24aac215f1 Improve notification history
- An on/off switch
- An on/off UI
- improve headers/dividers/layout
- add counts
- shrink recyclerviews to content

Fixes: 148698132
Bug: 137396965
Test: manual
Change-Id: I0b103769cffa446e32f05a6c5a39a614e024a083
2020-02-11 12:08:20 -05:00
Jason Chiu
4b6a1a53ac Change the font weight of the slice title to medium
Test: visual
Fixes: 139017680
Change-Id: I347239f2c164c871eced2fbda1b2faaa38e16ca9
2020-02-11 16:36:35 +08:00
ChenJean
6a7b237801 Support autoclick secondary action (4/n)
Add accessibility label on seek bar.

Bug: 146019277
Test: manual
Change-Id: I8599d89c1b300d50b3ccc134678caecf0f1acf7b
2020-02-11 10:33:24 +08:00
TreeHugger Robot
8c8e77a405 Merge "Revert "[Wi-Fi] Improve contrast of edit text hint"" 2020-02-10 07:48:21 +00:00
Arc Wang
60cd31cd01 Revert "[Wi-Fi] Improve contrast of edit text hint"
This reverts commit a74473d2f8.

Reason for revert: b/149002563

Change-Id: Iab87c51b86577e4cd270af0d13831b9902c8d3ca
2020-02-10 03:01:47 +00:00
Peter_Liang
68d701db97 Update the rich content UI to meet the UX design version 2.
1. Using the footerPreference component for the interface
android:desription.
2. Remove the redundant and unused codes.
3. Remove the ripple effect for AnimatedImagePreference.

Bug: 142532186
Test: manual test
Change-Id: I547ed7611b40d8b7bee4c4350b00bd4987768950
2020-02-08 13:49:06 +08:00
TreeHugger Robot
ee1bdcc010 Merge "Support autoclick secondary action (2/n)" 2020-02-07 12:25:10 +00:00
ChenJean
62aab02fc5 Support autoclick secondary action (2/n)
Add LayoutPreference to support new seekbar design.

Bug: 146019277
Test: manual
Change-Id: I8bfe3ca1ccee833fb941076ff33e7536392b90f4
2020-02-07 19:16:10 +08:00
TreeHugger Robot
53d56a0e31 Merge "Add content descripiton to shortcut setting for meaningful labels." 2020-02-06 16:13:14 +00:00
menghanli
15cb5c1937 Add content descripiton to shortcut setting for meaningful labels.
Bug: 148965509
Test: Manual test
Change-Id: I771fa782f9acf76a60a0da9216f9b691b25583ca
2020-02-06 19:10:07 +08:00
Peter_Liang
a7a0e08241 Remove the announcement of accessibility event for PaletteListView.
Root cause: The color block of color correction have no any content
desciption and it also can't be tapped to trigger others behavior.
Goal: Remove accessibility event

Bug: 148957372
Test: manual test
Change-Id: I97425e24a54e983a49189389746540ed98af82f9
2020-02-06 17:24:30 +08:00
Arc Wang
a74473d2f8 [Wi-Fi] Improve contrast of edit text hint
Extend the style from TextAppearance.Widget.EditText which
has hint color of #808080 and contrast ratio 3.95

Bug: 146908018
Test: Manual visual
      Accessibility scanner shows contrast ratio 3.95

Change-Id: Ie20e750095af30a217166cdffeda2e29cec970e3
2020-02-05 19:15:18 +08:00
Jason Chiu
59f7342986 Set the max length of user name field in Profile info
Settings may crash when entering a very long user name.

Fixes: 136005061
Test: manual, robotest
Change-Id: Ica17297588fc6b84ef111ef00017afb27360acd3
Merged-In: Ica17297588fc6b84ef111ef00017afb27360acd3
(cherry picked from commit ca2bbc0685)
2020-02-03 10:25:55 +00:00
Julia Reynolds
63bbda167f Merge "Add screen for notification history" 2020-01-21 16:21:30 +00:00
Julia Reynolds
b37d565ce8 Add screen for notification history
Bug: 137396965
Test: manual

(cherry picked from commit 84b593d592a74aeddfce453bc8700180192199ed)

Change-Id: Icac4000bd7323583f8a5f462ccb40826a4151765
2020-01-21 10:06:47 -05:00
Yi-Ling Chuang
0ce468965c Make Wifi and Bluetooth Slices not dismissable.
Wifi and Bluetooth are sticky, so remove its dismiss-ability.

Bug: 143055685
Test: robotests
Change-Id: Iff7724fbb261299e2107ff3b89bd5d7abe507532
2020-01-21 17:51:05 +08:00
TreeHugger Robot
9d1b873c69 Merge "Remove the specific UX of Deferred Setup card" 2020-01-21 04:51:37 +00:00
Jason Chiu
1b0fbfeae6 Remove the specific UX of Deferred Setup card
Bug: 142927894
Test: visual, robotests
Change-Id: If93506fb11c6417967fab3d082b19947adef0d61
2020-01-21 11:47:13 +08:00
menghanli
36baf99fc8 Improve the touch target size of check box in shortcut dialog.
Bug: 147773911
Bug: 147774273
Test: Local test
Change-Id: Id63b70d4a5223a5a415b9d3229c92a0bd77363e6
2020-01-20 21:50:03 +08:00
timhypeng
adae7475b0 Add title and icon in panel header
- Add getIcon() and getSubTitle() in PanelContent
- Check icon avalibility to decide header layout
- Add test cases

Bug: 147776885
Test: make -j42 RunSettingsRoboTests
Change-Id: Idb51e81359b6037ca9b90965dd9b370fc5e22c84
2020-01-20 13:43:19 +08:00
Raff Tsai
751f63a635 Fix tabLayout swipe direction
- Fix swipe direction by add layoutDirection=ltr in xml
- Reverse viewPager tab index when layoutDirection is rtl

Fixes: 147415514
Test: 1. change to rtl language
      2. Settings -> Account
      3. Swipe from left to right, should move tab to left.
      4. Swipe from right to left, should move tab to right

Change-Id: Ib5a080f4706161fd9c0f4d7f2da4d7b98946d960
2020-01-15 17:22:43 +08:00
Raff Tsai
687b8c4b11 Merge "Fix layout issues" 2020-01-13 05:11:29 +00:00
Raff Tsai
41435ad0ea Fix layout issues
- Add fontFamily in TextAppearance.Tab to support change font style
- Overwrite TabTheme to change overscroll effect color

Fixes: 147134904
Fixes: 147136108
Test: manual
Change-Id: Iebb2dea658a295f3c6ece900680f42fb3a772cb4
2020-01-13 03:07:00 +08:00