Commit Graph

1905 Commits

Author SHA1 Message Date
Kanyinsola Fapohunda
4960c2be52 Merge "Add local logs to NetworkTimeUpdateService" am: 6bda795c2b am: 7e16f6e837 am: 3a94d5049b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1998851

Change-Id: I74ac017765d15984c0fa44744f23d5f541ccc1f2
2022-02-28 21:21:30 +00:00
Kanyinsola Fapohunda
3a94d5049b Merge "Add local logs to NetworkTimeUpdateService" am: 6bda795c2b am: 7e16f6e837
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1998851

Change-Id: I2b8f1b52565e59e87ba383a6cbf6f35257c8e10b
2022-02-28 13:11:15 +00:00
Kanyinsola Fapohunda
7e16f6e837 Merge "Add local logs to NetworkTimeUpdateService" am: 6bda795c2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1998851

Change-Id: Iab9e06ca91d50bc156463fe11019c76950738173
2022-02-28 12:58:21 +00:00
Kanyinsola
faedb36fb7 Add local logs to NetworkTimeUpdateService
Bug: b/217357882
Test: Changes adds local logs. Existing unit tests still pass.
Change-Id: I2876a479c5219b6e4af6dfe25ba0942d82115ca5
2022-02-25 13:47:20 +00:00
Felipe Leme
6192421511 Improves DumpableContainer javadoc.
Test: n/a
Fixes: 220889663

Change-Id: I0d2fbd623d00ca44b5b2a84b7c6cc3b89edd4d63
2022-02-22 19:55:47 +00:00
Billy Lau
74b4af53ca Fix potential OOM issues when APEXs are too large.
On low RAM devices, there can be potentially OOM issues when
APEXs are too large, causing large buffers to be allocated when
computing the SHA256 digest of those APEX packages.

This change introduces the usage of DigestInputStream with
different buffer sizes according to the state of device (whether
it is a low ram device or not) to cap the memory usage.

Buffer size is currently derived experimentally at either 1kB or
1MB.

Bug: 217596264
Test: Manual.
Change-Id: I1964ef9d7047496a758c7f427910f116be89fc51
2022-02-16 14:16:19 -08:00
TreeHugger Robot
c212c6293b Merge "Create a feature flag for large screen design" 2022-02-15 09:27:57 +00:00
Xin Li
a6a261b1be Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master 2022-02-14 17:30:12 +00:00
Neil Fuller
91d5781980 Merge "Switch "UTC time" to "Unix epoch time" (core)" 2022-02-14 17:21:43 +00:00
Treehugger Robot
26b0f4c136 Merge "Add OWNERS entries for Android time team" am: 5ec4a12947 am: 2187630b81 am: 232508395e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1984967

Change-Id: I24197111d353a36b7c9150e303a0c17610201e0d
2022-02-14 15:53:14 +00:00
Treehugger Robot
232508395e Merge "Add OWNERS entries for Android time team" am: 5ec4a12947 am: 2187630b81
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1984967

Change-Id: I66ca05bc759163ee12a10b2adad67f7b5300008b
2022-02-14 15:36:47 +00:00
Neil Fuller
e41149620d Add OWNERS entries for Android time team
Add entries for the files that the Android time team have to update
occasionally.

Bug: 218802673
Test: None
Change-Id: I1255ac04e91c37051bdf4f72acea5cae4aca99db
2022-02-14 10:17:34 +00:00
tom hsu
e3027052d1 [Pnalingual] Default open for panlingual
- Make UI show on the settings by default.
 - Remove icon of system language entry.

Bug: 219384592
Test: local
Change-Id: I0d6dff0461d3e8c5cdfe1329cdd6592dd053ea43
2022-02-14 12:22:38 +08:00
Neil Fuller
5990bc702c Switch "UTC time" to "Unix epoch time" (core)
This is more correct. Android devices, even under ideal conditions,
don't track UTC (which contains leap seconds and uses the SI definition
of a second) but use a clock based on Unix epoch time (no leap seconds,
but clocks may skip/stop or smear around leap seconds to ensure a fixed
number of second increments per calendar day when leap seconds are
applied to UTC).

Bug: 218802673
Test: Compile only
Change-Id: I0c557e2231f87ea1b99e3935f79af15bccf91da4
2022-02-11 13:22:05 +00:00
Tsung-Mao Fang
f7a3f3540e Create a feature flag for large screen design
In Android T - large screen device, we're going to hide the back button for
all secondary layer pages in the Settings app.

