Commit Graph

24268 Commits

Author SHA1 Message Date
Fan Zhang
c6b28045df Merge "Stop showing battery card in homepage" 2018-11-27 18:18:48 +00:00
Matthew Fritze
71a255968f Merge "First commit for settings panels" 2018-11-27 17:34:22 +00:00
Yanting Yang
e11c1d0382 Stop showing battery card in homepage
In previous design, we add default card feature for "me Card". But "me
Card" is being built by another team. We have removed related cards from
default card feature in ag/5394464 but battery card. Now, remove it.

Fixes: 119819851
Test: robotests
Change-Id: I445546024c80c227abce649008ec648340577e99
2018-11-27 19:08:23 +08:00
TreeHugger Robot
b0bed799c0 Merge "Use SettingsLib's LayoutPreference" 2018-11-27 09:51:14 +00:00
tmfang
dce94bb237 Use SettingsLib's LayoutPreference
- Remove LayoutPreference in Settings source code.
- Remove unused style, layout
- Replace old imports to com.android.settingslib.widget.LayoutPreference
- Replace old XML tag to com.android.settingslib.widget.LayoutPreference

Test: robotest, manual test
Bug: 120005054
Change-Id: I9ae1ae14a16f443e11ac5d75b6038c7c5e253844
2018-11-27 13:12:53 +08:00
TreeHugger Robot
397e2d7735 Merge "Implement the renderers for conditional header and footer" 2018-11-27 04:15:26 +00:00
TreeHugger Robot
9dbb20cc23 Merge "Clean up LayoutPreference" 2018-11-27 03:35:12 +00:00
tmfang
7b2529d142 Clean up LayoutPreference
- There is no any custom preference uses R.id.all_details,
  so clean up some code.

Test: robotest
Bug: 120005054
Change-Id: Ib40483934cd6d6c0bbaa2864d40dbf09483d98aa
2018-11-27 03:33:49 +00:00
Mill Chen
7fb3461a59 Implement the renderers for conditional header and footer
Bug: 119593268
Bug: 113451905
Test: visual
Change-Id: I43d6ca8508f0ba49796004d679d6cbe37ddf4455
2018-11-27 10:45:39 +08:00
TreeHugger Robot
006d1c6027 Merge "Create "on lock screen notifications" in Privacy" 2018-11-27 02:16:41 +00:00
Yuanjia Hsu
d25f37bc42 Merge "Link overlay emergency app by feature flag" 2018-11-27 01:49:02 +00:00
Matt Fritze
90899e08f0 First commit for settings panels
Establish the Activity which hosts Settings panels through the
PanelFragment. The Activity's purpose is to validate the intent
data coming in, including:
- Called with startActivityForResult (so we can log who is calling)
- Intent has the proper intent extra to link to a Panel

The fragment takes the Panelable data and builds a Settings Panel.
Each panel will have:
- Title
- List of Slices
- Link to underlying content

The Panelable interface is created to provide all of those datums, and
the new FetureProvider provides the Panelables by linking them with
keys. The keys will eventually become public APIs with CTS tests.For
now, we store them locally.

I included an exmaple panel, the InternetConnectivityPanel which
currently shows Wifi and Airplane mode.

Screenshot: https://screenshot.googleplex.com/c6sv7ZzQ5OJ
Bug: 117804089
Test: make -j40 RunSettingsRobotest
Test: Manual app
Change-Id: I1932f7179cc32088acd6413a736901ddf9651892
2018-11-26 15:26:02 -08:00
Youming Ye
976ca1c4c7 Merge "Display a toast to notify user that Preset APN setting cannot be viewed" am: a995cb334b am: e29c62ea04
am: e5e4e4cb76

Change-Id: Ic4c41e88c28a322d54a8489844b6ef0ff041d3a1
2018-11-26 14:09:21 -08:00
Youming Ye
e5e4e4cb76 Merge "Display a toast to notify user that Preset APN setting cannot be viewed" am: a995cb334b
am: e29c62ea04

Change-Id: If37a038a2a226d0165293d7c40f133002bcd2991
2018-11-26 13:51:57 -08:00
TreeHugger Robot
164d2c943e Merge "Remove "Allow alarms" from top level DND settings" 2018-11-26 21:39:16 +00:00
TreeHugger Robot
6d2a678b67 Merge "Fix action bar color in App info header" 2018-11-26 17:20:58 +00:00
yuanjiahsu
432650df20 Link overlay emergency app by feature flag
Add feature flag to link overlay emergency app instead of Emergency Info
app for teamfood in the future.

