Commit Graph

49356 Commits

Author SHA1 Message Date
Yanting Yang
c28cc9dbe8 Merge "Update the card behavior of Low Storage slice" 2018-12-04 06:06:46 +00:00
Stanley Wang
d4a3492422 Merge "Fix top level "Gestures" not appearing in search result" 2018-12-04 05:56:01 +00:00
Yanting Yang
d0a9103855 Update the card behavior of Low Storage slice
If used storage >= 85%, show low storage slice to all clients. Else, a
generic storage slice with error flag will be given. Home page will
check error flag in loading eligible cards.

Bug: 114808204
Test: robotests, visual
Change-Id: I757c46b3bbff785dc112fec6bdc37e5ce9269ed8
2018-12-04 12:13:21 +08:00
Arc Wang
e43bb77e5d Use multiple actions to launch Wi-Fi DPP configurator with different mode.
Bug: 118797380
Bug: 118794858
Test: atest WifiDppConfiguratorActivityTest
      atest WifiDppQrCodeScannerFragmentTest
      atest atest RunSettingsRoboTests

Change-Id: I96aba3c5e3d57c89d6948d3bf3dd85f29f705778
2018-12-04 11:46:37 +08:00
tmfang
72b25d65d3 Add an open button in App info page.
Per new UX, we need to add an "Open" button
in App info page. When user clicks this button,
it will launch application.

Test: visual, robotest
Bug: 116346008
Change-Id: Ic4a36979d08bf8d58f792474cd3c9b34a147fef8
2018-12-04 10:44:13 +08:00
Cosmo Hsieh
5674e02732 Merge "Create WiFi MAC randomization icon" 2018-12-04 02:07:44 +00:00
TreeHugger Robot
3645640904 Merge "Update Zen Automatic Rule Settings page" 2018-12-04 00:42:00 +00:00
TreeHugger Robot
fc702974ba Merge "Add EnterprisePrivacySettings as injectable category" 2018-12-03 23:48:36 +00:00
Alex Chau
eaf78937d5 Add EnterprisePrivacySettings as injectable category
- Also add order for EnterprisePrivacySettings manifest

Bug: 120414731
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DashboardFragmentRegistryTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=EnterprisePrivacySettingsTest
Change-Id: I30b555873aad66aa1432ae8ebb11417ddf237a07
2018-12-03 21:31:25 +00:00
TreeHugger Robot
48608219f3 Merge "Add Volume panel" 2018-12-03 21:09:47 +00:00
Matthew Fritze
c999b088d2 Add Volume panel
Volume panel hosts each volume stream, including:
- Media volume
- Call Volume
- Ring volume
- Alarm volume

Change-Id: I1801d10d2304c57615e9499386c638c74ffcd7c3
Screenshot: https://screenshot.googleplex.com/m764j65ECto
Bug: 117804161
Test: Manual app
Test: robolectric
2018-12-03 11:26:58 -08:00
Beverly
6afe8365a9 Update Zen Automatic Rule Settings page
Test: atest ZenModeBackend
Test: make RunSettingsRoboTests
Bug: 111475013
Change-Id: I86cc2c35002cd3a74d21f080eaf6d0fc29fa6a17
2018-12-03 14:17:42 -05:00
Doris Ling
c11666cc00 Remove data usage v1 code.
- remove all v1 code and the corresponding feature flag switch.

Bug: 117420679
Test: make RunSettingsRoboTests
Change-Id: Ib062c03c671b0f860698f5e5e153ab46d963175a
2018-12-03 11:12:50 -08:00
Fan Zhang
859017e99a Merge "Use SettingsLib's ActionButtonsPreference" 2018-12-03 18:06:07 +00:00
tmfang
8ad18fb3eb Use SettingsLib's ActionButtonsPreference
Since we moved old ActionButtonPreference into
SettingsLib, we need to update new imports and
declaration in Settings source code.

Test: robotest, manual test
Bug: 120005054
Change-Id: I1e3514ba68a856071c81534d54c99c3d1a11a8ca
2018-12-03 15:12:41 +00:00
Yanting Yang
82b5cb307f Update title of ConnectedDeviceSlice header
Bug: 114807655
Test: visual, robotest
Change-Id: Ibda3f1439787541de0e7aac9f3bcfb016522cdc1
2018-12-03 21:31:02 +08:00
Stanley Wang
9c4e2d6767 Fix top level "Gestures" not appearing in search result
If the availability status equals AVAILABLE_UNSEARCHABLE,
the preference won't appear in the serch result so we change
the status to AVAILABLE.

