Commit Graph

9740 Commits

Author SHA1 Message Date
YK Hung
1face46f7f Merge "Remove batterySaverScheduleProvide checking from BatterySaverUtils" 2022-11-15 02:51:21 +00:00
Zekan Qian
90e81227d9 Merge "Support slice in Spa." 2022-11-14 15:35:38 +00:00
Caitlin Shkuratov
0746550f0b Merge changes from topic "caitlinshk-dock-defend-initial" into tm-qpr-dev am: 879714254a am: 5bbd3ec373
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20454811

Change-Id: I26a5abb80e989108c94b81612af7db688af802ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 15:30:11 +00:00
Caitlin Shkuratov
5bbd3ec373 Merge changes from topic "caitlinshk-dock-defend-initial" into tm-qpr-dev am: 879714254a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20454811

Change-Id: I74e233d2b3f566108a29752e78e9a37327314166
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 14:55:26 +00:00
ykhung
2de8df0f9b Remove batterySaverScheduleProvide checking from BatterySaverUtils
Rset the save schedule mode into none directly if the current mode is
routine, since the 'schedule by routine' is removed from saver setting

Bug: 258603978
Test: make RunSettingsLibRoboTests -j40
Change-Id: I261737e5c0ae23ceac7bd4b1b8d45526a60b2899
2022-11-14 22:48:12 +08:00
Chaohui Wang
5552ef58a9 Merge "Set BUILD_TOOLS_VERSION for Spa" 2022-11-14 11:02:45 +00:00
Zekan Qian
1510991eb1 Support slice in Spa.
Add slice API.
Add demo provider & demo presenter.
Add AllSlice page in Debug Activity.
Build end-to-end workflow to support Slice.

Bug: 244122804
Test: unit-test & local build gallery
Change-Id: I185f1442882cf0ed168b1fbf8e68bc70905aa8c4
2022-11-14 18:48:44 +08:00
Chaohui Wang
689f2d86c4 Set BUILD_TOOLS_VERSION for Spa
Bug: 253772249
Test: Gradle Sync
Test: Run Gallery
Change-Id: Ice8d664f3023cab01485bb5f7045312e60aeb4bb
2022-11-14 15:12:00 +08:00
Chaohui Wang
353350bda6 Merge "Fix AppStorageSizeTest" 2022-11-14 06:51:12 +00:00
Zekan Qian
84359ed4be Merge "Use name as fallback of displayName" 2022-11-14 04:00:06 +00:00
Chaohui Wang
9344747aca Fix AppStorageSizeTest
Bug: 236346018
Test: atest SpaPrivilegedLibTests
Change-Id: Ic6e5145011a6c3f2ff8550b6ffc02c8c10b2353a
2022-11-14 11:24:30 +08:00
Chaohui Wang
9fb9fee9f3 Merge "Refresh the AppList for changes" 2022-11-12 03:55:00 +00:00
Caitlin Shkuratov
1b65e52344 [Dock Defend] Add an optional shield to the status bar battery drawable.
The shield will be displayed when the battery is marked as overheated.

Bug: 255625888
Test: manual: issue `adb shell am broadcast -a com.android.systemui.demo
-e command battery -e overheated true` and verify the battery icon
displays a shield
Test: See bug for manual demo video
Test: statusbar.battery tests

Change-Id: I6b3036ae47ad7b5ae8dc78f83d019130935c9b50
2022-11-11 19:13:49 +00:00
Iván Budnik
4e72b9846e Merge "Rename selectRoute(String, MediaRoute2Info) to transfer()" 2022-11-11 11:17:46 +00:00
Zekan Qian
5b018c5c74 Use name as fallback of displayName
Bug: 244122804
Test: unit-test & build gallery
Change-Id: Ia683892900f78362fd66acc7189a57b0e51a4517
2022-11-11 07:35:07 +00:00
Ankita Vyas
c581a47329 Merge "Add a new field showInPersonalTab in AppEntry." 2022-11-11 07:17:48 +00:00
Zekan Qian
83a9678c9b Merge "Rename EntryProvider as SpaSearchProvider" 2022-11-10 23:21:44 +00:00
Evan Laird
78ec23dadf Merge "Enable network type icon overlays by carrier Id" into tm-qpr-dev am: 559acbfde9 am: d1f06053b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20385809

Change-Id: I95938dd0fae3eb631b97b2bfcb1479f5b26fb268
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 20:24:28 +00:00
Evan Laird
d1f06053b0 Merge "Enable network type icon overlays by carrier Id" into tm-qpr-dev am: 559acbfde9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20385809

