Commit Graph

571274 Commits

Author SHA1 Message Date
Tianjie Xu
4eaa49eeb6 Merge "Add a system API UpdateEngine to switch the slot back and forth" 2021-07-27 02:03:10 +00:00
Lucas Dupin
103308ad5d Merge "Update boot animation owners" 2021-07-26 22:05:17 +00:00
Tianjie Xu
5c8dce3ada Merge "Add owner file for UpdateEngine" 2021-07-26 21:14:06 +00:00
Lucas Dupin
273227d1ac Update boot animation owners
Test: none
Bug: 190093578
Change-Id: Id83d1ff6bbec63ec94402260a29c3ddcbf0ae414
2021-07-26 18:59:27 +00:00
Suren Baghdasaryan
9af29add1f Merge "ActivityManagerService: report current and max thrashing levels" 2021-07-26 17:47:59 +00:00
Treehugger Robot
eb7dfa2f5f Merge "Mark classes as final that have final destructors" 2021-07-26 16:52:08 +00:00
Tianjie
dcbd9ea138 Add owner file for UpdateEngine
Test: th
Change-Id: I50c775874cb9ad54f049e415b6fb68ec29d7f1c8
2021-07-23 17:15:43 -07:00
Benedict Wong
3923c3acc6 Merge "Shorten safe mode timer in VCN test mode" 2021-07-23 23:25:46 +00:00
Benedict Wong
5985f02af9 Shorten safe mode timer in VCN test mode
This change reduces the time required to test VCN safe mode in CTS, in
order to meet the 30s CTS quality bar

Bug: 193482882
Test: atest --iterations 10 android.net.vcn.cts.VcnManagerTest
Original-Change: googleplex-android-review.git.corp.google.com/15375749
Change-Id: Ibbf7132d45a7a0e5554b74fda6b3e309ee2d9c44
Merged-In: Ibbf7132d45a7a0e5554b74fda6b3e309ee2d9c44
2021-07-23 21:35:10 +00:00
Suren Baghdasaryan
ee9cea7f92 ActivityManagerService: report current and max thrashing levels
Add thrashing and maxThrashing fields in LMK_KILL_OCCURRED report.

Bug: 194433891
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I016d95a9b2ba4b6f4ca814be1456cec59f4834da
Merged-In: I016d95a9b2ba4b6f4ca814be1456cec59f4834da
2021-07-23 12:08:35 -07:00
Liz Kammer
a4ddfbe33b Mark classes as final that have final destructors
Having a final destructor prevents the class from being inherited from,
adding the designation final to the class makes this behavior more
explicit. This is required to re-enable the error for
-Wno-final-dtor-non-final-class.

Test: m
Merged-In: Ia3126d30e19edfd17f7c8da368e9763ca5501e84
Change-Id: Id1d7c607af9cca0109e1f763052894cf179f4af1
2021-07-23 17:21:11 +00:00
Treehugger Robot
dc425aefbc Merge "OWNERS file entry for config_user_types.xml" 2021-07-22 21:06:21 +00:00
Adam Bookatz
f73c7a2c50 OWNERS file entry for config_user_types.xml
Change-Id: Ib1e9721a35be96a84f3b83421ba96f4d7c903c13
Test: N/A
2021-07-22 17:28:45 +00:00
Treehugger Robot
c2a7a9e5f5 Merge "Add OWNERS" 2021-07-22 12:57:47 +00:00
Weng Su
c3485a654c Add OWNERS
- Add OWNERS file to /frameworks/base/packages/SettingsLib/tests/robotests/ folder

- Do not guard tests - everyone is welcomed to contribute to tests.

Change-Id: I0310fc95a5116eed97428d2efb9da1e19d234f84
Test: N/A, just owners update
2021-07-22 10:12:29 +00:00
SongFerng Wang
8c19236f8f Merge changes from topics "ApiReview_DEVICE_NR_CAPABILITY", "getPhoneCapability"
* changes:
  Changing DEVICE_NR_CAPABILITY type and renaming getMaxActiveInternetData
  Add getPhoneCapability function in TelephonyManager
2021-07-22 06:15:05 +00:00
Treehugger Robot
265e8cf670 Merge "Unify the mismatch in the byte order of the address." 2021-07-21 17:31:11 +00:00
Treehugger Robot
00e6e9cd26 Merge "Revert "Add systrace tag for system property"" 2021-07-21 11:43:39 +00:00
Treehugger Robot
ac418218f8 Merge "profcollect: Add verbose logging for ota status updates" 2021-07-21 09:07:02 +00:00
Yi Kong
d316cc49ae profcollect: Add verbose logging for ota status updates
Test: presubmit
Bug: 178561556
Change-Id: I4cd6b9bdb15fec4e115fefbef69c0c1e687d2392
2021-07-21 07:32:58 +00:00
Benedict Wong
d92daec786 Merge "Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents" 2021-07-21 01:29:25 +00:00
Bowgo Tsai
1241c9b6f2 Revert "Add systrace tag for system property"
Revert "Add systrace tag for system property"