Test: Manually
Bug: 118809382
Change-Id: I7956704b9d134647cc0a1a5975a0bf8bea482422
2018-11-27 00:09:05 +08:00
TreeHugger Robot
5948259702 Merge "[WPA3] Filter unsupported networks from Add network spinner" 2018-11-26 02:46:15 +00:00
Arc Wang
abc37ee8c0 Merge "Upload basic UI files for Wi-Fi DPP Settings development." 2018-11-23 02:10:40 +00:00
Neil Fuller
990a76d6ec Merge "Track move of timezone classes to libcore.timezone" 2018-11-22 09:31:19 +00:00
tmfang
dd7f99ba87 Fix action bar color in App info header
- Action bar color is same as status bar.

Test: visual
Fixes: 119893936
Change-Id: I8806295f9f42b27d14eb7f3521907a3a234b9593
2018-11-22 11:15:17 +08:00
Hai Shalom
1638168336 [WPA3] Filter unsupported networks from Add network spinner
Filter unsupported networks from Add network spinner. Removed entries
from wifi_dialog.xml, adding them dynamically based on device
capabilities. Adding position-to-security table, that decouples spinner
positions from security values.

Bug: 112195778
Test: atest WifiConfigControllerTest + device functional test
Change-Id: I6a814c4d69fbd8d8076db5dbaa5da807b4da4c32
2018-11-21 18:58:38 -08:00
Cosmo Hsieh
c4cb4168cf Merge "Implement NetworkRequestMatchCallback callback in NetworkRequestDialogFragment" 2018-11-22 02:22:23 +00:00
taiki tsutsumi
4d044ced6d Display a toast to notify user that Preset APN setting cannot be viewed
When KEY_HIDE_PRESET_APN_DETAILS_BOOL is set to true, Preset APN setting
is hidden. When user taps Preset APN, a toast should be shown to inform
that user cannot view the APN.

Test: manual - check Preset APN setting details are hidden
Bug: 115453290
Depends-On: I8a5c6f92f876d349b304acf89b4ffab86ff3f24b
Change-Id: I0078b3492ae87a4297f24871b8bea1579e6a79af
2018-11-21 15:40:58 -08:00
Pengquan Meng
41b06fd48e Merge "Fix CarrierSettings preference" 2018-11-21 19:38:43 +00:00
Beverly
c94da8b7ce Remove "Allow alarms" from top level DND settings
Test: manual
Bug: 111475013
Change-Id: Ieb2539a7f0a389738a936cb9210951d07121e69a
2018-11-21 13:23:37 -05:00
Arc Wang
4591d82bdf Upload basic UI files for Wi-Fi DPP Settings development.
WifiDppQrCodeScannerActivity is the activity for user to scan
QR code and add device to a saved network.

Bug: 118797380
Test: manual
Change-Id: If2c8c5ba1620e5584fb47ba7b0ea2bc2d7acb641
2018-11-21 10:06:47 +00:00
cosmohsieh
75c8805a99 Implement NetworkRequestMatchCallback callback in NetworkRequestDialogFragment
Use this callback to communicate with framework wifi api.
Will get candidates wifi ap list and related callback to select which wifi ap wanted to use, and related operated result status.

Bug: 117399926
Test: RunSettingsRoboTests
Change-Id: Ic8ee678c06f21050761ebb58dc0fe50bc5732e53
2018-11-21 06:33:11 +00:00
Raff Tsai
dbbbd7a83d Merge "Add BatteryFix Slice" 2018-11-21 05:57:32 +00:00
Johnson Lu
62367be28b Merge "Refine QrCamera.getBestPreviewSize method" 2018-11-21 05:38:15 +00:00
James Lemieux
bbb4e91b3f Merge "Prepare tests for impending robolectric merge" 2018-11-21 05:16:08 +00:00
Raff Tsai
b92e9d4239 Add BatteryFix Slice
Change-Id: I504df1e9caadced71cc37f8be9207ab9fd26f9ab
Fixes: 114807643
Test: manual
2018-11-21 12:25:06 +08:00
Johnson Lu
b0e66c8807 Refine QrCamera.getBestPreviewSize method
Compares aspect ratio of camera preview and preview window to get better
preview size.

Bug: 118797380
Test: RunSettingsRoboTests
Change-Id: I5c58691b02c2b5d9709ff956e86ca301196d5664
2018-11-21 11:50:36 +08:00
TreeHugger Robot
afc09c5234 Merge "Allow below divider for all EntityHeader" 2018-11-21 03:37:39 +00:00
Pengquan Meng
6da4302864 Fix CarrierSettings preference
This used the CarrierConfigManager to get the CarrierSettings activity
component and open that activity when the preference is clicked.

