692889 Commits

Author SHA1 Message Date
Brad Ebinger
153af0123a Remove VT specific mentions in IMS_ACCESS_BLOCKED
Bug: 79919053
Test: docs only
Change-Id: I2883f8eb3383b13395635f03aa8fe665bedc8c41
2022-08-26 15:11:25 -07:00
Chiachang Wang
00f823fb2a Merge "Create LockDownVpnTracker via dependency for testing" 2022-08-08 00:52:04 +00:00
Treehugger Robot
7dae698327 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-08-07 04:49:43 +00:00
Treehugger Robot
1d81f1e0a3 Merge changes I6892f028,I2e52c3ab
* changes:
  RELAND MediaCodec: don't cache buffers until requested
  Revert "MediaCodec: don't cache buffers until requested"
2022-08-05 18:29:00 +00:00
Bill Yi
cac047396d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4f2d21c08155b91ac7703e198ba1826996532db4
2022-08-05 11:21:58 -07:00
Roland Levillain
6fe49fb663 Merge "Correct mapping for "boot-after-ota" compilation reason" 2022-08-04 13:49:17 +00:00
Wonsik Kim
0e2297b795 RELAND MediaCodec: don't cache buffers until requested
Do not cache input/output buffers until explicitly requested.

Track validity of buffers before getInput/OutputBuffers so that the
dequeued buffers are marked accessible when the array is returned
to the client.

Bug: 189889230
Bug: 236106096
Test: manual
Change-Id: I6892f02853f00c3e355c827ec943fbdf183469f1
2022-08-03 11:09:53 -07:00
Stefano Cianciulli
a1e35fbfcc Correct mapping for "boot-after-ota" compilation reason
The "boot" compilation reason is now deprecated (since Android S),
but the mapping between PackageManagerService.REASON_BOOT_AFTER_OTA
and the corresponding value in ART_COMPILATION_FILTER has not been
updated (or it has been incorrect all along). Note that this will
require a change in APC/Pitot to make sure that both the previous and
the new value for this ID are treated in the same way (so we don't
lose data logged ahead of this change, which is still valid, just
associated with an unexpected ID).

Bug: 239548426
Test: atest ArtStatsLogUtilsTest
Change-Id: I38b4a16768f32f8ed2ecfe5d5c389ad4ec3b6b6e
2022-08-03 13:25:44 +00:00
Yike Zhang
1c6932c66e Merge "Use PushFilePreparer to push files in OverlayDeviceTests" 2022-08-03 00:41:22 +00:00
Steven Moreland
c2bd9f481f Merge "Reword ambiguous documentation in Parcel" 2022-08-02 20:13:56 +00:00
Josh Tsuji
ef9dfbfa4a Merge "VolumeDialogImpl: Respect multiple visible rows in landscape" 2022-08-02 18:29:01 +00:00
Yike Zhang
7260b5c938 Merge "Use PushFilePreparer to push files in dex-builder-test" 2022-08-02 15:31:31 +00:00
Treehugger Robot
2567308aff Merge "Make Vpn more testable with a wrapper class" 2022-08-02 12:08:13 +00:00
Treehugger Robot
3a578fe5ec Merge "Remove ProcFileReader from framework-connectivity-shared-srcs" 2022-08-02 11:43:16 +00:00
Lucas Lin
147ce8dbf9 Merge "Tidy up VPN code" 2022-08-02 07:58:50 +00:00
lucaslin
7146e2cb02 Tidy up VPN code
This commit addressed the comments in different commits, it did
- Make isVpnApp() to be a static method.
- Rename getRedactedNetworkCapabilitiesOfUnderlyingNetwork to
  getRedactedNetworkCapabilities and rename
  getRedactedLinkPropertiesOfUnderlyingNetwork to
  getRedactedLinkProperties.
- Reduce the scope of synchronized block in handleSessionLost().
- Fast return when there is an IllegalArgumentException in
  handleSessionLost().
- Remove inaccurate comment.
- Update the document of mCurrentToken.
- Define an initial token value of IKE session.
- Add "/* exeception */" annotation to handleSessionLost(null)
  calls.

Bug: 236409954
Test: atest FrameworksNetTests:VpnTest
Change-Id: I8c938f8796345dc2eee6c8eff513b0f993bc8165
2022-08-02 02:24:18 +00:00
Yan Yan
01aeca4d3f Make Vpn more testable with a wrapper class
This commit creates a wrapper class for NetworkAgent to make the
Vpn code more testable.

Bug: 192077544
Test: atest VpnTest
Change-Id: Ia599fed8c874ea9622a1f56f686de293bcbfddb8
2022-08-02 02:05:16 +00:00
Jon Eckenrode
9f59ca049c Merge "Fixed typo in class description." 2022-08-02 00:23:45 +00:00
danielzhang130
c63f3f259c Reword ambiguous documentation in Parcel
- original documentation for Parcel.unmarshall could be understood
  both ways: Parcel written with bytes of data, data written with
  bytes of Parcel

