Commit Graph

49033 Commits

Author SHA1 Message Date
TreeHugger Robot
fa00f329bf Merge "Add Battery Saver Schedule screen logic" 2018-12-18 00:41:43 +00:00
Fan Zhang
107743cbc5 Move suggestion from LOCK_SCREEN to DEFAULT.
These 2 categories behaves the same, moving suggestions to DEFAULT
can save a PackageManager query in SettingsIntelligence.

Bug: 121158263
Test: manual
Change-Id: I24c84aa61b272120a77bda0ec27b38690f2b4d4d
2018-12-17 15:57:33 -08:00
Fan Zhang
fcf433b788 Add more owners in Settings
Change-Id: I5a48cb2955cca002d1194cfdbbcb00b2fb7530b2
Fixes: 120916672
Test: rebuild
2018-12-17 15:18:03 -08:00
TreeHugger Robot
bc0bfe841e Merge "Add subscriptions list to the multi-network header" 2018-12-17 23:03:42 +00:00
Salvador Martinez
5bb0a63ba9 Add Battery Saver Schedule screen logic
This CL creates the controllers for the screen and makes it so that
the appropriate APIs are called when the user makes selections.

Test: battery saver comes on when state changed via adb, robotests
Bug: 111450127
Change-Id: I1dbcadd4b91276b700947df5a9444aabfec63aa3
2018-12-17 14:35:54 -08:00
jackqdyulei
3aac42568c Add feature flag for settings slice injection
Bug: 120803703
Test: Manual
Change-Id: If5ff1fc867d010953a5aa48b2ba61a4c467b6579
2018-12-17 13:47:07 -08:00
Antony Sargent
74cb72433a Add wifi connection info to the multi-network header
The Network & internet page will have a dynamic header at the top when
users have more than one mobile subscription, showing information about
connectivity.

This CL adds a preference to this header when there is a wifi connection,
showing the same information as on the wifi-page (connection strength,
speed rating if available, etc.).

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: Ia80d6e236a4996b501372ac4cd8e46ba6c5f8841
2018-12-17 13:46:40 -08:00
TreeHugger Robot
c86fa1eb2a Merge "Implement receiver flow of WiFi sharing feature II" 2018-12-17 21:38:04 +00:00
Antony Sargent
e92e07eb97 Add subscriptions list to the multi-network header
The new UX for showing multiple active mobile plan subscriptions (SIMs,
eSIMs, etc.)  needs a header at the top of the Network & internet page
that shows wifi status and a list of active mobile subscriptions in the
form of one Preference per subscription.

This CL adds display of the mobile subscriptions to this header. It does
not yet show the correct summary text or do anything when you tap on
them - that will be coming in subsequent CLs. Also, since adding a
variable number of items to the top of the page messes up our current
strategy of having a fixed number of hidden items at the bottom based on
overall item count, this CL just makes all items visible. Subsequent CLs
can restore this behavior with dynamic adjustment.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: Ibfadf8cb61f6f5aff6ce38b7974267b1e4ddc719
2018-12-17 13:26:13 -08:00
Julia Reynolds
18873b9278 Merge "Link to the appropriate config activity for dnd rules" 2018-12-17 21:08:55 +00:00
Fan Zhang
44b28f4a2b Remove battery saver condition.
Battery saver is also implemented as a contextual card. no need to use
condition any more.

Change-Id: I2607c610593c6e250569fbd3b4f1a5516f6ea62f
Fixes: 121115306
Test: robotests
2018-12-17 12:31:50 -08:00
TreeHugger Robot
91a6c6123f Merge "Migrate packages/apps/Settings to androidx.test" 2018-12-17 19:42:24 +00:00
TreeHugger Robot
cec9f138fc Merge "Add boolean flags to show/hide top-most settings." 2018-12-17 19:38:53 +00:00
TreeHugger Robot
3f5966bb48 Merge "Get enrollment animation from overlay" 2018-12-17 18:15:01 +00:00
Fan Zhang
2f54f0b90e Merge "Fix build failed of Settings test cases while importing AndroidX" 2018-12-17 18:14:01 +00:00
TreeHugger Robot
b11d802d3f Merge "Micro cleanup and refactoring" 2018-12-17 18:04:12 +00:00
Anton Hansson
c90fa88e4d Merge "Make the Settings permission a required module" 2018-12-17 17:31:56 +00:00
Brett Chabot
031dcf5019 Migrate packages/apps/Settings to androidx.test
See go/jetpack-test-android-migration