Bug: 117651939
Test: make -j40 ROBOTEST_FILTER=telephony RunSettingsRoboTests
Change-Id: Ic5267bba18ab32fbcc2e04aa61e7361151130275
2018-11-20 18:58:47 -08:00
James Lemieux
3a55de44c5 Prepare tests for impending robolectric merge
Some ShadowUserManager function moved into the basic shadow in
robolectric proper and has been removed from the Settings
ShadowUserManager.

Test: make -j56 RunSettingsRoboTests
Change-Id: I38647dae5d16bc79bc7925ca139c9362a2035393
2018-11-20 16:40:57 -08:00
Kevin Chyn
f611fe8689 Merge "Simplify preview logic" 2018-11-20 18:12:42 +00:00
tmfang
e541def5c5 Create "on lock screen notifications" in Privacy
Test: visual, robotest
Bug: 116628158
Change-Id: I056f3734c591f8b300ae1003364ed4c1c2b2f9e3
2018-11-20 20:09:46 +08:00
Neil Fuller
1e1961a5b3 Track move of timezone classes to libcore.timezone
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.

Bug: 119026403
Test: build only
Change-Id: I920411dfa7e000a0da9678826a035e0461211619
2018-11-20 10:52:52 +00:00
Emily Chuang
1e24cb02dc Add contextual card dismissal implementation
When users clcik on the remove button in dismissal view, the card should
be marked as dismissed in the database, and the UI should be refreshed.

Bug: 113783548, 119594116
Test: robotests
Change-Id: I980600c4c0753ad5abc52ae63bac7196a4b818f1
2018-11-20 12:53:19 +08:00
tmfang
012b089a91 Allow below divider for all EntityHeader
- Create an method in LayoutPreference let other class can
  set divider status.
- EntityHeaderController will allow to have a below divider
  by default.

Test: visual, robotest
Bug: 116346008
Change-Id: Ic041b8fef8d22ce1b7ea48eedfbe97c708c41ce7
2018-11-20 11:52:29 +08:00
Johnson Lu
4942fd2aff Merge "Add QrCodeGenerator for QrCode encoding" 2018-11-20 03:33:24 +00:00
Kevin Chyn
7d7ffda9ae Simplify preview logic
Fixes: 112564159
Bug: 119786386

Test: manual
Change-Id: I42fba5a53248193fbe820e710a863ec9de728d4a
2018-11-19 18:34:31 -08:00
Johnson Lu
be878dc06c Add QrCodeGenerator for QrCode encoding
Bug: 118794858
Test: RunSettingsRoboTests
Change-Id: I1e27c7b7bf97c1b683be7d200e1f3bbdc763c4c1
2018-11-20 09:54:59 +08:00
Sunny Shao
408dc883f7 Added the launching account page
Settings get account name and account avatar from SI.
According the account name to launch the account page.

Bug: 119608711
Test: robotest
Change-Id: I0d53e9445f4ba5ce470bd079038db0f08f0cc1c8
2018-11-20 07:38:50 +08:00
Fan Zhang
87c69c0440 Merge "Disable toggling wifi tethering in secondary user." 2018-11-19 18:32:11 +00:00
TreeHugger Robot
f9fcdc1b74 Merge "Refined the CardContentProvider unused operations" 2018-11-19 18:00:25 +00:00
Kevin Chyn
b4dcebec03 Use the correct manager to generate token
Bug: 111548037

Test: manual
Change-Id: I84f106ace988165f9f6dbc667c46302cbd1c6226
2018-11-16 15:58:02 -08:00
Doris Ling
9f1c617016 Disable toggling wifi tethering in secondary user.
- in previous release, the shortcut widget was for the top level
Hotspot & Tethering settings page. The top level settings has logic to
check whether the page is restricted and remove all preferences and
show a message to tell the user that tethering settings are not
available, and the user will not be able to launch the wifi hotspot
settings page.
- the updated shortcut now launches the wifi hotspot page directly.
The settings does not check for restriction. Copy the logic from the top
level settings to check for restriction and remove all preferences
accordingly.

Change-Id: I76fb7838e2db379f6ffbce7bf14003bccc1b10d3
Fixes: 116642428
Test: make RunSettingsRoboTests
2018-11-16 15:05:22 -08:00
TreeHugger Robot
bd088c4205 Merge "Only update mutable shortcuts." 2018-11-16 19:11:26 +00:00