OSDN Git Service

android-x86/frameworks-native.git
5 years agoExpose allowAudioPlaybackCapture to PackageManagerNative
Kevin Rocard [Fri, 22 Feb 2019 17:49:24 +0000 (09:49 -0800)]
Expose allowAudioPlaybackCapture to PackageManagerNative

Audio playback has both c++ and java API.
The flag is needed in the audio policy service in c++ to know if the app
can be captured by other apps.

Bug: 119500128
Test: dumpsys media.audio_policy
Change-Id: I949b5e31039b024a34a9646a18586cff5f8807ab
Signed-off-by: Kevin Rocard <krocard@google.com>
5 years agoMerge "SF: correct 90hz debug flags"
TreeHugger Robot [Thu, 21 Feb 2019 04:26:01 +0000 (04:26 +0000)]
Merge "SF: correct 90hz debug flags"

5 years agoMerge "[RenderEngine] Add OWNERS file to renderengine/ directory."
Peiyong Lin [Thu, 21 Feb 2019 03:44:44 +0000 (03:44 +0000)]
Merge "[RenderEngine] Add OWNERS file to renderengine/ directory."

5 years agoMerge "SF: Add a flag to guard the video detection feature"
Ana Krulec [Thu, 21 Feb 2019 02:34:14 +0000 (02:34 +0000)]
Merge "SF: Add a flag to guard the video detection feature"

5 years agoMerge "Remove unused defines from Keyboard.h"
TreeHugger Robot [Thu, 21 Feb 2019 00:25:44 +0000 (00:25 +0000)]
Merge "Remove unused defines from Keyboard.h"

5 years agoSF: Add a flag to guard the video detection feature
Ana Krulec [Wed, 20 Feb 2019 22:14:12 +0000 (14:14 -0800)]
SF: Add a flag to guard the video detection feature

Video feature is still under development, so we should not be populating
layer history in scheduler if the feature is not turned on.

See go/surface-flinger-scheduler for more info

Test: manual
Bug: 123956502
Change-Id: I83eae3b5203a4e6b8976f9b7400711963eacbb34

5 years agoMerge "SF: Add a lock guard to mLayerHistory"
Aurimas Liutikas [Wed, 20 Feb 2019 22:06:35 +0000 (22:06 +0000)]
Merge "SF: Add a lock guard to mLayerHistory"

5 years agoMerge "SF: change active config when 90Hz flag is on."
Ana Krulec [Wed, 20 Feb 2019 21:12:28 +0000 (21:12 +0000)]
Merge "SF: change active config when 90Hz flag is on."

5 years ago[RenderEngine] Add OWNERS file to renderengine/ directory.
Peiyong Lin [Wed, 20 Feb 2019 20:45:59 +0000 (12:45 -0800)]
[RenderEngine] Add OWNERS file to renderengine/ directory.

BUG: N/A
Test: N/A
Change-Id: I525d20ca7bc188157ad1dab3ace3cd554d605879

5 years agoRemove unused defines from Keyboard.h
Siarhei Vishniakou [Wed, 20 Feb 2019 18:17:03 +0000 (12:17 -0600)]
Remove unused defines from Keyboard.h

These defines are no longer used.