Bug: 219000314
Test: See flag in developer page.
Change-Id: I8a8151cd4a534bc1707e1dd19398acf9a2b5fe9d
2022-02-11 20:44:56 +08:00
Xin Li
5ad6db7742 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5
Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
2022-02-11 07:25:43 +00:00
Evan Rosky
0ef7951dee Merge "Hook up fixed-rotation logic to shell transitions" 2022-02-10 19:51:45 +00:00
Nikita Ioffe
130228bfe0 Promote Slog to @SystemApi(client = Client.MODULE_LIBS)
Bug: 218862380
Fixes: 218862380
Test: m
Change-Id: I8ae8968471130e87abff14593a992229e683b034
2022-02-10 16:30:17 +00:00
Evan Rosky
91a630b912 Hook up fixed-rotation logic to shell transitions
This works by separating an app launching to 2 phases
(similar to legacy fixed rotation). First it launches
the app into a different rotation. Once the animation
finishes it creates a new seamless display-rotation
transition.

Because we have displayRotation in windowconfiguration,
we can directly rotate a window's surface instead of
checking explicitly for fixedRotationState. Since the
second-phase is a transition, we don't (ab)use
seamlessRotator. Once the display lines-up, the
surfaces and configurations automatically update.

Since we still want to explore shell-transitions style
rotation (single-transition), add a system property
to turn it off and on.

Bug: 217560545
Test: existing tests and manual tests
Change-Id: I0b34b32ff5b2650a519d3c195df452de446cf515
2022-02-09 17:12:31 -08:00
Steven Ng
cd9b0794e8 Merge "Add feature flag to gate dark theme bedtime settings" 2022-02-09 10:25:28 +00:00
TreeHugger Robot
7fab305427 Merge "New API: DumpableContainer.removeDumpable." 2022-02-09 05:46:08 +00:00
Treehugger Robot
d20a9b29c5 Merge "Adds OWNERS to com.androd.util.Dump*" am: adeac26d27 am: 8b2b5eb434 am: 5a0ab52de4 am: d707b4d927
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976775

Change-Id: I8b1344f89272575da23be85b138b33a8a0fc7f2f
2022-02-09 05:08:03 +00:00
Treehugger Robot
d707b4d927 Merge "Adds OWNERS to com.androd.util.Dump*" am: adeac26d27 am: 8b2b5eb434 am: 5a0ab52de4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976775

Change-Id: I3c54539abad06a232a17a42b008d35d3f6c62e29
2022-02-09 04:56:11 +00:00
Treehugger Robot
5a0ab52de4 Merge "Adds OWNERS to com.androd.util.Dump*" am: adeac26d27 am: 8b2b5eb434
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976775

Change-Id: I64ffe6eac9439a3e67c01607d367a0978b5cae93
2022-02-09 04:45:48 +00:00
Felipe Leme
ab085b2792 Adds OWNERS to com.androd.util.Dump*
Test: no, thanks
Bug: 149254050

Change-Id: Ie7ca5bcba00177efde125246354a88cec29a38a4
2022-02-08 16:26:38 -08:00
Treehugger Robot
ed3eb039b8 Merge "Delete legacy fs-verity support" am: 81568fa22f am: b4661e274c am: b754030dbe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966068

Change-Id: If68ccff8bad40fd9c74f38a7cd935a00c1575ba8
2022-02-08 01:50:05 +00:00
Treehugger Robot
b754030dbe Merge "Delete legacy fs-verity support" am: 81568fa22f am: b4661e274c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966068

Change-Id: I797f197a29a811795fc5be5339be1afbde2e5fcd
2022-02-08 01:26:39 +00:00
Treehugger Robot
81568fa22f Merge "Delete legacy fs-verity support" 2022-02-08 00:48:19 +00:00
Felipe Leme
e5ae1783f8 New API: DumpableContainer.removeDumpable.
Test: m update-api
Test: atest com.android.internal.util.DumpableContainerImplTest

Bug: 149254050
Bug: 217567642
CTS-Coverage-Bug: 149254050