Test: make checkbuild
Change-Id: If67b124188fd4e303154eb11263d03abfb3718c6
2018-12-17 09:20:05 -08:00
Jason Chiu
93d4993556 Micro cleanup and refactoring
- organize import
- remove unused code in ContextualCardLoaderTest
- refactor CardDatabaseHelper

Test: robotest
Change-Id: I1a5a49bee1c4edb34f1c59f3dbe37cb22f01b0d4
2018-12-17 17:13:08 +08:00
Jason Chiu
7aa7ece7a2 Fix build failed of Settings test cases while importing AndroidX
- API change in AndroidX Preference causes a build breakage
- Apply explicit casting for the new API interface

Test: robotest
Fixes: 121109361
Change-Id: If3e7be9e53c7860252523700d6721ae4956db68a
2018-12-17 16:46:42 +08:00
Josh Hou
008a06cac2 [automerger skipped] Merge "Refine APN fetching logic" am: 765621670b am: 74069bc022
am: ff5d0b0ac6  -s ours

Change-Id: Icc54600a67b20914df9d1112256f2f356ee289b1
2018-12-17 00:41:11 -08:00
Josh Hou
ff5d0b0ac6 Merge "Refine APN fetching logic" am: 765621670b
am: 74069bc022

Change-Id: I372d73a75a7dd2077e39dfc29c66b29b1a3ace65
2018-12-17 00:25:12 -08:00
Josh Hou
74069bc022 Merge "Refine APN fetching logic"
am: 765621670b

Change-Id: Ib0a1dd0b3f944d5a98b71555a48aadacfb228543
2018-12-17 00:16:01 -08:00
Treehugger Robot
765621670b Merge "Refine APN fetching logic" 2018-12-17 08:03:04 +00:00
Josh Hou
e519cd6e68 Refine APN fetching logic
APN fetching logic has been encapsulated in URL_SIM_APN_LIST API in
TelephonyProvider

Bug: 115709816
Test: Live network test
Change-Id: I735bc50e912dfbec0903fbcafdc4d6eaa6ccfc7b
Merged-In: I735bc50e912dfbec0903fbcafdc4d6eaa6ccfc7b
2018-12-17 07:16:50 +00:00
Sunny Shao
6c403a876d Add the contentDescription on avatar icon
Add the talkback saying wordings on avatar icon of the search bar.

Change-Id: I7e41d8bf842c0efae5440520586e88dd746802e7
Fixes: 120097338
Test: manual
2018-12-17 11:50:12 +08:00
TreeHugger Robot
18746a0b35 Merge "Moved data settings to phone" 2018-12-16 04:58:37 +00:00
Johnson Lu
ebbb0bc563 Adjust camera preview area to square
1.Choose the smaller size of both dimensions as its size.
2.Set transform matrix to crop and center the preview picture.

Bug: 118797380
Test: make RunSettingsRoboTests
Change-Id: Ic65fb1fe0c5082995d6903f50dda48eec16c3fb1
2018-12-15 16:07:02 +08:00
TreeHugger Robot
c748b6eeef Merge "Make location history package not disableable." 2018-12-15 05:10:30 +00:00
TreeHugger Robot
22f5d27d8f Merge "Set listDivider color for Panels" 2018-12-15 02:56:12 +00:00
Kevin Chyn
9ed7cb40cb Get enrollment animation from overlay
Bug: 111548033

Test: Able to get animation from overlay
Test: atest RunSettingsRoboTests

Change-Id: Ib02f484474b306ba8d61f9be541acb12dd1ecd90
2018-12-14 18:02:54 -08:00
pastychang
103409bd4a Change to use footer button of setupcompat
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I0eba5f8fff37bbb13b54a4d41290ae9363905f96
2018-12-15 09:24:56 +08:00
Ben Lin
11f698ba22 Add boolean flags to show/hide top-most settings.
Bug: None
Test: RunSettingsRoboTests
Change-Id: Ib576f5979feda0fa7f573915acffc5065d40095c
2018-12-14 16:00:21 -08:00
Fan Zhang
c76698d90d Merge "Tweak padding for conditional card layout." 2018-12-14 22:51:43 +00:00
TreeHugger Robot
5fce5f498a Merge "Fix app link open mode UI" 2018-12-14 22:42:27 +00:00
Fan Zhang
2fa4b1f7b8 Tweak padding for conditional card layout.
Overall goal is to push button to the left:
- Make a linear layout that contain content, and button
- Apply existing padding to the content only
- Apply a smaller padding to button.

