692799 Commits

Author SHA1 Message Date
Steven Moreland
710f817286 Parcel: better debug recycle
Detect recycle called twice always (and when DEBUG_RECYCLE is on, we
detect recycle called twice or called zero times, and we show a stack).

Bug: 231799394
Test: manual (calling recycle twice)
Change-Id: I1dd9f392ee916edd9c598085a1c19dbdd3ce957f
Merged-In: I1dd9f392ee916edd9c598085a1c19dbdd3ce957f
2022-06-24 20:43:45 +00:00
Daeho Jeong
6fa155f8ed Make minimum gc sleep time tunnable
Test: check smart idle maint log of StorageManagerService
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I004bb6752e84d26b041cfdd27848949f6e49d05e
2022-06-24 13:20:36 -07:00
Eric Biggers
7d9e115186 SyntheticPasswordManager: rename derivePassword() to deriveSubkey()
The output of derivePassword() is a key (byte array, not hex encoded),
not a password.  Therefore, rename it to deriveSubkey().

No change in behavior; this is just a cleanup.

Test: atest SyntheticPasswordTests
Change-Id: Ie3d74a579963bcbe63fc93c1b4c436c2aba8c342
2022-06-24 19:19:54 +00:00
Rafael Higuera Silva
83050a70e0 Add NR bands to service state.
Bug: 231523547
Test: make
Change-Id: I2b2fb7b4728d9bd4af981fe853eaa69a6b51d33e
2022-06-24 18:35:29 +00:00
Gavin Corkery
2b11e008d2 Merge "Add manual rollback sample app" 2022-06-24 10:19:34 +00:00
Lucas Lin
4c7e8dc8a9 Merge "Improve the code of handleSessionLost()" 2022-06-24 08:32:20 +00:00
Weilin Xu
0948b77d4f Merge "Added new owner to radio service folder" 2022-06-23 22:40:26 +00:00
Weilin Xu
de57566c98 Added new owner to radio service folder
Bug: 232461611
Test: m -j
Change-Id: I41c9bb1d0fd554e0f598223f8cbf013776275d39
2022-06-23 22:39:02 +00:00
Treehugger Robot
4b99d002c9 Merge "Fix failing benchmark by correcting Provider name." 2022-06-23 21:33:04 +00:00
Nate(Qiang) Jiang
50ce6b32e3 Merge "Remove services.net-module-wifi" 2022-06-23 20:42:12 +00:00
Daeho Jeong
a31a605797 Make smart idle maint update write amount record every period
Now, when the condition doesn't meet, smart idle maintenance service
doesn't update write amount record. Fixed it, since it should be updated
every period.

Test: check smart idle maint log of StorageManagerService
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I339109fcaa821620a3b9b4b8c49e25fd18d03cf3
2022-06-23 11:45:21 -07:00
Jeff Sharkey
a3a88b5d2b Merge "OWNERS for StatementService" 2022-06-23 15:33:38 +00:00
Miguel
2d0ae712a9 Fix failing benchmark by correcting Provider name.
Test: atest MessageDigestPerfTest
Bug: 236922387
Change-Id: I80af7091a1e8229d4ac29437a8b6d46d1c206eb5
2022-06-23 15:09:59 +00:00
Anton Hansson
16d142849e Merge "Add a system variant of the merged annotations" 2022-06-23 15:07:10 +00:00
Treehugger Robot
c3560c6c68 Merge "Update VibrationAttributes javadocs for FLAG_BYPASS_INTERRUPTION_POLICY" 2022-06-23 15:00:50 +00:00
Lais Andrade
2d6c839d89 Update VibrationAttributes javadocs for FLAG_BYPASS_INTERRUPTION_POLICY
Add clarification that this flag can only be applied by privileged apps, and will be ignored otherwise.

Bug: 236932598
Change-Id: I78db484b9d479abed67689c827707b6f141b2c00
Test: N/A
2022-06-23 13:13:42 +00:00
Gavin Corkery
e374f5096e Add manual rollback sample app
This application can be installed as a signature app. It displays
all available rollbacks, and will manually trigger the rollback of
all selected rollback IDs. This application will not trigger a
reboot in the case of staged rollbacks.

