Commit Graph

45678 Commits

Author SHA1 Message Date
Doris Ling
59c8620745 Merge "Update icon for security settings." into pi-dev
am: 3e3b496738

Change-Id: I8c2be3da00c85ac0e1a901d66ed3dfb42e82202a
2018-04-17 16:03:05 -07:00
TreeHugger Robot
13c45045de Merge "Update preference to set password field" into pi-dev 2018-04-17 22:58:54 +00:00
Malcolm Chen
0508cb5c46 Clean Sms raw table when resetting network.
There has been issues when Sms raw table somehow stores orphan
fragments. They lead to garbled message when new fragments come
in and combied with those stale ones. While we work on proper
fixes, one of the options we offer to the user if it happens again,
is to reset all network settings which will clean up this table.

Bug: 77910620
Test: manual test
Change-Id: Ib80c395fb9a1501f35716fdca43df3e5c87893c7
2018-04-17 15:57:18 -07:00
TreeHugger Robot
7298297007 Merge "Fix text alignment with rtl languages in entity header." into pi-dev 2018-04-17 22:51:07 +00:00
Pengquan Meng
8095cfcf72 Merge "Remove wrong usage of DoNotTranslate" 2018-04-17 22:35:24 +00:00
TreeHugger Robot
3e3b496738 Merge "Update icon for security settings." into pi-dev 2018-04-17 22:33:26 +00:00
Fan Zhang
ad2c990f5b Disable autofill on choose password layout am: 014ed74845
am: 99b7fd2d54

Change-Id: Ib87e87aa75c4c7b9bc1ae74424152ad7fd986683
2018-04-17 15:28:06 -07:00
Fan Zhang
99b7fd2d54 Disable autofill on choose password layout
am: 014ed74845

Change-Id: Ibb71a14a55ef0acc304ef3730d6e89bd2f5492e7
2018-04-17 15:13:40 -07:00
ryanywlin
dca308e56d Replace deprecated APIs in audio switcher.
- Remove isWiredHeadsetOn() and isBluetoothA2dpOn()
in MediaOutputPreferenceController.

- Remove isWiredHeadsetOn() and isBluetoothScoOn()
in HandsFreeProfileOutputPreferenceController.

- Replace with AudioManager.getDevicesForStream().

- Update test cases.

Bug: 78141441
Test: make RunSettingsRoboTests ROBOTEST_FILTER="MediaOutputPreferenceControllerTest" -j40
Test: make RunSettingsRoboTests ROBOTEST_FILTER="HandsFreeProfileOutputPreferenceControllerTest" -j40
Test: make RunSettingsRoboTests ROBOTEST_FILTER="AudioOutputSwitchPreferenceControllerTest" -j40
Change-Id: Ic57c40badf0fd5633f1b7412d63a0b5417d0f47a
2018-04-18 05:57:27 +08:00
Doris Ling
f2dce9fac2 Update icon for security settings.
- also fix the issue of dynamic tile icon is being cached and not
updated properly.

Change-Id: I9289260340c1cddc4123fda88c366d658a11ddfc
Fixes: 74255242
Test: visual
2018-04-17 14:33:15 -07:00
Fan Zhang
f0125b830a Fix text alignment with rtl languages in entity header.
TextViews should align at viewStart to make numerics like version
number display in RTL format.

Also cleaned up style so we can share the same style on all entity
header textviews.

Change-Id: I25a93d33e9fb95a9eba7b368438cb33bb67a434a
Fixes: 78173905
Test: visual
2018-04-17 14:30:08 -07:00
Matthew Fritze
fa816e5487 Merge "Add getDescendants to Settings Slice Provider" into pi-dev am: 1257466d0b
am: 9b916e43aa

Change-Id: I80281ec8e58c44cde2dd3bbf7aead88e2c7154dc
2018-04-17 14:27:56 -07:00
Pengquan Meng
4e0c446856 Remove wrong usage of DoNotTranslate
We use the attritube 'translatable="false"' to mark a string that should
not be translated.

Bug: 78187305
Test: no test
Change-Id: I4b80f969a9a5c337e3658debc43fd810350b57eb
2018-04-17 21:25:02 +00:00
Beverly
b74e635270 Merge "Get rid of charging sounds toggle" into pi-dev am: adec029f70
am: cbc6bd837d

Change-Id: Icbbcc62572671aab98a97fb7f28cd4a72a6875ba
2018-04-17 13:59:34 -07:00
TreeHugger Robot
24048a5ee1 Merge "WallpaperTypeSettings use DashboardFragment" 2018-04-17 20:55:26 +00:00
TreeHugger Robot
2ff24e3829 Merge "Migrate UserDictionaryList to DashboardFragment" 2018-04-17 20:53:35 +00:00
Matthew Fritze
9b916e43aa Merge "Add getDescendants to Settings Slice Provider" into pi-dev
am: 1257466d0b