Change-Id: I8f1c586c59be21ff73dd6d08675f76c8ff7addda
Fixes: 120669058
Test: visual
2018-12-14 14:03:08 -08:00
Julia Reynolds
ec84a9367f Link to the appropriate config activity for dnd rules
Test: atest, manual
Bug: 111474881
Change-Id: I0c1d7b14abe3cf65762167f3c412fa8f2be1d842
2018-12-14 14:41:48 -05:00
Cosmo Hsieh
0f95d9c45d Merge "Implement getConfig() method to get WifiConfiguration" 2018-12-14 16:41:04 +00:00
Matthew Fritze
125a366dff Set listDivider color for Panels
Default color for listDividers in dialogs (parent theme for
panels) is @null, so we set the color to match the horizontal
dividers. listDivider is used by slices to set the vertical
divider between the primary action and toggles.

Test: visual-only
Bug: 117804089
Change-Id: I8f89a103c65adfbd1e079b38dc5eaaa3d3b32326
2018-12-14 08:34:21 -08:00
TreeHugger Robot
5156d7d4db Merge "Icon size needs to same in AppRestrictionsFragment" 2018-12-14 10:29:10 +00:00
cosmohsieh
64b894f81d Implement getConfig() method to get WifiConfiguration
Make a duplicated function of WifiConfigController.getConfig(). This
function could get a new WifiConfiguration from input AccessPoint or
ScanResult.
Should be removed if there is standard one in framework.

Bug: 120827021
Test: RunSettingsRoboTests

Change-Id: Ia5981e8d41f434c097b464a2bfe18e1356f7b087
2018-12-14 09:54:34 +00:00
Arc Wang
c8a65cbddf Support Wi-Fi DPP metrics categories in Wi-Fi DPP activities & fragments.
MetricsProto.MetricsEvent.SETTINGS_WIFI_DPP_CONFIGURATOR
  MetricsProto.MetricsEvent.SETTINGS_WIFI_DPP_ENROLLEE

Bug: 118797380
Bug: 118794858
Bug: 118794978
Test: NA
Change-Id: I62fe09029d350fa976465ac872a4f53a64a74dcd
2018-12-14 08:16:52 +00:00
tmfang
8916198af7 Icon size needs to same in AppRestrictionsFragment
- All app icon should be 32dp

Test: visual
Change-Id: I56132c04aa968e27d7152c39a5715ae262627844
Fixes: 119065428
2018-12-14 16:14:55 +08:00
Stanley Wang
3f80d1b64b Implement the Copyable interface to PhoneNumberPreferenceController
Change-Id: I70085cffe13047ac808d1bf08a467f693b1d8737
Fixes: 118398321
Test: manual and robotests
2018-12-14 15:09:34 +08:00
Arc Wang
8ff2852f74 Implement receiver flow of WiFi sharing feature II
Bug: 120630683
Test: atest RunSettingsRoboTests
Change-Id: Iabe56205ff9274382adbe5bba59a60d833a57214
2018-12-14 06:50:26 +00:00
Cosmo Hsieh
d4dfba4237 Merge "Remove bug id for WiFi MAC randomization since feature is ready." 2018-12-14 05:15:48 +00:00
Kevin Chyn
65b489a8b1 Merge "Plumb remove functionality through" 2018-12-14 05:05:27 +00:00
TreeHugger Robot
f6d147fdbf Merge "Exclue Scanning Settings for searchable in ARC." 2018-12-14 03:46:35 +00:00
Vishwath Mohan
6c5c8c04b0 Merge "Add settings to control Extended Access mode." 2018-12-14 03:38:20 +00:00
TreeHugger Robot
6890553acb Merge "Filter status is not retained in App info" 2018-12-14 02:10:56 +00:00