Change-Id: I103f34d87bf9656ae52c37bd13db8cd715e11284
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 20:10:38 +00:00
Evan Laird
559acbfde9 Merge "Enable network type icon overlays by carrier Id" into tm-qpr-dev 2022-11-10 20:01:23 +00:00
Evan Laird
bb7f96387d Enable network type icon overlays by carrier Id
This CL builds out a new configuration resource
`carrierid_icon_overrides`, and a format that allows for overriding a
known network type with an arbitrary icon.

We store a mapping of all known carrierId overrides that exist, and
check for an override for the `carrierId & networkType` combination at
runtime.

This CL also caches the calculation in SystemUI since it represents a
new expensive calculation potential at the time of display for the icon.

Lastly, add demo mode command parsing for carrierId

Test: atest MobileStateTest; atest NetworkControllerDataTest
Test: manual using `-e carrierid <id>` network subcommand
Bug: 241996752
Change-Id: Id0e8acf179db5c3a70f4caf31e58f8d8040690a0
2022-11-10 10:04:50 -05:00
Zekan Qian
98b32e0a06 Rename EntryProvider as SpaSearchProvider
Remove GalleryEntryProvider, use SpaSearchProvider directly.

Bug: 244122804
Test: unit-test & local build gallery
Change-Id: I86c63f45dee279d98dc517bbbac292b5e0bcb3bc
2022-11-10 17:51:39 +08:00
“Ankita
3b658c49e0 Add a new field showInPersonalTab in AppEntry.
Cloned apps should be displayed in the personal tab only and not in new
tab. Hence modify the personal tab filter to include apps whose user
profile has the property set as
UserPropert.SHOW_IN_SETTINGS_WITH_PARENT. Likewise also mofify the work
tab filter to not display these apps.

Bug: 248204976
Test: manual (verfied with primary, clone and managed profile present on
device at the same time)
Test: make RunSettingsLibRoboTests -j40 ROBOTEST_FILTER=ApplicationsStateRoboTest
Test: atest ApplicationsStateTest

Change-Id: I619f2bfe65837e30bfbcdecd43314f735d03b321
2022-11-10 08:00:12 +00:00
Chaohui Wang
cef8c91bae Merge "Add CustomizedLargeTopAppBar for Spa" 2022-11-10 05:38:07 +00:00
Iván Budnik
5bf22a1ffc Rename selectRoute(String, MediaRoute2Info) to transfer()
The new method represents the real underlying operation, which is a
routing session transfer to a different device. The appropriate method
for route selection is selectRoute(RoutingSessionInfo, MediaRoute2Info).

This change is a non-functional refactor.

Bug: 238178508
Bug: 205124386
Test: atest CtsMediaBetterTogetherTestCases MediaDeviceTest
MediaRouter2Manager InfoMediaManagerTest

Change-Id: Ic199686849365138049ccb73189bbc03703117b1
2022-11-09 14:57:47 +00:00
Bill Yi
781d4fcf4e Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-11-09 06:15:57 +00:00
Chaohui Wang
7c3abc7a6b Refresh the AppList for changes
The AppList will reload the apps when every on start, it will also
register a broadcast receiver for package changes.

Bug: 235727273
Test: Manually with Settings
Test: Unit test
Change-Id: Iddc39f73db1cb6cc6a2d5e1f6dc459f46f7cdbb8
2022-11-09 12:11:06 +08:00
Chaohui Wang
3af9abb241 Add CustomizedLargeTopAppBar for Spa
With this, we can align the TopAppBar's font size & height with current
Settings.

Bug: 235727273
Test: Manually with Gallery
Test: Manually with Settings
Change-Id: Ieb60350b15c5f251f6369637b9eb572f78cc535b
2022-11-07 16:31:52 +08:00
Chaohui Wang
c325a32c2b Add new SpaLibTestUtils
This will contains the TestUtils.

Bug: 235727273
Test: Unit test
Change-Id: I38f4e635e39ef37e1436772c9f63b434a2c3005e
2022-11-07 10:48:22 +08:00
Bill Yi
d773a4f316 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic832f89d75edcb5f010bff69e029a74424264ec2
2022-11-06 13:41:29 -08:00
Bill Yi
4d38190105 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If53a956c23e35b3240ec8b45aa7f9d12b86c2966
2022-11-06 13:39:13 -08:00
Zekan Qian
67aa0f1641 Merge "Add test on spa.framework.common" 2022-11-03 12:24:32 +00:00
TreeHugger Robot
77198bb556 Merge "Upgrade navigation-compose to 2.6.0-alpha03" 2022-11-03 10:47:50 +00:00
Chaohui Wang
310a47b5b0 Upgrade navigation-compose to 2.6.0-alpha03
Also change MPAndroidChart's implementation to api.

