Commit Graph

55 Commits

Author SHA1 Message Date
Edgar Wang
6a1b1bed0b Merge "Fix the inconsistent alignment of the main switch preference." into tm-qpr-dev am: efe3ce59e7 am: 9dd34fc18c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19600272

Change-Id: Iadb51d87c35d04892b9e018a8122ab76fc836d60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 08:21:00 +00:00
Edgar Wang
16e584323c Fix the inconsistent alignment of the main switch preference.
Replace the margin of the widget with the padding.

Bug: 232494666
Test: manual test
Change-Id: Id96a868c2e5f271803454c2e207aab80db849111
2022-08-12 12:17:53 +08:00
Edgar Wang
12aabbf433 Merge "Apply phrase based line breaking on most of Preference" into tm-qpr-dev am: e1ba912e3b am: a917e5b013
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19415041

Change-Id: I879db0f3324ea546b15a4333338527145631acde
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 09:55:01 +00:00
Edgar Wang
e8cff4feea Apply phrase based line breaking on most of Preference
- move related change to v33 folder for bater maintenance

Bug: 232992171
Test: manual
Change-Id: I269000147bddb027299367e2178f43597d8ab76c
2022-08-04 00:35:04 +00:00
PETER LIANG
a570dc2683 Merge "Fix the inconsistent alignment of the main switch preference." 2022-07-25 12:05:14 +00:00
Albert Kong
29888de92b Allowing libraries for styling the Privacy Sandbox Beta app.
Test: manual
Bug: 239428231
Change-Id: Iead479f53488a642a3f5ab69b9b19acf24017039
(cherry picked from commit 05c7a58408)
2022-07-22 18:55:17 +00:00
Peter_Liang
1a922efbfb Fix the inconsistent alignment of the main switch preference.
Replace the margin of the widget with the padding.

Bug: 232494666
Test: manual test
Change-Id: Ia09ef5f298017c810beaedda3fa21ada89f23e42
2022-07-21 08:52:31 +08:00
Peter_Liang
0e8aff720e [DO NOT MERGE]Fix the inconsistent alignment of the main switch preference.
Replace the margin of the widget with the padding.

Bug: 232494666
Test: manual test
Change-Id: Ia09ef5f298017c810beaedda3fa21ada89f23e42
2022-07-21 00:32:04 +00:00
Sunny Shao
e3a17a277a Set preference background color as transparent
- Set LayoutPreference background.
- Set MainSwitchPreference background.

Fixes: 234397211
Bug: 214943470
Bug: 234397221

Test: manual test
Change-Id: Ib2eaf917c2c39f82050f3f50313370bbb72e401c
2022-06-01 14:56:54 +08:00
Jacqueline Huang
08eeec366e Remove onClickableListener on MainSwitchBar's switch since it has been set to not focusable and not clickable.
Fix: 230266556
Test: manually verified
Change-Id: Iee3649a37727e3f845e4c17576cf577270befd95
2022-05-27 03:47:21 +00:00
Stanley Wang
03fbfcbd95 Fixe the problem of invalid switch preference.
The source of this problem is that onBindViewHolder is called
after the user add the OnMainSwitchChangeListener. Then
preference gets a new MainSwitchBar in onBindViewHolder and
causes the listener to fail.

Bug: 223325900
Test: Manually test and observe the UI
Change-Id: Icc2e3c774ae1a8cb81b8ec5a16a82405aedc7c1c
2022-04-27 17:24:05 +08:00
Stanley Wang
9d254516a9 Fixed the issue that the MainSwitchPreference is invalid after the
page is resumed.

- MainSwithBar will be recreated after the page is resumed. We
  should keep the OnMainSwitchChangeListener for
  MainSwitchPreference and re-register the listeners after the
  page is resumed.

Bug: 225289727
Test: manual test and see the UI
Change-Id: I1b959f36fbd4c57fddf6b37ea00f11c486bbe5b9
2022-03-24 11:41:50 +08:00
Edgar Wang
e3ce6a703c Remove restricted icon
Bug: 195401182
Test: robotest
Change-Id: I721f0a69a9d98b6004daf4ac197fc0d01c64e5fe
2022-02-08 03:10:04 +00:00
Edgar Wang
caad2bc456 MainSwitchPreference minor fix
- Change the material switch because the oncheckchangelistener and
  onclicklistener is not register correctly
