Commit Graph

6251 Commits

Author SHA1 Message Date
Wesley.CW Wang
c905c7cb25 Correct setPowerSaveMode() java doc
- Correct the parm to "enable true to enable battery saver"

Bug: 178764868
Test: m
Change-Id: Id598bc1f2692c5060afad6cc6c3781e38329c140
2021-01-29 05:53:13 +00:00
Bill Yi
23259dbf13 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5506b4168680b232a2e6789a53e931d416c12cff
2021-01-28 18:29:49 -08:00
Sunny Shao
3ea112404a Fix the category preference aligement problem
- The reason is the fixed value of the paddingStart.
- Change the value when display size is changing.

Fixes: 177968087
Test: manual test
Change-Id: Ibdcdc51e4ee7d8c327d03f0a4aee5891efe1cbd0
2021-01-28 02:50:57 +00:00
Josh Tsuji
39a146fd05 Merge "Delete duplicate preference_footer.xml. This duplicate resource breaks the Gradle build." 2021-01-26 18:08:44 +00:00
Josh Tsuji
2d69d3caf5 Delete duplicate preference_footer.xml. This duplicate resource breaks the Gradle build.
According to ag/13310367 this file was meant to be moved, but it was copied instead. I think it is safe to delete the duplicate? Please let me know if that's not true.

Test: gradle builds, and hopefully presubmit passes here
Bug: 152086714
Change-Id: I5714a330a659d0bb9a37d433749f60ec330aa27e
2021-01-26 10:43:01 -05:00
Cn Chen
99f8a0d015 Merge "Add meterred string for wifi screen." 2021-01-26 03:59:28 +00:00
Ying Xu
bcece2f0e7 Merge "Support VCN in SysUI" 2021-01-26 00:01:32 +00:00
yinxu
370b06711a Support VCN in SysUI
Bug: 175739479
Test: atest NetworkControllerWifiTest
Change-Id: I48caeac0e1f0a99c5848ec9cdf70a5830a700be0
2021-01-25 12:45:12 -08:00
Wu Ahan
b274cd0165 Merge "Add jank instrumentation logic in keyguard" 2021-01-25 14:46:14 +00:00
cnchen
38c34f1b4d Add meterred string for wifi screen.
Test: Manually
Bug: 178065602
Change-Id: I0ac6b66eba36011e6bb4a185401df48a99b514ff
2021-01-25 16:51:30 +08:00
Edgar Wang
781633c399 Merge "Make file build pass after copy it to another path." 2021-01-25 03:25:21 +00:00
Bill Yi
6843c7fbb6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia8389ee9d6f51756e2c57820080453632043d715
2021-01-24 11:00:03 +00:00
Etan Cohen
3df00e17f7 Merge "[Provider Model] Check against race condition" 2021-01-21 14:55:49 +00:00
Etan Cohen
dd295df643 [Provider Model] Check against race condition
There can be a race condition of the timeout and operation
completion both getting executed - both setting the callback
to null - which causes the other one to have an NPE.

Bug: 175084231
Test: Testing rapid succession recovery operations
Change-Id: If9d8418f1535d0e075c4abf2723c4b2734e8fa1a
2021-01-20 21:08:09 -08:00
TreeHugger Robot
5bb5544909 Merge changes I057989ea,Ic2b318e4,I266d4a03
* changes:
  Fix some deprecation warnings in WM Shell.
  Clean up SysUI Kotlin warnings
  Clean up some deprecation warnings in SettingsLib
2021-01-21 02:16:27 +00:00
Alex Johnston
36df85a2ac Merge "Disable IME on the personal profile" 2021-01-20 16:41:06 +00:00
TreeHugger Robot
770e6072a1 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-20 15:47:35 +00:00
Bill Yi
85122bdfe2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9e99beb787a96bafd65ebf829f4697175a704423
2021-01-20 09:26:11 +00:00
Arc Wang
148195ee60 Merge "Add SettingsSpinnerPreference" 2021-01-20 05:51:45 +00:00
Alex Johnston
e066d89b22 Disable IME on the personal profile
Background:
* On organization-owned devices with managed profiles,
  the work admin needs to be able to restrict
  IMEs on the personal side.
* They should be able to restrict IMEs without having
  visibility on the personal side. This is done by
  introducing the ability for the admin to set the
  permitted IMEs on the parent profile.

