Commit Graph

51024 Commits

Author SHA1 Message Date
timhypeng
9afd28fcb4 [Fix] Unable to show output device indicator after reboot
- To fix the NPE in MediaOutputIndicatorWorker
- To get Bluetooth device status in Slice, not in Worker
- To purify Worker to be an event receiver

Bug: 128945026
Test: make -j42 RunSettingsRoboTests
Change-Id: I9360202870c7a43a79641c5b84210c1bfad4b9a6
2019-03-27 05:32:52 +00:00
clownshen
936f1f215e Provide connect button in Wi-Fi detail page
User can click connect button to connect this AP at the detail page even
the Wi-Fi disabled. Would turn on Wi-Fi if disabled and then connect to
this saved network.

Bug: 126503889
Test: atest and manual test
Change-Id: I313e290474d6623a6c3e84027e81d0d1ebf16919
2019-03-27 13:08:02 +08:00
Yi-Ling Chuang
5bf939e934 Add interface for homepapge swipe to dismiss.
- Create an ItemTouchHelper.
- Attach the helper to the recycler view.
- Pass change to the adapter to handle the swipe.

Bug: 126214056
Test: rebuild
Change-Id: I312ee1357158db84f9ee328be4722fe067984604
2019-03-27 11:20:49 +08:00
tmfang
ebf7b888d6 Change icons for disable and enable button
Test: visual
Fixes: 124116610
Change-Id: Ia300eeba36d853117699d3bec724373df2e354d3
2019-03-27 10:53:24 +08:00
TreeHugger Robot
dedeb2bd18 Merge "Update icons to use tint and vectors" 2019-03-27 02:45:40 +00:00
pastychang
d69b86a0ef Copy extra of suw flow to the intent of lock screen pages
Bug: 129323340
Test: atest
Change-Id: I3886c097bd49df9e1169f8004889f9af8c567560
2019-03-27 10:24:55 +08:00
tmfang
3c17660feb Tweak summary for privacy entry
Test: visual
Fixes: 129345927
Change-Id: I9ce4481565c417d375b24c37ed91d507f2ca57cf
2019-03-27 10:15:45 +08:00
Maurice Lam
9c2fae83a3 Fix fingerprint icon on pattern screen
Test: atest [...]/ChooseLockPatternTest.java
Bug: 129342100
Change-Id: I4e670b6265fe4a77ecbd8ede9a703fa0762f7504
2019-03-26 18:50:21 -07:00
TreeHugger Robot
e22c2c1658 Merge "Add SettingsIntelligenceLogwriter" 2019-03-27 01:45:38 +00:00
TreeHugger Robot
b3b4fcd84b Merge "Fix Slices in Panel no-op bug" 2019-03-27 00:54:04 +00:00
TreeHugger Robot
13197e38c2 Merge "Fix inconsistent border width in QR code scanning camera" 2019-03-27 00:47:02 +00:00
Salvador Martinez
bd677df009 Update icons to use tint and vectors
A bunch of icons were using PNGs which didn't allow their color
to change when in dark mode. This CL simply adds vector drawables
for all the PNGs and sets the tint to the correct color where needed.

Test: visual inspection, robotests pass
Bug: 126199274
Change-Id: I372d94e374173ab0572dacb03674a40fa14cffb9
2019-03-26 17:41:24 -07:00
Kweku Adams
afd71d1689 Add heap dump options to Developer options.
1. Add a button to capture a system heap dump on demand.
2. Add a toggle to enable/disable automatic system heap dump captures.

Bug: 77490269
Test: manual
Change-Id: I12b41de82f641ae239ea8e48f0180392aca5dbe8
2019-03-26 17:10:09 -07:00
jackqdyulei
281cf17d89 Skip lifecycle if controller is not available
Fixes: 129076378
Test: RunSettingsRoboTests
Change-Id: If1e49785c2378ec2cf0f7d2837bc7d4c0ff915a0
2019-03-26 17:00:36 -07:00
jackqdyulei
27c3fe65fd Update CodeInspectionTest
Update the method to check it contains valid constructor, otherwise
report error.

Fixes: 129346285
Test: RunSettingsRoboTests
Change-Id: I4c5a62b1046e791f3988cd5215879435a831d19d
2019-03-26 16:28:36 -07:00
TreeHugger Robot
b93e55f05e Merge "Deep link to detail UI when mainline module version is clicked." 2019-03-26 23:17:35 +00:00
Mill Chen
9703d79ce2 Normalize the icons in Accessibility
The icons displayed in Accessibility are larger than others, they should
be the same size as app icons. Change the drawable's icon size to fix
it.

