Commit Graph

566955 Commits

Author SHA1 Message Date
Siim Sammul
e3873010be Merge "Store the collected binder latency samples in buckets to form a histogram. Add the ability to generate histograms with varying bucket counts and sizes." 2021-05-12 09:40:18 +00:00
Yo Chiang
c2c3a3c7d4 Merge "DSUService: Deduplicate InstallUserdata() and InstallScratch()" 2021-05-12 09:39:04 +00:00
Chiachang Wang
6a6fa67d58 Merge "Remove sendNetworkConditionsBroadcast" 2021-05-12 09:24:02 +00:00
Lorenzo Colitti
5a31cd4f84 Merge "Rename unwanted capabilities to forbidden capabilities." 2021-05-12 09:00:17 +00:00
Paul Hu
68301eb7cb Merge "Add MATCH_ANY_USER flag to PackageInfo queries" 2021-05-12 07:13:17 +00:00
Yi-Yo Chiang
677dfeae2d DSUService: Deduplicate InstallUserdata() and InstallScratch()
Factor out common code and some minor polishing.

Bug: 165471299
Test: Fire a DSU installation and observe logcat
Change-Id: Ia13db74c038e49d888e69e43b59ab0ad5b078464
2021-05-12 06:58:06 +00:00
David Su
0885cc3db9 Merge "services.net-module-wifi: Add TEST_MAPPING" 2021-05-12 01:48:32 +00:00
Treehugger Robot
316b537c9a Merge "[DO NOT MERGE] Handle landscape and portrait display for PIP rotation" 2021-05-12 00:33:54 +00:00
Treehugger Robot
561b4c8aad Merge "Bluetooth ScanFilter: Allow null in setDeviceAddress" 2021-05-11 23:38:35 +00:00
Shawn Willden
844e7e7f6b Merge "TEMP" 2021-05-11 22:53:43 +00:00
Max Bires
4855d5689c TEMP
Add system/bin/keystore2 to the list of 'interesting' processes to
watch.

Test: ANR something
Bug: 184006658
Change-Id: I7c7caace65034b10657b90d2b656b3623cf149bf
2021-05-11 22:51:45 +00:00
Andy Hung
e477e9686f Merge "AudioTrack: 24 channel index masks, compressed formats" 2021-05-11 21:36:34 +00:00
Hui Wang
fb0990fa0a Merge "Update the format of RCS provisioning config XML" 2021-05-11 20:18:26 +00:00
Aurimas Liutikas
600dcaf908 Merge "Fix incompatibilities with Kotlin 1.5.0" 2021-05-11 20:12:09 +00:00
Treehugger Robot
565f3fe51c Merge "HDMICEC: Add setarc shell command" 2021-05-11 18:09:17 +00:00
Andy Hung
d3ceb62024 AudioTrack: 24 channel index masks, compressed formats
PCM channel count is limited to AudioSystem.CHANNEL_OUT_MAX.

Compressed channel count is limited to AudioSystem.FCC_24
as typically the data rate is smaller than the equivalent
PCM channel count stream.

Test: atest AudioTrackTest
Test: atest AudioTrackTest#testImmersiveStreaming
Test: atest AudioTrackTest#testImmersiveChannelIndex
Bug: 187062102
Change-Id: I96b2e37c9b59c9e38a0caf69e19c280949c4d099
2021-05-11 11:01:22 -07:00
Vova Sharaienko
360eb85898 Merge changes from topic "lmkd_ams"
* changes:
  AMS: added caching DataInputStream object
  ActivityManagerService: reroute lmkd atoms logging
2021-05-11 17:29:20 +00:00
Treehugger Robot
9955752655 Merge "Revert "Use TelephonyManager#isEmergencyNumber() instead"" 2021-05-11 17:10:29 +00:00
Benedict Wong
1a88665f3c Merge "Add clarifying comments on for IPsec forward policies" 2021-05-11 17:00:57 +00:00
Treehugger Robot
56ba9447cf Merge changes I87740397,I0cc4538b,Iaceb2b7c
* changes:
  Wait for BOOT_COMPLETE event before scheduling the bootDexoptJob
  Use BatteryManagerInternal to determine low battery.
  BackgroundDexOptService: defer post-boot job further
