Commit Graph

590725 Commits

Author SHA1 Message Date
TreeHugger Robot
c9437808ae Merge "Convert to androidx.test from android-support-test." 2020-11-05 19:55:32 +00:00
TreeHugger Robot
ac556e8d6a Merge "Double speed of Parcel.writeString()." 2020-11-05 19:52:34 +00:00
TreeHugger Robot
82a5288955 Merge "Remove android-support-test from InputTests." 2020-11-05 19:14:14 +00:00
Jeff DeCew
3b9c996eaa [automerger skipped] Fix non-dismissible resumption players. am: 36fc7e464e am: 1f419e4ddf -s ours
am skip reason: Change-Id I186f9ee6fc228ad5bd1d49970fb44709783b74dc with SHA-1 656e986464 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12995017

Change-Id: I295268e2dc95d783197e44b80ad080fcf686b94f
2020-11-05 19:02:15 +00:00
Santiago Seifert
8a0fc3a87b Merge "Only log first input reader length" 2020-11-05 18:44:07 +00:00
Jeff DeCew
1f419e4ddf Fix non-dismissible resumption players. am: 36fc7e464e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12995017

Change-Id: Ib55af681e733383c21512f4712e5ea106a4b797e
2020-11-05 18:43:50 +00:00
TreeHugger Robot
e3995878b2 Merge "Do not power off display on lockNow() on automotive builds." 2020-11-05 18:37:25 +00:00
Brett Chabot
073ffdd9fc Convert to androidx.test from android-support-test.
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
2020-11-05 10:28:43 -08:00
Neil Fuller
48b614e61d Merge "Fix a log message" 2020-11-05 18:00:01 +00:00
Matt Pietal
44acac766d Merge "Controls - Large ranges improperly calculated" 2020-11-05 17:49:26 +00:00
Chris Li
4fca33f2d8 Merge "Add null check for RemoteToken#getContainer()" 2020-11-05 17:45:06 +00:00
Anton Hansson
d72a9640e8 Merge "Move testapi API files for symmetry with others" 2020-11-05 17:23:00 +00:00
TreeHugger Robot
e57dead5f9 Merge "[CEC Configuration] Support hex values in the config XML" 2020-11-05 17:21:49 +00:00
Jeff DeCew
36fc7e464e Fix non-dismissible resumption players.
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)
2020-11-05 17:08:20 +00:00
Brett Chabot
7818ee4f57 Remove android-support-test from InputTests.
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
2020-11-05 09:03:24 -08:00
Lucas Dupin
b437718727 Merge "Support tinting blur drawable" 2020-11-05 17:00:19 +00:00
Felipe Leme
fc586009b1 Do not power off display on lockNow() on automotive builds.
Test: manual verification
Fixes: 171517112

Change-Id: I410e06b911b099c0ed4b7b4e3ac493c9a272fa6b
2020-11-05 08:51:54 -08:00
TreeHugger Robot
dc030d615f Merge "Do not use surface crop as touchable region in standard task" 2020-11-05 16:46:06 +00:00
Santiago Seifert
2eee34d286 Only log first input reader length
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
2020-11-05 16:35:00 +00:00
TreeHugger Robot
e5975c10ee Merge "Convert validatekeymaps to enum class" 2020-11-05 16:26:38 +00:00
Treehugger Robot
6dd4d31151 Merge "Ability to configure NR dual connectivity" am: aa756e198c am: d54065a670 am: 0589ecb8ce am: 72f2a2c52a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486306

Change-Id: I412cad98f0f32017ca4c44a8686e76cbfc5e7c5c
2020-11-05 16:24:15 +00:00
Jeff Sharkey
88e8d72a75 Double speed of Parcel.writeString().
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
2020-11-05 09:22:35 -07:00
Jin Seok Park
ed942b0cd9 Merge "Expose remote volume controller-related APIs" 2020-11-05 16:22:12 +00:00
Neil Fuller
03b4577288 Fix a log message
Test: None - log change
Change-Id: I1b5a39441014dd5592dce6bd190a486fb8d9f06e
2020-11-05 16:15:10 +00:00
Treehugger Robot
72f2a2c52a Merge "Ability to configure NR dual connectivity" am: aa756e198c am: d54065a670 am: 0589ecb8ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486306

Change-Id: I963cdcb960124643aa12760073dd34351921cd75
2020-11-05 16:11:33 +00:00
Treehugger Robot
0589ecb8ce Merge "Ability to configure NR dual connectivity" am: aa756e198c am: d54065a670
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486306

Change-Id: I6ee21a34806b4d76f92b6ec042d6c16db81ff971
2020-11-05 15:55:13 +00:00
Anton Hansson
04774ea1ba Merge "Make current-api-xml use generated current.txt" am: 3ab2ebfe26 am: 18503252ef am: 81a0d7c236 am: c43bbaa053
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1488696

Change-Id: Ic88b75609f8c18d0222e9faa3b21b72e61fc4e72
2020-11-05 15:49:03 +00:00
Treehugger Robot
d54065a670 Merge "Ability to configure NR dual connectivity" am: aa756e198c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486306