Bug: 235727273
Test: Unit test
Test: Manual with Gallery App
Change-Id: I34f6b3881c068d9c17692b6bfd4d72f249758c24
2022-11-03 16:44:07 +08:00
Chaohui Wang
6f45b490fa Merge "Add header for AppList" 2022-11-03 06:20:25 +00:00
Zekan Qian
f8b4b7ae76 Add test on spa.framework.common
Bug: 256582545
Test: unit-test
Change-Id: I17f20ce7132953b5b0f761ef4f3c678a501b4c12
2022-11-03 05:07:02 +00:00
Treehugger Robot
94f38a8411 Merge "Make sure view is laid out before calling createBitmap" am: 13b8faaaa1 am: d33d089b71 am: d6fe5c106c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216261

Change-Id: Id52db20ac11afa3239ed681b5e8eb3d038a3e196
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 03:25:17 +00:00
Treehugger Robot
d6fe5c106c Merge "Make sure view is laid out before calling createBitmap" am: 13b8faaaa1 am: d33d089b71
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216261

Change-Id: I46dfeca84109f740810e10fdea22c5f5913d3845
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 03:12:57 +00:00
Treehugger Robot
d33d089b71 Merge "Make sure view is laid out before calling createBitmap" am: 13b8faaaa1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216261

Change-Id: I3a331964b60784bb3f4d5bbcd32b55c87a330e45
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 02:45:36 +00:00
Angela Wang
d35f219bc5 Merge changes from topic "settingslib-hap"
* changes:
  Integrates Bluetooth HAP service client into SettingsLib (3/3)
  Integrates Bluetooth HAP service client into SettingsLib (2/3)
  Integrates Bluetooth HAP service client into SettingsLib (1/3)
2022-11-03 01:18:39 +00:00
Chaohui Wang
61311da7f2 Add header for AppList
Default no header, when added, displayed before all the apps.

Also add unit tests for AppList.

Bug: 235727273
Test: Unit test
Change-Id: Ie4f45c4334d110a5ccd5d7d6cedc95d90bb10134
2022-11-02 19:28:35 +08:00
Chaohui Wang
93c598059b Merge "Fix SettingsFontFamily when config is empty" 2022-11-02 08:42:42 +00:00
Chaohui Wang
039756dc93 Fix SettingsFontFamily when config is empty
Some device or when Compose preview, the font config is empty.

Use the default font family when the config is empty to fix.

Bug: 235727273
Test: Unit test
Test: Manual with Gallery App
Change-Id: Ifd9c5bbc3d446e5fdb5f393ad994c7545656ead6
2022-11-02 13:40:44 +08:00
Kelly Zhang
50627b15ef Merge "Add a Chart Widget for Settings for in SPA. The chart widget supports line chart, pie chart and bar chart." 2022-11-02 05:03:33 +00:00
Shen Lin
2dd9562c55 Make sure view is laid out before calling createBitmap
This CL contains two fixes:

- Make sure view is laid out before calling createBitmap.

- Organize some field declarations.

Bug: 246412041

Test: manual
Change-Id: Icd5637086b3935afe89743472e68bbd3a6102222
2022-11-02 10:25:26 +08:00
Kelly
3a4e82ccc2 Add a Chart Widget for Settings for in SPA. The chart widget supports line chart, pie chart and bar chart.
Test: unit test and manually test on device
Bug: 244401879
Change-Id: I7adf48c71452dd0a995d548b7ef6e03e02a8b665
2022-11-02 10:11:17 +08:00
TreeHugger Robot
77443c2efb Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-11-01 16:37:49 +00:00
Shubhi
dabdb9547d Enable Media Provider to use sub libraries in SettingsLib
Enable Media Provider to use SettingsLibProfileSelector and
SettingsLibSelectorWithWidgetPreference sub libraries directly by
allow listing Media Provider's apex.

Test: m SettingsLib
Test: Build Media Provider
Bug: 195009187
Change-Id: I8ef91668b4d882e4d50d16c8721874315bf91da6
2022-11-01 08:57:04 +00:00
Edgar Wang
a82cb13065 Merge "Create ProfileSelector to provide TabLayout with Material Next style" 2022-11-01 08:41:38 +00:00
Zekan Qian
ab05cf4d54 Merge "Add test for framework.util.Parameter" 2022-11-01 08:26:53 +00:00