Commit Graph

566935 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Andy Hung
ba32f57428 Merge "AudioFormat: Retrieve sample rate capability from framework" 2021-05-10 16:23:37 +00:00
Andy Hung
4afe15ccb0 AudioFormat: Retrieve sample rate capability from framework
Allows a device to specify a higher sample rate (e.g. 384kHz)
and have it acknowledged by CTS.

Test: AudioTrackTest#testGetMinBufferSizeTooHighSR
Bug: 135474352
Bug: 187062102
Change-Id: I2a44590970b437c1090c615961432afce974f2ba
2021-05-10 16:22:59 +00:00
Anton Hansson
76ac4cc96f Apply the same filtering for docstubs and jarstubs
A package filter was previously applied to just the jarstubs package,
but not the docstubs. This lead to various internal classes appearing in
the public documentation. Fix that to apply the same filter for both.

This removes the following classes from the docs:
    android/telephony/PackageChangeReceiver
    com/android/net/module/util/CollectionUtils
    com/android/net/module/util/ConnectivityUtils
    com/android/net/module/util/NetworkCapabilitiesUtils
    com/android/net/module/util/NetworkIdentityUtils
    com/google/android/collect/Lists
    com/google/android/collect/Maps
    com/google/android/collect/Sets
    com/google/android/gles_jni/EGLConfigImpl
    com/google/android/gles_jni/EGLContextImpl
    com/google/android/gles_jni/EGLDisplayImpl
    com/google/android/gles_jni/EGLImpl
    com/google/android/gles_jni/EGLSurfaceImpl
    com/google/android/gles_jni/GLImpl
    com/google/android/util/AbstractMessageParser
    com/google/android/util/AbstractMessageParser$Acronym
    com/google/android/util/AbstractMessageParser$FlickrPhoto
    com/google/android/util/AbstractMessageParser$Format
    com/google/android/util/AbstractMessageParser$Html
    com/google/android/util/AbstractMessageParser$Link
    com/google/android/util/AbstractMessageParser$MusicTrack
    com/google/android/util/AbstractMessageParser$Part
    com/google/android/util/AbstractMessageParser$Photo
    com/google/android/util/AbstractMessageParser$Resources
    com/google/android/util/AbstractMessageParser$Smiley
    com/google/android/util/AbstractMessageParser$Token
    com/google/android/util/AbstractMessageParser$Token$Type
    com/google/android/util/AbstractMessageParser$TrieNode
    com/google/android/util/AbstractMessageParser$Video
    com/google/android/util/AbstractMessageParser$YouTubeVideo
    com/google/android/util/Procedure
    com/google/android/util/SmileyParser
    com/google/android/util/SmileyResources

Bug: 187386774
Test: diff framework-doc-stubs/../api-versions.xml before and after
Change-Id: I85b1485b4c5bc1b30a5d537e96d961382f298fb7
2021-05-10 17:06:04 +01:00
Jay Patel
249034de9d Merge "AudioSystem: update framework channel capabilities" 2021-05-10 14:47:52 +00:00
Remi NGUYEN VAN
0ef41fbca2 Add back @UnsupportedAppUsage to IS_DEBUGGABLE
The annotation was removed when adding the constant to the public API,
but it was removed from the public API in favor of Build.isDebuggable() in
a later change.

Add back the @UnsupportedAppUsage annotation that should have been
added back when removing the constant from the public API.

Change-Id: Ic2fda01a8c0e90712a1b7b435443d32f7e226d33
Fixes: 187432390
Test: m
2021-05-10 14:45:38 +00:00
Gavin Corkery
c27a2ab087 Merge "Add OWNERS to RescueParty" 2021-05-10 13:54:23 +00:00
Gavin Corkery
b9d9b1ac79 Add OWNERS to RescueParty
Test: Builds
Bug: 180579911
Change-Id: Icb592c7db07feefe7e35278496532a91e49f9b3d
2021-05-10 13:00:17 +01:00
Anton Hansson
2e25fdc90f Use filegroups for test-{base,mock,runner} srcs
This allows soong to infer the package of the given srcs, which in turns
make it able to filter the inputs to metalava to exclude unwanted
packages.

This is part of a larger topic of changes intended to remove undesired
classes from the public documentation.

Bug: 187386774
Test: m
Change-Id: I8196c306b743ce6ca8a6452d212f3d7c0b5b2b82
2021-05-10 12:41:01 +01:00
Anton Hansson
6c4de79bcc Fix incorrect package in PackageChangeReceiver
This class is  meant to be internal but accidentally had the wrong
package name set. Rectify that to avoid it appearing in documentation.

Test: diff docs with internal filter applied, verify PCR is gone.
Change-Id: I498d460a524c878aafdf4f1a4497fcc51979c343
2021-05-10 12:16:32 +01:00
Anton Hansson
4e86dcad12 Inline two constants from CorePlatform
Inlining these constants allow the public api metalava run to depend on
ART's public API rather than the "internal" CorePlatform API, which
prevents picking up unintentional classes (such as annotations) from the
CorePlatform API in the public stubs.

Because these constants get inlined in the API/stubs, and the constants
have been finalized for many years, they can never change. Because they
cannot change, reusing the constant is of limited value. I've added
some comments to point readers to other places the constant is used.

Bug: 154796679
Test: m checkapi
Change-Id: I0b347a2964cfe5a1206145fdc56934727b890469
2021-05-10 10:28:02 +01:00
Anton Hansson
ee95f486e5 Merge "Add targets to build doc-stubs for non-updatable" 2021-05-10 08:55:07 +00:00
Paul Hu
e01bb41ad7 Merge "Add missed break" 2021-05-10 01:42:24 +00:00
Mark Chien
20df56adb7 Merge "startTethering with silent entitlement in systemui" 2021-05-09 16:16:55 +00:00
James Lin
011be0d15a Merge "Add carrier config for the SIP 486 request forbidden and add API for SHELL command to remove the UCE requests cannot be sent the network status." 2021-05-09 13:50:14 +00:00
Treehugger Robot
3736d7ac1b Merge "Call apexd's API to allocate space before install non-AB package" 2021-05-08 21:44:57 +00:00
Treehugger Robot
d943c45349 Merge "DO NOT MERGE - Merge RQ2A.210505.003." 2021-05-08 21:38:02 +00:00
Xin Li
4ba43d5b0b DO NOT MERGE - Merge RQ2A.210505.003.
Bug: 187544653
Merged-In: If9e34a0120121ed851b911c8a8bd2bbe0e0f9e34
Merged-In: Ia6bd5658b77a26ab15fea013ec875050457473e0
Change-Id: I2e22d2bdd2c54eb3489fe82f2601ded2af16bd5c
2021-05-08 08:39:19 +00:00