Change-Id: I8ca504a542be4443bae344e3522b76373694a67e
2020-11-05 15:36:17 +00:00
TreeHugger Robot
040f7da5bc Merge "Invoking Assistant on keydown" 2020-11-05 15:35:48 +00:00
Anton Hansson
c43bbaa053 Merge "Make current-api-xml use generated current.txt" am: 3ab2ebfe26 am: 18503252ef am: 81a0d7c236
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1488696

Change-Id: Ie0ef20c88773c7ced7c7ef3392eb77f64c040b2d
2020-11-05 15:30:42 +00:00
Treehugger Robot
aa756e198c Merge "Ability to configure NR dual connectivity" 2020-11-05 15:23:46 +00:00
Matt Pietal
31029061d1 Controls - Large ranges improperly calculated
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
2020-11-05 10:20:09 -05:00
Anton Hansson
81a0d7c236 Merge "Make current-api-xml use generated current.txt" am: 3ab2ebfe26 am: 18503252ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1488696

Change-Id: Ia7302a3940681a3ea128475651e536516121df31
2020-11-05 14:43:53 +00:00
TreeHugger Robot
94590a89b3 Merge "Notify VPN status from SystemUI as notifications" 2020-11-05 14:35:58 +00:00
Anton Hansson
18503252ef Merge "Make current-api-xml use generated current.txt" am: 3ab2ebfe26
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1488696

Change-Id: Iae67a72df5038a527b2b704fe171c352a70d9bd6
2020-11-05 14:12:57 +00:00
Anton Hansson
022aac54d2 Move testapi API files for symmetry with others
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
2020-11-05 14:02:48 +00:00
Anton Hansson
3ab2ebfe26 Merge "Make current-api-xml use generated current.txt" 2020-11-05 13:52:54 +00:00
Michal Olech
31be5dc8fc [CEC Configuration] Support hex values in the config XML
Bug: 166426337
Test: atest HdmiCecConfigTest
Change-Id: I9774e52ce988550b58514253bf14fccdcb562db1
2020-11-05 14:33:25 +01:00
Anton Hansson
4daa8ebb2a [automerger skipped] Merge "Restrict visibility of framework-module-common-defaults" into mainline-prod am: 512c41b92f -s ours
am skip reason: Change-Id I32a20de74c29b9fa1a0083bce084896aad99eb41 with SHA-1 7b5929720e is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12977873

Change-Id: Ia576b7e9f3a39e03e49eb66bc0561819ed4fd84f
2020-11-05 12:29:56 +00:00
Anton Hansson
512c41b92f Merge "Restrict visibility of framework-module-common-defaults" into mainline-prod 2020-11-05 12:10:35 +00:00
Marin Shalamanov
9a19e45b20 Merge "Add flag for match content frame rate" 2020-11-05 12:05:34 +00:00
Riddle Hsu
1e4597408e Do not use surface crop as touchable region in standard task
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
2020-11-05 11:31:07 +00:00
Nikita Iashchenko
d0fb8ca8aa [automerger skipped] Merge "Import TLS handshake atom for Conscrypt" am: 97f35bbbef am: bce0208847 am: d5cad5b37b am: c271490863 -s ours
am skip reason: Change-Id I142a792c34dced6b0e27b867ed3a1d95249a5f7f with SHA-1 98656eef99 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484136

Change-Id: I4cc60ffc7e8fa7bf67154f72c1433edd345d8cc4
2020-11-05 11:29:10 +00:00
Anton Hansson
5ae58eaa35 [automerger skipped] Merge "Remove unused monolithic jars" am: fd4bcbd76a am: dd64b2cbf9 am: 942afe4c9f am: a6fdffee47 -s ours
am skip reason: Change-Id I7859589b93b861439fb1b7de084e52294da53671 with SHA-1 65aa6ea9d1 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486198

Change-Id: I2e908255329cf8485026fa1ea225261359173411
2020-11-05 11:28:49 +00:00
Nikita Iashchenko
c271490863 Merge "Import TLS handshake atom for Conscrypt" am: 97f35bbbef am: bce0208847 am: d5cad5b37b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484136

Change-Id: I34e7639f6fb4aa3516302d6d63fc74fd632dbcea
2020-11-05 11:16:07 +00:00
Fiona Campbell
fd9ceb97b4 Merge "Return to using brightness ramp values from config" 2020-11-05 11:16:04 +00:00
Anton Hansson
a6fdffee47 Merge "Remove unused monolithic jars" am: fd4bcbd76a am: dd64b2cbf9 am: 942afe4c9f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1486198

Change-Id: Ia7eb172d65dfce0be6d87195db8270113059a368
2020-11-05 11:15:40 +00:00
Santiago Seifert
c45ddb6938 Merge "Address API feedback on setOnRtpRxNoticeListener" 2020-11-05 11:11:58 +00:00
Madhava Srinivasan
bc7cb1e861 Invoking Assistant on keydown
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
2020-11-05 11:01:12 +00:00
Dorin Drimus
3382392f9e Notify VPN status from SystemUI as notifications
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
2020-11-05 11:57:35 +01:00