Commit Graph

1810 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
81568fa22f Merge "Delete legacy fs-verity support" 2022-02-08 00:48:19 +00: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
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
Jing Ji
162bf7f024 Merge "Add settings to toggle the phantom process monitoring in dev options" into sc-v2-dev am: 1a789dc532
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16463227

Change-Id: I88d048fb2f44aa1f838cad7935ad42f087f9487e
2021-12-14 23:26:48 +00:00
Jing Ji
09dcdad5eb Add settings to toggle the phantom process monitoring in dev options
For power users, the monitoring on phantom processes could be turned
off from the Settings->Developer Options->Feature flags.

Bug: 210353231
Bug: 205156966
Test: Manual
Test: atest AppChildProcessTest
Test: atest CtsAppTestCases:ActivityManagerTest
Change-Id: I05f5b43e281b98676c615d350c213620d3d72b5c
Merged-In: I05f5b43e281b98676c615d350c213620d3d72b5c
2021-12-14 06:42:43 +00:00
Jing Ji
e98ecfd6ac Add settings to toggle the phantom process monitoring in dev options
For power users, the monitoring on phantom processes could be turned
off from the Settings->Developer Options->Feature flags.

Bug: 210353231
Bug: 205156966
Test: Manual
Test: atest AppChildProcessTest
Test: atest CtsAppTestCases:ActivityManagerTest
Change-Id: I05f5b43e281b98676c615d350c213620d3d72b5c
Merged-In: I05f5b43e281b98676c615d350c213620d3d72b5c
2021-12-13 22:06:37 -08:00
Edward Savage-Jones
ba3ca9252b Redact key value from log when DEBUG is false
See bug for details

Bug: 184525194
Test: see bug
Change-Id: I713fd8c03444167faf35a170b885c38af5482e31
Merged-In: I713fd8c03444167faf35a170b885c38af5482e31
2021-12-11 01:25:02 +00:00
Neil Fuller
dfa18bff1b Merge "Use ISO 8601 format for LocalLog local timestamps" am: 172fd44b2f am: 22ed1a7a79 am: 218b1d80e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1878440

Change-Id: I8848a0d7a1e256b3cb71188137ab51a8a1c829b3
2021-12-07 15:17:42 +00:00
Neil Fuller
172fd44b2f Merge "Use ISO 8601 format for LocalLog local timestamps" 2021-12-07 14:26:24 +00:00
Treehugger Robot
703f963cc4 Merge "[MS06] Add carrier template fields into cloud backup/restore" am: bf424ed534 am: 3ac404a52d am: 2a239d2ae6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892336

Change-Id: Ibfb26963222568f64670c4bc3983c242a8595a28
2021-11-26 05:55:16 +00:00
Treehugger Robot
bf424ed534 Merge "[MS06] Add carrier template fields into cloud backup/restore" 2021-11-26 05:07:26 +00:00
Junyu Lai
4af17682d4 [MS06] Add carrier template fields into cloud backup/restore
NetworkTemplate with MATCH_CARRIER can be created in NPMS,
and can be backup by SettingsBackupAgent. However, since
the meteredness is not stored in the backup. After incorrectly
deducing from match rule, meteredness always becomes
METERED_ALL after restoring from backup.

This change also adds debug log if any non-persistable template
is being backed up.

Test: TH, dedicated test is included in the follow-up CL.
Bug: 204830222

Change-Id: I865b1d6e571ed998a75b776f01afc7c2534af2dc
2021-11-26 03:04:37 +00:00
Jonathan Lepage
4e0b4bc2ce Merge "Document that Log can quietly swallow UnknownHostExceptions." am: 9d01845696 am: fc60d843e6 am: 2bf9cccba6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1873073

Change-Id: If5276716a304cfc0e795e74d3457f2bf9b4f0f17
2021-11-16 00:55:37 +00:00
Neil Fuller
c4b75122e7 Use ISO 8601 format for LocalLog local timestamps
Change to using ISO 8601 duration formatting for LocalLog local
timestamps, which makes it consistent with other time / time zone
detection dumpsys for easier comparison.

LocalLog is used by NetworkStack code as a standalone library, so
therefore has to depend on public SDK APIs, hence the use of Duration.

The local timestamp logging mode is only currently used for time / time
zone detection, which is low-frequency logging.

Bug: 204855374
Test: atest core/tests/coretests/src/android/util/LocalLogTest.java
Change-Id: Idce0d39c59670facdf48deca852b862ff0d71991
2021-11-15 17:30:27 +00:00
TreeHugger Robot
d9cbb79988 Merge "Enable large screen flag in the Settings app" into sc-v2-dev am: a67a07e2fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16187602

