Commit Graph

77267 Commits

Author SHA1 Message Date
Bill Yi
434bffe9e2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I14b1b7cb5aac3ce15594e0fe470b447e0adf72d6
2020-09-24 12:49:23 -07:00
Joshua Duong
e04e9a508d [adbwifi] wireless debugging qstile long-press to WirelessDebuggingFragment.
Previously, long-pressing any developer options quick settings tiles
redirects to the application info page for Settings app. The manifest
change makes the long-press by default, go into the developer options
page.

Also, there's a check if the long-press came from the wireless debugging
tile so it can launch the WirelessDebuggingFragment.

Bug: 153275926

Test: Enable the wireless debugging qstile in developer options.
Then long-press the wireless debugging tile, which should direct you to
the WirelessDebuggingFragment. Also, enable any other qstile and
long-press them. It should direct you to the developer options page
instead of the application info page.

Change-Id: Id495e5c978005c21d0f33b949d7c410100bf3cf5
2020-09-24 18:17:42 +00:00
Jeremy Goldman
163880f3d2 Merge "create junit MobileNetworkPreferenceControllerTest." am: 29dda35456
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12672443

Change-Id: Ie94228e565b6f286d4c6ef8f638aae7c84be5768
2020-09-24 14:55:39 +00:00
Jeremy Goldman
29dda35456 Merge "create junit MobileNetworkPreferenceControllerTest." 2020-09-24 14:42:15 +00:00
tim peng
8f8272c308 Merge "Set highest priority as default value to Bluetooth codec" am: 594849082b am: d3a9f472a2 am: f01d260512 am: 3501adcc86 am: 0c786c8321 am: 031b364e40
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1435258

Change-Id: I596a1e90f0c386db89321ba5c3db8ee5d6eaaaca
2020-09-24 13:39:52 +00:00
TreeHugger Robot
91894df24a Merge "Guard against flickering of dynamic injection items" into rvc-qpr-dev am: 28b05910d8 am: d2f2f4b13e am: 2cb6dd369c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12682503

Change-Id: Ib33cdc5f75bfbe702f540e757e85cbd4a8482225
2020-09-24 13:39:45 +00:00
tim peng
031b364e40 Merge "Set highest priority as default value to Bluetooth codec" am: 594849082b am: d3a9f472a2 am: f01d260512 am: 3501adcc86 am: 0c786c8321
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1435258

Change-Id: I09e625e2d827d871a660f07b68d3184083baddd7
2020-09-24 13:30:52 +00:00
tim peng
0c786c8321 Merge "Set highest priority as default value to Bluetooth codec" am: 594849082b am: d3a9f472a2 am: f01d260512 am: 3501adcc86
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1435258

Change-Id: I336bae8e93101a682eea6b51f08c52fb83cc1fc9
2020-09-24 13:21:55 +00:00
TreeHugger Robot
2cb6dd369c Merge "Guard against flickering of dynamic injection items" into rvc-qpr-dev am: 28b05910d8 am: d2f2f4b13e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12682503

Change-Id: I5fa97bb1a3feac16a64fd74696aa6713b8aeb2aa
2020-09-24 13:21:52 +00:00
tim peng
3501adcc86 Merge "Set highest priority as default value to Bluetooth codec" am: 594849082b am: d3a9f472a2 am: f01d260512
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1435258

Change-Id: Iaaef48f2af763fb1905596205bedd6b33574750e
2020-09-24 13:05:41 +00:00
TreeHugger Robot
d2f2f4b13e Merge "Guard against flickering of dynamic injection items" into rvc-qpr-dev am: 28b05910d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12682503

Change-Id: I9bbb023a738a2d58e178b8dc78e19a5d70a28feb
2020-09-24 13:05:22 +00:00
tim peng
f01d260512 Merge "Set highest priority as default value to Bluetooth codec" am: 594849082b am: d3a9f472a2
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1435258

Change-Id: I92cf2605c1e9ee48abedc483a1e461d196b09ef2
2020-09-24 12:39:06 +00:00
TreeHugger Robot
28b05910d8 Merge "Guard against flickering of dynamic injection items" into rvc-qpr-dev 2020-09-24 12:32:20 +00:00
tim peng
d3a9f472a2 Merge "Set highest priority as default value to Bluetooth codec" am: 594849082b
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1435258

