Commit Graph

688077 Commits

Author SHA1 Message Date
Benedict Wong
52629838cb Add CarrierConfig to TelephonySubscriptionSnapshot
This change ensures that carrier configs are saved as part of the
snapshot, allowing all entities in the VCN to query telephony
subscription information from the same source.

Test: atest FrameworksVcnTests
Change-Id: I31447d84fe98d6bd2cc78ead41746198728c400b
2022-04-21 01:09:36 +00:00
Benedict Wong
1428215bee Merge "Allow provisioning package to retrieve subGrp, clear it's own config" 2022-04-14 17:52:15 +00:00
Yi-yo Chiang
a227192105 Merge "dynsystem: Fix memory leak" 2022-04-14 03:38:55 +00:00
Benedict Wong
1a8f3e0a14 Allow provisioning package to retrieve subGrp, clear it's own config
This changes the VCN to allow a VCN provisioning package to retrieve
its listing of configured subgroups and clear its own configurations,
regardless of whether it is the active subscription group.

Safety is guaranteed based on the VCN's clearing of packages when app
data is cleared, and when the app is uninstalled. In addition to the
configurations not being retrievable, the clearing of the configs will
ensure that sideloading of an app with the same package name provides
no ability to otherwise impact settings.

Bug: 227248744
Test: atest FrameworksVcnTests
Change-Id: I2c774c00373942f895169a761d4e9a1d5b0b2edb
2022-04-13 22:10:21 +00:00
Julia Reynolds
e3a1682e0b Merge "Update FLAG_ONLY_ALERT_ONCE docs" 2022-04-13 19:02:02 +00:00
Jeff Sharkey
8f45aff50e Merge "Update VerityUtils OWNERS to a more common file" 2022-04-13 16:31:03 +00:00
Tyler Gunn
5b04c63c64 Merge "Add telecom log marking shell command." 2022-04-13 15:36:12 +00:00
Victor Hsieh
e3f86c0534 Update VerityUtils OWNERS to a more common file
Bug: None
Test: N/A
Change-Id: I4d4b9dd0832a6c1ff32e3205014660acd1eb19d4
2022-04-13 15:17:03 +00:00
Yan Han
4065fa6496 Merge "Fix OTT devices not reacting to messages in Standby" 2022-04-13 08:41:29 +00:00
Edward Savage-Jones
1a90fd5998 Update FLAG_ONLY_ALERT_ONCE docs
Update FLAG_ONLY_ALERT_ONCE docs to match implementation
from Android P and onwards.

Bug: 222328375
Test: atest BuzzBeepBlinkTest
Change-Id: Ic058b8265551362b04b9cd0363e43a4c08ecd736
2022-04-13 08:35:38 +00:00
Treehugger Robot
47b98a2d38 Merge "Add extra logging" 2022-04-13 08:16:28 +00:00
David Drysdale
a0976a1207 Merge "Clarify doc comment for setUnlockedDeviceRequired" 2022-04-13 07:30:43 +00:00
Lucas Lin
6ccd0e0503 Merge "Add NET_CAPABILITY_NOT_VPN when requesting test network" 2022-04-13 04:31:28 +00:00
Treehugger Robot
e9e88881a2 Merge "Add keylayout mapping for Xbox360 compatible controllers." 2022-04-12 22:52:03 +00:00
Keith Mok
b1fb01e8b5 Merge "android_util_Process: fix length checking logic" 2022-04-12 20:15:46 +00:00
Tyler Gunn
043bb30f98 Add telecom log marking shell command.
We often get bugs where testers have executed a LONG list of test steps.
It becomes extremely difficult to know where in the logs corresponds to
which test script step.

This adds a new telecom shell command:
adb shell telecom log-mark Testing 1 2 3

This command adds a USER_LOG_MARK event log item to all ongoing calls and
to the general telecom logs with the specified message.

Test: Tested using the new shell command to mark the telecom logs in and out of calls.
Fixes: 228895073
Change-Id: Ic11edc777e57a4fc8748a42c931379faf7cea671
2022-04-12 11:14:14 -07:00
Anton Hansson
89ee3e6394 Merge "Fix mistake in disting of api txt" 2022-04-12 17:56:26 +00:00
Julia Reynolds
15e5749d4b Merge "Fix autogroupsummary bug" 2022-04-12 15:42:19 +00:00
Anton Hansson
033de61f59 Merge "Update deprecated_at_birth script" 2022-04-12 14:28:35 +00:00
Yan Han
082b4a8bdb Fix OTT devices not reacting to messages in Standby
Reverts most changes to Playback device message handling in Standby from
aosp/1970899, to fix CTS tests and avoid unexpected behavior changes.