Change-Id: I5c3c1fa93beb2654f56777ff1f4e0a0c35d27f6b
2018-04-17 13:53:33 -07:00
Fan Zhang
014ed74845 Disable autofill on choose password layout
Change-Id: I5f09282cfa07c546172d0921e02db98b4b4c2fff
Fixes: 78173714
Test: manual
2018-04-17 13:33:41 -07:00
Beverly
cbc6bd837d Merge "Get rid of charging sounds toggle" into pi-dev
am: adec029f70

Change-Id: Ied1d520e4119e5a33126d14624865de56456b7bf
2018-04-17 13:31:32 -07:00
Mill Chen
f4b328e723 WallpaperTypeSettings use DashboardFragment
- Build a controller to generate/manage a list of preferences.
- Move some logics to the controller and add tests.

Bug: 73899467
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wallpaper
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.core
Test: atest SettingsGatewayTest UniquePreferenceTest
Change-Id: I519a76ff34bcd4195b0ad6ad406a8f66371923d2
2018-04-17 13:02:08 -07:00
Lei Yu
710d5fc886 Force update all suggestions but app restriction
When there is configuration change(icicle is not null), still
force update all suggestion except app restriction.

App restriction is not stateless: state HANDLED only happens when
there is anomaly and it disappear in next cycle. So we should only
update it when necessary.

Change-Id: Ifb7a1c477962a0c78b5455a5fbc078590fd408f2
Fixes: 77973093
Test: RunSettingsRoboTests
2018-04-17 12:41:25 -07:00
Emily Chuang
5e3718d354 Migrate UserDictionaryList to DashboardFragment
- Build a controller to generate/manage a list of preferences.
- Move some logics to the controller and add tests.

Test: manual
Test: make RunSettingsRoboTests -j
      atest UniquePreferenceTest SettingsGatewayTest
Change-Id: Ia3d885cb8917c7d5498b87818e24b938f0d95dbb
2018-04-17 12:27:24 -07:00
TreeHugger Robot
1257466d0b Merge "Add getDescendants to Settings Slice Provider" into pi-dev 2018-04-17 19:21:20 +00:00
Matthew Fritze
ba7c8e61ce Merge "Update a Slice Uri when unavailable" into pi-dev am: 1ee83ac460
am: 3f82559732

Change-Id: I9924d4a2fe8ce0e9b1eadf27c72f5039abf7265f
2018-04-17 12:17:08 -07:00
Fan Zhang
9d20c4b0ef Merge "Remove empty_search_image from Settings." into pi-dev am: aac0198923
am: fd7afc7429

Change-Id: I9169d296db4ef6a7361434953697882401f16737
2018-04-17 12:13:28 -07:00
TreeHugger Robot
adec029f70 Merge "Get rid of charging sounds toggle" into pi-dev 2018-04-17 19:13:11 +00:00
Matthew Fritze
3f82559732 Merge "Update a Slice Uri when unavailable" into pi-dev
am: 1ee83ac460

Change-Id: I30b6c083af547ca5f0fffb7a8797adba5b89d9a3
2018-04-17 12:01:02 -07:00
TreeHugger Robot
1ee83ac460 Merge "Update a Slice Uri when unavailable" into pi-dev 2018-04-17 18:45:39 +00:00
Fan Zhang
fd7afc7429 Merge "Remove empty_search_image from Settings." into pi-dev
am: aac0198923

Change-Id: If0b4c9c6d37f0a9e0160ff5d59e60d1aa02ae1a3
2018-04-17 11:42:57 -07:00
TreeHugger Robot
aac0198923 Merge "Remove empty_search_image from Settings." into pi-dev 2018-04-17 18:24:33 +00:00
Julia Reynolds
7d5f0bb018 Merge "Show suppression msg under ringer slider" into pi-dev am: 68f331d452
am: 1351e761c8

Change-Id: I71b7a1ce25f3754ef2041419f2ddde33d48fa7e7
2018-04-17 11:22:04 -07:00
Salvador Martinez
d35c8d6706 Update preference to set password field
The preference for the wifi tether password was having the input
type set incorrectly. This could lead to strange keyboard behavior
and the password being remembered by the keyboard which is bad.
This CL sets the appropriate field where needed.

Test: robotests
Bug: 77853620
Change-Id: I2a72fc863cd3779aed98a0df95500b652bb51cc8
2018-04-17 11:02:44 -07:00
Julia Reynolds
1351e761c8 Merge "Show suppression msg under ringer slider" into pi-dev
am: 68f331d452

Change-Id: I0715773ec67f5f0cb18dd23a1cadf42ccc43a9d7
2018-04-17 10:51:18 -07:00
Matthew Fritze
6730a061b1 Add getDescendants to Settings Slice Provider
getDescendants allows another app to collect a list
of all valid Uris for Settings Slices. Important for search,
assistant or launcher apps.

This means searching our database for all valid keys and building
a list of Uris for each of those keys.

Fixes: 77808328
Test: robotests
Change-Id: I3ae27e4661a7dcaab50b091ae2730013118af8a2
2018-04-17 10:48:53 -07:00
Matthew Fritze
7acd13f3e4 Update a Slice Uri when unavailable
When a slice becomes unavailable, it should not update the
underlying data even if the view has not changed.