Change-Id: I001ac219364f4293d55739d8ce0579dd4d81dbd4
2021-11-05 08:13:58 +00:00
Tsung-Mao Fang
d5c2afc91c Enable large screen flag in the Settings app
Test: Rebuilt rom and see flag enable.
Bug: 197829997
Change-Id: Ib2490a58c39cfeddc588c5355b652fcb86d391bd
Merged-In: Ib2490a58c39cfeddc588c5355b652fcb86d391bd
2021-11-05 06:31:19 +00:00
Jonathan Lepage
ff42a9938b Document that Log can quietly swallow UnknownHostExceptions.
Change-Id: I7d3239eadf7dd73dd1ff12d2924bb43d3e357299
2021-11-04 00:53:34 +00:00
Suprabh Shukla
0708411189 Merge "Redact key value from log when DEBUG is false" am: 17a7d79ff4 am: 694cf0f6af am: 23315f8003 am: fefc7f08be
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1458401

Change-Id: I00953ab4617fb631f792694e43376c67f421e705
2021-09-30 00:13:12 +00:00
Suprabh Shukla
694cf0f6af Merge "Redact key value from log when DEBUG is false" am: 17a7d79ff4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1458401

Change-Id: Iea902e93f038cd3a06d63cf6c6cdd149c873df79
2021-09-29 23:39:49 +00:00
Suprabh Shukla
17a7d79ff4 Merge "Redact key value from log when DEBUG is false" 2021-09-29 23:25:21 +00:00
Jordan Demeulenaere
6bd5b1160a Merge changes from topics "dialog-launch", "launch-animator" into sc-v2-dev am: 3bf72bd3f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15663086

Change-Id: If7f060b1c162f27d9659a0f71448d9622cbe25f8
2021-09-29 12:09:45 +00:00
Edward Savage-Jones
46b4ba4201 Redact key value from log when DEBUG is false
See bug for details

Bug: 170653379
Test: see bug
Change-Id: I713fd8c03444167faf35a170b885c38af5482e31
2021-09-29 06:53:42 +00:00
Jordan Demeulenaere
c0a85b7c3b Split ActivityLaunchAnimator (1/2)
This CL splits ActivityLaunchAnimator by extracting common logic into
LaunchAnimator. The goal of this CL is to be able to reuse the
LaunchAnimator logic for dialog launches.

This CL also improves GhostedViewLaunchAnimator such that it also works
with:
 * launch containers that are not located at (0, 0).
 * ghosted views that move.

Test: atest ActivityLaunchAnimatorTest
Bug: 193634619
Change-Id: Ic05603600d4a7d4e27182c79bef54286087d00d0
2021-09-23 17:17:47 +02:00
Nataniel Borges
a61012f1d7 [DO NOT MERGE] Sync flicker from master to sc-v2 am: c8287a930f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15716594

Change-Id: I1c8ba8041d346d6991fd113b60e75184aa849ea6
2021-09-04 00:36:01 +00:00
TreeHugger Robot
6bd19fab1c Merge "[DO NOT MERGE] Sync flicker from master to sc-v2" into sc-v2-dev 2021-09-04 00:15:31 +00:00
Michael Groover
221154184b Merge "Update APK sig scheme verification OWNERS" am: 1e5f1a293a am: 16fd109212 am: baa5efcd7b am: acae3b9578
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1817421

Change-Id: Ia93adaf84f08f75e5b964e047d3ef9c1ab69dade
2021-09-03 18:13:31 +00:00
Michael Groover
16fd109212 Merge "Update APK sig scheme verification OWNERS" am: 1e5f1a293a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1817421

Change-Id: I763efc9f320e551ca61462699e5f7ac12f6219fc
2021-09-03 17:25:21 +00:00
Michael Groover
1e5f1a293a Merge "Update APK sig scheme verification OWNERS" 2021-09-03 17:07:40 +00:00
shawnlin
bae802cfd8 [DO NOT MERGE]Support rounded corner for multi-display devices am: 6603444a76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15581983

Change-Id: Iaf7cd7b6c357c8df9f7abe39d737fd71e705d557
2021-09-03 04:04:19 +00:00
Michael Groover
9688bab011 Update APK sig scheme verification OWNERS
Bug: 198670656
Test: Builds
Change-Id: I2dd8de24baf29759a9000213650e4de49d2bb521
2021-09-02 13:20:14 -07:00
Nataniel Borges
c8287a930f [DO NOT MERGE] Sync flicker from master to sc-v2
Flicker on master diverged form sc-v2, to make it easier to debug
flicker issues on sc-v2, push the current version of flicker into sc-v2

Test: atest FlickerTests WMShellFlickerTests
Bug: 188792659
Change-Id: I1c832bf32214b12ba4b708bccfc95cf259324844
2021-09-01 12:06:21 +00:00
shawnlin
6603444a76 [DO NOT MERGE]Support rounded corner for multi-display devices
- Add new array configs for every rounded corner configs.
- Update rounded corner drawable when a display changes in
  ScreenDecorations.

Bug: 131221697
Test: atest DisplayCutoutTest RoundedCornersTest LocalDisplayAdapterTest
      ScreenDecorationsTest