2021-05-11 16:18:00 +00:00
Collin Fijalkovich
919e8c1ba3 Merge "Compile libhwui.so with 2MB section alignment." 2021-05-11 16:13:58 +00:00
Treehugger Robot
0e52d9c6f9 Merge "Fix the path of boot image profile and preloaded classes for frameworks." 2021-05-11 15:56:46 +00:00
Siim Sammul
fff7124d3a Store the collected binder latency samples in buckets to form a
histogram. Add the ability to generate histograms with varying bucket
counts and sizes.

This is a direct cherrypick with no changes

Bug: 179999191
Test: unit tests

Change-Id: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
Merged-In: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
(cherry picked from commit dcd3dc69a1)
2021-05-11 15:52:04 +00:00
David Su
f9c9dba0fb Merge "Emphasize possibility of multiple networks with same transport" 2021-05-11 15:51:28 +00:00
Anton Hansson
46dff8e09f Merge "Apply the same filtering for docstubs and jarstubs" 2021-05-11 11:24:14 +00:00
Anton Hansson
af9b5f0a04 Merge "Use filegroups for test-{base,mock,runner} srcs" 2021-05-11 10:09:00 +00:00
Lucas Lin
7283a692b0 Merge "Replace hidden API with public API" 2021-05-11 09:52:50 +00:00
Anton Hansson
0ee8641209 Merge "Fix incorrect package in PackageChangeReceiver" 2021-05-11 09:46:29 +00:00
Anton Hansson
dbf1544b68 Merge "Inline two constants from CorePlatform" 2021-05-11 09:00:57 +00:00
Lorenzo Colitti
1d4fb5b91c Rename unwanted capabilities to forbidden capabilities.
Addresses API council feedback.

Bug: 184890428
Test: atest FrameworksNetTests CtsNetTestCases
Test: atest CtsNetTestCasesLatestSdk:NetworkCapabilitiesTest on R device
Change-Id: Id7c68fbf56ee08fcad8e8e3aacf037fa1885936b
2021-05-11 17:46:13 +09:00
Treehugger Robot
b369ebee31 Merge "Add back @UnsupportedAppUsage to IS_DEBUGGABLE" 2021-05-11 07:32:37 +00:00
Tianjie Xu
964fccfefd Merge "Check null for before using LockSettingsService" 2021-05-11 04:50:15 +00:00
Benedict Wong
fae9ba6535 Merge "Add log prefixes to uniquely identify each VCN/gwConn" 2021-05-11 01:34:58 +00:00
Shuo Qian
68417637dd Revert "Use TelephonyManager#isEmergencyNumber() instead"
Revert submission 1453740-replace_with_isEmergencyNumber

Reason for revert: <Telephony service may not up while calling this, causing failures.>

This also cherry picks ag/14444738

Change-Id: I5aa71917ce1b2abcdfcf78b8988d128982a6b3ec
Bug: 132703886
Bug: 181062609
Bug: 187720309
Merged-In: I5df03a61f55f863e17594aa3239433a5048a4890
2021-05-11 01:32:44 +00:00
Benedict Wong
d7d2d2a15b Merge changes from topic "vcn-fwd"
* changes:
  Apply transform to FWD policy if configured to provide tethering
  Add internal support for IPsec forward policies
2021-05-11 01:30:31 +00:00
Benedict Wong
9bde08840f Add clarifying comments on for IPsec forward policies
This change adds clarifying comments for the usage of the forward
policies in IPsec, and corrects a comment to properly specify the
permissions allowed.

Bug: 185495453
Test: Comment-only changes
Change-Id: I6d36522c344c41b0ebd90d46b216d115b678dd31
2021-05-10 18:26:02 -07:00
lucaslin
bfb3e5088f Remove sendNetworkConditionsBroadcast
sendNetworkConditionsBroadcast is removed, so
TestNetworkStackService.kt cannot override it anymore,
otherwise there will be a build break when running this
test.
Also add a comment for NETWORK_CONDITIONS_MEASURED in
AndroidManifest.xml.

Bug: 124415874
Test: atest FrameworksNetIntegrationTests
Change-Id: I7b43940dc32826c70fa82f471b35bc5cb8394aad
Merged-In: I7b43940dc32826c70fa82f471b35bc5cb8394aad
2021-05-11 09:25:54 +08:00
Tianjie
31b3cbf029 Check null for before using LockSettingsService
If the locksettings service fails to start, the resume on reboot
APIs will throw a nullptr exception in RecoverySystemService. Add
some check to prevent crashing the system server.

