android-support-test has long been deprecated and unsupported,
and it causes problems having both androidx.test and
androiud.support.test included in one binary.
Bug: 172570181
Test: m -j NullHomeTest mediatunertest mediatranscodingtest mediaroutertest mediaframeworktest BluetoothMidiTests
Change-Id: If86f5634beab88db07656f743b19beddd9d77984
Ensure resumption players created when a non-dismissible notification
is cancelled force the 'isClearable' flag to true. This fixes a bug
where a resumption player is non-dismissable.
Test: manual - Finish item in Pocket Casts, attempt long-press dismiss.
Bug: 169271494
Change-Id: I186f9ee6fc228ad5bd1d49970fb44709783b74dc
Merged-In: I186f9ee6fc228ad5bd1d49970fb44709783b74dc
(cherry picked from commit 656e986464)
android-support-test is long deprecated, and the runner flakes if both
androidx.test and android-support-test are included.
Bug: 171910851
Bug: 172570181
Test: m -j InputTests
Change-Id: Icd257481583e9555875d5fd0e93caba49d44caab
It's not feasible to reliably differentiate a different
segment parsing from a seek.
Bug: 158742256
Test: atest CtsMediaParserTestCases
Test: atest CtsMediaParserHostTestCases
Change-Id: I7d62f1c2b9334bf601f38ce915b0fafdc76fbec1
Previous logic was using GetStringUTFChars() and GetStringCritical(),
which resulted in making a new temporary heap allocation and an extra
memcpy(). The new approach in this CL bypasses those operations by
asking the JNI helpers to copy directly into the Parcel buffer.
This does mean that the contract for writing strings (prefixed with
length) is now duplicated in Parcel.cpp and android_os_Parcel.cpp,
so we leave docs to ensure future maintainers keep them in sync.
Benchmarking shows that this change improves performance by ~36%
for UTF-8 strings and ~52% for UTF-16 strings:
Before:
timeWriteString8[simple]_mean: 1323
timeWriteString8[complex]_mean: 2103
timeWriteString16[simple]_mean: 1427
timeWriteString16[complex]_mean: 1368
After:
timeWriteString8[simple]_mean: 846
timeWriteString8[complex]_mean: 1671
timeWriteString16[simple]_mean: 685
timeWriteString16[complex]_mean: 748
Bug: 172562452
Test: atest CorePerfTests:android.os.ParcelStringPerfTest
Change-Id: Ibacce2547ecc7a050b698cee8aa5b4e3bc45956f
There was an error in calculating ranges where the min, max difference
was greater than 1000. Set the default value properly to
Float.MAX_VALUE.
Bug: 171422049
Test: atest ToggleRangeTemplateTest
Change-Id: I157643264e6139642dcb0db0d7c474ea55722347
The other non-updatable API files are in core/api/*. Also add
-non-updatable to the module to match the others.
Bug: 171029603
Test: m checkapi
Change-Id: I2bd1fa5bac6b35096b3059f93d68ef24b7a464e5
This fixes a refactoring error introduced by commit 3213c96.
This change restores the original logic that if a window is in a
task which should crop touchable region by root task, then just
set the root task surface but not replace the region directly.
Otherwise the touchable region of a sub window may occupy the
entire screen.
Bug: 172522375
Test: WindowStateTests#testUpdateInputWindowHandle
LoginActivityTest#testAutofillTapOutside
Change-Id: I771b44515c6f70ae3713d3b69658497782dde92c
This change alters the behavior of when Assistant is launched on TV.
Also, removed the "long press" assist behavior and associated logic.
Bug: 117490624
Bug: 134613904
Test: make; ADT-3
Change-Id: I23a9c8f1b440b095b6afeeac2314bc9ecd329400
A `VPN is connected.` ongoing notification is sent when connected to a
VPN and a `VPN is disconnected.` short lived notification is send when
disconnected from a VPN.
Test: Manual tests. Connecting and disconnecting to VPNs (from a VPN
client app) show the (undismissable, ongoing) connected and
(dismissable, short lived) disconnected notifications. A CTS test will
be added in a separate CL.
Bug: 157500504
Change-Id: I321dec45127104b5139b9e868bac76b9d882e9f2