Revert "Adding system property tracing"

Revert submission 1403568-sysprop_trace

Reason for revert: makes property get/set non-reentrant
Reverted Changes:
I6f85f3f52:Add systrace tag for system property
Id2b93acb2:Adding system property tracing
Id78992d23:Add systrace tag for system property
I1ba9fc7bd:Add systrace tag for system property

Bug: 193050299
Change-Id: Iaf522b403e51abcf1d49804f35a184b4aa0d3209
Merged-In: Iaf522b403e51abcf1d49804f35a184b4aa0d3209
Test: build and boot a device
(cherry picked from commit 137d78bb67)
2021-07-21 09:24:29 +08:00
Benedict Wong
8d6f7c7280 Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents
This change sets TRANSPORT_PRIMARY for all NetworkScore objects passed
to ConnectivityService by the VCN. Without this patch, a VCN in safe
mode will never get any NetworkRequests, since the new Policy-based
NetworkRanker always prioritizes a existing satisfier of a network,
regardless of score. However, a higher-priority policy check ensures
that a TRANSPORT_PRIMARY request is used if it exists. This changes the
VCN to utilize that functionality.

Bug: 194122634
Test: atest FrameworksVcnTests
Change-Id: I3a298a6c4c594c6e224f3f05764614802c00e9b0
2021-07-21 00:44:19 +00:00
Jooyung Han
d0798d7117 Merge "ZipUtils: use FileChannel#size" 2021-07-20 23:50:59 +00:00
Tianjie
fdf7b58a43 Add a system API UpdateEngine to switch the slot back and forth
In some cases, the OTA update want to flip the slot to source
without cancelling the entire update. The functionality was
achieved by ResetStatus(). However ResetStatus() will clean up
the update progress and free up space to support virtual A/B.

Details in http://go/no-virtual-ab-switch-off

Test: build
Bug: 187321613
Change-Id: I2abcf8289f5fd573d2b55fa7004ab4dcd175252f
2021-07-20 15:29:37 -07:00
Treehugger Robot
bd268448fa Merge "Enable specification of 5G network info and carrier configs for ONS changes" 2021-07-20 19:45:42 +00:00
SongFerngWang
4a66d8e542 Changing DEVICE_NR_CAPABILITY type and renaming getMaxActiveInternetData
DEVICE_NR_CAPABILITY_*: Using int array instead of bitmask
Rename getMaxActiveInternetData and remove SystemAPI
Rename getMaxActivePacketSwitchedVoiceCalls

Bug: 180419672
Test: atest CtsTelephonyTestCases:android.telephony.cts.TelephonyManagerTest#testGetPhoneCapabilityAndVerify
atest CellularNetworkValidatorTest
atest PhoneCapabilityTest
atest PhoneSwitcherTest
atest TelephonyRegistryTest

Change-Id: Ia394537ec57900a410b283ddffdcead017e6d9c6
Merged-In: Ia394537ec57900a410b283ddffdcead017e6d9c6
2021-07-21 01:37:58 +08:00
Hans Boehm
e9554cb77c Merge "More consistently retry system calls on EINTR" 2021-07-20 17:26:43 +00:00
Treehugger Robot
cf89aac24b Merge "Scale stack dump timeout with HW_TIMEOUT_MULTIPLIER." 2021-07-20 17:26:03 +00:00
Treehugger Robot
a730b44c86 Merge changes I31ddbed9,I702a2449
* changes:
  HDMICEC: Add equals test for HdmiCecMessage
  HDMICEC: Add equals test for DeviceConfig
2021-07-20 16:55:49 +00:00
SongFerngWang
0c13fd19ec Add getPhoneCapability function in TelephonyManager
- Add a resource for Device's Nr information.
- Expose below as systemApi
  - getDeviceNrCapabilityBitmask()
  - getMaxActiveInternetData()
  - getMaxActivePacketSwitchedVoiceCalls()
Bug: 175711587
Test: atest TelephonyManager#testGetPhoneCapability
atest PhoneCapabilityTest
atest PhoneConfigurationManagerTest
atest CellularNetworkValidatorTest
atest PhoneSwitcherTest
atest TelephonyRegistryTest
atest PhoneCapabilityTest

