ykhung
a711199d8c
Avoid load icon and label in the background for periodic job
...
In the original design, BatteyEntry will load icon and label in the
background thread and cache them into memory, but we don't need such
information in the periodic fetching job. Add a method to disable it to
improve the performance and memory footprint.
Bug: 185207505
Test: make SettingsRoboTests
Test: make SettingsGoogleRoboTests
Change-Id: Iba759256e94159fce243ff4d700a8adf9e92f82c
2021-04-14 09:05:34 +00:00
Edgar Wang
817a167416
Apply SettingsPreferenceTheme in Settings
...
- Set all of preference style inherit from SettingsPreferenceTheme
- Apply to Theme.Settings and Theme.Settings.Home
- Fix robotest failed in ScreenTimeoutSettingsTest
Bug: 185206291
Test: manual & robotest
Change-Id: I855d003b10348569903855fcbf235bc00265658b
2021-04-14 16:36:14 +08:00
Weng Su
087d10a7bc
Fix Wi-Fi tips disappeared issue in airplane mode
...
- The Wi-Fi state will not be called back in the airplane mode, need to
call onWifiStateChanged() to update the initial state of the UI.
- Screenshot:
https://screenshot.googleplex.com/8XJXAGTS5FetGQi
Bug: 173179150
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiSettingsTest
Change-Id: I6d9eae26d6def3bff942f8b01e2ddb453327a7de
2021-04-14 16:32:35 +08:00
Jeremy Goldman
5ad687f487
Merge "Add additional strings to differentiate between single and multiple insecure vpns" into sc-dev am: 21eaa6d568
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14182147
Change-Id: I2a4919a500a57e29689472401bb2f7e9938004a5
2021-04-14 08:01:33 +00:00
Tsung-Mao Fang
0bf3c98b2f
Prevent HTML Injection on the Device Admin request screen
...
The root issue is that CharSequence is an interface.
String implements that interface, however, Spanned class
too which is a rich text format that can store HTML code.
The solution is enforce to use String type which won't include
any HTML function.
Test: Rebuilt apk and see the string without HTML style.
Bug: 179042963
Change-Id: I53b460b12da918e022d2f2934f114d205dbaadb0
2021-04-14 15:51:37 +08:00
Jeremy Goldman
21eaa6d568
Merge "Add additional strings to differentiate between single and multiple insecure vpns" into sc-dev
2021-04-14 07:49:18 +00:00
Jack He
2e22dcc7f2
Merge "BT: Use DeviceConfig for Bluetooth GD toggle" am: 6de2953232 am: ee25171aa1 am: 130f27d48f am: ab38192a1f
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1661159
Change-Id: I1963bc9f049ab66cd3c3150d110c3596c4c83bdb
2021-04-14 07:40:23 +00:00
Kevin Chyn
d7b6b3d54e
Revert "Set ConfirmDeviceCredentialActivity non-external in FRP"
...
This reverts commit ba5e25e3b1 .
Reason for revert: b/183706857
Bug: b/171950236
Change-Id: Icdd1c76ed650539520a2ebf8ece078f17cdf9deb
2021-04-14 07:24:16 +00:00
Jack He
ab38192a1f
Merge "BT: Use DeviceConfig for Bluetooth GD toggle" am: 6de2953232 am: ee25171aa1 am: 130f27d48f
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1661159
Change-Id: Ic39e10b36eff5b009886d7a321575f63ef15ba5c
2021-04-14 06:55:36 +00:00
Ryan Lin
a339d2796f
Merge "Show the illustration with the given button mode" into sc-dev am: 0e35a6fe07
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14167785
Change-Id: I029e585c949308feeb510f5c81b3ab39d668e771
2021-04-14 06:36:00 +00:00
Yanting Yang
fa16844eb1
Use sentence case for display section subheaders
...
Fixes: 184957718
Test: visual
Change-Id: Iba3cdda216d7bf4db4b124886b326a052117f6f4
2021-04-14 06:34:58 +00:00
Jack He
130f27d48f
Merge "BT: Use DeviceConfig for Bluetooth GD toggle" am: 6de2953232 am: ee25171aa1
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1661159
Change-Id: I690e850a6b67125a35e999a4faf86a3454140d3f
2021-04-14 06:07:23 +00:00
Ryan Lin
0e35a6fe07
Merge "Show the illustration with the given button mode" into sc-dev
2021-04-14 05:50:49 +00:00
Syaoran Kuo
f4aca12619
Adds new test for notification.
...
1. Add notification test.
2. Add shareUserId into manifest file.
Test: atest
com.android.settings.notification.AppNotificationComponentTest
Bug: 184814161
Change-Id: I38b7a854e8c8e0777fb7be3a518b7ed9d0f0a7a6
2021-04-14 05:35:38 +00:00
Jack He
ee25171aa1
Merge "BT: Use DeviceConfig for Bluetooth GD toggle" am: 6de2953232
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1661159
Change-Id: Ib4b7dbbc490cbb74954531fbf17b440074cb4447
2021-04-14 05:23:30 +00:00
Tiffany Nguyen
f2e33df51c
Update BatterySettingsFeatureProvider to an activity-friendly interface.
...
Test: no impl
Bug: 181827718
Change-Id: I006c7c253df516981240d49fd2590fa68dabb9f2
2021-04-14 04:50:10 +00:00
Jack He
6de2953232
Merge "BT: Use DeviceConfig for Bluetooth GD toggle"
2021-04-14 04:44:02 +00:00
Jeremy Goldman
eecc97a339
Add additional strings to differentiate between single and multiple
...
insecure vpns
Although in english, the strings can be "N not secure", in other
languages translators have requested that we add "VPN" or "VPNs" after
the number for extra clarity. Thus, we split the string into two
depending on whether there is just one or more than one insecure VPN.
Bug: 184167494
Test: atest -c SettingsUnitTests
Change-Id: I93f0cbec5f22ffcac70ddc2ecf640729eef29c04
2021-04-14 11:52:38 +08:00
TreeHugger Robot
606862ec21
Merge "Add 50% opacity if detect there is no device image yet" into sc-dev am: c9cbe8a572
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14140159
Change-Id: I440ca51636090382a5d682b5217d7010471219a8
2021-04-14 03:48:53 +00:00
YUKAI HUNG
fabbc13d3a
Merge "Export loadNameAndIcon() method out for BatteryDiffEntry reusing." into sc-dev am: 9c68e56389
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14173736
Change-Id: I930aadceac30e84d4563aa7e63d92aa47b2bf71c
2021-04-14 03:48:30 +00:00
TreeHugger Robot
c9cbe8a572
Merge "Add 50% opacity if detect there is no device image yet" into sc-dev
2021-04-14 03:44:16 +00:00
YUKAI HUNG
9c68e56389
Merge "Export loadNameAndIcon() method out for BatteryDiffEntry reusing." into sc-dev
2021-04-14 03:07:33 +00:00
YUKAI HUNG
eb3e1282d2
Merge "Load application icon and label from package manager if available" into sc-dev am: 8d8877b6db
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14167798
Change-Id: Ia510ea9e9af9549bd46ac54e8ee3271909a89472
2021-04-14 02:37:17 +00:00
YUKAI HUNG
8d8877b6db
Merge "Load application icon and label from package manager if available" into sc-dev
2021-04-14 01:58:37 +00:00
sallyyuen
fefb447526
Call ColorDisplayManager for Extra Dim/RBC state
...
- Move junit test into unit test folder
- Settings resources ids are different from the junit test ids
so we need to find the correct resource id
- ColorDisplayManager will not update in time before the controller
is checked, and it can't be mocked since it's a final class
Bug: 170970675
Test: manual, atest ReduceBrightColorsPreferenceControllerTest
Change-Id: I57bfdd8294c5b6e147b4e11ae97b6b56f6121343
2021-04-13 17:42:25 -07:00
Dmitri Plotnikov
6af2e84cd3
Merge "Adjust for changing BatteryUsageStats constructor" into sc-dev am: 26db6e5f8e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14162520
Change-Id: I1a200e6e9d517b93479d6b009b36c594a4fc607a
2021-04-13 23:53:57 +00:00
Dmitri Plotnikov
26db6e5f8e
Merge "Adjust for changing BatteryUsageStats constructor" into sc-dev
2021-04-13 23:44:29 +00:00
Dmitri Plotnikov
470839a3b7
Remove references to POWER_COMPONENT_USAGE and TIME_COMPONENT_USAGE
...
Bug: 184397335
Test: enable fake data, rebuild and restart Settings/Battery
Change-Id: I1a5825a0e324c7884fc900e7cea9f38a9153253c
2021-04-13 15:39:26 -07:00
TreeHugger Robot
f79708058a
Merge "Update getOwnersForDomain usage to SortedSet" into sc-dev am: ea4ab07b63
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14173190
Change-Id: I1d67d76e203fa81960bb170f2d1bfb19f56b31f2
2021-04-13 22:27:36 +00:00
TreeHugger Robot
ea4ab07b63
Merge "Update getOwnersForDomain usage to SortedSet" into sc-dev
2021-04-13 21:54:12 +00:00
Sally Yuen
17cc9ffd93
Merge "Add a banner for RBC/Extra Dim" into sc-dev am: 12166e5bb1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14165431
Change-Id: I3b39af9acf487e2372421ddef808d3e6deb93379
2021-04-13 21:42:51 +00:00
Jack He
8cc23bd2fe
BT: Use DeviceConfig for Bluetooth GD toggle
...
Bug: 184235563
Test: make and toggle GD settings, unit test
Change-Id: I643339f80a82950b1b1ffcf60830f93a955e6666
2021-04-13 20:31:38 +00:00
ykhung
8483ea48b9
Export loadNameAndIcon() method out for BatteryDiffEntry reusing.
...
Bug: 185187669
Test: make SettingsRoboTests
Test: make SettingsGoogleRoboTests
Change-Id: Iedb37546f6f08751174d977d962aec44539f2fb8
2021-04-14 01:01:48 +08:00
Sally Yuen
12166e5bb1
Merge "Add a banner for RBC/Extra Dim" into sc-dev
2021-04-13 16:18:57 +00:00
Winson
3cb64ab6ad
Update getOwnersForDomain usage to SortedSet
...
From API feedback, the return type of this method was updated.
Migrating was fairly simple.
Bug: 184891031
Test: manual, launch settings screen on device
Change-Id: Ic159093b5d3f592de0b3533cf26bf0c878e06a30
2021-04-13 08:40:14 -07:00
ykhung
db88c994b4
Load application icon and label from package manager if available
...
Bug: 185187669
Test: make SettingsRoboTests
Test: make SettingsGoogleRoboTests
Change-Id: Id612f0f1db51d538abb41fc711b9350d9a147cb8
2021-04-13 23:12:12 +08:00
ryanlwlin
2c5570e9fc
Show the illustration with the given button mode
...
Currently we support two modes of software shortcut.
We should change the illustration depending on the mode.
Bug: 185193333
Test: manually test
Change-Id: I54f800ead984c22cebec1de4ac15c022b0bcbb3d
2021-04-13 16:21:41 +08:00
Weng Su
96f73e20aa
Merge "[Provider Model] Move down the Internet unavailable Wi-Fi" into sc-dev
2021-04-13 07:53:47 +00:00
YUKAI HUNG
1871275fbf
Merge changes I7771a43b,If613c5cf into sc-dev
...
* changes:
Inserts last 24 hour agrregate data into indexed usage map
Add a method to calculate battery usage diff results from history
2021-04-13 06:08:18 +00:00
Hugh Chen
97660dd1f4
Add 50% opacity if detect there is no device image yet
...
Screenshot:
https://screenshot.googleplex.com/Ah9DKn85S3AWB4r.png
Bug: 177901821
Test: build pass and manual test
Change-Id: Ia5142cdd1cf105d978043987ad92c5c4e8c79e0c
2021-04-13 12:05:28 +08:00
ykhung
0d54b75b2c
Inserts last 24 hour agrregate data into indexed usage map
...
Bug: 184807417
Test: make SettingsRoboTests
Test: make SettingsGoogleRoboTests
Change-Id: I7771a43baf74b36a816883dd6b6a91128f827cf4
2021-04-13 11:59:28 +08:00
Wesley Wang
6f0a0da428
Merge "Reorder battery tips priority" into sc-dev
2021-04-13 03:56:46 +00:00
TreeHugger Robot
8c655662af
Merge "Fix nit from ag/13715126" into sc-dev
2021-04-13 03:32:59 +00:00
TreeHugger Robot
d8c11f5236
Merge "Integrate new version of MDC-android release" into sc-dev
2021-04-13 03:14:49 +00:00
TreeHugger Robot
94f4aeed44
Merge "Update manage battery usage page string (1/2)" into sc-dev
2021-04-13 02:31:50 +00:00
TreeHugger Robot
3c8e922357
Merge "Fix the backcolor problem in Display/Font size page" into sc-dev
2021-04-13 02:23:00 +00:00
Weng Su
6884d63824
[Provider Model] Move down the Internet unavailable Wi-Fi
...
- Move down the Internet unavailable Wi-Fi to the top of the available
Wi-Fi networks
- Don't paint color for the Internet unavailable Wi-Fi
- Screenshot:
https://screenshot.googleplex.com/94NotfJLKXSbBW9
Bug: 178457619
Bug: 178926547
Bug: 178978070
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest
Change-Id: I1c98e2a8793ce9dc2fb886c0fa66f4297a34ab01
2021-04-13 10:04:33 +08:00
TreeHugger Robot
086fb08d76
Merge "Update string" into sc-dev
2021-04-13 01:59:35 +00:00
sallyyuen
fbdb01dc87
Add a banner for RBC/Extra Dim
...
Screenshot: https://screenshot.googleplex.com/5kumq7ruwCzd6vC.png
Test: Manual
Bug: 170973645
Change-Id: Iea9d90ded5fc393b78e724ec10bc83ff7295965c
2021-04-13 01:07:26 +00:00
Jay Aliomer
7f0888a6a0
Merge "Notif History Visual Buff" into sc-dev
2021-04-12 20:40:52 +00:00