Changes:
* Update DPM permitted input methods apis to be
  callable on the parent profile.
* Update RestrictedLockUtilsInternal to check the
  permitted input methods on the parent profile

Manual test steps:
* Set up organization-owned device and download
  IME apps on the personal profile
* Download TestDPC
* Select prefence Set input methods on parent
* Select allow only system IMEs and check Settings to see
  all non-system IMEs are disabled.
* Select allow all IME apps and check Settings to see
  no IME apps are disabled.

Bug: 170459562
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.settingslib.RestrictedLockUtilsTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testPermittedInputMethods
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testPermittedInputMethodsLogged

Change-Id: Iecd19adb6d3ca064a8d7f9ff0c1c41aa64bd6ace
2021-01-19 18:33:45 +00:00
Bill Yi
7e979e46d8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia95c2cea3b4660d91a518a82a0c0b07566e7c96a
2021-01-17 08:11:09 +00:00
TreeHugger Robot
40d2aef293 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-15 18:39:47 +00:00
Michael Wright
f3da6a2855 Clean up some deprecation warnings in SettingsLib
Bug: 177652618
Test: Compiles
Change-Id: I266d4a038d5f66e0c7e46f6f1a02bc3ee4d84c5b
2021-01-15 15:09:57 +00:00
Elliott Hughes
87ea68b2e8 Merge "Drop the maximum recommended log size from 16MiB to 8MiB." am: fe962c3a7b am: 5a4b450b00 am: 3f0c9dcbdc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549537

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I86bd35f3afebf5b450a79cae111530fdf1f41965
2021-01-15 14:00:35 +00:00
Bill Yi
826a6d3777 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I658f227f3b19c0cb9ff445f18202e3ee27ae5d87
2021-01-15 12:49:18 +00:00
Stanley Wang
99801ee183 Merge "Update padding of MainSwitchBar title." 2021-01-15 10:30:56 +00:00
Ahan Wu
d515f02c80 Add jank instrumentation logic in keyguard
Add instrument logic in keyguard for jank.

Bug: 169221091
Bug: 169220724
Test: Manually
Change-Id: I18e36bd7ae10693ce974c1bb54b384a29d890ef7
2021-01-15 16:09:07 +08:00
Stanley Wang
a949d3e8f0 Update padding of MainSwitchBar title.
Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: Ie7e53604b8c5fe4af9914af21debbe17e5739736
2021-01-15 15:43:59 +08:00
Yanting Yang
24eca8d0fd Merge "Make AdaptiveIcon support different inset" 2021-01-15 07:20:50 +00:00
Arc Wang
76229342e5 Add SettingsSpinnerPreference
This preference uses SettingsSpinner & SettingsSpinnerAdapter
which provide default layouts for both view and drop down view
of the Spinner.

Bug: 177617478
Test: atest SettingsSpinnerPreferenceTest
Change-Id: I9ceb2db6d82692ee21b6d96af7b42c49400d5071
2021-01-15 13:50:23 +08:00
Yanting Yang
157639fc63 Make AdaptiveIcon support different inset
Settings used AdpativeIcon for injection icons of homepage and the
rainbow icons of connected devices. In the past, the default inset was
6dp which is to generate the 36dp icon. Based on the Android S design,
we would like to apply different size to the homepage icon. Therefore,
make the AdaptiveIcon to support different insets.

Fixes: 177213699
Test: robotest & visual with turning on/off silky home
Change-Id: I1739eeb58e362f24719ef2476c442c867d0ecb3a
2021-01-15 12:14:01 +08:00
Bill Yi
0e71fc69e4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia110c7b7924b29dc75e49dec36668058b1c19d64
2021-01-14 17:25:27 -08:00
Elliott Hughes
3f0c9dcbdc Merge "Drop the maximum recommended log size from 16MiB to 8MiB." am: fe962c3a7b am: 5a4b450b00
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1549537

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If5197da90cb39917d2acb4059ccb73b7747238d0
2021-01-14 20:38:47 +00:00
Ying Xu
68c395f4c7 Merge "SysUI changes for Provider Model" 2021-01-14 15:53:20 +00:00
TreeHugger Robot
4979f47a2f Merge "Refactor AppPreference & AppSwitchPreference" 2021-01-14 15:28:17 +00:00
Edgar Wang
c57538152a Refactor AppPreference & AppSwitchPreference
- Move AppSwitchPreference from Settings to SettingsLib