Change-Id: I1f32ff680609267010b05a39a5b8e84511bf1243
2021-08-25 15:58:28 +08:00
TreeHugger Robot
2a084036e0 Merge "Add a feature flag to guard the large screen feature in Settings app." into sc-v2-dev am: ed8dd882dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15595470

Change-Id: Iba4a28b14e0dd02a0f823a03bfa419805b091cc1
2021-08-18 07:32:13 +00:00
Tsung-Mao Fang
1f6c1537d4 Add a feature flag to guard the large screen feature in Settings app.
Test: Rebuilt rom and see the flag in the developer page.
Fix: 196954032
Change-Id: I408dc22033331e10f62ca9563d091208059b5e1e
2021-08-17 22:43:10 +08:00
Jooyung Han
c65e303681 APK signature verification: use FileChannel#size
RandomAccessFile#length returns 0 for block devices while
FileChannel#size returns the correct size.

APK signature verification utils should work with block-device zip files
when Android is running as a guest OS and APK/APEX files are passed via
block devices.

This is a follow-up of 1257f1505c.

Bug: 193592496
Bug: 192366904
Test: FrameworksServicesTests
Merged-In: I3015fc30574c36c18c0d0c9ae7453d33a1349927
Change-Id: I3015fc30574c36c18c0d0c9ae7453d33a1349927
(cherry picked from commit 310edbe3c7)
2021-08-03 01:26:54 +09:00
Jooyung Han
ec78f1a834 APK signature verification: use FileChannel#size
RandomAccessFile#length returns 0 for block devices while
FileChannel#size returns the correct size.

APK signature verification utils should work with block-device zip files
when Android is running as a guest OS and APK/APEX files are passed via
block devices.

This is a follow-up of 1257f1505c.

Bug: 193592496
Bug: 192366904
Test: FrameworksServicesTests
Change-Id: I3015fc30574c36c18c0d0c9ae7453d33a1349927
(cherry picked from commit 310edbe3c7)
2021-07-31 07:57:30 +00:00
Jooyung Han
0c60cbf8c0 Merge "ZipUtils: use FileChannel#size" am: d0798d7117 am: f92201554a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1765685

Change-Id: I07df9fab5a971cc8cc5a4029a5935845efce27b0
2021-07-21 00:22:34 +00:00
Jooyung Han
1257f1505c ZipUtils: use FileChannel#size
RandomAccessFile#length returns 0 for block devices while
FileChannel#size returns the correct size. ZipUtils should work with
block-device zip files when Android is running as a guest OS and
APK/APEX files are passed via block devices.

Bug: 193592496
Bug: 192366904
Test: FrameworksServicesTests
Change-Id: I6472e2a9051b92a5a778b4990b8e681492985d1a
2021-07-14 13:58:55 +09:00
Alex Buynytskyy
7a1de6fe81 Key rotation support when updating an app on IncFS.
Bug: 190569284
Fixes: 190569284
Test: have two apks with .idsig; adb install <original apk>; adb install <apk with rotated keys>
Change-Id: I6ff854786aea31c6e9f3f1e33be0a33b4ba67ccb
Merged-In: I6ff854786aea31c6e9f3f1e33be0a33b4ba67ccb
2021-07-13 17:04:35 +00:00
Yohei Yukawa
9dde701446 Switch back to sync IInputMethodManager
This CL logically reverts recent CLs [1][2][3][4][5][6][7][8][9] to
switch back to the previous sync IPC approach in IInputMethodManager
except for the following two IPCs.

 * reportPerceptibleAsync
 * removeImeSurfaceFromWindowAsync

Reason for revert:
We need more time to understand its performance implications.

 [1]: If4b40244a2e0e3b11c38c1da9340ba8e5166ad64
      b9590fa1e1
 [2]: If79e063641a01b325c63eb9f871f5b992d7c0b72
      5a5648dcb5
 [3]: I1547b98b2aacf764e33aadc9ab784f2013f58f2f
      d833f0dab4
 [4]: I646ef4ae0570aae1812ea267f309441fdec6938d
      38fd020616
 [5]: Iaa63e01453da4ff0e3f446eac036b3be3180cb73
      4a820ccc41
 [6]: Id516fd1c961f43ac3e139c88d7ed004c188d458b
      0a32fd21ef
 [7]: Icb396ae5d74060af69c4ecb16723b2e37b9f2067
      c4663ba6a9
 [8]: I3eafbc28ed3acf3ba859885bf201cb06b3149b94
      f226a79fee
 [9]: Ic584203c1221fbae17f5e2d8f09e3992df061646
      5e2d9f271d

Bug: 163453493
Bug: 174892351
Fix: 190486491
Test: atest CtsInputMethodTestCases
Change-Id: If16ac0de536d9089eb04f6e07b1ee47378124658
Merged-In: If16ac0de536d9089eb04f6e07b1ee47378124658
2021-07-02 07:06:07 +00:00