- Fix mis-used private resource in android P(28)

Bug: 198286931
Test: robotest & manual
Change-Id: If7e9c5edceb3523e84aa72ae319f8ff2b3c12812
2021-12-23 23:34:21 +00:00
Edgar Wang
37c9982cb2 Fix the initial background color of MainSwitchBar
we should check Switch.isChecked() status first.

Bug: 207431726
Test: manual & robotest
Change-Id: Ie748a88f7b05fc1047590b9a08e89115bfa2d535
2021-12-08 11:51:46 +00:00
Stanley Wang
154e4da68d Merge "Update the padding of MainSwitch layout and the MainSwitch's TextView margin to meet the spec." into sc-v2-dev am: 20e71a637f am: c8617ccd65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16387797

Change-Id: Id0d3c67aa47c3cc83ce44ccf553f88a8e2d029e1
2021-12-07 08:49:36 +00:00
Stanley Wang
a6432c0072 Update the padding of MainSwitch layout and the MainSwitch's
TextView margin to meet the spec.

Fix: 208153566
Test: manual test and see the UI
Change-Id: I5c1a1e1bc51f21734d9cf6f4b318a7b2fad5e10d
2021-12-06 14:53:34 +08:00
Jeff DeCew
45ab1bafb6 Fixes for SysUi-Studio gradle build
* Gralde now fails if AndroidManifest.xml uses the <uses-sdk> tag.

Test: gradle build
Change-Id: I759431dfe01c73a351419d97c9575c74d7dcdd8d
2021-11-08 19:17:38 +00:00
Mill Chen
5c84edacf0 Replace private attributes with public resources.
The change replaces all existing usage of private resources in
SettingsLib with corresponding public resources. The only exception
is android:string/config_headlineFontFamily where there's no proper
replaccement.

The library is currently used by bundled apps (such as SettingsGoogle)
and unbundled apps (such as PermissionController and
CellBroadcastReceiver). Since we still want these bundled apps to
reference config_headlineFontFamily properly while not breaking
unbundled apps due to them referencing private attributes, we added a
new attribute settingslib_config_headlineFontFamily (alongside with
other FontFamily variance for completeness) in
SettingsTheme/res/values-v31/strings.xml which points to
config_headlineFontFamily by default. Then, in separate CLs, we will add
resource overrides to these unbundled apps to replace the value of
settingslib_config_headlineFontFamily to point to a public value. While
this means that the style of the pages from the unbundled apps will be
different from the rest of SettingsLib clients, the change provides a
tactical fix to make sure that these unbundled apps won't crash when
shipped to other devices. We can address the issue at its core by
potentially exposing some private resources in future Android releases.

Bug: 191387775
Bug: 190964071
Bug: 196106314
Test: manual test to confirm this is a no-op CL.
Change-Id: Ie25950d9f54964aa40038a27b302ed017e4e4d15
2021-08-12 23:52:16 +08:00
Chen Xu
5e20541fc9 Merge "Apply new settings widget lib for the cbr main feature switch" into sc-dev 2021-07-01 18:02:01 +00:00
Sunny Shao
429d7624fb Fix Talkback say twice in MainSwitch
- Remove the duplicated setting in the ContentDescription.

Bug: 191735947
Test: manual test
Test: make RunSettingsLibRoboTests -j ROBOTEST_FILTER=com.android.settingslib.widget
Change-Id: If28d0002dd1087173623b654c67bc7597d721a85
2021-07-01 15:17:13 +08:00
Chen Xu
4608a7a448 Apply new settings widget lib for the cbr main feature switch
apply the new settings widget lib for the emergency alert main feature
switch.

Bug: 183574149
Test: Manual
Change-Id: Idfdb2696056faf3dbe4ccb0061f2b61c33e94292
2021-07-01 14:37:56 +08:00
Stanley Wang
85c9c3e6ad Fix the problem that the title of MainsSitchPreference will
be truncated.

- Remove the maxLines=2 attribute.

Fix: 189921147
Test: robotest and see the UI
Change-Id: Ia62fd2f5ed1e76c9f1149e842bdae308e83fb03b
2021-06-30 14:10:40 +08:00
Stanley Wang
33c5ed926e Fix the problem that the unknown item will be announced when
using Switch Access.