Bug: 184596745
Test: build
Change-Id: I5b1781612ec8d855d94b2828b5b5cfee9a84aebe
2021-05-10 18:01:16 -07:00
Vova Sharaienko
a89d79ba31 AMS: added caching DataInputStream object
DataInputStream is cached for the lmkd socket communication
Since the LmkdConnection ByteBuffer is allocated once,
no need to dynamically allocate DataInputStream,
just do a reset() before using

Bug: 184698933
Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS
Test: statsd_testdrive 51 54 to inspect statsd logged atoms data
Change-Id: I9b65d82618654d59236c79be8cd8da66bc90c91c
Merged-In: I9b65d82618654d59236c79be8cd8da66bc90c91c
2021-05-11 00:22:58 +00:00
Vova Sharaienko
48f93dabe0 ActivityManagerService: reroute lmkd atoms logging
- Added support to subscribe for a lmkd LMK_ASYNC_EVENT_STAT event
- Added processing LMK_KILL_OCCURRED and LMK_STATE_CHANGED packets
  with logging to statsd
- Added statsd auto-generated code wrapping the statsd logging

Bug: 184698933
Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS
Test: statsd_testdrive 51 54 to inspect statsd logged atoms data
Change-Id: I69ef1a9daa5532244a15665bff06d0ad6b370869
Merged-In: I69ef1a9daa5532244a15665bff06d0ad6b370869
2021-05-11 00:14:58 +00:00
Calin Juravle
f0d01f45b1 Wait for BOOT_COMPLETE event before scheduling the bootDexoptJob
Also, clean up logging and transition to Slog.

Test: manual
Bug: 179094324
Change-Id: I87740397b6f8fc85faf4bbb2222434f90ebad554
2021-05-10 15:22:39 -07:00
Kweku Adams
937355815f Use BatteryManagerInternal to determine low battery.
BatteryManagerInternal calls into BatteryService, which has its own
logic for identifying low battery. BatteryService's low battery logic
takes a user's setting into account. Switch to using BatteryService's
logic so we can standardize on battery low logic.

Bug: N/A
Test: Android builds

(cherry-pick from commit de95150c42)

Merged-In: I0cc4538bb80ce21e42721eccf6b6671d52a24084
Change-Id: I0cc4538bb80ce21e42721eccf6b6671d52a24084
2021-05-10 15:19:43 -07:00
Benedict Wong
3996048bad Merge "Add additional logging to improve debugability of VcnManagementService" 2021-05-10 21:22:23 +00:00
Benedict Wong
d155b44859 Add log prefixes to uniquely identify each VCN/gwConn
This change adds additional logging prefixes to uniquely identify
connections and vcn instances to allow for better debugging.

Test: atest FrameworksVcnTests
Change-Id: Ied1aa2b2502c9cbe59358755eb65ed369fdbd987
2021-05-10 14:17:30 -07:00
Brad Ebinger
0ad0a88143 Merge "Add the REGISTRATION_TECH_NR Tech type" 2021-05-10 21:02:25 +00:00
Myles Watson
025714ff33 Bluetooth ScanFilter: Allow null in setDeviceAddress
Bug: 187076761
Test: manual scan filter test
Change-Id: I6456be4baab4b2a2b6d4607619ff92370b8b457d
2021-05-10 13:52:32 -07:00
Siim Sammul
60cd2fa626 Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." 2021-05-10 18:10:58 +00:00
Rahul Sabnis
d8c539d8b8 Merge "Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the device is bonding, we either broadcast cached UUIDs or wait for SDP to be performed after the device is bonded." 2021-05-10 17:41:36 +00:00
Siim Sammul
5e6453dc94 Create BinderLatencyObserver to collect binder call latency stats.
Pushing these as a metric will come in a future change.

This is a direct cherrypick with no changes.

Test: unit tests

Change-Id: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
Merged-In: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
(cherry picked from commit 8d0ecde2b8)
2021-05-10 16:53:05 +00:00
Calin Juravle
c900ba3cd6 Merge "Enforce system/root/shell for dexopt operation." 2021-05-10 16:39:50 +00:00