Commit Graph

48548 Commits

Author SHA1 Message Date
Andrii Kulian
367f122d28 Merge "Add dev option to force desktop mode" 2018-11-09 19:25:19 +00:00
Fan Zhang
1bf7df8fdd Merge "Use preference for about phone page instead of injection." 2018-11-09 18:47:22 +00:00
Sunny Shao
aebf84b857 Added account avatar in the end of search bar
Launched the adding account when click no account icon on search bar
Retreived the avatar of the account and show in the end of the search bar
Added getAccountSettingsDeeplinkIntent api into the AccountFeatureProvider

Bug: 118691898
Test: robotest
Change-Id: I25d69b8f4b6cf138f5e20fc22ce4ff26357bc107
2018-11-09 10:40:10 -08:00
Doris Ling
3e6d80c121 Enable Skip fingerprint when adding corp account.
- override the internal activity for picking screen lock from setup
wizard, so that when adding corp account, it can skip fingerprint even
when device is not yet provisioned.

Change-Id: I9485c54d097c82a584297fcaeb63b3271e05c1b6
Fixes: 112706989
Test: atest com.android.settings.password.SetupChooseLockGenericTest
2018-11-09 10:36:22 -08:00
TreeHugger Robot
74f3077729 Merge "Update new UI layout of Conditional cards" 2018-11-09 17:49:25 +00:00
Eran Messeri
203856e444 Private DNS: Add policy transparency
When the Private DNS setting is disabled via a user restriction, show
information to the user explaining that they cannot change this setting
due to IT admin policy.