Fixes: 123411506
Test: visual, rebuild
Change-Id: Ib693dd2ac8e2e191e5ecb2d0d8d4fdac5a32a2de
2019-03-26 16:14:34 -07:00
Raff Tsai
02e45574a3 Add SettingsIntelligenceLogwriter
Bug: 124701288
Test: robolectric, manual
Change-Id: Iea446ae600d22ed62c5ee45afd1cd27a89b5de34
2019-03-27 07:14:20 +08:00
Mill Chen
5eeb6ae67a Merge "Broadcast an intent after turning off Grayscale" 2019-03-26 23:10:38 +00:00
Salvador Martinez
ef1b5ceb10 Merge "Update dark theme to have new screen" 2019-03-26 22:32:15 +00:00
TreeHugger Robot
f245d907bd Merge "Update DND duration setting string" 2019-03-26 21:16:33 +00:00
TreeHugger Robot
f9a12b825e Merge "Enable/disable a few things in debuggable builds" 2019-03-26 21:16:27 +00:00
Wei Wang
1a90162afd Address API council comments.
Bug: 123587501
Test: Manual
Change-Id: I72582ca6d8da8b1fe7bc4fc1b4b4db1fad6ca7a7
2019-03-26 14:06:16 -07:00
TreeHugger Robot
d8925d2ef2 Merge "Add a help URI for each ManageApplications subclass" 2019-03-26 20:59:53 +00:00
Fan Zhang
5911fe6188 Deep link to detail UI when mainline module version is clicked.
Fixes: 129287281
Test: robotests
Change-Id: I875cf39936dd8cc656aba9e30dc03c882ee13d4a
2019-03-26 13:54:37 -07:00
TreeHugger Robot
507b7bf4f8 Merge "Flip the preference for sticky battery saver" 2019-03-26 20:41:27 +00:00
Lei Yu
5b39ec5d63 Merge "Fix broken settings tests(Round 2)" 2019-03-26 20:38:22 +00:00
Salvador Martinez
1053ec04b4 Update dark theme to have new screen
The dark theme preference should have it's own screen rather than
being a dialog. This adds some boilerplate code that will be
needed for the illustration as well as converting the current
list preference to open a new screen.

Test: robotests
Bug: 128686189
Change-Id: I5b62276353c0d39ad2ad00d21d2280e76cceb09b
2019-03-26 13:17:11 -07:00
jackqdyulei
6aeed0eaa1 Fix broken settings tests(Round 2)
1. Mark a few as Ignore with bug number
2. Remove some tests since they are obsolete.

Bug: 129159331
Test: RunSettingsRoboTests
Change-Id: I801681609c31c1f824c44b49ec89d9d28c716539
2019-03-26 12:46:01 -07:00
TreeHugger Robot
dec5aff009 Merge "Add Live Caption preference to Accessibility page." 2019-03-26 19:25:39 +00:00
Fan Zhang
d151c40eea Enable/disable a few things in debuggable builds
- Feature flag dashboard is now only ON in debuggable builds
- Draw overlay is enabled in debuggable builds for a11y testing

Fixes: 129060539
Fixes: 129041251
Test: robotests
Change-Id: Ic799101c8ca6cbcd26fe02b6a567f223800805ab
2019-03-26 12:11:35 -07:00
TreeHugger Robot
73f570febc Merge "Update search keywords for some pages." 2019-03-26 18:49:32 +00:00
Beverly
aa0ce85001 Update DND duration setting string
Fixes: 125537656
Test: manual
Change-Id: I545c00083c36e7e8f3ff0e6f33d2b000af12093c
2019-03-26 14:48:17 -04:00
Tarandeep Singh
69eb991092 Fix dupicate preference in personal dict
Duplicate preference is added on the
UserDictionaryListPreferenceController. With this change, we check
before adding.

Fix: 129079798
Test: Manually using steps mentioned in bug
Change-Id: If73880f3be460f377b8985a44fc9f9fbe6370c06
2019-03-26 11:45:40 -07:00
Mill Chen
6d90cdfea7 Broadcast an intent after turning off Grayscale
Settings will send a broadcast when the user disable Grayscale in
Settings. Also, Settings registers a broadcast receiver to monitor the
status changed of Grayscale.