- Disable the importantForAccessibility of the MainSwitchBar's
  parent layout.

Fix: 182227784
Test: robotest and operate the switch preference manually
Change-Id: If1780361fcc7d7e0e53400d068ef4d2c31d6d8af
2021-06-28 16:02:44 +08:00
Stanley Wang
99b691f54c Fix the problem that the switch should gray out when preference
disabled.

- Use the switch style of SettingsTheme to make the switch UI
  consistent.

Fix: 189062669
Test: robotest and operate the switch preference manually
Change-Id: Ic0280fd3986726008225530fd1705ad7df0b17a6
2021-06-27 16:28:20 +08:00
Edgar Wang
fce3f0fd2b Fix build broken
- It's because we refactored BuildCompat to BuildCompatUtils and didn't
  replace it in another CL at the same time.

Fixes: 191628501
Test: rebuild
Change-Id: Ibeb231a268465f2642b9452c1760492a65c67254
2021-06-21 12:10:42 +00:00
TreeHugger Robot
3b28d923c8 Merge "Fine tune Widget library" into sc-dev 2021-06-21 09:17:32 +00:00
Edgar Wang
bff4a440cc Relace BuildCompat.isAtLeastS to check Build.VERSION.SDK_INT
Fixes: 191227729
Test: robotest & manual
Change-Id: I4b865b7de33a6801783dd645213fef0cda8d4dd2
2021-06-21 12:52:06 +08:00
Edgar Wang
bba370ec2c Fine tune Widget library
- rename resource in FooterPreference
- use material_grey_600 in MainSwitchBar directly
- backward compitable in MainSwitchBar
- correct dialog background and accent color

Bug: 191267392
Test: robotest & manual
Change-Id: I31fff1b157ec757e9f74f4b82ae8d997a0a117f1
2021-06-18 10:23:05 +00:00
Stanley Wang
3f0812ea7c Merge "Switch control should not be activated after event happens off of the target region." into sc-dev 2021-06-03 10:29:29 +00:00
Stanley Wang
c2d91b650d Switch control should not be activated after event
happens off of the target region.

- Disable the focusable and clickable features.

Fix: 189079003
Test: robotest and test the switch manually
Change-Id: I0fa19c132ddfd5a3e010bf8328c6b84c1087d78b
2021-06-03 15:34:04 +08:00
Stanley Wang
eec7a6ca45 Add new method "checkRestrictionEnforced" to
RestrictedPreferenceHelper.

- Return the EnforcedAdmin object if the preference is retricted.

Bug: 179245126
Test: robotest and see the UI
Change-Id: I0687bb5e1bafa6c50f7c4e1400e6d4ed7c03c9b1
2021-05-29 19:01:53 +08:00
Edgar Wang
ffcf3679cb Apply new style for SwitchPreference
- Moving two_target_min_width to SettingsTheme.
- Apply new Switch in SettingsTheme.

Bug: 185549116
Test: manual
Change-Id: Iae31b430728113b25f7c9055372f60ee80a6a58f
2021-05-25 23:56:12 +08:00
TreeHugger Robot
8253fe8c30 Merge "The MainSwitch should has the accessibility label." into sc-dev 2021-05-22 01:11:16 +00:00
Stanley Wang
4f097e3472 Merge "Synchronize the states of MainSwitchBar and MainSwitchPreference." into sc-dev 2021-05-21 02:06:53 +00:00
Colin Cross
c55ba7e2a4 Update lint baseline for SettingsLibMainSwitchPreference
Add some new NewApi lint errors to lint-baseline.xml

Bug: 188805387
Test: m out/soong/.intermediates/frameworks/base/packages/SettingsLib/MainSwitchPreference/SettingsLibMainSwitchPreference/android_common/lint/lint-report.xml
Change-Id: Ia1077b3077cd14cb1b1f39352195558d0644a3f7
Merged-In: Ia1077b3077cd14cb1b1f39352195558d0644a3f7
(cherry picked from commit c1fe1ef47d)
2021-05-20 18:30:48 +00:00
Stanley Wang
f984db4b4a The MainSwitch should has the accessibility label.
Add the title to the content description of Switch.

Fix: 182228819
Fix: 182227784
Test: robotest and manually test the UI
Change-Id: I3cad922e903df783ee7eaf727b82f16f3345ff30
2021-05-20 16:02:18 +08:00
Stanley Wang
ab9937f5f6 Synchronize the states of MainSwitchBar and MainSwitchPreference.
MainSwitchPreference should synchronize the switch state of
MainSwitchBar.