Test: m SampleRollbackApp, adb install. Manually install a train
      with rollback enabled and reboot. Verify that the available
      rollback is displayed, and that the rollback can be committed.
Bug: 220204580
Change-Id: Id2e5afac9e25532d8c24ea2b803c07dcfdb84d85
2022-06-23 12:53:34 +00:00
Anton Hansson
24f473395d Merge "Refactor merged annotations creation" 2022-06-23 11:59:41 +00:00
Anton Hansson
74b1564144 Add a system variant of the merged annotations
This is going to be disted instead of the monolithic one being
used currently.

Bug: 235140934
Test: m sdk-annotations{,-system}.zip and diff; manual spot checking
Test: m sdk dist && diff out/dist/system-data/annotations.zip with this
Change-Id: I9874f88e933a8b804a73638e6bac7a9d312c7c9f
2022-06-23 10:15:29 +00:00
Anton Hansson
0c5d9ab598 Refactor merged annotations creation
It's clearer to define the module in Android.bp, and keep
our custom Go code to the minimal. The only thing the go
code really needs to do is create a "all module annotations"
module. This matches the pattern of the other modules here (the
pattern was invented after sdk-annotations.zip was first
migrated).

Bug: 235140934
Test: m sdk-annotations.zip before/after (no diffs)
Change-Id: Iae246081bcf4e5177d1da98c2e01c702fb349a22
2022-06-23 08:04:55 +00:00
Almaz Mingaleev
10c7acc51d Merge "Remove TZUvA feature." 2022-06-23 07:47:26 +00:00
Songchun Fan
3cededd72b OWNERS for StatementService
BUG: 235776129
Test: n/a
Change-Id: I823e9646e2cf6519cb1b57fa5cfbcdc4b1e7c0c6
2022-06-22 17:09:58 -07:00
Treehugger Robot
85563e7a22 Merge "correct the comments information for settings" 2022-06-22 20:36:37 +00:00
Yan Yan
949e7c26dc Merge "Minor cleanups in VPN" 2022-06-22 20:35:05 +00:00
Treehugger Robot
4a0a36425a Merge "BatteryStatsImpl: Add parcel methods for DisplayBatteryStats." 2022-06-22 19:39:59 +00:00
Treehugger Robot
f46a32f2b7 Merge "Fix ADB key file reading" 2022-06-22 19:35:22 +00:00
Treehugger Robot
a4106af231 Merge "modify the comment for SYNC_DISABLED_MODE_NONE" 2022-06-22 16:11:54 +00:00
Treehugger Robot
f116c05101 Merge "Require CONFIG_HID_PLAYSTATION for DualSense key layout" 2022-06-22 15:27:58 +00:00
Evan Laird
1469de0e53 Merge "SystemUI: Fix issue that log can't be enabled in MobileSignalController" 2022-06-22 14:04:17 +00:00
Jeff Sharkey
f9d5016fe0 Merge "Add OWNERS file for frameworks/base/tools/localedata/extract_icu_data.py" 2022-06-22 13:31:46 +00:00
zhangjincheng
df0acf74ea correct the comments information for settings
Change-Id: I2931f9cdb22de8749e755b4efc0ce347868ed915
Signed-off-by: zhangjincheng <zhangjincheng@xiaomi.com>
2022-06-22 11:43:19 +00:00
zhangjincheng
15accb6437 modify the comment for SYNC_DISABLED_MODE_NONE
what is the mean of SYNC_DISABLED_MODE_NONE?

form code, it may should be "sync is not disable"

Signed-off-by: zhangjincheng <zhangjincheng@xiaomi.com>
Change-Id: I0017001966a9bee524e92803a1bc48a436f68129
2022-06-22 15:01:22 +08:00
Treehugger Robot
b8126a28cc Merge "Update OWNERS file under AAOS" 2022-06-22 04:09:44 +00:00
Nate Jiang
936857a546 Remove services.net-module-wifi
Bug: 172457099
Test: build Wifi Module
Change-Id: I76f80acaf2f9fa1311a85335b1755e0897fe470b
2022-06-22 02:43:54 +00:00
William Hester
efb8194ec4 Fix ADB key file reading
The "adb_temp_keys.xml" file is used to keep track of each ADB key and
when it was previously connected. It also keeps track of authorized WiFi
networks. It is written correctly, however, the parser currently is
unable to read the file that it wrote, meaning that:
1. ADB keys never properly expire
2. WiFi APs are never properly restored