Bug: 118387886
Test: robotests
Change-Id: I92d1b9adf7a600b4abac943ebbd5a11d02d3d1b8
2019-03-26 11:37:16 -07:00
Salvador Martinez
d12d722099 Flip the preference for sticky battery saver
Instead of toggled on being to keep battery saver on, the UX
writers would like to make toggled on be turn battery saver off
automatically. Also turns the controller into a
TogglePreferenceController, because those exist apparently.

Test: visual inspection, tests pass
Fixes: 126938839
Change-Id: Iffac536d0b1956d4534ca1b5fa5c6440c4d3a3ff
2019-03-26 11:29:18 -07:00
Salvador Martinez
66320c2c47 Add a help URI for each ManageApplications subclass
This just adds the ability to add help pages to each ManageApplications
subclass. We can remove any we don't end up needing later.

Test: robotests pass
Bug: 121442558
Change-Id: I7aac30aa081d93efaa473248cf259e45ae63870c
2019-03-26 11:27:03 -07:00
Fan Zhang
a95e2165a9 Merge "Take out debugging log for blank suggestions" 2019-03-26 17:38:15 +00:00
Anthony Tripaldi
308d833d16 Add Live Caption preference to Accessibility page.
This reverts commit fa27a88292.

The original was only a temporary revert in order to remove from initial beta release for dogfooding before the feature was ready.

Reason for revert: b/123652115

Bug:123652115
Test: manual
Change-Id: Id647c2992e30289d72a4f6144829a997677be3fa
2019-03-26 13:09:50 -04:00
Fan Zhang
bb679d4817 Update search keywords for some pages.
Fixes: 129016511
Test: reindex
Change-Id: I73f7094168b00ecd92958c1760fde0dbd634bef9
2019-03-26 09:57:37 -07:00
TreeHugger Robot
8edea74eda Merge "[WPA3] Initialize Suite-B ciphers correctly based on the CA cert type" 2019-03-26 16:14:17 +00:00
TreeHugger Robot
d9ab124d81 Merge "Add a different Wi-Fi Easy Connect entry point" 2019-03-26 15:12:24 +00:00
TreeHugger Robot
dad8b16fa9 Merge "Update the background color of dismissal view to align with notification" 2019-03-26 13:19:27 +00:00
Tony Zhu
14ce904fa3 Merge "Fix VoLTE toggle names for all carriers." 2019-03-26 11:41:58 +00:00
Yanting Yang
62608f6fe7 Optimize latency of NotificationChannelSlice
- Use NotificationBackend.getChannel() in onNotifyChange().
- Record AppRow and use it in getEnabledChannels().

Bug: 123065955
Test: robotests
Change-Id: I92466d31544128f09d599d86fb265997207eb55c
2019-03-26 18:18:48 +08:00
Arc Wang
8ae9717226 Fix Wi-Fi Easy Connect QR code scanner problems
1. When camera area overlaps display cutout, it's onLayout size is 0/0.
   To fix it, use ConstraintLayout to specify width and height in layout file.

2. When scanned a QR code and there is an error, set camera area frame line
   back to unfocused color.

Bug: 124399763
Test: manual test
Change-Id: I7575efd0ccfb58d114acc3dcca6978d68b801f91
2019-03-26 16:07:02 +08:00
Yi-Ling Chuang
1867933f67 Update the background color of dismissal view to align with
notification

Bug: 126214056
Test: visual
Change-Id: Ib5c187d9259b64bcf2081ef911aa2d953248239d
2019-03-26 16:03:01 +08:00
Yi-Ling Chuang
78fbb3cb98 Take out debugging log for blank suggestions
Fixes: 120629936
Test: rebuild
Change-Id: Icabfea8e636bf20bed7b174fc3082949ac37721c
2019-03-26 15:02:35 +08:00
Jason Chiu
5b15c6748e Fix broken tests in WifiSliceTest
Fixes: 129293669
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi.slice
Change-Id: I70bbeb1fcf01ff0569c937c5dd5c9cfa2e8f9b3c
2019-03-26 14:29:41 +08:00
Joel Galenson
22ab71c7c6 Change the permission bar chart to use the new design
- Each bar is now labeled with the permission name and the subtitle is
slightly different.
- Change some string for new design

Test: View screen.
Test: atest PermissionBarChartPreferenceControllerTest
Change-Id: Ia82f9cbb6255d93c38a27b038ae5af3f066eec28
2019-03-26 13:50:35 +08:00