Fix: 187391143
Test: robotest and see the UI
Change-Id: Ifa3d21f7ce3ba6bdcfa3c254b2aa1a7668618829
2021-05-20 06:51:18 +00:00
Stanley Wang
86548aa1df Update the margins and colors of MainSwitchBar to fit the spec.
Bug: 187911551
Test: robotest and see the UI
Change-Id: Iebff051a58d855cc066c4f10c17f0393c26d5d51
2021-05-17 13:32:03 +08:00
Hai Zhang
4d01a45c44 Remove workaround for R class conflict in Settings unit test.
The workaround is accessing the resources dynamically with
Resources.getIdentifier(), however this makes it incompatible with R8
which will think the resource is unused and remove it, resulting in a
runtime exception. There is currently no way to have consumer ProGuard
texts in Soong, and we cannot disable R8 for PermissionController
because it would severely regress our APK size and make build unhappy.

The real cause for the original test failure is that, Settings unit
test used to include SettingsLib libraries in its static_libs, and
this caused duplicate R classes to be included in its test APK (which
is already in Settings APK) and resulted in the wrong R class being
loaded when accessing resources from Settings context.

So we should remove the SettingsLib dependencies in Settings unit test
and remove the workaround here, to correctly fix the issue and unblock
R8 usage.

Bug: 183340630
Bug: 177638625
Bug: 183342958
Test: atest SettingsSliderPreferenceControllerTest
Test: atest PrivateVolumeForgetTest
Change-Id: I404892ccb7c2004ec3f81df69c1dc4bceed150df
2021-05-11 01:54:37 -07:00
Edgar Wang
3b9df00cbb Rename resource name to avoid build conflict in another path.
Bug: 186881512
Test: manual & robotest
Change-Id: I2545c07e9a0e7cb77cf942605fcc447cb387c5ec
2021-05-10 16:13:27 +00:00
Stanley Wang
d979dbd6af Update MainSwitchBar to Material Next style.
Fix: 182255113
Test: Run robotest and see the ui
Change-Id: I2d407bb463a13ed986fe7fe3611e4c00c55284dd
2021-05-07 16:02:44 +08:00
Pedro Loureiro
d34f536b59 Add lint baseline to address NewApi errors
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.

Bug: 150847901

Test: m lint-check
Change-Id: Ide8a8fe80ba31396f23853ab266afcbcc33af9a6
2021-04-13 10:51:51 +01:00
Edgar Wang
43e006b69b Add backward compatible for MainSwitchPreference
- Before Android S, it will apply SwitchBar layout
- Fix TypedArrayUtils can't build pass in another path.

Bug: 182179573
Test: robotest & manual
Change-Id: I33ca1991cef359f8e95650c7616bb76cee3bb7ff
2021-04-12 07:42:37 +00:00
Arc Wang
714d7be0ee Fix resource problem in PrivateVolumeForgetTest
Somehow Resource IDs are inconsistent between SettingsLib and
SettingsUnitTests. This is a workaround for NotFoundException
in SettingsUnitTests.

Bug: 183342958
Test: atest com.android.settings.deviceinfo.PrivateVolumeForgetTest
Change-Id: If513d5796d4dcd50261d9dd366f6a0def51e0ec4
2021-03-25 14:29:32 +08:00
Edgar Wang
6d7a8cced8 Remove RestrictedLockUtils dependency in MainSwitchPreference
- Extract related things to SettingsMainSwitchBar