When we receive a change from an unavailable slice, notifychange
on the Uri and do not change the underlying data.

Change-Id: I91851ab668e4aece669fd65c14e0dc4ec2edefdf
Fixes: 77980406
Test: robotests
2018-04-17 10:43:26 -07:00
Julia Reynolds
68f331d452 Merge "Show suppression msg under ringer slider" into pi-dev 2018-04-17 17:37:06 +00:00
Matthew Fritze
a711ed8330 Add A11y Slices
Add AccessibilityPreferenceController, which wraps all a11y settings
since they are share common infrastructure for enabling, current value,
and availability.

We add an overlay for OEMs to declare their bundled a11y services.
This is the only list of services that will be possible to enabled via
Settings slices.

Accessibility Slices are built by getting a list of valid services,
and indexing the service names as a key in the Slices DB. When they are
built at runtime, they use the generic A11yPrefController to get the status
and enable/disable the service.

Bug: 67997836
Bug: 67997672
Test: robotests
Change-Id: I66f905bf1c55eecb937945c4675c12bcbc96d698
2018-04-17 10:27:02 -07:00
Adrian Roos
243ef1186a Merge "Settings: Add synonyms to display cutout emulation setting" into pi-dev am: fb04d4acf7
am: 6038bc728a

Change-Id: I12e2ebfe43228d89cf23d275909dd12ab0e402bc
2018-04-17 10:20:20 -07:00
Fan Zhang
5685e9065e Remove empty_search_image from Settings.
The image now lives in SettingsIntelligence. Having another copy here
creates deadweight and confusion.

Bug: 74410371
Test: rebuild
Change-Id: Id90fd412a629fcd663cd88cbe5da46e511055adc
2018-04-17 10:15:51 -07:00
Adrian Roos
6038bc728a Merge "Settings: Add synonyms to display cutout emulation setting" into pi-dev
am: fb04d4acf7

Change-Id: I320ed9af17ae1a5b0a5b0a13114ae03d4036921c
2018-04-17 10:03:47 -07:00
TreeHugger Robot
fb04d4acf7 Merge "Settings: Add synonyms to display cutout emulation setting" into pi-dev 2018-04-17 16:43:31 +00:00
Adrian Roos
280589bfe5 Settings: Add synonyms to display cutout emulation setting
Test: Search for "notch" or "display cutout", verify emulation setting shows up
Change-Id: Iaf036c965c233e63d9cc9729a0ecd13d8e6a8881
Fixes: 78163992
2018-04-17 17:22:52 +02:00
Julia Reynolds
0ddba4c119 Show suppression msg under ringer slider
Instead of replacing the rigner slider, because the stream
isn't actually muted.

Change-Id: Id2c60d6c570084ed8febcaeb3b096a487f572312
Fixes: 77641315
Test: robotests
2018-04-17 10:46:47 -04:00
Jeff Chang
91d3e727e2 The Google specific bits should not in AOSP tests.
Remove the "Support & tips" which only exist in Google setting.

Bug:77981983

Test: atest SettingsUITests -j40

Change-Id: I97bdc6d157da85b382b0ee8a655085bda3ceac80
2018-04-17 10:46:15 +00:00
hughchen
ac23bb5d54 Remove the divider
* Remove the divider that below the "Previously connected devices"

Bug: 78153629
Test: Build
Change-Id: I298f3bf396c929f025978431577cba9d6aa5f678
2018-04-17 17:14:42 +08:00
HJ ChangLiao
f3be34e01b Move device detail edit button from menu to header
Move the edit button on Bluetooth device detail,
From action bar menu to header.
Use EntityHeaderController to add and control,
Rename those method because we use them on
more than one place now.

Change-Id: I3afad6baeab80895c109603e2ab13428582a4dd8
Fixes: 76206922
Test: make RunSettingsRoboTests
2018-04-17 12:33:01 +08:00
Mehdi Alizadeh
ccec4e830c Remove swipe up setting page if the feature is not available am: e848603807
am: 788bf1dd39

Change-Id: I75e9ac7d96ce99f42abe2c91aed659dca0607112
2018-04-16 20:04:36 -07:00
Chalard Jean
a035ca8748 Merge "Use the SSID of the network in the no internet dialog" into pi-dev am: 031bee8e6e
am: dc20c794b8

Change-Id: I1727deb8f6298709f5629b734acf6b7a1f174bc2
2018-04-16 19:57:20 -07:00
Pengquan Meng
dd06c985c3 Merge "Fixed ApnEditor crash issue" into pi-dev am: c670be956c
am: 755426d7d8

Change-Id: I575e6775a47a2cd8b8bff3e2ab55309744a72e0a
2018-04-16 19:43:38 -07:00
Mehdi Alizadeh
788bf1dd39 Remove swipe up setting page if the feature is not available
am: e848603807

Change-Id: I915ca786a1af7938e32e28d53468dec1584d5493
2018-04-16 19:23:39 -07:00