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
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
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
This commit creates a wrapper class for NetworkAgent to make the
Vpn code more testable.
Bug: 192077544
Test: atest VpnTest
Change-Id: Ia599fed8c874ea9622a1f56f686de293bcbfddb8
- 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
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
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
Time is deprecated and should not be used.
Bug: 16550209
Test: atest FrameworksCoreTests:android.net.NetworkPolicyTest
Change-Id: Ib1a29f52982701028e63da2856b9fbb3626244f9
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
Time is deprecated and there are better alternatives.
Bug: 16550209
Test: atest FrameworksSaxTests
Change-Id: I301d1075b4b64c4586c2e4d7d9b0a12e609fe064
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
Method isServiceTokenValidLocked should be called with mNotificationLock
held, otherwise there will be race condition.
Bug: 236512598
Test: Manual
Change-Id: I7e24b5afe3d0a5233debf9da45200c2f4e1f570f
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
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