Change-Id: Ie0aed850c6d0818070d162f4e99c633dc50ef204
2020-09-24 12:02:53 +00:00
tim peng
594849082b Merge "Set highest priority as default value to Bluetooth codec" 2020-09-24 11:48:51 +00:00
pihuei
59e3fa1a3e deprecated applyPartnerCustomizationStyle
change applyPartnerCustomizationStyle to applyPartnerCustomizationHeavyStyle

Bug: 162723150
Test: manual
Change-Id: Ie13b1e2cd372582236a8244cee5671e0a4b239c6
2020-09-24 19:12:14 +08:00
Edgar Wang
63d3084c00 Update owner list
Change-Id: I68214eb2a7d15d467d9fdca687b909933fc8bc4a
Test: manual
2020-09-24 10:18:08 +00:00
Jason Chiu
a7d76af933 Guard against flickering of dynamic injection items
The summary of injected items may flicker when the data is change from
URI.

Root cause:
If an external app injects an entry to Settings with a dynamic summary,
Settings will observe the summary change via the provideed URI. However,
sometimes when Settings observes the data change and then refreshes the
UI, the data doesn't really change and settings still gets the same
summary. If it happens in a short period, the summary will seem
flickering.

Solution:
Check if the data really changes before refresh UI. Guard both title and
summary.

Fixes: 168309941
Fixes: 166785977
Test: robotest
Change-Id: I137fc317dcfd8919195c10fa8cf7d2559fe1029d
2020-09-24 17:25:48 +08:00
Treehugger Robot
8b394490a8 Merge "Modify Wi-Fi settings owners file" am: 9d4bc729d9 am: 37be325d99 am: b28e9291ec am: b6aa1db254 am: 058fe396c3 am: 5840576d2c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432713

Change-Id: I220da6cd669112b88990bae31991de2e29524594
2020-09-24 07:55:34 +00:00
Treehugger Robot
5840576d2c Merge "Modify Wi-Fi settings owners file" am: 9d4bc729d9 am: 37be325d99 am: b28e9291ec am: b6aa1db254 am: 058fe396c3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432713

Change-Id: Ib2308be4afab8ee76b697659389edc07f7435231
2020-09-24 07:28:06 +00:00
Treehugger Robot
058fe396c3 Merge "Modify Wi-Fi settings owners file" am: 9d4bc729d9 am: 37be325d99 am: b28e9291ec am: b6aa1db254
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432713

Change-Id: I2eb5a9f13fa3943f6263edbccb138005dfceae67
2020-09-24 07:12:26 +00:00
Treehugger Robot
b6aa1db254 Merge "Modify Wi-Fi settings owners file" am: 9d4bc729d9 am: 37be325d99 am: b28e9291ec
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432713

Change-Id: I5b73f4ca105ae2584db008e87372dd52f4c2211c
2020-09-24 06:22:23 +00:00
Treehugger Robot
b28e9291ec Merge "Modify Wi-Fi settings owners file" am: 9d4bc729d9 am: 37be325d99
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432713

Change-Id: Ic856efa4218938ba4b05d0003fcd266f6e5f1a42
2020-09-24 06:00:40 +00:00
Treehugger Robot
37be325d99 Merge "Modify Wi-Fi settings owners file" am: 9d4bc729d9
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432713

Change-Id: I4ca6e91aeba1cf349255101c0fe1629dc80aeaee
2020-09-24 05:43:13 +00:00
Treehugger Robot
9d4bc729d9 Merge "Modify Wi-Fi settings owners file" 2020-09-24 05:24:27 +00:00
timhypeng
a45a0e8980 Set highest priority as default value to Bluetooth codec
-To set highest priority when codec modification comes from development setting

Bug: 165442632
Test: make -j42 RunSettingsRoboTests
Change-Id: I8cfbaa276f3b3e269f4a80e8aae987fbb90f646e
2020-09-24 12:01:01 +08:00
Kevin Chyn
282f092837 Merge "Update settings together with frameworks/base" am: 9096f09405
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12666925