aosp/1970899 has all devices use HdmiCecStandbyModeHandler, which causes
Playback devices to ignore or <Feature Abort> certain messages in
standby. This caused CTS failures for cect_hf_4_6_7 and
cect_11_2_2_1 (b/226366076).

This CL moves all behavior-affecting handlers except for <User Control
Pressed> (required for the fix in aosp/1970899) back to TVs only: it is
safer to preserve the original behavior until there is a reason to change it.

Test: atest CtsHdmiCecHostTestCases
Bug: 226366076
Change-Id: I888da78e27503ca0dada29e8a8b1f3d3fe03a608
2022-04-12 14:17:37 +00:00
David Drysdale
c92b407979 Clarify doc comment for setUnlockedDeviceRequired
Bug: 187537410
Test: None, comment change only
Change-Id: If6085fa6f46a54df0700e2599f4f98e42f33a164
2022-04-12 14:57:53 +01:00
lucaslin
786202476b Add NET_CAPABILITY_NOT_VPN when requesting test network
Add NET_CAPABILITY_NOT_VPN can prevent Ikev2VpnNetworkCallback
receiving onAvailable when VPN is connected. Otherwise, the VPN
network will be misused as underlying network to establish VPN
connection again, which is a wrong behavior.

Bug: 228574221
Test: atest CtsNetTestCases:Ikev2VpnTest
Change-Id: Iac85caa0f5bd37a7e79c14fe796737d7b36fa4bd
2022-04-12 17:04:18 +08:00
woongki min
0ab7642f30 Fix autogroupsummary bug
Summary cannot be updated with key after notification is removed from NotificationsByKey.
So OngoingFlag of Autogrounpsummary remains.
Modify the GroupHelper interface to deliver summary updateable information.

Test: Make autogroupsummary.
Test: update one of notification with ongoing flag.
Test: cancel the notification and check flag of autogroupsummary.
Change-Id: I0d14daaa69a94c1a3fe81b12d16b44e3a78281fe
Merged-In: I0d14daaa69a94c1a3fe81b12d16b44e3a78281fe
2022-04-11 19:54:12 +00:00
Oli Lan
c4227ee28f Merge "Bad lock object." 2022-04-11 17:01:30 +00:00
Kai Peng
546fbc8bf7 Bad lock object.
Locking on an interned string can cause unexpected locking collisions, and we should lock the mLock object here.

Change-Id: I8b6557371b0cb79e1bcbc732982cf66b9de663a5
2022-04-11 12:41:44 +00:00
Treehugger Robot
f743f382c9 Merge "Update test owners for SSL*,Uri*,Url*" 2022-04-11 11:16:08 +00:00
Orion Hodson
c7db718dda Update test owners for SSL*,Uri*,Url*
Bug: 171966843
Test: checkowners.py OWNERS
Change-Id: I15ba32283148c097661cc4273c67ebb15ca845fc
2022-04-11 09:59:00 +01:00
Robert Horvath
7881ffd09f Merge "Add Low Power Standby support to NetworkPolicyManagerService" 2022-04-11 08:48:34 +00:00
Miguel Aranda
4e7f5518f1 Merge "Correct AdditionPerfTest to return void." 2022-04-11 08:37:13 +00:00
Chiachang Wang
b7e998e235 Merge "Update the java doc" 2022-04-11 02:54:46 +00:00
Bill Yi
bbe0c62d66 Merge "Merge SP2A.220405.004 to aosp-master - DO NOT MERGE" 2022-04-08 18:08:24 +00:00
Benedict Wong
421e051e8a Add extra logging
This adds additional logs to the VCN's dumpsys to facilitate debugging
of the VCN.

Test: atest FrameworksVcnTests
Change-Id: Id8cd668991331dbf2f3395172e5cd90b36c408a9
2022-04-08 18:06:38 +00:00
Treehugger Robot
7af43734b1 Merge "media: fix ImageReader to handle P010 images" 2022-04-08 17:16:51 +00:00
Evan Laird
c5fbfeb8f5 Merge "Show 4G LTE and 4G LTE+ data connection type" 2022-04-08 15:05:57 +00:00
Miguel
24ec182f8d Correct AdditionPerfTest to return void.
Test: atest AdditionPerfTest
Change-Id: I920864a557cedd96ff0a6364506946feb15b0df9
2022-04-08 14:53:28 +00:00
Robert Horvath
56317f3ccf Add Low Power Standby support to NetworkPolicyManagerService
Bug: 190822356
Test: atest NetworkPolicyManagerServiceTest
Merged-In: I6c554df71b12bcf06f1c98ef70c35242bc90a689
Change-Id: I4b3f2625e9eed296055813e4641da9f85f8c7929
2022-04-08 14:50:42 +00:00
Anton Hansson
09a9c4e3c5 Fix mistake in disting of api txt
When disting into the apistubs/... dir (the "new" path),
the merged api txts are called android.txt rather than
current.txt, to align with all the other <module>.txt.