Change-Id: Id3ab28c4974f42be9b06a58d9c0d284f23ef160f
Fixes: 117951603
Test: manual and robotests
2018-12-03 11:28:39 +08:00
Fan Zhang
4c3251ebab Merge "Replace SliceAction deprecated method" 2018-12-01 18:12:30 +00:00
TreeHugger Robot
830e6d4f13 Merge "Update SettingsPanel UI" 2018-12-01 06:51:53 +00:00
Johnson Lu
758e3bf0be Merge "Integrate QrCode Camera with WifiDppQrCodeScannerFragment" 2018-12-01 03:55:45 +00:00
Johnson Lu
a558c01696 Integrate QrCode Camera with WifiDppQrCodeScannerFragment
Bug: 118797380
Test: RunSettingsRoboTests
Change-Id: I328bebbbcf44136df2c18ca1929a5da377a0cf6b
2018-12-01 09:03:39 +08:00
Fan Zhang
5663d5e3bb Merge "Refined the Search Bar layout" 2018-11-30 22:41:41 +00:00
Raff Tsai
626c6e0b17 Replace SliceAction deprecated method
- Replace new SliceAction with SliceAction.createDeeplink() or
SliceAction.create()

Test: make RunSettingsRoboTests
Change-Id: Ied34469d2220d8220a2dcc6c2fb4d32dd9cd9b8c
Fixes: 119879284
2018-12-01 06:21:01 +08:00
TreeHugger Robot
e78e2061f1 Merge "Fix Wifi-Detail page colors" 2018-11-30 21:45:20 +00:00
Matthew Fritze
c14316c4a9 Update SettingsPanel UI
UI changes include:
- RecyclerView to host slices
- Font family to headline font
- Title is now centered
- Added SeeMore & Done buttons
- Horizontal Dividers between slices
- Indented Slices
- Landscape layout is fullscreen

Change-Id: I3549c847fc88edd81f670ddfa2907dd3741441e0
Screenshot: https://screenshot.googleplex.com/RzWktzOZJkc
Test: Robolectric
Test: Manual app
Bug: 118622007
2018-11-30 13:26:50 -08:00
Sunny Shao
86b1c7d0b1 Refined the Search Bar layout
Removed the background color of the search bar.
Set the background of the AppBarLayout as transparent.
Set the app bar height.

Bug: 118886724
Test: manual review
Change-Id: I7faedc693ce61d5a5237e8a72909b77b56268a4c
2018-11-30 12:00:15 -08:00
TreeHugger Robot
6334cfa89e Merge "Remove the 2 seconds wait time to sync app data usage list." 2018-11-30 19:58:05 +00:00
TreeHugger Robot
886cf1faac Merge "Update string for "Reset" screens" 2018-11-30 17:42:38 +00:00
Edgar Wang
47610f149a Update string for "Reset" screens
- Update "Reset phone" to "Erase all data"

Change-Id: I410fb4916ae9b0234b47d5a35a038d280b24fe0b
Fixes: 79172587
Test: robotests & visual
2018-11-30 20:26:35 +08:00
Yanting Yang
b8850fc679 Fix NPE in slice data generation
NPE will be occurred when clients gives invalid slice uri for Settings.
We have defined some rules in getPathData() and it will return null
object when the invalid uri was given. NPE will be happened in next.

Change-Id: I6ebadd4383aee6e69b1c2eb6c84071c961fd72a7
Fixes: 120259627
Test: robotests
2018-11-30 20:25:22 +08:00
chen xu
54d5a727c1 address API council feedbacks for Telephony.Carriers
Bug: 118296421
Test: telephony unit test
Change-Id: Idf8bcad4fe9d765a73563e9b0c1c659175835447
Merged-in: Idf8bcad4fe9d765a73563e9b0c1c659175835447
2018-11-29 23:20:13 -08:00
chen xu
3b76d0f9ef address API council feedbacks for Telephony.Carriers
Bug: 118296421
Test: telephony unit test
Change-Id: Idf8bcad4fe9d765a73563e9b0c1c659175835447
2018-11-29 23:13:18 -08:00
cosmohsieh
c393fc1fe7 Create WiFi MAC randomization icon
Preference icon for WiFi MAC randomization