Bug: 180226735
Test: robotest
Change-Id: Ibb0e687519ef48f85f47028374437e00ac2adabd
2021-03-09 03:01:54 +00:00
Bob Badour
745e7ee830 Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" into sc-dev 2021-02-24 18:43:29 +00:00
Bob Badour
d59495855e [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base
Added SPDX-license-identifier-Apache-2.0 to:
  apct-tests/perftests/contentcapture/Android.bp
  apct-tests/perftests/inputmethod/Android.bp
  apex/appsearch/Android.bp
  apex/appsearch/framework/Android.bp
  apex/appsearch/service/Android.bp
  apex/appsearch/testing/Android.bp
  apex/jobscheduler/service/jni/Android.bp
  apex/media/service/Android.bp
  cmds/abx/Android.bp
  cmds/uinput/Android.bp
  cmds/uinput/jni/Android.bp
  core/tests/GameManagerTests/Android.bp
  core/tests/batterystatstests/BatteryStatsLoadTests/Android.bp
  core/tests/batterystatstests/BatteryStatsViewer/Android.bp
  core/tests/devicestatetests/Android.bp
  libs/WindowManager/Shell/tests/flicker/Android.bp
  libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/Android.bp
  libs/androidfw/fuzz/cursorwindow_fuzzer/Android.bp
  native/android/tests/activitymanager/UidImportanceHelperApps/Android.bp
  native/android/tests/activitymanager/nativeTests/Android.bp
  packages/SettingsLib/BannerMessagePreference/Android.bp
  packages/SettingsLib/CollapsingToolbarBaseActivity/Android.bp
  packages/SettingsLib/EmergencyNumber/Android.bp
  packages/SettingsLib/FooterPreference/Android.bp
  packages/SettingsLib/MainSwitchPreference/Android.bp
  packages/SettingsLib/TopIntroPreference/Android.bp
  packages/SettingsLib/UsageProgressBarPreference/Android.bp
  packages/overlays/AccentColorAmethystOverlay/Android.bp
  packages/overlays/AccentColorAquamarineOverlay/Android.bp
  packages/overlays/AccentColorBlackOverlay/Android.bp
  packages/overlays/AccentColorCarbonOverlay/Android.bp
  packages/overlays/AccentColorCinnamonOverlay/Android.bp
  packages/overlays/AccentColorGreenOverlay/Android.bp
  packages/overlays/AccentColorOceanOverlay/Android.bp
  packages/overlays/AccentColorOrchidOverlay/Android.bp
  packages/overlays/AccentColorPaletteOverlay/Android.bp
  packages/overlays/AccentColorPurpleOverlay/Android.bp
  packages/overlays/AccentColorSandOverlay/Android.bp
  packages/overlays/AccentColorSpaceOverlay/Android.bp
  packages/overlays/AccentColorTangerineOverlay/Android.bp
  packages/overlays/DisplayCutoutEmulationCornerOverlay/Android.bp
  packages/overlays/DisplayCutoutEmulationDoubleOverlay/Android.bp
  packages/overlays/DisplayCutoutEmulationHoleOverlay/Android.bp
  packages/overlays/DisplayCutoutEmulationNarrowOverlay/Android.bp
  packages/overlays/DisplayCutoutEmulationTallOverlay/Android.bp
  packages/overlays/DisplayCutoutEmulationWaterfallOverlay/Android.bp
  packages/overlays/DisplayCutoutEmulationWideOverlay/Android.bp
  packages/overlays/FontNotoSerifSourceOverlay/Android.bp
  packages/overlays/IconPackCircularAndroidOverlay/Android.bp
  packages/overlays/IconPackCircularLauncherOverlay/Android.bp
  packages/overlays/IconPackCircularSettingsOverlay/Android.bp
  packages/overlays/IconPackCircularSystemUIOverlay/Android.bp
  packages/overlays/IconPackCircularThemePickerOverlay/Android.bp
  packages/overlays/IconPackFilledAndroidOverlay/Android.bp
  packages/overlays/IconPackFilledLauncherOverlay/Android.bp
  packages/overlays/IconPackFilledSettingsOverlay/Android.bp
  packages/overlays/IconPackFilledSystemUIOverlay/Android.bp
  packages/overlays/IconPackFilledThemePickerOverlay/Android.bp
  packages/overlays/IconPackKaiAndroidOverlay/Android.bp
  packages/overlays/IconPackKaiLauncherOverlay/Android.bp
  packages/overlays/IconPackKaiSettingsOverlay/Android.bp
  packages/overlays/IconPackKaiSystemUIOverlay/Android.bp
  packages/overlays/IconPackKaiThemePickerOverlay/Android.bp
  packages/overlays/IconPackRoundedAndroidOverlay/Android.bp
  packages/overlays/IconPackRoundedLauncherOverlay/Android.bp
  packages/overlays/IconPackRoundedSettingsOverlay/Android.bp
  packages/overlays/IconPackRoundedSystemUIOverlay/Android.bp
  packages/overlays/IconPackRoundedThemePickerOverlay/Android.bp
  packages/overlays/IconPackSamAndroidOverlay/Android.bp
  packages/overlays/IconPackSamLauncherOverlay/Android.bp
  packages/overlays/IconPackSamSettingsOverlay/Android.bp
  packages/overlays/IconPackSamSystemUIOverlay/Android.bp
  packages/overlays/IconPackSamThemePickerOverlay/Android.bp
  packages/overlays/IconPackVictorAndroidOverlay/Android.bp
  packages/overlays/IconPackVictorLauncherOverlay/Android.bp
  packages/overlays/IconPackVictorSettingsOverlay/Android.bp
  packages/overlays/IconPackVictorSystemUIOverlay/Android.bp
  packages/overlays/IconPackVictorThemePickerOverlay/Android.bp
  packages/overlays/IconShapeHeartOverlay/Android.bp
  packages/overlays/IconShapePebbleOverlay/Android.bp
  packages/overlays/IconShapeRoundedRectOverlay/Android.bp
  packages/overlays/IconShapeSquareOverlay/Android.bp
  packages/overlays/IconShapeSquircleOverlay/Android.bp
  packages/overlays/IconShapeTaperedRectOverlay/Android.bp
  packages/overlays/IconShapeTeardropOverlay/Android.bp
  packages/overlays/IconShapeVesselOverlay/Android.bp
  packages/overlays/NavigationBarMode2ButtonOverlay/Android.bp
  packages/overlays/NavigationBarMode3ButtonOverlay/Android.bp
  packages/overlays/NavigationBarModeGesturalOverlay/Android.bp
  packages/overlays/NavigationBarModeGesturalOverlayExtraWideBack/Android.bp
  packages/overlays/NavigationBarModeGesturalOverlayNarrowBack/Android.bp
  packages/overlays/NavigationBarModeGesturalOverlayWideBack/Android.bp
  packages/overlays/OneHandedModeGesturalOverlay/Android.bp
  packages/services/CameraExtensionsProxy/Android.bp
  services/core/java/com/android/server/speech/Android.bp
  services/musicrecognition/Android.bp
  services/searchui/Android.bp
  services/smartspace/Android.bp
  services/tests/PackageManagerServiceTests/host/libs/IntentVerifyUtils/Android.bp
  services/tests/PackageManagerServiceTests/host/test-apps/DeviceSide/Android.bp
  services/tests/PackageManagerServiceTests/host/test-apps/IntentVerifier/Android.bp
  services/tests/PackageManagerServiceTests/host/test-apps/IntentVerifierTarget/Android.bp
  services/tests/PackageManagerServiceTests/host/test-apps/UsesStaticLibrary/Android.bp
  services/tests/PackageManagerServiceTests/unit/Android.bp
  services/tests/inprocesstests/Android.bp
  services/tests/mockingservicestests/jni/Android.bp
  services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
  services/texttospeech/Android.bp
  services/translation/Android.bp
  tests/BatteryStatsPerfTest/Android.bp
  tests/FlickerTests/test-apps/Android.bp
  tests/Input/Android.bp
  tests/SilkFX/Android.bp
  tests/SurfaceViewBufferTests/Android.bp
  tests/UpdatableSystemFontTest/Android.bp
  tests/UpdatableSystemFontTest/testdata/Android.bp
  tests/benchmarks/internal/Android.bp
  tools/powerstats/Android.bp
  tools/processors/intdef_mappings/Android.bp
  tools/xmlpersistence/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I1b8d155a26a1a589a38abedea5f7f366e00346c6
2021-02-23 13:18:34 -08:00
Stanley Wang
85852786bc Update MainSwitch widget.
- Fix the MainSwitchBar overlapping issue.
- Add setTitle method to support string resource id.
- Add setChecked method to fix the state of switch not sync issue.
- Get the resource id of title from xml.

Fix: 178425979
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: I332b017c6a6e32e5ea3929d4b3c7e81104445bcc
2021-02-05 17:47:03 +08:00
Stanley Wang
832d478662 Update Main Switch widget.
- Update switch size
- Update title magrin right
- Use default text color
- Update switch margin right
- Support xml title attribute

Fix: 177967927
Fix: 177968636

Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: I226abbffc1539cc31e64f4a3b3723c95b40e5780
2021-02-02 12:39:06 +00:00