Change-Id: I4efe99a545bd3db2308d0956eaa85e0f799f0f1d
2022-02-07 22:59:23 +00:00
Treehugger Robot
885dd4472b Merge "Remove asapperstein from OWNERS." am: 06a35d9039 am: fa7a88e8fb am: 9997a8e895 am: d9666b1551
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973059

Change-Id: I9e47a1284eaf625f6c5b405e1740bebe59a784f6
2022-02-07 17:36:36 +00:00
Treehugger Robot
d9666b1551 Merge "Remove asapperstein from OWNERS." am: 06a35d9039 am: fa7a88e8fb am: 9997a8e895
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973059

Change-Id: I2551415ff2e70cccf437377d4f4d1e691b40f235
2022-02-07 17:21:44 +00:00
Treehugger Robot
9997a8e895 Merge "Remove asapperstein from OWNERS." am: 06a35d9039 am: fa7a88e8fb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973059

Change-Id: I8ef42c647324ee150af0a85603b2cbb7ad7510ea
2022-02-07 17:05:36 +00:00
Felipe Leme
2eea07021e Changes Activity to use Dumpable for "legacy" cases.
Test: adb shell am start com.android.settings && adb shell dumpsys activity com.android.settings --autofill
Test: atest CtsAppTestCases:android.app.cts.ActivityDumpTest

Bug: 149254050

Change-Id: I658b18a965f3d35c3ecbb2aae58c7c7d7527c6e4
2022-02-04 15:39:13 -08:00
Andrew Sapperstein
aea112fe32 Remove asapperstein from OWNERS.
No longer on Settings, which was a team using FeatureFlagUtils.

Change-Id: I9c1c05b023021defcbce19ef500ddb13159caa87
2022-02-04 17:34:32 +00:00
Steven Ng
352566214e Add feature flag to gate dark theme bedtime settings
Hide dark theme bedtime settings from the settings because the
preinstalled Digital Wellbeing hasn't supported that yet.

Test: manually check the visibility of dark theme bedtime settings in
      the settings app after toggling the corresponding feature flag
Bug: 217866453
Change-Id: I71704bb6d09176e0854c527dc86a6a0041d01140
2022-02-04 13:28:43 +00:00
Victor Hsieh
e97a8700b0 Delete legacy fs-verity support
The "legacy" fs-verity was introduced in P in Pixel 3 kernel. During
fs-verity upstream to Linux, the API has changed. During Pixel 4 / Q
development, fs-verity was upstreamed to Linux kernel. By setting
ro.apk_verity.mode = 2, device vendors such as Pixel 4 can opt in to
enable the support. The feature has become mandatory for new devices
shipped with R.

Since Pixel 3 family is no longer supported, it's time to remove the
dead code.

Bug: 120629632
Test: m
Test: TH
Change-Id: I6dacd9bbd38b502ee510ff12970e76342d7b72dd
Merged-In: I6dacd9bbd38b502ee510ff12970e76342d7b72dd
2022-02-01 23:09:43 +00:00
kholoud mohamed
dc0bab518f Allow overriding enterprise badge drawables
Bug: 203548565
Bug: 188410712
Test: manual testing
Change-Id: Ibee6c28e8a231eab9c370af3065619c2dffa706a
2022-01-29 15:05:19 +00:00
TreeHugger Robot
bb93951990 Merge "Move CtsContentTestCases to group presubmit-large" into sc-dev am: a9a177e057 am: dd9121aaf6 am: 5150b2b56c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16709491

Change-Id: I7f5b843e8a7c1c944ffc088556c64889e781e84f
2022-01-27 19:05:33 +00:00
TreeHugger Robot
a325e1bd17 Merge "Move CtsContentTestCases to group presubmit-large" into sc-dev am: a9a177e057 am: dd9121aaf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16709491

Change-Id: Ibb755f0f754c230678d3bfecc41b6aa36f834c6b
2022-01-27 18:47:46 +00:00
TreeHugger Robot
5150b2b56c Merge "Move CtsContentTestCases to group presubmit-large" into sc-dev am: a9a177e057 am: dd9121aaf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16709491

Change-Id: I24513de281029178f2cdd9360ce87ed4d8eb210c
2022-01-27 18:47:46 +00:00
Calvin Pan
2801e6de4f Merge changes Ib484fc0c,I2b9ff69c,I0a31b117,I888c65c8,I03723cfe, ...
* changes:
  Clean <plurals> in DateTimeView
  Clean <plurals> in CertificateMonitor
  Clean <plurals> in FillUi
  Clean <plurals> in BugreportProgressService
  Clean <plurals> in keyguard
  Clean <plurals> in ChooserActivity
  Clear <plurals> in TextUtils
  Clean <plurals> in FindActionModeCallback
  Clean <plurals> in ZenModeConfig
  Add util class for plurals
