Commit Graph

49042 Commits

Author SHA1 Message Date
Doris Ling
74f7b307b0 Enable copying for some settings preferences.
- add enableCopying attribute to app version, wifi ipv6 address, and
other preferences in About Phone settings.

Bug: 62493282
Test: manual
Change-Id: I6ff0848909ec6ade6605967116bf3178ab069c32
2018-11-28 12:25:39 -08:00
Fan Zhang
a60652a973 Visual update: remove card elevation for homepage cards.
- Replace CardView with MaterialCardView
- Add strokeColor and strokeWidth to MaterialCardView
- Set cardElevation to 0dp.

And remove a few unused layout, clean up color lint whitelist.

Test: rebuild, visual
Change-Id: I34a4b9a985cb85c212e123b8af5353d8c548923a
2018-11-28 10:42:00 -08:00
Beverly
c4b72388b0 Set min height of zen radio button to 48dp
Test: manual using accessibility scanner
Change-Id: I5fd92a3420bca2b3eb371241ef2ee463f9f27009
Fixes: 119585103
2018-11-28 11:31:50 -05:00
Mill Chen
8552458b7e Update the strings of conditional cards
Bug: 113451905
Test: visual
Change-Id: I023e005a0a913981f0e0445fa42b7a76b51d3021
2018-11-28 20:33:08 +08:00
Mill Chen
d780928149 Remove TODO item from ContextualCardsAdapter in homepage
Bug: 114009676
Test: rebuild
Change-Id: I57138d766d75c717189c81ddab21503bd1cb9471
2018-11-28 19:32:10 +08:00
Cosmo Hsieh
59099f19cb Merge "Add NetworkRequestDialogActivity" 2018-11-28 05:59:11 +00:00
TreeHugger Robot
0237c3cd48 Merge "Expand more buttons for ActionButtonPreference" 2018-11-28 05:09:47 +00:00
tmfang
15f2fe9551 Expand more buttons for ActionButtonPreference
Old design, we only need two action buttons in Settings app.
In the future, we need four buttons for some use cases.

Test: visual, robotest
Bug: 120005054
Change-Id: I859fee8d7167ce59222059cc441e4a3c167c7b34
2018-11-28 10:24:07 +08:00
TreeHugger Robot
926571dc29 Merge "Hide the SelfAvailablePreference if it is not available." 2018-11-28 00:51:17 +00:00
Doris Ling
fe5259493d Hide the SelfAvailablePreference if it is not available.
- instead of removing it from the preference screen, set its visibility
to false, so that if it becomes available later, it will still be found
on the screen.

Bug: 119838520
Test: make RunSettingsRoboTests
Change-Id: Idc7079bb5846aef247dd87c0b0dba2546f2d8f8f
2018-11-27 14:58:55 -08:00
TreeHugger Robot
8bda3a5956 Merge "Removing references to ASEC" 2018-11-27 22:32:35 +00:00
TreeHugger Robot
277ec1b92c Merge "Misc clean up." 2018-11-27 22:13:37 +00:00
Fan Zhang
e5b46cc6b8 Merge "Add test cases for the collapsible feature of conditional card" 2018-11-27 21:44:30 +00:00
TreeHugger Robot
ef02d589c8 Merge "Implement the collapsible feature of conditional card" 2018-11-27 21:43:57 +00:00
Fan Zhang
9864a70f12 Misc clean up.
- Remove unused SubSetingLauncher parameters: hide_drawer, is_shortcut

Test: robotests
Change-Id: Ic0e6c3aa2c1679010e7ca8356662899f0df7e272
2018-11-27 12:37:57 -08:00
Patrick Baumann
5c9f3757cb Removing references to ASEC
This change removes references to long deprecated, now removed constants
supporting ASEC containers in the framework.

Test: builds
Bug: 109941548
Change-Id: I630f784c69dd635632ec9359669d222549053bbd
2018-11-27 10:33:41 -08:00
TreeHugger Robot
92b6f1b685 Merge "Update icon color for "Accessibility" and "Support & Tips"" 2018-11-27 18:20:29 +00:00
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
Mill Chen
96e6e39613 Add test cases for the collapsible feature of conditional card
Bug: 119593268
Bug: 113451905
Test: robotests
Change-Id: I402f4c975531639b12c24ab8a05a20e547600721
2018-11-27 23:06:33 +08:00
Mill Chen
da1ffe8807 Implement the collapsible feature of conditional card
Add two control views for conditional card to achieve collapsibility.
One of these control views is a footer that is appended to the last
position when expanding all conditional cards. The other is a header
that is used in the collapsed state of conditional cards.