Change-Id: I010dcccffb0a88eec07bf088d5a24c00d692c94e
2020-09-23 21:48:26 +00:00
Kevin Chyn
9096f09405 Merge "Update settings together with frameworks/base" 2020-09-23 21:33:35 +00:00
Jeremy Goldman
6620c84d89 create junit MobileNetworkPreferenceControllerTest.
1. androidx lifecycle used rather than settingslib wrapper. This allows
us to handle lifecycle events from junit tests as well.
2. Use Mocks or get/set functions rather than robolectric shadows.

MobileNetworkPreferenceControllerTest Diff:
    https://diff.googleplex.com/#key=5P0b2G4iYmcz
Test: atest -c MobileNetworkPreferenceControllerTest
Change-Id: If49fe64e5db89a0cdcac7d26329b8c18626a00de
2020-09-23 17:26:14 +00:00
SongFerng Wang
6ba136a86d Merge "Fix for incorrect display of preferred network type on UI" am: bb25d4841c am: 59996190cc am: 14d4ca3cc0 am: f4e466d20c am: e149bf93b3 am: 1fa6f33033
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1431699

Change-Id: Ie199cc8892b0da09d2faa31856221c74880b2a9b
2020-09-23 12:07:26 +00:00
SongFerng Wang
1fa6f33033 Merge "Fix for incorrect display of preferred network type on UI" am: bb25d4841c am: 59996190cc am: 14d4ca3cc0 am: f4e466d20c am: e149bf93b3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1431699

Change-Id: Ifc97dcc346e0457098c12f53fe4c641ce7e3ddc4
2020-09-23 11:30:24 +00:00
SongFerng Wang
e149bf93b3 Merge "Fix for incorrect display of preferred network type on UI" am: bb25d4841c am: 59996190cc am: 14d4ca3cc0 am: f4e466d20c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1431699

Change-Id: I12a4d0f18bbffd891e46d3e6bef880cbe74eee34
2020-09-23 11:02:25 +00:00
SongFerng Wang
f4e466d20c Merge "Fix for incorrect display of preferred network type on UI" am: bb25d4841c am: 59996190cc am: 14d4ca3cc0
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1431699

Change-Id: Icfb3a897844380990971bab39e19ef1d137e2b53
2020-09-23 10:36:19 +00:00
SongFerng Wang
14d4ca3cc0 Merge "Fix for incorrect display of preferred network type on UI" am: bb25d4841c am: 59996190cc
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1431699

Change-Id: I09f8fc61950baac0f3d987efe84c7c6aaa6c5c13
2020-09-23 09:50:37 +00:00
changbetty
c707b90d0a [Testing] Use AndroidJUnit4 instead in telephony/cdma/ test files
1. Use AndroidJunit4 instead of RobolectricTestRunner
2. Use ApplicationProvider instead of RuntimeEnvironment to get context
3. Change Copy Right
4. To get the original value and add @After to restore the data

Bug:
Test: atest -c CdmaListPreferenceTest
      atest -c CdmaSubscriptionPreferenceControllerTest
      atest -c CdmaSystemSelectPreferenceControllerTest
Change-Id: I110727b643a6755ee888708bd1fb2a39cf524a2d
2020-09-23 17:46:30 +08:00
SongFerng Wang
59996190cc Merge "Fix for incorrect display of preferred network type on UI" am: bb25d4841c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1431699

Change-Id: I51e37f71b93af68a88c989b29a0230d3c771e26b
2020-09-23 09:10:26 +00:00
Mill Chen
39b7d2d302 [automerger skipped] Update battery saver preference key am: 19843031ae am: a740b65932 -s ours am: ef39404b28 -s ours
am skip reason: Change-Id Ifb5b0a6786d60d1e67567272610cc3cb078f11a4 with SHA-1 db534d9c4e is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12369339

Change-Id: Iedfe30671d17aeec561e8a0c740103792ebe246d
2020-09-23 09:09:59 +00:00
Hugh Chen
49fbc8fdb0 Fix output switcher will display previous media session
Before this CL, the same request code will cause intent to
be cached. It will cause the output switcher to display the
previous media session.

This CL uses the package name as an unique request code to
fix this issue.

Bug: 169077753
Test: make -j42 RunSettingsRoboTests
Change-Id: Iebfc7904609e243d5bf0222307bae98a952a3331
Merged-In: Iebfc7904609e243d5bf0222307bae98a952a3331
(cherry picked from commit c3fe8d87d6)
2020-09-23 09:06:10 +00:00
SongFerng Wang
bb25d4841c Merge "Fix for incorrect display of preferred network type on UI" 2020-09-23 08:49:19 +00:00
Mill Chen
ef39404b28 [automerger skipped] Update battery saver preference key am: 19843031ae am: a740b65932 -s ours
am skip reason: Change-Id Ifb5b0a6786d60d1e67567272610cc3cb078f11a4 with SHA-1 db534d9c4e is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12369339