Furthermore, because of complex interactions with restoring the adb_keys
file in Test Harness Mode, duplicate keys get appended repteatedly to
the adb_keys file if they're not in the key map.

This cleans up the file, making it more testable, adds tests for the
previously broken functionality, and just performs some simple
restructuring of bits of the code that were error-prone.

Now, the adb_keys file is nothing but a view of the temp keys file. When
keys are added to the temp keys file, we completely rewrite the adb_keys
file with the set of keys present in the temp keys file, meaning that
duplicates cannot be added.

This also introduces a method for other system services (primarily for
TestHarnessModeService) to notify the AdbDebuggingManager that the key
files were modified, and it should reload the state.

Bug: 236299256
Test: atest AdbDebuggingManagerTest

Change-Id: Iae955aca17e873288d58b16f184bd4d325d50d86
2022-06-21 15:51:56 -07:00
William Hester
03aa26da51 Merge "Add OWNERS for core/java/android/debug" 2022-06-21 22:47:44 +00:00
William Hester
6f06edfc85 Add OWNERS for core/java/android/debug
enh@google.com and shaju@google.com own ADB, so they should own this
code path.

Change-Id: I161af9738c16ba3f93ebd4a8cf0edd3e74af4aaf
Test: N/A
2022-06-21 15:45:02 -07:00
Chris Wailes
a2143c07bb Merge "Add System Properties based settings for USAPs" 2022-06-21 22:19:49 +00:00
Chris Wailes
ba5507489b Merge "Reset stack guard after fork from Zygote" 2022-06-21 18:28:11 +00:00
Jayant Chowdhary
273aaf2658 Merge "s/get_interesting_hal_pids/get_interesting_pids." 2022-06-21 17:13:18 +00:00
T.J. Mercier
f19a97c28e Merge "Revert "Freeze all package processes before killing"" 2022-06-21 15:41:36 +00:00
Jing Ji
f24ac73825 Merge "Recheck the condition before really killing" 2022-06-21 03:27:33 +00:00
Miguel Aranda
5c73e446de Merge "Fix ByteBufferBulkPerfTest issues by shortening param & test names." 2022-06-20 14:05:47 +00:00
Miguel Aranda
464ee3d1f1 Merge "More libcore benchmarks" 2022-06-20 14:05:33 +00:00
Treehugger Robot
eb681f393e Merge "Merge SQ3A.220605.009" 2022-06-20 13:36:04 +00:00
Miguel
c65100489c Fix ByteBufferBulkPerfTest issues by shortening param & test names.
Android's Trace class seems to have a 127 char limit to section names (which is
not enforced running locally), which should no longer be hit when this
change goes through.

Bug: 236230898
Test: atest ByteBufferBulkPerfTest
Change-Id: I0ff3f13bc0d22bc412dfedad2772fc8c341f8f0c
2022-06-20 08:30:13 +00:00
Miguel
844e9f47e0 More libcore benchmarks
Test: atest {TestName}
Change-Id: I1ff5876dc68d316ec95412513a4b7ceeff82d638
2022-06-20 08:29:53 +00:00
Jooyung Han
7107a2390f Merge "Remove android.media.audio.common.types from VNDK" 2022-06-20 01:15:09 +00:00
Chris Wailes
6c93d632d6 Reset stack guard after fork from Zygote
Bug: 168258494
Test: Check log for change in stack guard
Change-Id: I8a2671b54497faaba0c368df9f755e6e9197f267
2022-06-17 16:29:25 -07:00
Vishnu Nair
1f02cb71f6 Merge "Updated OWNERS file" 2022-06-17 23:08:29 +00:00