Test: Not applicable
Signed-off-by: danielzhang130 <danielzhang130@gmail.com>
Change-Id: I9afd3ae66ca03f391b272ac0524593395ffe53fa
2022-08-01 23:47:47 +00:00
Treehugger Robot
3614185d38 Merge "Adds OWNERS for ScreenshotHelper" 2022-08-01 19:15:30 +00:00
Treehugger Robot
d84afeb673 Merge "Log the errno if calling fork() fails" 2022-08-01 18:47:30 +00:00
Mark Renouf
27df215eba Adds OWNERS for ScreenshotHelper
This code is managed as part of SystemUI screenshots.

Change-Id: I624a52754cffcca66798d2813d25d8896597a39a
2022-07-29 14:20:16 -04:00
Treehugger Robot
46a915f625 Merge "Improve docs for generated properties in PropertyMapper" 2022-07-28 16:53:10 +00:00
Jon Eckenrode
93b956e9c0 Fixed typo in class description.
Change-Id: I0c2afdd0a8c914854d96e27c924ee74af488e1e4
2022-07-28 14:53:47 +00:00
Hyundo Moon
b731a366a0 Merge "Set LE audio volume when audio mode is changed" 2022-07-28 00:52:37 +00:00
Theodore Dubois
3588c91253 Log the errno if calling fork() fails
Test: treehugger
Change-Id: I9d54e3c2c006aaa54a5bc044e39ab5d5e2ff7484
2022-07-27 14:04:24 -07:00
Yike Zhang
d5a3ba9819 Merge "Add a missing test dependency for UpdatableSystemFontTest" 2022-07-27 08:46:48 +00:00
Yike
320bb523a8 Use PushFilePreparer to push files in OverlayDeviceTests
This change modifies the test config file by switching to use `PushFilePreparer` instead of `FilePusher`, since the `FilePusher` class which is defined in `compatibility-tradefed` is designed for the tests that are part of compatibility suite, but OverlayDeviceTests is not.

Bug: 220991354
Test: atest-src OverlayDeviceTests \
          --experimental-device-driven-test \
          --experimental-java-runtime-dependencies \
          --bazel-arg=--test_timeout=48000
Test: atest OverlayDeviceTests
Change-Id: Ice90776cb2eae43be25190979f1b69a52e97920d
2022-07-27 05:23:39 +00:00
Yike
56f5c0db4f Use PushFilePreparer to push files in dex-builder-test
This change modifies the test config file by switching to use `PushFilePreparer` instead of `FilePusher`, since the `FilePusher` class which is defined in `compatibility-tradefed` is designed for the tests that are part of compatibility suite, but dex-builder-test is not.

Bug: 220991354
Test: atest-src dex-builder-test \
          --experimental-device-driven-test \
          --experimental-java-runtime-dependencies \
          --bazel-arg=--test_timeout=48000
Test: atest dex-builder-test
Change-Id: I85be14a454acac23705131c3a121c70fde07a138
2022-07-27 13:22:14 +08:00
Aaron Huang
81f7940d43 Merge "Track interfaces and roaming changed event history" 2022-07-27 02:29:43 +00:00
Yike Zhang
b0c1ec7c72 Merge "Fix test dependencies for AppEnumerationInternalTests" 2022-07-27 00:10:30 +00:00
Wonsik Kim
5b2d2cf6b9 Revert "MediaCodec: don't cache buffers until requested"
This reverts commit 07358dfea5d63baf80608536c2a3dff6ed0f44e1.

Merged-In: I2e52c3abdd13fa0547a510b3599e082e3bff0989
Change-Id: I2e52c3abdd13fa0547a510b3599e082e3bff0989
2022-07-26 11:12:49 -07:00
Sudheer Shanka
81df5357e6 Merge changes I2867a158,I98de12b5
* changes:
  Allow shell uid without checking the package name.
  Allow apps receiving MediaSession callbacks to start FGS from BG.
2022-07-26 17:40:37 +00:00
Almaz Mingaleev
a092e31b3e Merge "Inline Time.TIMEZONE_UTC." 2022-07-26 16:40:28 +00:00
Treehugger Robot
86b958b661 Merge "Revert^2 "Move out allowlists for com.android.cellbroadcast"" 2022-07-26 15:44:00 +00:00
Almaz Mingaleev
dfb45d6b29 Inline Time.TIMEZONE_UTC.
Time is deprecated and should not be used.

Bug: 16550209

Test: atest FrameworksCoreTests:android.net.NetworkPolicyTest
Change-Id: Ib1a29f52982701028e63da2856b9fbb3626244f9
2022-07-26 16:20:09 +01:00
Almaz Mingaleev
c2e6b1cc84 Merge "Remove Time use." 2022-07-26 14:58:38 +00:00
Yike
cb9c9c7b75 Add a missing test dependency for UpdatableSystemFontTest
In Android.bp, all dependencies of a test should be declared explicitly, so that test infrastructure could only provide the needed dependencies instead of all to run a test. This change adds the missing dependency that is used in test config file but not declared in Android.bp.