Bug: 117192879
Test: Visual
Change-Id: Ifafa801ad96df16c5d96da847dd45bbbc16f4a1f
2018-11-30 14:00:21 +08:00
TreeHugger Robot
0173c5f532 Merge "Bump string length limits" 2018-11-30 05:05:26 +00:00
Stanley Wang
4feb4bb8af Merge "Fix adaptive brightness not appearing in Settings search" 2018-11-30 03:23:13 +00:00
Raff Tsai
1ad5c9805a Merge "Add log feature" 2018-11-30 02:58:38 +00:00
Arc Wang
6f8dc162df Merge "Upload basic UI files for Wi-Fi DPP Settings development II." 2018-11-30 02:48:53 +00:00
Fan Zhang
53f75f0df9 Move all custom slice uris to a registry class.
Change-Id: I192320f95ac81d14c8891ce2531d603912e59f56
Fixes: 119776308
Test: robotests
2018-11-29 16:41:21 -08:00
John Reck
134332fafa Bump string length limits
Bug: 119882754
Test: strings can be longer
Change-Id: I9545387639166ba6150d8a9d8e99c9ea9cd03e24
2018-11-29 16:00:08 -08:00
Raff Tsai
da7a5d1171 Add log feature
- Add ContextualCardFeatureProvider to handle card interaction

Bug: 79698338
Test: manual
Change-Id: I2a76f5ccfd07072a98ee927bed7dc39731d4cb09
2018-11-30 06:41:22 +08:00
Fan Zhang
154f34a35e Merge "Update the strings of conditional cards" 2018-11-29 21:56:56 +00:00
Doris Ling
d13b50b39e Remove the 2 seconds wait time to sync app data usage list.
- in v2, completely remove the asyn task to force update the network
stats since the network stats apis is actually not used.
- in v1, remove the 2s delay and only update the list when the asyn task
is done.

Change-Id: I10e887022d07fe38504036cbf3f12362eec939b3
Fixes: 119562454
Test: manual
2018-11-29 13:18:21 -08:00
Fan Zhang
8e14ca0058 Remove obsolete logic in SettingsActivity.
mIsShowingDashboard is always false, it used to be true when we are
displaying homepage, but now homepage is hosted in a entirely different
activity.

so all related logic can now be removed.

Test: robotests

Misc clean up: remove unused colors

Test: rebuild, color-lint
Change-Id: I1e1628c1e9606c2b7dc40ef3c21d4ed1391a8c03
2018-11-29 11:37:00 -08:00
Salvador Martinez
807d3d98ec Fix Wifi-Detail page colors
There were some hardcoded colors in this page that should have
been using colorControlNormal. This CL just updates it to use those.

Test: Visual inspection
Fixes: 37628554
Change-Id: I431744e7613eeb0ac751cf1505bcf2ef9e19d95d
2018-11-29 11:17:38 -08:00
TreeHugger Robot
662b209b15 Merge "Connect button should have correct icon" 2018-11-29 18:01:53 +00:00
TreeHugger Robot
91ff3491db Merge "Set min height of zen radio button to 48dp" 2018-11-29 15:09:30 +00:00
Michal Karpinski
642ff61147 Add a developer option to allow all background activity starts
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AllowBackgroundActivityStartsPreferenceControllerTest
Bug: 110956953
Change-Id: I45db536d8a60aa6c3a81c01b93ff8e13bf52a77b
2018-11-29 11:20:46 +00:00
Stanley Wang
da296233bc Fix adaptive brightness not appearing in Settings search
Change-Id: I33ed525b3c051a982869114754bd3b7423b61d22
Fixes: 117449384
Test: manual
2018-11-29 18:56:39 +08:00
Edgar Wang
133c73f5f7 Update icon color for "Accessibility" and "Support & Tips" for Dark mode
Change-Id: I874354f3eb669b36822a3fac7e9160ac19d65d35
Fixes: 119785748
Test: robotests & visual
2018-11-29 15:48:11 +08:00
TreeHugger Robot
d949f7d02a Merge "Remove WifiDetailPreference." 2018-11-29 07:43:15 +00:00