Also add a new dist goal to build just these files into a
convenient location.

Test: m api_txt dist
Change-Id: I762763cc42b497e00277a8871ef62b0a11423e35
2022-04-08 12:23:51 +01:00
Anton Hansson
65163dd0e1 Update deprecated_at_birth script
Make it executable, make it work with python3.

Bug: 228451704
Test: $ m api_txt dist
      $ PREVIOUS_API=prebuilts/sdk/##
      $ for api in $(ls -1 out/dist/apistubs/android); do
          frameworks/base/tools/apilint/deprecated_at_birth.py \
          out/dist/apistubs/android/$api/api/ \
          ${PREVIOUS_API}/$api/api/
        done
Change-Id: Ib0eda541be68b0b21ae0dea3f51a82b44f7f9e7c
2022-04-08 11:46:22 +01:00
Alan Stokes
59137a2227 Merge "Log pending odsign metrics on start" 2022-04-08 08:20:49 +00:00
Bill Yi
95267eaf87 Merge SP2A.220405.004 to aosp-master - DO NOT MERGE
Merged-In: Iae1a66165221f45051be17c4d047b5bd5be3999b
Merged-In: I0c82fda5497bace30d49989b8e84ebc98250ca8c
Change-Id: I2c75988c023cec548e3a576cb0c3a1a13bb0016f
2022-04-07 18:40:59 -07:00
Eric Biggers
7e3c5382cc Merge changes Idc218e5f,I26c3fafc
* changes:
  Remove more FDE methods from StorageManager
  Drop FDE status checks from DevicePolicyManagerService
2022-04-08 00:09:30 +00:00
Wonsik Kim
584cde2e6d media: fix ImageReader to handle P010 images
Bug: 210947256
Test: atest android.media.decoder.cts.ImageReaderDecoderTest
Test: atest android.hardware.camera2.cts.ImageReaderTest
Change-Id: I6541f7d49cb932c85374bf9acf777038b888e873
2022-04-07 16:51:46 -07:00
Eric Biggers
bd13f84152 Remove more FDE methods from StorageManager
Now that these methods are no longer called, and none of them are a
public API or have @UnsupportedAppUsage, they can be removed.

inCryptKeeperBounce() actually had one known app user via reflection,
despite the method not having @UnsupportedAppUsage.  However, that user
only made the call if Build.VERSION.SDK_INT < VERSION_CODES.P, so it is
not being used anymore.

Bug: 208476087
Change-Id: Idc218e5f355bb61257b07cf5b5b6df5f4c6ece11
2022-04-07 16:38:36 +00:00
Eric Biggers
234ee35c93 Drop FDE status checks from DevicePolicyManagerService
Since FDE (Full Disk Encryption) is no longer supported, there is no
need for DevicePolicyManagerService.getEncryptionStatus() to check for
FDE-specific encryption statuses.

There is more that needs to be cleaned up here, but this gets rid of the
dependency on some obsolete StorageManager methods.

Bug: 208476087
Test: atest DevicePolicyManagerTest
Change-Id: I26c3fafc1b134177324de929d3600fb2dd7f4d1d
2022-04-07 16:38:29 +00:00
Miguel Aranda
e01a01ca3e Merge "Add first set of libcore benchmarks to the System Health CB framework." 2022-04-07 14:01:23 +00:00
Miguel
1935f73e5b Add first set of libcore benchmarks to the System Health CB framework.
These will later be referenced by a google3 gcl file as part of a new
libcore test set. Doc: go/libcore-benchmarks-doc

Test: N/A
Bug: 210606618
Change-Id: I4f38b797f8f4978d00e92da07c3db8df366a6897
2022-04-07 14:01:16 +00:00
Nathalie Le Clair
f4c40e0b0b Merge "cec: fix Traditional Chinese issue for Playback [1/1] BUG:183071276" 2022-04-07 13:23:52 +00:00
Alan Stokes
32ebf109be Log pending odsign metrics on start
Bug: 202926606
Test: Manual - create file, observe logs, file is deleted
Change-Id: Ie7f35cf4ebd9e293b376da6c7a2d13b98315c587
2022-04-07 14:01:07 +01:00
Chiachang Wang
240d126ed0 Update the java doc
Bug: 184750836
Test: m
Change-Id: If7a64d0a7d607dafa353c3dfd4bcbac189d1fef3
2022-04-07 18:32:09 +08:00
Chiachang Wang
48160f9b9b Merge "Ignore other IKE options if IkeTunnelConnectionParams is set" 2022-04-07 10:24:03 +00:00