Bug: none
Test: build only
Change-Id: Iebf77341be0c58e24e26260899b02f1cf5fe8f08

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am...
Xin Li [Wed, 20 Feb 2019 18:12:13 +0000 (10:12 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am: f93e7adddd -s ours am: 5f38caa359 -s ours
am: ef7a0cec1d -s ours
am skip reason: subject contains skip directive

Change-Id: Ia7e63377cdf02228900273a0292f3a5d545177fe

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am...
Xin Li [Wed, 20 Feb 2019 17:24:55 +0000 (09:24 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am: f93e7adddd -s ours
am: 5f38caa359 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie11c518e3dadffb1349762118b17374012ef674e

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"
Xin Li [Wed, 20 Feb 2019 16:36:13 +0000 (08:36 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"
am: f93e7adddd -s ours
am skip reason: subject contains skip directive

Change-Id: I5a4bd6710b8230d7b0129b82436e654d89783e07

5 years agoMerge "DO NOT MERGE - Merge PPRL.190205.001 into master"
Xin Li [Wed, 20 Feb 2019 16:25:59 +0000 (16:25 +0000)]
Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"

5 years agoMerge "Installd: Add more compilation-related presubmits" am: e736b8fe32 am: 6e327a6658
Andreas Gampe [Wed, 20 Feb 2019 16:19:14 +0000 (08:19 -0800)]
Merge "Installd: Add more compilation-related presubmits" am: e736b8fe32 am: 6e327a6658
am: f84dc7c511

Change-Id: I7cb2421b37366927ca6774bddc4c1805e07e98f1

5 years agoMerge "Installd: Add more compilation-related presubmits" am: e736b8fe32
Andreas Gampe [Wed, 20 Feb 2019 16:15:00 +0000 (08:15 -0800)]
Merge "Installd: Add more compilation-related presubmits" am: e736b8fe32
am: 6e327a6658

Change-Id: I58dca4ff13792023f33b81e3004d4a469895eb58

5 years agoMerge "Add thread safety annotations to inputflinger"
TreeHugger Robot [Wed, 20 Feb 2019 16:11:52 +0000 (16:11 +0000)]
Merge "Add thread safety annotations to inputflinger"

5 years agoMerge "Installd: Add more compilation-related presubmits"
Andreas Gampe [Wed, 20 Feb 2019 16:10:48 +0000 (08:10 -0800)]
Merge "Installd: Add more compilation-related presubmits"
am: e736b8fe32

Change-Id: I198692a7fcc8469bc12dca46492dda0c802d59f1

5 years agoMerge "Installd: Add more compilation-related presubmits"
Treehugger Robot [Wed, 20 Feb 2019 15:56:58 +0000 (15:56 +0000)]
Merge "Installd: Add more compilation-related presubmits"

5 years agoMerge "Rotate TouchVideoFrames"
TreeHugger Robot [Wed, 20 Feb 2019 15:44:29 +0000 (15:44 +0000)]
Merge "Rotate TouchVideoFrames"

5 years agoMerge "Revert^2: dexopt: Fix target-sdk-version argument creation" am: e9d502a4d0...
David Brazdil [Wed, 20 Feb 2019 15:43:31 +0000 (07:43 -0800)]
Merge "Revert^2: dexopt: Fix target-sdk-version argument creation" am: e9d502a4d0 am: 459934e5cf
am: 4c9fe59688

Change-Id: Ib7916f4ae5b8ab5a4991e26641a10c14d4b879bd

5 years agoMerge "Revert^2: dexopt: Fix target-sdk-version argument creation" am: e9d502a4d0
David Brazdil [Wed, 20 Feb 2019 15:39:08 +0000 (07:39 -0800)]
Merge "Revert^2: dexopt: Fix target-sdk-version argument creation" am: e9d502a4d0
am: 459934e5cf

Change-Id: I7e76fe2fc69c3cafc2dde5a5b81000ff61772bcb

5 years agoMerge "Revert^2: dexopt: Fix target-sdk-version argument creation"
David Brazdil [Wed, 20 Feb 2019 15:33:56 +0000 (07:33 -0800)]
Merge "Revert^2: dexopt: Fix target-sdk-version argument creation"
am: e9d502a4d0

Change-Id: Ia61f9278c42fad65c91a5465ce5844c17c5399fa

5 years agoMerge "Add test for getVideoFrames"
TreeHugger Robot [Wed, 20 Feb 2019 15:27:31 +0000 (15:27 +0000)]
Merge "Add test for getVideoFrames"

5 years agoMerge "Revert^2: dexopt: Fix target-sdk-version argument creation"
Treehugger Robot [Wed, 20 Feb 2019 15:24:32 +0000 (15:24 +0000)]
Merge "Revert^2: dexopt: Fix target-sdk-version argument creation"

5 years agoMerge changes I33f0b3a0,I772b7981 am: b4406da4a5 am: b454f25d88
Nandana Dutt [Wed, 20 Feb 2019 14:20:08 +0000 (06:20 -0800)]
Merge changes I33f0b3a0,I772b7981 am: b4406da4a5 am: b454f25d88
am: 7aa65ecdbc

Change-Id: I1527281e3c3de07741d1582be933c002a96e8018

5 years agoMerge changes I33f0b3a0,I772b7981 am: b4406da4a5
Nandana Dutt [Wed, 20 Feb 2019 14:15:54 +0000 (06:15 -0800)]
Merge changes I33f0b3a0,I772b7981 am: b4406da4a5
am: b454f25d88

Change-Id: I579d4780b07154ec02b512db45d71c6d2b05ef3d

5 years agoMerge changes I33f0b3a0,I772b7981
Nandana Dutt [Wed, 20 Feb 2019 14:12:03 +0000 (06:12 -0800)]
Merge changes I33f0b3a0,I772b7981
am: b4406da4a5

Change-Id: If513e7528a851fd1f70f1a3acf2c711f8cbe4fa8

5 years agoMerge changes I33f0b3a0,I772b7981
Nandana Dutt [Wed, 20 Feb 2019 14:03:55 +0000 (14:03 +0000)]
Merge changes I33f0b3a0,I772b7981

* changes:
  Make dumpstate listener callbacks synchronous
  dumpstate: enforce oneshot

5 years agoRevert^2: dexopt: Fix target-sdk-version argument creation
David Brazdil [Wed, 20 Feb 2019 10:39:34 +0000 (10:39 +0000)]
Revert^2: dexopt: Fix target-sdk-version argument creation

Refactor CL I8fdf96cfe0343042d1a868ca09e6c6b9a629b967 has a typo
which leaves the target-sdk-version argument of dex2oat always empty.
Fix the issue.

This reverts commit 142836515437bec4545d982387895190b8e5c678.

Test: manual inspection of command line arguments
Test: adb shell pm compile -m speed <package>
Change-Id: I6b92e8c595e3c00d71ab13d976ee43f58d1a0013

5 years agoMake dumpstate listener callbacks synchronous
Nandana Dutt [Tue, 19 Feb 2019 13:05:37 +0000 (13:05 +0000)]
Make dumpstate listener callbacks synchronous

Dumpstate binder service is oneshot and needs to exit in error
conditions, often right after calling onError. This can make the event
handling on client complex since there could be a race between death
recipient and onError. To make things simpler make onError synchronous.
To keep it consistent make the other callbacks synchronous as well.

Also add a new error code to signal another bugreport is running.

BUG: 123571915
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test --gtest_filter=DumpstateBinderTest.*

Change-Id: I33f0b3a080ba493dba3521439daa6a46354a8470
(cherry picked from commit e64c3aa814b8cbd62907b8026899533a0f24c8f6)

5 years agodumpstate: enforce oneshot
Nandana Dutt [Fri, 15 Feb 2019 16:13:53 +0000 (16:13 +0000)]
dumpstate: enforce oneshot

Ensure the service exits after errors as well as after successful
finish as a oneshot service should.

While at it also move remove(file) to unlink(file) and fix an error
in checking the return value of unlink.

BUG: 123571915
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test --gtest_filter=DumpstateBinderTest.*
Change-Id: I772b7981cd3b2f7c285ab980495d5539d57ebf46

5 years agoMerge "SurfaceFlinger: propagate phase offsets to scheduler"
TreeHugger Robot [Wed, 20 Feb 2019 03:36:46 +0000 (03:36 +0000)]
Merge "SurfaceFlinger: propagate phase offsets to scheduler"

5 years agoMerge "SurfaceFlinger: no app vsyncs during config switch"
TreeHugger Robot [Wed, 20 Feb 2019 03:21:23 +0000 (03:21 +0000)]
Merge "SurfaceFlinger: no app vsyncs during config switch"

5 years agoSurfaceFlinger: propagate phase offsets to scheduler
Ady Abraham [Fri, 15 Feb 2019 00:29:49 +0000 (16:29 -0800)]
SurfaceFlinger: propagate phase offsets to scheduler

propagate changes to VSyncModulator to Scheduler

Test: test google/perf/jank/UIBench/UIBench-Trace:com.android.uibench.janktests.UiBenchJankTests#testClippedListView -v
Change-Id: Iec798edf07b95fcfe30982f2b5769226378ecaf0

5 years agoRotate TouchVideoFrames
Siarhei Vishniakou [Fri, 15 Feb 2019 23:21:03 +0000 (17:21 -0600)]
Rotate TouchVideoFrames

When a screen orientation change happens, the touch coordinates are
adjusted in InputReader to accomodate this rotation. When the user is
holding the device, the origin (0, 0) is always at the top left of the
screen.
However, currently, the TouchVideoFrames are not being rotated. This
presents a problem, because the touch coordinates cannot be directly
matched to the heatmap, as received in the HAL.

To account for this, we rotate the touch video frame.

Test: atest libinput_tests inputflinger_tests
Bug: 123241238
Change-Id: Iff45c68b1d2b237d2b1657ed76f50bb23ef8468a

5 years agoSF: Add a lock guard to mLayerHistory
Ana Krulec [Tue, 19 Feb 2019 22:46:01 +0000 (14:46 -0800)]
SF: Add a lock guard to mLayerHistory

Test: forrest
Bug: 124760910
Bug: 124660613
Change-Id: I2275f6abf52369c84e7f2d3bb77d6eb7c597b892

5 years agoSF: correct 90hz debug flags
Kevin DuBois [Tue, 19 Feb 2019 22:08:55 +0000 (14:08 -0800)]
SF: correct 90hz debug flags

debug.sf.set_idle_timer_ms > 0, debug.sf.use_90Hz == 0, was activating
boost to 90Hz. This corrects it so that if debug.sf.use_90Hz == 0,
then set_idle_timer has no effect.

Fixes: 124780321
Test: Manual systrace inspection
Change-Id: If926c086b5bdcf3645baa958bd19c7b163718728

5 years agoMerge "Add Winscope report to the bugreport when using continuous mode" am: 27c8800af...
Nataniel Borges [Tue, 19 Feb 2019 23:01:29 +0000 (15:01 -0800)]
Merge "Add Winscope report to the bugreport when using continuous mode" am: 27c8800af0 am: e60c0ee81c
am: 435638d505

Change-Id: Ia99ee138c67658298ec77f0a91d34861afa20f6d

5 years agoMerge "Revert "dexopt: Fix target-sdk-version argument creation"" am: 683f3188c9...
Andreas Gampe [Tue, 19 Feb 2019 22:51:29 +0000 (14:51 -0800)]
Merge "Revert "dexopt: Fix target-sdk-version argument creation"" am: 683f3188c9 am: 0a08fb662e
am: 60957fa165

Change-Id: I694f7c0d255c40a243dd477200cb2cb6b7d22613

5 years agoMerge "Add Winscope report to the bugreport when using continuous mode" am: 27c8800af0
Nataniel Borges [Tue, 19 Feb 2019 22:45:39 +0000 (14:45 -0800)]
Merge "Add Winscope report to the bugreport when using continuous mode" am: 27c8800af0
am: e60c0ee81c

Change-Id: I7396665b4199d7765157f5d371dd276999c6a0b1

5 years agoAdd thread safety annotations to inputflinger
Siarhei Vishniakou [Tue, 12 Feb 2019 02:13:20 +0000 (18:13 -0800)]
Add thread safety annotations to inputflinger

Enable -Wthread-safety for services/inputflinger code.

Test: compile-time
Bug: 123097103
Change-Id: I2977434a5ff243dc256ae0132966293209cb818a

5 years agoMerge "Revert "dexopt: Fix target-sdk-version argument creation"" am: 683f3188c9
Andreas Gampe [Tue, 19 Feb 2019 22:40:52 +0000 (14:40 -0800)]
Merge "Revert "dexopt: Fix target-sdk-version argument creation"" am: 683f3188c9
am: 0a08fb662e

Change-Id: Ia50214ef1eebff31b3507aae1a9c0116f5df8af9

5 years agoMerge "Add Winscope report to the bugreport when using continuous mode"
Nataniel Borges [Tue, 19 Feb 2019 22:38:21 +0000 (14:38 -0800)]
Merge "Add Winscope report to the bugreport when using continuous mode"
am: 27c8800af0

Change-Id: I72963b8502b46d9f68ff67cfdfe67c4463971a87

5 years agoMerge "Revert "dexopt: Fix target-sdk-version argument creation""
Andreas Gampe [Tue, 19 Feb 2019 22:37:16 +0000 (14:37 -0800)]
Merge "Revert "dexopt: Fix target-sdk-version argument creation""
am: 683f3188c9

Change-Id: I157f552d4a1f52fd85f64aa92096b6a44ee1b90b

5 years agoSF: change active config when 90Hz flag is on.
Ana Krulec [Fri, 15 Feb 2019 23:18:15 +0000 (15:18 -0800)]
SF: change active config when 90Hz flag is on.

This is a temporary enable/disable flag, until go/90Hz-display-policy
is implemented end to end.

Bug: 123998711
Test: systrace, dumpsys
Change-Id: I5d1f1d77c833dbddd614f322e09e21a11037a0fc

5 years agoMerge "Add Winscope report to the bugreport when using continuous mode"
Treehugger Robot [Tue, 19 Feb 2019 22:21:05 +0000 (22:21 +0000)]
Merge "Add Winscope report to the bugreport when using continuous mode"

5 years agoAdd Winscope report to the bugreport when using continuous mode
Nataniel Borges [Sat, 26 Jan 2019 00:37:16 +0000 (16:37 -0800)]
Add Winscope report to the bugreport when using continuous mode

When logging window traces in continuous mode the window manager doesn't
continuously save data to disk.

The window traces (continuous or not) have to be present in the bug
report.

Add instruction to dump the window trace during bugreporting.

To activate continuous trace:
- adb shell cmd window tracing continuous true
- adb shell cmd window tracing start

To manually dump window trace:
 - adb shell dumpsys window trace

Test: Flash a device. Set continuous mode. Start the trace. Trigger a
bugreport. Check if the zip file contains the a wm_trace.pb under
FS/data/misc/wmtrace

Change-Id: I1af0b3b37e48ba026fa64515d7e330a2ba7663b6

5 years agoMerge "Revert "dexopt: Fix target-sdk-version argument creation""
Andreas Gampe [Tue, 19 Feb 2019 22:19:28 +0000 (22:19 +0000)]
Merge "Revert "dexopt: Fix target-sdk-version argument creation""

5 years agoInstalld: Add more compilation-related presubmits
Andreas Gampe [Tue, 19 Feb 2019 22:11:59 +0000 (14:11 -0800)]
Installd: Add more compilation-related presubmits

Bug: 124771423
Test: TH
Change-Id: I878040cfe32c790b7adf0d7865cf41d60d421547

5 years agoRevert "dexopt: Fix target-sdk-version argument creation"
Andreas Gampe [Tue, 19 Feb 2019 22:01:51 +0000 (22:01 +0000)]
Revert "dexopt: Fix target-sdk-version argument creation"

This reverts commit d458a4f956193afdb52138606f6e61fc00b363bf.

Reason for revert: Breaks tests and manual compile

Bug: 124771423
Change-Id: Icb0fba371ffdc7464f8df21c6b92c7d7faf568f8
Test: N/A

5 years agoMerge "Update SF dump to use proto3"
Nataniel Borges [Tue, 19 Feb 2019 21:47:15 +0000 (21:47 +0000)]
Merge "Update SF dump to use proto3"

5 years agoSurfaceFlinger: no app vsyncs during config switch
Ady Abraham [Tue, 12 Feb 2019 23:30:16 +0000 (15:30 -0800)]
SurfaceFlinger: no app vsyncs during config switch

Do not dipatch vsync callbacks to applications during a config
switch as applications will get choreographer callbacks at uneven
times and will stuff the queue to surface flinger.

Test: test google/perf/jank/UIBench/UIBench-Trace:com.android.uibench.janktests.UiBenchJankTests#testClippedListView -v
Change-Id: I0537933c27af83a9186bcff54c3596d612c748ea

5 years agoMerge "Add synchronous transaction to wait for setInputWindow to complete (2/n)"
Chavi Weingarten [Tue, 19 Feb 2019 17:54:18 +0000 (17:54 +0000)]
Merge "Add synchronous transaction to wait for setInputWindow to complete (2/n)"

5 years agoMerge "Add synchronous transaction to wait for setInputWindow to complete (1/n)"
Chavi Weingarten [Tue, 19 Feb 2019 17:53:55 +0000 (17:53 +0000)]
Merge "Add synchronous transaction to wait for setInputWindow to complete (1/n)"

5 years agoMerge "SF: Move management of HWC layers to compositionengine::OutputLayer"
TreeHugger Robot [Tue, 19 Feb 2019 17:16:49 +0000 (17:16 +0000)]
Merge "SF: Move management of HWC layers to compositionengine::OutputLayer"

5 years agoAdd test for getVideoFrames
Siarhei Vishniakou [Sat, 16 Feb 2019 02:01:35 +0000 (20:01 -0600)]
Add test for getVideoFrames

The new test is for the api EventHubInterface::getVideoFrames.
We are creating a videoframe in FakeEventHub and then making sure that
the listener receives the frame after sync happens.

Test: atest libinput_tests inputflinger_tests
Bug: 123241238
Change-Id: I1485ff30c5fb78a7785b6cbea76e8841ada40271

5 years agoMerge "Add tests for TouchVideoFrame"
TreeHugger Robot [Tue, 19 Feb 2019 15:40:10 +0000 (15:40 +0000)]
Merge "Add tests for TouchVideoFrame"

5 years agoMerge "Add a dalvik.vm.boot-image option for zygote and installd." am: a2849b1aec...
Nicolas Geoffray [Tue, 19 Feb 2019 14:42:04 +0000 (06:42 -0800)]
Merge "Add a dalvik.vm.boot-image option for zygote and installd." am: a2849b1aec am: a800ad6efa
am: 007087ccec

Change-Id: Icb531e22b9d582b876b796cfc24a5dd0a3070562

5 years agoMerge "Add a dalvik.vm.boot-image option for zygote and installd." am: a2849b1aec
Nicolas Geoffray [Tue, 19 Feb 2019 14:37:49 +0000 (06:37 -0800)]
Merge "Add a dalvik.vm.boot-image option for zygote and installd." am: a2849b1aec
am: a800ad6efa

Change-Id: I8efd35438c50f29cff1420b1963ba641a7fcead9

5 years agoMerge "Add a dalvik.vm.boot-image option for zygote and installd."
Nicolas Geoffray [Tue, 19 Feb 2019 14:33:37 +0000 (06:33 -0800)]
Merge "Add a dalvik.vm.boot-image option for zygote and installd."
am: a2849b1aec

Change-Id: I4be1fc0a076c76c6de575fd3f832be87e9b273e3

5 years agoMerge "Add a dalvik.vm.boot-image option for zygote and installd."
Nicolas Geoffray [Tue, 19 Feb 2019 14:27:26 +0000 (14:27 +0000)]
Merge "Add a dalvik.vm.boot-image option for zygote and installd."

5 years agoAdd a dalvik.vm.boot-image option for zygote and installd.
Nicolas Geoffray [Thu, 14 Feb 2019 15:57:47 +0000 (15:57 +0000)]
Add a dalvik.vm.boot-image option for zygote and installd.

To experiment with a non-fully AOT'ed boot image.

Bug: 119800099
Test: adb shell setprop dalvik.vm.boot-image "/system/framework/boot.art"
Change-Id: I7c5bb0bf38ffc988734e691dff90866aead3a5b7

5 years agoMerge "dexopt: Fix target-sdk-version argument creation" am: cf867594cf am: 02f7e74735
David Brazdil [Tue, 19 Feb 2019 10:08:09 +0000 (02:08 -0800)]
Merge "dexopt: Fix target-sdk-version argument creation" am: cf867594cf am: 02f7e74735
am: 448e7e4980

Change-Id: Id9b8a61019dc23ebf8524a8d599db813090b128e

5 years agoMerge "dexopt: Fix target-sdk-version argument creation" am: cf867594cf
David Brazdil [Tue, 19 Feb 2019 10:03:59 +0000 (02:03 -0800)]
Merge "dexopt: Fix target-sdk-version argument creation" am: cf867594cf
am: 02f7e74735

Change-Id: I69401de49941cad023a220b90f53ea359cb256b4

5 years agoMerge "dexopt: Fix target-sdk-version argument creation"
David Brazdil [Tue, 19 Feb 2019 09:59:43 +0000 (01:59 -0800)]
Merge "dexopt: Fix target-sdk-version argument creation"
am: cf867594cf

Change-Id: Ibd11be8b186991c6c1571e0b147a75cc44a95303

5 years agoMerge "dexopt: Fix target-sdk-version argument creation"
David Brazdil [Tue, 19 Feb 2019 09:53:39 +0000 (09:53 +0000)]
Merge "dexopt: Fix target-sdk-version argument creation"

5 years agoMerge "Cut the static deps from libEGL to libnativeloader and libnativebridge"
TreeHugger Robot [Tue, 19 Feb 2019 05:34:45 +0000 (05:34 +0000)]
Merge "Cut the static deps from libEGL to libnativeloader and libnativebridge"

5 years agoDO NOT MERGE - Merge PPRL.190205.001 into master
Xin Li [Mon, 18 Feb 2019 23:58:34 +0000 (15:58 -0800)]
DO NOT MERGE - Merge PPRL.190205.001 into master

Bug: 124234733
Change-Id: Ie986006f23ae05d80cc1c69eb9fbf20c5bd5d1a7

5 years agoCut the static deps from libEGL to libnativeloader and libnativebridge
Jiyong Park [Mon, 18 Feb 2019 12:22:28 +0000 (21:22 +0900)]
Cut the static deps from libEGL to libnativeloader and libnativebridge

The dependencies are replaced with *_lazy libraries which dynamically
load and links to the real libraries at runtime using dlopen and dlsym.

This allows libEGL to be used by early processes that are executed
before the activation of the runtime APEX where libnativeloader and
libnativebridge are provided.

Bug: 123403798
Test: m
Test: device boots to the UI

Change-Id: Ia54443163e1edcdcd142fcf392d830f1ae4c32bb

5 years agodexopt: Fix target-sdk-version argument creation
David Brazdil [Mon, 18 Feb 2019 15:24:41 +0000 (15:24 +0000)]
dexopt: Fix target-sdk-version argument creation

Refactor CL I8fdf96cfe0343042d1a868ca09e6c6b9a629b967 has a typo
which leaves the target-sdk-version argument of dex2oat always empty.
Fix the issue.

Test: manual inspection of command line arguments
Change-Id: Ibeff04758dabacf4ea04fd9e54976798fcba10f1

5 years agoMerge "dumpstate: format readme" am: 0119e28e9e am: 406ad255bf
Nandana Dutt [Mon, 18 Feb 2019 11:04:08 +0000 (03:04 -0800)]
Merge "dumpstate: format readme" am: 0119e28e9e am: 406ad255bf
am: 65fa417553

Change-Id: I870e080ab97847b63c7f1e38ca6f5ffb21fe2362

5 years agoMerge "dumpstate: format readme" am: 0119e28e9e
Nandana Dutt [Mon, 18 Feb 2019 10:59:55 +0000 (02:59 -0800)]
Merge "dumpstate: format readme" am: 0119e28e9e
am: 406ad255bf

Change-Id: Ifff97c4c2434d6f75fd7bd4ccdaa595c46c7c95c

5 years agoMerge "dumpstate: format readme"
Nandana Dutt [Mon, 18 Feb 2019 10:55:39 +0000 (02:55 -0800)]
Merge "dumpstate: format readme"
am: 0119e28e9e

Change-Id: I4d736a374a5c3405f1ecc0e85a4965c1e1f7ddd3

5 years agoMerge "dumpstate: format readme"
Treehugger Robot [Mon, 18 Feb 2019 10:52:27 +0000 (10:52 +0000)]
Merge "dumpstate: format readme"

5 years agoMerge "Fix dumpstate smoke test" am: 917b4d4392 am: 48ea00fbd7
Nandana Dutt [Mon, 18 Feb 2019 09:15:55 +0000 (01:15 -0800)]
Merge "Fix dumpstate smoke test" am: 917b4d4392 am: 48ea00fbd7
am: f3f41ae83a

Change-Id: Ie0c072dcbac9a56173c68e14bbe2e7eb1510cf85

5 years agoMerge "Fix dumpstate smoke test" am: 917b4d4392
Nandana Dutt [Mon, 18 Feb 2019 09:11:41 +0000 (01:11 -0800)]
Merge "Fix dumpstate smoke test" am: 917b4d4392
am: 48ea00fbd7

Change-Id: I061d6de05d9f55be44b4def11ac5729b96d573a9

5 years agoMerge "Fix dumpstate smoke test"
Nandana Dutt [Mon, 18 Feb 2019 09:07:29 +0000 (01:07 -0800)]
Merge "Fix dumpstate smoke test"
am: 917b4d4392

Change-Id: Idaaf794a1a5bc487cee938c11ee913c147f0ac1a

5 years agoMerge "Fix dumpstate smoke test"
Treehugger Robot [Mon, 18 Feb 2019 09:01:18 +0000 (09:01 +0000)]
Merge "Fix dumpstate smoke test"

5 years agoMerge "Use the updated hybrid interface"
TreeHugger Robot [Sun, 17 Feb 2019 14:57:36 +0000 (14:57 +0000)]
Merge "Use the updated hybrid interface"

5 years agoMerge "Game Driver: plumb driver build date into GpuStats"
TreeHugger Robot [Sat, 16 Feb 2019 09:47:44 +0000 (09:47 +0000)]
Merge "Game Driver: plumb driver build date into GpuStats"

5 years agoMerge "Swap width and height in TouchVideoFrame"
TreeHugger Robot [Sat, 16 Feb 2019 05:08:27 +0000 (05:08 +0000)]
Merge "Swap width and height in TouchVideoFrame"

5 years agoMerge "SF: Add screenshot reparenting tests"
TreeHugger Robot [Sat, 16 Feb 2019 04:35:42 +0000 (04:35 +0000)]
Merge "SF: Add screenshot reparenting tests"

5 years agoSF: Move management of HWC layers to compositionengine::OutputLayer
Lloyd Pique [Wed, 19 Dec 2018 00:33:37 +0000 (16:33 -0800)]
SF: Move management of HWC layers to compositionengine::OutputLayer

OutputLayer creates a HWC layer (if appropriate) on initialization, and
the HWC layer is destroyed with the OutputLayer.

Removes all explicit calls to create/destroy the HWC layers from the front-end
Layer code, and a few other places.

A call is also added to destroy all OutputLayers before switching in or
out of VrComposer mode. This change already marked the geometry as dirty
-- this just ensures all the HWC layers are recreated.

Test: atest libsurfaceflinger_unittest libcompositionengine_test
Test: atest dvr_display-test
Test: atest CtsViewTestCases
Bug: 121291683
Bug: 124537779
Change-Id: Ib7aec9e998ed5481d2753d19b061ba922e54bfe0

5 years agoMerge "Move implementation to TouchVideoFrame.cpp"
TreeHugger Robot [Sat, 16 Feb 2019 02:34:44 +0000 (02:34 +0000)]
Merge "Move implementation to TouchVideoFrame.cpp"

5 years agoMerge "libbinder_ndk: AServiceManager_checkService # apex" am: 7d3f8168e0 am: db40a75199
Steven Moreland [Sat, 16 Feb 2019 02:30:41 +0000 (18:30 -0800)]
Merge "libbinder_ndk: AServiceManager_checkService # apex" am: 7d3f8168e0 am: db40a75199
am: 66e0593531

Change-Id: I898c63bc1583176c297f7c0768c9f28cee7cddec

5 years agoAdd tests for TouchVideoFrame
Siarhei Vishniakou [Fri, 15 Feb 2019 23:15:56 +0000 (17:15 -0600)]
Add tests for TouchVideoFrame

These tests are pretty basic for now, but will include rotation tests in
the future.

Test: atest libinput_tests
Bug: 123241238
Change-Id: Ie0c5282d25208cd91b2d0ce583516d562b8b115f

5 years agoMerge "libbinder_ndk: AServiceManager_checkService # apex" am: 7d3f8168e0
Steven Moreland [Sat, 16 Feb 2019 02:08:14 +0000 (18:08 -0800)]
Merge "libbinder_ndk: AServiceManager_checkService # apex" am: 7d3f8168e0
am: db40a75199

Change-Id: Ieb0fa20813ec1c9393fb134a0cc333ab5041366b

5 years agoMerge "libbinder_ndk: AServiceManager_checkService # apex"
Steven Moreland [Sat, 16 Feb 2019 01:58:25 +0000 (17:58 -0800)]
Merge "libbinder_ndk: AServiceManager_checkService # apex"
am: 7d3f8168e0

Change-Id: I13c6895098e3ed908563207860dbe304c63ee681

5 years agoMerge "libbinder_ndk: AServiceManager_checkService # apex"
Treehugger Robot [Sat, 16 Feb 2019 01:44:15 +0000 (01:44 +0000)]
Merge "libbinder_ndk: AServiceManager_checkService # apex"

5 years agoMerge "SF: Abstract and mock HWC2::Layer"
TreeHugger Robot [Sat, 16 Feb 2019 00:54:15 +0000 (00:54 +0000)]
Merge "SF: Abstract and mock HWC2::Layer"

5 years agoSwap width and height in TouchVideoFrame
Siarhei Vishniakou [Fri, 15 Feb 2019 23:10:53 +0000 (17:10 -0600)]
Swap width and height in TouchVideoFrame

Currently in TouchVideoFrame and related code, the field 'width'
precedes the field 'height'.
But these fields should be  interpreted as follows:
width -> number  of columns
height -> number of rows
In most notations in mathematics, the matrix sizes are designated as
'mxn', where m is the number of rows and n is the number of columns.

So we make TouchVideoFrame consistent with this, and swap these 2
fields.

Test: atest libinput_tests
The actual test is added in the next commit.
Bug: 123241238

Change-Id: I808e7f354bd7b62d5599324eef205bf4450a91c1

5 years agoMove implementation to TouchVideoFrame.cpp
Siarhei Vishniakou [Fri, 15 Feb 2019 22:48:38 +0000 (16:48 -0600)]
Move implementation to TouchVideoFrame.cpp

Currently, the implementation for TouchVideoFrame.h is done directly in
the header file.
But we are adding more logic into TouchVideoFrame, specifically, the
ability to rotate videoframes. Therefore, add a separate cpp file for
TouchVideoFrame.

Test: atest libinput_tests
The actual test is added in an upcoming commit
Bug: 123241238

Change-Id: I4463099d251ab49533d25dd9da7c344e1a7ac93e

5 years agoGame Driver: plumb driver build date into GpuStats
Yiwei Zhang [Sat, 16 Feb 2019 00:04:41 +0000 (16:04 -0800)]
Game Driver: plumb driver build date into GpuStats

Driver build date is used to track graphics driver age of the Android
ecosystem. This change also make the binder transaction async so that
both GL and Vulkan loaders won't be blocked by GpuStats module in the
GpuService.

Bug: 123156461
Test: Build, flash and boot. Verify the GpuService receiver side.
Change-Id: I89fd94613da2f5be7c28e5a5f8c3ec653f85cd2a

5 years agoSF: Add screenshot reparenting tests
Vishnu Nair [Sat, 16 Feb 2019 00:05:56 +0000 (16:05 -0800)]
SF: Add screenshot reparenting tests

Fixes: 124372894
Test: atest SurfaceFlinger_test
Change-Id: I6fbdf22c85a75b8ae166d7977ab784394e44427b

5 years agoAdd synchronous transaction to wait for setInputWindow to complete (2/n)
chaviw [Thu, 14 Feb 2019 18:18:33 +0000 (10:18 -0800)]
Add synchronous transaction to wait for setInputWindow to complete (2/n)

Added InputWindowCommand syncInputWindows

This will allow the client to request SF to wait until setInputWindow
has completed on the InputDispatcher side.

Bug: 123041491
Test: Builds, no execution yet
Change-Id: Ibb5539455d20e4d612696ae7164ce84130bf91b4

5 years agoAdd synchronous transaction to wait for setInputWindow to complete (1/n)
chaviw [Thu, 14 Feb 2019 18:00:34 +0000 (10:00 -0800)]
Add synchronous transaction to wait for setInputWindow to complete (1/n)

Add SurfaceFlinger callback to notify when input windows have been set.

The call to set input windows from SF to InputDispatcher is one way.
Therefore, it won't wait to ensure the windows have been set. Add a
callback method to allow InputDispatcher to notify SF when it's finished
setting the input windows, allowing SF to block if needed.

Bug: 123041491
Test: Builds and runs
Change-Id: Ia4196d2e517c07d94ab9da71beab057d5d6fcf1c

5 years agoMerge changes from topic "scheduler::123998711"
TreeHugger Robot [Fri, 15 Feb 2019 22:41:16 +0000 (22:41 +0000)]
Merge changes from topic "scheduler::123998711"

* changes:
  SF: Adding testable Scheduler and updating tests.
  SF: Migrate to Scheduler and clean up duplicate code.

5 years agoMerge "Game Driver: plumb driver choice and loading time to GpuStats"
TreeHugger Robot [Fri, 15 Feb 2019 22:20:50 +0000 (22:20 +0000)]
Merge "Game Driver: plumb driver choice and loading time to GpuStats"

5 years agoUpdate SF dump to use proto3
Nataniel Borges [Fri, 15 Feb 2019 21:22:03 +0000 (13:22 -0800)]
Update SF dump to use proto3

The C++ implementation of Proto2 writes default values to the protobuf object, whenever they are set in the app. That is, if we write 0 into an integer or float field, the protobuf writes the value 0 in the object.

Proto3 skips default values, even if they are set.

Changing from proto2 to proto3 reduces by ~20% the memory requirement for storing SF traces. It also allows default values to be ignored in Winscope

Test: Record a SF trace. Flash a device. Record another SF trace. Check the trace size and/or open them in winscope version with "display defaults" unchecked.
Change-Id: I69ff09d141f6f31f22a4f5fc90bf58cf222d9aae