Bug: 222438068
Test: atest-src UpdatableSystemFontTest \
          --experimental-device-driven-test \
          --experimental-java-runtime-dependencies \
          --bazel-arg=--test_timeout=48000
Test: atest UpdatableSystemFontTest
Merged-In: Ic1b5b94aabd4c95744109f2cc7443ae04c43b3a6
Change-Id: Ie23b74f37af3019e50753e2169752abadbf3e0fa
2022-07-26 12:58:24 +00:00
Almaz Mingaleev
a315ab6824 Remove Time use.
Time is deprecated and there are better alternatives.

Bug: 16550209
Test: atest FrameworksSaxTests
Change-Id: I301d1075b4b64c4586c2e4d7d9b0a12e609fe064
2022-07-26 13:08:41 +01:00
Julia Reynolds
e672a9336d Merge "[NMS] Call isServiceTokenValidLocked with lock." 2022-07-26 10:55:03 +00:00
Sudheer Shanka
fcef75158f Allow shell uid without checking the package name.
Bug: 230779051
Test: manual
Change-Id: I2867a15840a0987c948179e2f8069e652c4a0c1f
Merged-In: I2867a15840a0987c948179e2f8069e652c4a0c1f
2022-07-26 00:22:45 +00:00
Sudheer Shanka
6aeb217e9a Allow apps receiving MediaSession callbacks to start FGS from BG.
If the app invoking the MediaSession callbacks is capable of
starting a FGS from background, then also allow the target app
receiving the callbacks to start FGS from background.

Bug: 221873343
Test: manual
Change-Id: I98de12b5410c3f0f70d7d2be12bef3e6d0e1bf73
Merged-In: I98de12b5410c3f0f70d7d2be12bef3e6d0e1bf73
2022-07-26 00:19:56 +00:00
Ember Rose
64a82e5c30 Improve docs for generated properties in PropertyMapper
Change-Id: I1e927013d14731d3be5024bc581ebd664f878eb9
Test: N/A
Bug: 237226979
2022-07-25 21:34:03 +00:00
Kevin Jeon
6e1ac19115 Merge "Exclude dumpsys from incident in dumpstate" 2022-07-25 16:17:32 +00:00
qinyige1
5d7808a0c2 [NMS] Call isServiceTokenValidLocked with lock.
Method isServiceTokenValidLocked should be called with mNotificationLock
held, otherwise there will be race condition.

Bug: 236512598
Test: Manual
Change-Id: I7e24b5afe3d0a5233debf9da45200c2f4e1f570f
2022-07-25 19:35:23 +08:00
Yike
55f2c7f1a1 Fix test dependencies for AppEnumerationInternalTests
All of a test's dependencies should be explicitly declared in the Soong build module to enable infrastructure features that ensure correctness and optimize runtime. Here in the test config file, AppEnumerationInternalTests uses `AppEnumerationSyncProviderTestApp.apk`, so that this change declares `AppEnumerationSyncProviderTestApp` in the Soong build module.

Besides, this change modifies the test config file by switching to use `PushFilePreparer` instead of `FilePusher`, since `FilePusher` is designed for the tests that are part of compatibility suite and AppEnumerationInternalTests is not.

Bug: 222438068
Test: atest-src AppEnumerationInternalTests \
          --experimental-device-driven-test \
          --experimental-java-runtime-dependencies \
          --bazel-arg=--test_timeout=48000
Test: atest AppEnumerationInternalTests
Change-Id: I8f09efe82b8dbd11d900752c3810d9215026062e
2022-07-25 11:45:03 +08:00
Treehugger Robot
2fd4ee6439 Merge "identity: Fix uncompressed form encoding of P-256 EC Public Key." 2022-07-22 21:48:41 +00:00
David Zeuthen
dc379a45aa identity: Fix uncompressed form encoding of P-256 EC Public Key.
Properly encode an P-256 EC Public Key in uncompressed form, in
particular ensure that the resulting blob is always 65 bytes long as
is expected.

Was able to reproduce this with about 4% failures running a
test. After the fix didn't get a failure in 1,000 runs.

Also remove unused Util.integerCollectionToArray() function.

Bug: 239857653
Test: atest --rerun-until-failure 1000  android.security.identity.cts.ProvisioningTest#testProvisionAndRetrieveMultipleTime
Change-Id: I9a8a5570fde5a80f74632606126cdfcc1f6c7c99
2022-07-22 09:49:14 -04:00
Xiao Ma
f15b1ffd0b Merge "Revert^2 "Remove unused net-module-utils-srcs filegroup."" 2022-07-22 06:56:50 +00:00
Treehugger Robot
337bb720f4 Merge "RESTRICT AUTOMERGE Allowlist alarm-clock alarms from pre-S apps for FGS" 2022-07-22 05:43:02 +00:00