Change-Id: Ide25344787c15b3a57a9e6621766ad02a906f12e
Merged-In: Ide25344787c15b3a57a9e6621766ad02a906f12e
2021-07-20 23:59:19 +08:00
Venkatarama NG. Avadhani
161e9b74a1 HDMICEC: Add equals test for HdmiCecMessage
Bug: 168713324
Test: atest HdmiCecMessageTest#testEqualsHdmiCecMessage
Change-Id: I31ddbed919ccf7a52824a0252c8d1db35bb6ebd9
Merged-In: I31ddbed919ccf7a52824a0252c8d1db35bb6ebd9
2021-07-20 15:10:27 +00:00
Treehugger Robot
cdfdcdadbd Merge "Update SELinuxMMAC OWNERS" 2021-07-20 12:54:09 +00:00
Yunsik Bae
4d990467b2 Unify the mismatch in the byte order of the address.
Bluetooth address should check MSB for AddrType based on Spec.
(BT Core Spec v 5.2 | Vol 6, Part B, 1.3 DEVICE ADDRESS)
Bluetooth address meaning is not unified in the current Android framework layer.
Because of this, cannot register scanfilter with the intended address format.

Bug: 180466950
Test: manual
Tag: #compatibility
Change-Id: I59a1b5538e4f3fea77a98cba2aa46649fc32ac6b
2021-07-20 10:53:09 +00:00
Treehugger Robot
edbf08efe4 Merge "Gracefully handle integer overflows." 2021-07-20 07:36:56 +00:00
Rambo Wang
67e10842b2 Merge "Clear binder identity in callback of IMS IPC interfaces" 2021-07-20 00:18:40 +00:00
Hans Boehm
c3dcb0d088 More consistently retry system calls on EINTR
We were not retrying an accept() call om EINTR, resulting in occasional
zygote failures. This fixes that, and a few other calls documented
to potentially return EINTR. This is based on a quick seacrh of the
two files affected by this CL.

Bug: 193753947
Bug: 187992348
Test: Build and boot AOSP
Change-Id: Icbfb38be5110607c121545e5c200ce65d1eefbfe
2021-07-19 17:15:36 -07:00
Jack Nudelman
8d2c15972f Enable specification of 5G network info and carrier configs for ONS changes
Bug: 191878731
Bug: 186688084
Test: Will test locally once partner device and infrastructure is ready.

Change-Id: I7c866741dd86c3d675ea7c4dfe50d0992ab145f1
Merged-In: I7c866741dd86c3d675ea7c4dfe50d0992ab145f1
2021-07-19 19:30:10 +00:00
Rambo Wang
c18002c465 Clear binder identity in callback of IMS IPC interfaces
The binder identity does get cleared when goes from client process
into phone process. When it comes back from phone to client, the
binder identity should also be cleared.

Bug: 193923945
Test: atest android.telephony.cts.TelephonyManagerTest
Test: atest ImsServiceTest RcsFeatureControllerTest ImsMmTelManagerTest
Change-Id: I34225e32111879e155c9f7865f0045430d171467
2021-07-19 12:27:38 -07:00
Phil Weaver
0df5bbfe90 Merge "Fix "already registered" error" 2021-07-19 17:18:14 +00:00
Treehugger Robot
54c9ff981e Merge "Added Ble scan APIs to BatteryStatsManager" 2021-07-19 15:32:41 +00:00
Remi NGUYEN VAN
8608d0626e Merge "Rename FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT" 2021-07-19 09:47:21 +00:00
Paul Duffin
7094e821ca Merge "Move media related hidden API flag file entries to frameworks/av" 2021-07-17 11:25:27 +00:00
Paul Duffin
077513c4b5 Merge "Move wifi related hidden API flag file entries to packages/modules/Wifi" 2021-07-17 11:25:23 +00:00
Paul Duffin
0a0f645011 Merge "Move media provider related hidden API flag file entries to packages/providers/MediaProvider" 2021-07-17 11:25:04 +00:00
Rambo Wang
7ad8aa929e Merge "Support platform-compat-framework for TeleService" 2021-07-16 21:39:21 +00:00
Benedict Wong
fc9e0c982f Merge "Ensure VcnGatewayConnection#isQuitting never gets unset after being set" 2021-07-16 21:29:36 +00:00
Treehugger Robot
5a750a5aa1 Merge "Restrict all jobs when the device is too hot." 2021-07-16 21:25:54 +00:00
Yabin Cui
0cb190e889 Merge "idmap2: fix for compiler update." 2021-07-16 20:33:46 +00:00
Benedict Wong
e8c548fd02 Ensure VcnGatewayConnection#isQuitting never gets unset after being set
This change ensures that the VcnGatewayConnection can never abort a
quitting command; specifically, if a non-quitting disconnect request is
processed after a quitting disconnect request, the isQuitting value MUST
continue to stay set (as true).

Failure to OR the values results in orphaned VcnGatewayConnection(s),
and the VCN network thrashing.

Additionally reduce verbosity of local logs, to ensure it better
captures failures and logWtf(s)

Bug: 192776413
Test: atest FrameworksVcnTests
Change-Id: Iec8dae701838794261957609bae4e270eaa9cdc7
2021-07-16 12:10:08 -07:00