Bug: 119593268
Bug: 113451905
Test: visual, robotests
Change-Id: I39e79b8925a9e3e4ce80c422bcd0ba889aba5f6a
2018-11-27 22:55:04 +08: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
cosmohsieh
da37bb7df7 Add NetworkRequestDialogActivity
Framwork will call this activity to start network requesting process.
This activity is simple activity contained NetworkRequestDialogFragment
and any other dialog generated in this process, aka
NetworkRequestTimeoutDialog.

Bug: 117399926
Test: RunSettingsRoboTests
Change-Id: Ib1df28d12427ed3bd7d4b88ec10e52357564c797
2018-11-27 17:31:25 +08:00
Josh Hou
1e1d6d1466 Refine APN fetching logic
APN fetching logic has been encapsulated in URL_SIM_APN_LIST API in
TelephonyProvider

Bug: 115709816
Test: Live netwrk test
Change-Id: I735bc50e912dfbec0903fbcafdc4d6eaa6ccfc7b
2018-11-27 15:59:39 +08: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
Yanting Yang
8538778d4d Merge "Modify margin for overall contextual settings home screen" 2018-11-27 03:02:55 +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
Leon Liao
dd059cb76e Merge "Update Strings for Accessibility Timeout" 2018-11-27 02:36:19 +00:00
TreeHugger Robot
006d1c6027 Merge "Create "on lock screen notifications" in Privacy" 2018-11-27 02:16:41 +00:00
Edgar Wang
78e8be5815 Update icon color for "Accessibility" and "Support & Tips"
Change-Id: I8cc9f5fcb6d4ba53cebdc7b580390b0f61194c75
Fixes: 119785748
Test: robotests & visual
2018-11-27 10:13:32 +08:00
Yuanjia Hsu
d25f37bc42 Merge "Link overlay emergency app by feature flag" 2018-11-27 01:49:02 +00:00
Neil Fuller
88d61c6b2a [automerger skipped] Merge "Track move of timezone classes to libcore.timezone" am: 3ddcb6a90a am: de0bd5321f
am: 18a275efc3  -s ours

Change-Id: I2915f6fad31d2106a6dcc9fd07c3e4897ae2e964
2018-11-26 16:28:19 -08:00
Leon Liao
7119c04794 Update Strings for Accessibility Timeout
Update or replace inaccurate strings in Accessibility Timeout feature.

Bug: 119283926
Bug: 119835657
Test: atest AccessibilityTimeoutControllerTest
Test: make RunSettingsRoboTests
Change-Id: I94a972332bbc2596b57f3369ad3af4ba1d24210b
2018-11-27 08:25:04 +08:00
Neil Fuller
18a275efc3 Merge "Track move of timezone classes to libcore.timezone" am: 3ddcb6a90a
am: de0bd5321f

Change-Id: I69516fa31c07a67621e8740ca14c19c40d5dd126
2018-11-26 15:48:38 -08:00
Neil Fuller
de0bd5321f Merge "Track move of timezone classes to libcore.timezone"
am: 3ddcb6a90a

Change-Id: Id7db6339cf9c5f886be9c8ba80b47e15783a4ea3
2018-11-26 15:27:52 -08: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
Neil Fuller
3ddcb6a90a Merge "Track move of timezone classes to libcore.timezone" 2018-11-26 23:04:33 +00:00
TreeHugger Robot
39d97b1387 Merge "Update battery percentage preference strings" 2018-11-26 23:03:12 +00: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
TreeHugger Robot
724930ae24 Merge "Change settings launcher icon background color" 2018-11-26 21:57:18 +00: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
Youming Ye
e29c62ea04 Merge "Display a toast to notify user that Preset APN setting cannot be viewed"
am: a995cb334b

Change-Id: If2bb27e7e9452ebcaab1d421adc07259b4b3b31c
2018-11-26 13:38:30 -08:00
Salvador Martinez
7b38d57080 Update battery percentage preference strings
This changes the preference to be "Battery Info" and
updates the summary text to mention time remaning in addition to
percentage.

Test: None, String only change
Change-Id: Id9a8132051455842a76104ed0f2abfca3b589011
Fixes: 119828170
2018-11-26 13:37:17 -08:00
Youming Ye
a995cb334b Merge "Display a toast to notify user that Preset APN setting cannot be viewed" 2018-11-26 21:14:14 +00:00
TreeHugger Robot
6d2a678b67 Merge "Fix action bar color in App info header" 2018-11-26 17:20:58 +00:00