2022-01-27 06:31:58 +00:00
Jing Ji
354efbc368 Merge changes from topic "bg_app_restrictions"
* changes:
  Expose the bg restriction exemption list as an internal API.
  Add an action button to the notification for bg battery abusive apps
  Exempt certain app behaviors for their background battery usage
  Add tracking on abusive broadcast and service binding requests
  Add exemption cases for app background restrictions
  Monitor long-running foreground services
  Post notification on abusive background current drain
  Allow limited alarms/jobs when background restricted
  Cap the LRU position of broadcast receivers in bg restricted apps
  Add a tracker on background current drains for each uid
  Add background restriction levels definition and its controller
2022-01-27 05:57:18 +00:00
Jing Ji
7271a9845b Exempt certain app behaviors for their background battery usage
If the app is hosting media playback or location foreground services,
or has active media session, the background battery usage during that
will be excluded from the abusive background battery usage monitoring.

Bug: 200326767
Bug: 203105544
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Change-Id: I7ddeffe3490608ee3f005af6f4722270756085a3
2022-01-25 15:23:26 -08:00
Jing Ji
627bbedd40 Add a tracker on background current drains for each uid
On detecting excessive battery usage of a background uid, we may
move the background restriction of the apps running in this uid to
more restrictive levels.

Bug: 200326767
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Change-Id: I6c2d41e44367a283d8aa9491be683018a80a810c
2022-01-25 14:33:12 -08:00
Victor Hsieh
1fb2d90296 Delete legacy fs-verity support
The "legacy" fs-verity was introduced in P in Pixel 3 kernel. During
fs-verity upstream to Linux, the API has changed. During Pixel 4 / Q
development, fs-verity was upstreamed to Linux kernel. By setting
ro.apk_verity.mode = 2, device vendors such as Pixel 4 can opt in to
enable the support. The feature has become mandatory for new devices
shipped with R.

Since Pixel 3 family is no longer supported, it's time to remove the
dead code.

Bug: 120629632
Test: m
Test: TH
Change-Id: I6dacd9bbd38b502ee510ff12970e76342d7b72dd
2022-01-25 17:22:36 +00:00
Jing Ji
1507931e89 Add background restriction levels definition and its controller
This CL adds the definition of background app restriction levels.

The existing various system background app restriction features will
be mapped into the levels here, including app standby buckets,
background restrictions (forced-app-standby) etc. Future CLs may
apply restrictions to background apps accordingly.

BYPASS_INCLUSIVE_LANGUAGE_REASON=Legacy API name

Bug: 200326767
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Change-Id: Icf82031c572e7b8e82e6528402e9df4de5b7a675
2022-01-24 18:34:48 -08:00
Jackal Guo
7172238add Move CtsContentTestCases to group presubmit-large
The test config takes longer than 900 seconds to run. Move it to a
dedicated group for running slow presubmit Test Mapping test.

Some more context is in the referenced bug, e.g, b/174495337
The group will work exactly the same as presubmit for now.

Bug: 174654670
Bug: 174495337
Fix: 215431363
Fix: 215549069
Test: treehugger
Change-Id: Id9769bbc625b42257af603d69098ae69c0fabb80
Merged-In: Id9769bbc625b42257af603d69098ae69c0fabb80
(cherry picked from commit ccc91c4fa9)
2022-01-24 23:45:31 +08:00
Calvin Pan
936a4e3687 Add util class for plurals
Bug: 199230228
Test: make
Change-Id: I5756846dcd10f17520afcc34bf23de0a45a2bcb9
2022-01-24 14:46:06 +08:00
Jason Chiu
b216e02ab9 Add a feature flag for settings_search_full_large_screen
Bug: 205079744
Test: manual
Change-Id: I040b3cc171e932014e8dca4d97c9018f190b9b17
2022-01-24 12:22:09 +08:00
Michael Wachenschwanz
90a6c03c8f Merge "Introduce modem element to power_profile.xml" 2022-01-21 10:08:12 +00:00