Testing steps:
* Installed & configured TestDPC on the device.
* Made sure that the Private DNS setting is usable.
* Set the user restriction via TestDPC ("User Restrictions" -> "Disallow
config Private DNS").
* Navigated to Settings -> Network & Internet -> Advanced
* Observed that Private DNS is greyed out and the Restricted icon is
showing.
* Observed that when tapping either the icon or the greyed-out text I
get a dialog with policy information.

Implementation notes:
I have not utilized the existing RestrictedPreference as the Private DNS
mode preference extends CustomDialogPreferenceCompat.
I have also not utilized the RestrictedPreferenceHelper as it modifies
the summary shown for the preference. This preference has its own
summary (showing the current state of Private DNS configuration) which I
did not want to override.

Bug: 112982691
Test: Manual, see above.
Change-Id: I9b7496b5b2cbb26012d889369f2199239cd2e00f
2018-11-09 13:33:16 +00:00
Jimmy Chen
d62453d3de p2p: do P2P factory reset for Network Reset
Bug: 109866998
Test: * manual trigger network reset in below conditions:
        * trigger network reset with P2P on
        * trigger network reset with WiFi on, P2P off
        * trigger network reset with WiFi off
        * trigger network reset with WiFi off then do reboot
      * check groups shown in WiFi Direct page
      * use wpa_cli -i p2p0 list_network
Test: RobotTest - make ROBOTEST_FILTER=ResetNetworkConfirmTest

Change-Id: If5292e34cb9702d4319a4c9bbd867e0e5ed716a2
2018-11-09 18:41:36 +08:00
Stanley Wang
6daa13b4aa Merge "Modified the PrintJobSettingsFragment" 2018-11-09 09:40:08 +00:00
Johnson Lu
881ba4e7ee Add QrCamera for QrCode scanner implementation
The QrCode Scanner is for Wifi DPP feature.

Bug: 118797380
Test: RunSettingsRoboTests
Change-Id: I962d069a8c2bce78c00ac8ce9e8ebf176e75873c
2018-11-09 14:38:01 +08:00
TreeHugger Robot
c32de1a2d9 Merge changes from topic "entity_ui"
* changes:
  Do not show installation status on Q
  New UI design for entity header on Q
2018-11-09 05:51:21 +00:00
Edgar Wang
bea5b289ff Move "About Phone" to bottom of Settings main IA, above "Tips & Support"
Merged-In: I0a0f03bdb27d9eea48eb758496eefeebcbc57b6c
Change-Id: If839a7199992104cc0abac9327844145d148cd68
Fixes: 118168552
Test: robotests
2018-11-09 11:24:48 +08:00
Mill Chen
c89c4ceabb Update new UI layout of Conditional cards
Bug: 113451905
Test: visual
Change-Id: I20ec526bd2b5b2679cd7e0e4388a2a897fe6a24d
2018-11-09 11:21:58 +08:00
TreeHugger Robot
a9f2443fa3 Merge "Add a config flag so OEMs can disable avatar mixin" 2018-11-09 02:28:22 +00:00
tmfang
bbca29b6f4 Do not show installation status on Q
Test: robotest, visual
Bug: 116340579
Change-Id: I0b414f3faffe8a96cccb310abca74c585c9ac1f2
2018-11-09 10:17:54 +08:00
tmfang
3ea0143ae5 New UI design for entity header on Q
- Implement a new entity header on Q.
- The new layout can be used for small screen,
  so delete useless layout.

Test: visual
Change-Id: I08eee26daef7ba707d6479eec501ddbe3e211370
Fixes: 116340579
2018-11-09 10:05:00 +08:00
Youming Ye
0c7e7dba82 Merge "Fix issue that read-only apns can be edited" am: e871464053 am: 6b0237ebfb
am: 502ad46dc1

Change-Id: I6bd527b0fb0b63393d5ddf8414257f543a532805
2018-11-08 17:47:59 -08:00
Youming Ye
502ad46dc1 Merge "Fix issue that read-only apns can be edited" am: e871464053
am: 6b0237ebfb

Change-Id: Id45080ae655a90bbdc3bf1601bc4aff33c42de3e
2018-11-08 17:32:00 -08:00
Youming Ye
6b0237ebfb Merge "Fix issue that read-only apns can be edited"
am: e871464053

Change-Id: Iab9783bfc462e5232df260f701c8f05e099bf55e
2018-11-08 17:20:26 -08:00
TreeHugger Robot
0d9e4a4b0e Merge "Rank cards in descending score when loading from db." 2018-11-09 01:13:53 +00:00
Youming Ye
e871464053 Merge "Fix issue that read-only apns can be edited" 2018-11-09 01:00:35 +00:00
TreeHugger Robot
4b83f9099b Merge "Do not tint app-icon of admin" 2018-11-09 00:11:27 +00:00
Fan Zhang
6735a3f07e Rank cards in descending score when loading from db.
Test: robotest
Change-Id: Ic40f6ed9e702a60f51d4ec6700e663f1689f0009
2018-11-08 15:31:37 -08:00
jackqdyulei
0ca0f6b3cc Polish on mobile network settings
Update some strings:
In settings it has the same resId for this title so I skipped migration
for it. Actually it should be "Access Point Names" instead of "APNs".
Also since "roaming" is used nowhere so we can update the string
directly.

Also remove unused files

Bug: 114749736
Test: Manual
Change-Id: Ia2f8a352865b9577e0385045f1ad2604ab2bb6af
2018-11-08 15:04:35 -08:00
Fan Zhang
21f5291c1a Add a config flag so OEMs can disable avatar mixin
Not all devices have account, OEMs should be able to disable this
feature if they want.

Bug: 117509285
Test: robotests
Change-Id: I3b03a04cff6ff0ec6c31763ac1829b119531e489
2018-11-08 14:57:24 -08:00
Fan Zhang
ac9d87695d Use preference for about phone page instead of injection.
It's faster than tile injection. The fragment comes from Settings
itself, we don't have to use to injection.

Bug: 118168552
Test: robotest
Change-Id: If6a79dd73f8a51dbb21338a40f22dc8b8f8c8cb8
2018-11-08 14:30:20 -08:00
Hai Shalom
fd2a781b39 Merge "packages/apps/Settings: Add logic and strings to support WPA3 and OWE" 2018-11-08 22:30:10 +00:00
Risan
9deece9086 Allow StubVolume to be browseable in Settings
Test: Unit test + manual test: Mount and unmount stubvolume in ARC++,
check settings show the device correctly and could browse it using
DocumentsUI.
Bug: 110380403

Change-Id: I96fc82e731225776ac7070ef035687f83da94245
2018-11-08 21:47:22 +00:00
Pengquan Meng
92e8a5d8da Merge "Replace some configs with CarrierConfig" 2018-11-08 21:31:57 +00:00
Fan Zhang
08d8ed80b6 Merge "Loading suggestions via legacy SuggestionService sometimes" 2018-11-08 20:35:06 +00:00
Fan Zhang
7db039f56e Merge "Clean up bluetooth while driving code." 2018-11-08 20:16:43 +00:00
TreeHugger Robot
4f0355aab2 Merge "Move "About Phone" to bottom of Settings main IA, above "Tips & Support"" 2018-11-08 18:33:41 +00:00
Philip P. Moltmann
6bd48be1dd Do not tint app-icon of admin
Only if no app-icon is used a tint should be applied to the ic_info
icon.

Change-Id: I92332110f99d14e86dc01700fa00b189c1d7d8ad
Fixes: 118879012
Test: Looked at dialog with default icon and with app-icon
2018-11-08 10:23:41 -08:00
Cosmo Hsieh
793a6eac3b Merge "Implemen WiFi MAC randomization api for WiFi MAC randomization preference." 2018-11-08 06:45:47 +00:00
TreeHugger Robot
0f82fe6ed5 Merge "Delete Directory access Settings." 2018-11-08 02:14:23 +00:00
Fan Zhang
018fe5adf5 Clean up bluetooth while driving code.
Test: robotests
Change-Id: I50aedc61a9a7836672e934e188837dbe49c64be2
2018-11-07 15:52:18 -08:00
Andrii Kulian
8e3859bc5a Add dev option to force desktop mode
Bug: 112451761
Test: DesktopModePreferenceControllerTest
Test: FreeformWindowsPreferenceControllerTest
Change-Id: I7df995d1bd8731b813cfa0c72c4dc6d35973e939
2018-11-07 13:57:03 -08:00
Fan Zhang
16340ce52d [automerger skipped] Merge "DO NOT MERGE Fix summary text for advanced button." into pi-dev am: 0eea3b6c9e
am: 16d5d7872c  -s ours

Change-Id: I6e69ee49fd7581ee3b1d5398260ac0bb3c8980e3
2018-11-07 13:11:42 -08:00
Fan Zhang
16d5d7872c Merge "DO NOT MERGE Fix summary text for advanced button." into pi-dev
am: 0eea3b6c9e

Change-Id: I25c2e6859a5a62997e6e23ffdf7dbd95f0486313
2018-11-07 12:59:32 -08:00
Fan Zhang
0eea3b6c9e Merge "DO NOT MERGE Fix summary text for advanced button." into pi-dev 2018-11-07 20:44:59 +00:00
Fan Zhang
2a98c843e8 Loading suggestions via legacy SuggestionService sometimes
When legacy_suggestion flag is turned on, load Suggestions from
SuggestionService instead of contextual homepage, because contextual
homepage infrastructure might not be availble on all devices.

Bug: 118842099
Test: robo
Change-Id: I91710c005e11be5a9b3dd39ceff670106e7f80c3
2018-11-07 11:55:09 -08:00
Fan Zhang
e61076956c [automerger skipped] Fix crash when starting daydream setting with wrong context am: d9c6692f25
am: 75fbb4511c  -s ours

Change-Id: I302bb9c60b9f0b0b32965f00db0222a68be17690
2018-11-07 11:14:46 -08:00
Fan Zhang
75fbb4511c Fix crash when starting daydream setting with wrong context
am: d9c6692f25

Change-Id: I723b66eced5ace06f5821463c3dd783a18496327
2018-11-07 10:51:48 -08:00
Fan Zhang
16c2d70881 Merge "Update proto for contextual_card_list." 2018-11-07 18:15:39 +00:00
TreeHugger Robot
b68d244807 Merge "Update new UI of conditional cards" 2018-11-07 17:40:08 +00:00
Edgar Wang
992b5038a1 Move "About Phone" to bottom of Settings main IA, above "Tips & Support"
Bug: 118168552
Test: robotests
Change-Id: I0a0f03bdb27d9eea48eb758496eefeebcbc57b6c
2018-11-08 00:56:21 +08:00
Mill Chen
0ca7130403 Update new UI of conditional cards
- Add half-width and full-width layouts for conditional cards
- Keep origin strings of conditional cards, that could make conditional
cards truncate its title and summary in half-width card.
- Add default value of isHalfWidth to each condition controller.

Bug: 113451905
Test: robotests, visual
Change-Id: Ib0055f32c4ab9e73c0e0a57c6b0ef586d52942e0
2018-11-07 16:06:31 +08:00
cosmohsieh
be92eb0fa7 Implemen WiFi MAC randomization api for WiFi MAC randomization
preference.

Use WifiConfiguration.macRandomizationSetting to get/set config.

Bug: 117957974
Test: RunSettingsRoboTests
Change-Id: I33f3f0003159b86e44e25e041ed5e41c58add6bd
2018-11-07 16:02:57 +08:00
TreeHugger Robot
70609fad7d Merge "Fix Settings crash after disabling Settings Suggestion" 2018-11-07 07:46:35 +00:00
Clown SHEN
98ce7a1a7d Merge "Launch WfcActivation with subscription ID" am: bd57f94a4c am: 74fe4a9177
am: 4f2055500a

Change-Id: I326052d639276b89859770fbe110a73f80c4a9fc
2018-11-06 23:39:50 -08:00
Clown SHEN
4f2055500a Merge "Launch WfcActivation with subscription ID" am: bd57f94a4c
am: 74fe4a9177

Change-Id: Ib61988a9f84ed10d4ac0d6b1a0d8b7d4f8897224
2018-11-06 23:35:41 -08:00