Commit Graph

1914 Commits

Author SHA1 Message Date
Neil Fuller
e11b563c88 Merge "Make NTP config configurable from cmd" am: 271dfbe8df am: 5c576e6d48 am: 24753d5b6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007272

Change-Id: I0c4861e06ad9d91a8d5c2722cec442d391453464
2022-03-04 12:49:55 +00:00
Neil Fuller
24753d5b6f Merge "Make NTP config configurable from cmd" am: 271dfbe8df am: 5c576e6d48
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007272

Change-Id: I84439877d8ade20e17f92acd1fb70034ca69da34
2022-03-04 12:30:16 +00:00
Neil Fuller
5c576e6d48 Merge "Make NTP config configurable from cmd" am: 271dfbe8df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007272

Change-Id: If16a743fc61890fd9e64856edc3bd8ccc9a4dd46
2022-03-04 12:08:06 +00:00
Neil Fuller
030a692189 Make NTP config configurable from cmd
Enable NTP failure / timeout testing by providing an ability for testers
to change the NTP configuration. Also improve debugging information from
dumpsys and logs.

Testing:

adb shell cmd network_time_update_service set_server_config --hostname localhost
adb shell dumpsys network_time_update_service
adb shell cmd network_time_update_service force_refresh
<observe false>

adb shell dumpsys network_time_update_service
adb shell cmd network_time_update_service set_server_config --hostname localhost --timeout_millis 1000
adb shell dumpsys network_time_update_service
adb shell cmd network_time_update_service force_refresh
<observe false, but faster>

adb shell cmd network_time_update_service set_server_config --hostname localhost --timeout_millis 10000
adb shell dumpsys network_time_update_service
adb shell cmd network_time_update_service force_refresh
<observe false, but slower>

adb shell cmd network_time_update_service set_server_config
adb shell cmd network_time_update_service force_refresh
<observe true>

Bug: 213393821
Test: See above
Change-Id: Ic66c7fabe0b42a3d5c86f8b85f17096bf64a8209
2022-03-03 15:40:33 +00:00
Neil Fuller
624a892191 Merge "Command-line interface: NetworkTimeUpdateService" am: 8ac370e63f am: 7b559562f7 am: f12a783920
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2002571

Change-Id: I4c7d0a18bece446ccc828acfd3e70d91d74e902e
2022-03-02 14:35:26 +00:00
Neil Fuller
f12a783920 Merge "Command-line interface: NetworkTimeUpdateService" am: 8ac370e63f am: 7b559562f7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2002571

Change-Id: Ia2389b5e2018bc27a19e4a8bc057baaa37e544fe
2022-03-02 14:11:14 +00:00
Neil Fuller
7b559562f7 Merge "Command-line interface: NetworkTimeUpdateService" am: 8ac370e63f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2002571

Change-Id: I1cb528ea3740f8ac54a30f79c4b9aeb7abb6b229
2022-03-02 13:51:11 +00:00
Jason Chiu
924c4c438b Enable Settings Search surfacing full screen for large screen
Test: visual
Bug: 205079744
Change-Id: Ib5b9eb9728a8687255e227659c74e66cda6a9b90
2022-03-02 14:29:00 +08:00
Neil Fuller
b368bac149 Command-line interface: NetworkTimeUpdateService
Initial command-line interface for NetworkTimeUpdateService for use in
tests.

To be joined by more commands as they are identified.

Bug: 213393821
Test: adb shell cmd network_time_update_service help
Test: adb shell cmd network_time_update_service clear_time
      && adb shell dumpsys network_time_update_service
Test: adb shell cmd network_time_update_service force_refresh
      && adb shell dumpsys network_time_update_service
Change-Id: I033764a7df9759e9fd4da0b0776f6535a574ff59
2022-03-01 10:34:36 +00:00
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