Bug: 176815722
Test: robotest
Change-Id: I30a908919978ff927526e1172b7dda525d75b480
2021-01-14 13:55:12 +08:00
Bill Yi
bdd177585c Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-14 03:48:55 +00:00
yinxu
5f87b253cb SysUI changes for Provider Model
This CL contains the below major logic changes:
1. Only show QS/SB Icons for the current default network
2. Support the new "no internet" icons
3. Add a new callback "setConnectivityStatus"
4. Use WiFi scan results for network availability check

Bug: 176428921
Test: Unit Tests, Manual Tests

Change-Id: Ib5e95353205cad4e0bdbd57ef823044fcc54b10d
2021-01-13 12:08:12 -08:00
Elliott Hughes
af437f6bf8 Drop the maximum recommended log size from 16MiB to 8MiB.
Now we compress logs, 16MiB is a *lot* of logging, often over 100MiB
when decompressed. This can cause trouble for tools (and their
corresponding timeouts) if they're expecting 16MiB to mean "less than
16MiB" rather than "about 10 times 16MiB".

This patch doesn't address the issue of devices that are already
configured too high, since it's not obvious that we reasonably can. A
user can set the system property themselves, and we have no way to
distinguish the two cases.

Bug: https://issuetracker.google.com/176959217
Test: treehugger
Change-Id: Iba92061b278c487c3dc9a98aa54f014dfb2ea1c9
2021-01-13 10:26:07 -08:00
Bill Yi
c800409245 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic39cd03f2f3cd54f120c45a4fdde608fac33db02
2021-01-12 18:45:21 -08:00
Evan Laird
4134ac8ade Merge "Listen for EXTRA_PRESENT changes" into rvc-qpr-dev am: 623049adac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13083016

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iad025254e0c1d8e3400ee9554594bc28d5b20b84
2021-01-12 20:12:54 +00:00
Evan Laird
623049adac Merge "Listen for EXTRA_PRESENT changes" into rvc-qpr-dev 2021-01-12 18:57:58 +00:00
Stanley Wang
90089f9e1e Update background color of main switch track.
Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: Ie5bdb40a5cc1be17b6ebdb910dfbbaeb4042fb39
2021-01-12 22:53:55 +08:00
Stanley Wang
13658939c5 Merge "Update background color of main switch bar." 2021-01-11 11:45:24 +00:00
Stanley Wang
3b9574c80d Update background color of main switch bar.
Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: Ia4f6d5f38dcadcdf07aec9aacd607a8c31427709
2021-01-11 14:35:11 +08:00
tim peng
d35a590157 Merge changes from topic "rename_const"
* changes:
  Rename MediaOutputSliceConstants to MediaOutputConstants
  Rename MediaOutputSliceConstants to MediaOutputConstants
2021-01-11 05:08:26 +00:00
Edgar Wang
0fde398849 Make file build pass after copy it to another path.
- androidx.core.content.res.TypedArrayUtils is not available in
another path, remove it from dependency.
- Move layout from SettingsLib to FooterPerference
- Move FooterPreferenceStyle from SettingsLib to SettingsTheme

Bug: 177181159
Test: manual & robotest
Change-Id: Ieccc6b789704cf66b9cf67560951610deb250514
2021-01-11 11:03:37 +08:00
TreeHugger Robot
a0ab2cbe77 Merge "Support the Carrier WiFi for Provider Model" 2021-01-08 23:42:39 +00:00
yinxu
e59b66fbdb Support the Carrier WiFi for Provider Model
When the device is connected to the Carrier WiFi, the Cellular icons
will be shown in the SysUI instead of the WiFi icons.

Bug: 175317582
Test: Unit tests, Manual tests
Change-Id: I4e090f3058724937ba9bbe131d91379ad2383083
2021-01-08 13:52:15 -08:00
Etan Cohen
a26f4a38ca [SettingsLib] Update "fix" shim to use new Wifi subsystem restart callbacks
Wi-Fi subsystem restart callbacks have been added to the framework.
Modify the shim to use these callbacks rather than indirectly monitor
whether the WiFi subsystem has restarted.

Bug: 175084231
Test: TBD - pending UI test integration
Change-Id: I9c127532d7cefbf2ff6612562ab46865e456b43a
2021-01-08 10:02:58 -08:00