Change-Id: I1907d8ec0568ae40e5e13749a0840de35acf0a1e
2020-09-23 08:48:10 +00:00
Mill Chen
a740b65932 Update battery saver preference key am: 19843031ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12369339

Change-Id: Ibbedebc554c0566157f28f9fc95e60b3ca9f142f
2020-09-23 08:27:42 +00:00
Wesley.CW Wang
b1a0f52dc0 Add intent extra when launching WallpaperPicker from SUW and Settings am: ff0e65c7f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12535123

Change-Id: I6a395314c12bd7c2bfcce4ff434bac2deac905b2
2020-09-23 08:27:35 +00:00
Wesley.CW Wang
ff0e65c7f7 Add intent extra when launching WallpaperPicker from SUW and Settings
- Add extra to these intents to help WallpaperPicker log the launch
 source

Bug: 154781896
Test: make SettingsRoboTests
Change-Id: Ifb0ed22ab8ebfbb3c2ad24e9b7bad80007162b6e
2020-09-23 08:06:52 +00:00
Kevin Chyn
8d63b98272 Update settings together with frameworks/base
Bug: 169195610
Test: Builds
Change-Id: I2c732dba78eb8c90ef71351562415e06949b31bb
2020-09-23 00:17:56 -07:00
Betty Chang
6c7ce0f89a Merge "[Telephony settings] Settings crashes when rotate screen in Preferred network type" am: 18e1a7c047 am: df73f7e090 am: c8f766c6d3 am: 1555c9b8e5 am: 6d6d8ff074 am: a6575f9bb8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432711

Change-Id: Ib561525b848bc9067d26f30f6d16c12faffea2e2
2020-09-23 04:06:54 +00:00
Jason Chiu
4f384afafc [automerger skipped] Merge "Fix the ANR in panel when changing volume continuously" into rvc-qpr-dev am: c3ed62e3ae am: 8c26c4f2f7 -s ours am: f6e6fc9e35 -s ours
am skip reason: Change-Id I780b9eee35802b19a5f0ab0a7d07bd3e081f5556 with SHA-1 2c7b77dad7 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12652533

Change-Id: Ifef794f97ce20c8a09c32d0f5de352dd32343c42
2020-09-23 04:06:45 +00:00
Jason Chiu
55a4f7c443 [automerger skipped] Merge "Fix the endless panel loading" into rvc-qpr-dev am: a78af692c6 am: c0468c4814 -s ours am: 6f3773fc15 -s ours
am skip reason: Change-Id I821faedeb62354929f3af9804cbbe44ee5bb8a53 with SHA-1 6a8d2c5e55 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12652532

Change-Id: Icc458d0b5557b9095d3ebe62bf0677b9e4760442
2020-09-23 04:06:13 +00:00
TreeHugger Robot
6c0a5423c6 Merge "Fix output switcher will display previous media session" am: 4ffea906c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12660446

Change-Id: I41756688c59993f4696b3dfc760e74bf439f3f74
2020-09-23 04:05:34 +00:00
Betty Chang
a6575f9bb8 Merge "[Telephony settings] Settings crashes when rotate screen in Preferred network type" am: 18e1a7c047 am: df73f7e090 am: c8f766c6d3 am: 1555c9b8e5 am: 6d6d8ff074
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1432711

Change-Id: Ibea737bff7d7e05f51b92363fed921742e7b8748
2020-09-23 04:04:41 +00:00
Jason Chiu
f6e6fc9e35 [automerger skipped] Merge "Fix the ANR in panel when changing volume continuously" into rvc-qpr-dev am: c3ed62e3ae am: 8c26c4f2f7 -s ours
am skip reason: Change-Id I780b9eee35802b19a5f0ab0a7d07bd3e081f5556 with SHA-1 2c7b77dad7 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12652533

Change-Id: I32f32ce977de0b1e0a9c98f9e603d12c6db1f124
2020-09-23 04:04:34 +00:00