Commit graph

229 commits

Author SHA1 Message Date
Jin Qian
eb6540a751 Merge "Revert "Add useVrFlinger() method to SurfaceFlinger ConfigStore"" 2017-03-21 00:19:33 +00:00
Jin Qian
2877c167ff Revert "Add useVrFlinger() method to SurfaceFlinger ConfigStore"
This reverts commit d78f6b34b6.

broke multiple builds, e.g.
https://android-build.googleplex.com/builds/submitted/3833064/test_suites_x86_64_fastbuild3d_linux/latest/logs

Change-Id: Id0dea5b63fad8896a186486d137d8505aad12c26
2017-03-21 00:09:09 +00:00
Steven Thomas
84e9b09f5d Merge "Add useVrFlinger() method to SurfaceFlinger ConfigStore" 2017-03-20 23:43:53 +00:00
Steven Thomas
d78f6b34b6 Add useVrFlinger() method to SurfaceFlinger ConfigStore
Add useVrFlinger() method to SurfaceFlinger ConfigStore, which is
used to ensure we only start vr flinger on Daydream ready devices.

Bug: 35885165

Test: Checked for "SurfaceFlinger UseVrFlinger" in the logs,
confirmed it only shows up for Daydream ready devices.

Change-Id: I3c39b1f094e28f06b510171fc0968cf71f5d5550
2017-03-20 14:15:26 -07:00
Steven Moreland
3d0244bd9d Merge "configstore: respect service registration status." am: e8e87df57f am: 9761a112e1
am: 5f44edfb21

Change-Id: I9db78e30ec60088e09384a8134304f0f73bd391e
2017-03-20 17:27:59 +00:00
Steven Moreland
f88a9fe446 configstore: respect service registration status.
Bug: 36424561
Test: pass
Change-Id: I546af49d589e455b6dd97ca45d2330aa82059a4a
2017-03-19 14:39:36 -07:00
Fabien Sanglard
bf4da3df5e Create hasSyncFramework property for SF
Change-Id: I15ef44cd5f901c339902672366d68d1815c3668e
2017-03-17 09:52:12 -07:00
Fabien Sanglard
a33c7e496a Add maxVirtualDisplaySize to configStore
Change-Id: I2c97995edda77b0044d3eaf394080bf7be6c0d77
2017-03-16 17:19:02 -07:00
Fabien Sanglard
38295e77b8 Create forceHwcCopyForVirtualDisplay in configStore
Change-Id: I69ff735a0263cb19d8208867943329357be49d4a
2017-03-16 12:21:10 -07:00
Fabien Sanglard
8d7e31ee6a Create present timestamp offset for SF
Change-Id: Ic6435cca06739f749c6041c0925ca235dcc7f51e
2017-03-15 14:33:52 -07:00
Courtney Goeltzenleuchter
3670b44926 configstore: Add display configuration items
This adds to configstore@1.0 HAL two new configuration
items that indicate if the display support WideColor
or HDR.
Configuration is controlled by TARGET_HAS_WIDE_COLOR_DISPLAY
and TARGET_HAS_HDR_DISPLAY in the board config file.

Test: make tests in libs/gui/tests/
Test: adb sync
Test: adb shell /data/nativetest/libgui_test/libgui_test

Change-Id: I442febc602851577c470c038a7fbf056c8ed25a7
2017-03-15 08:11:25 -06:00
Fabien Sanglard
cbece28ae1 Create configStore SF useContextPriority
Change-Id: I154604428488a5824f6aadd4a6b43a72b327e280
2017-03-14 10:54:51 -07:00
Jaesoo Lee
c06c6873f6 configstore: build configstore-utils as header library
This change makes android.hardware.configstore-utils library built as
a header-only library instead of a static library.

Design doc: go/design-confighal
Bug: 35397068
Test: build, run

Change-Id: I59c7c8802aeb1fb687af24cfdb2bbb38723e6221
Merged-In: Idee48816a1a271bdb9ba8cf907d98c3823925da4
2017-03-12 07:15:48 +09:00
TreeHugger Robot
54baa3b101 Merge "Add SurfaceFlinger phase offset to configStore" 2017-03-10 19:23:37 +00:00
Jaesoo Lee
cb71410f16 configstore: add new configuration item
This change adds to configstore@1.0 HAL a new configuration item
for surfaceflinger; useTripleFramebuffer()

In the default implementation, useTripleFramebuffer() will return true
only if the build flag NUM_FRAMEBUFFER_SURFACE_BUFFERS is defined as 3.

Bug: 34723491
Test: build & run. log message "SurfaceFlinger FrameBuffer: ?"
      should be seen.

Change-Id: I7ab9f17f43d68ee7b37b5db8c24b542db4d1c216
Merged-In: Iac97e25cd69717c73a135f6b2a44538124544987
2017-03-10 11:51:15 +09:00
Jaesoo Lee
ad54c30863 configstore: add utility library functions for configstore
this change adds a set of library functions to facilitate
accessing(retrieving) configuration items.

Specifically, added template functions for accessing configuration
items for following types:

OptionalBool, OptionalInt32, OptionalUInt32, OptionalInt64,
OptionalUInt64, OptionalString

Bug: 34724435
Test: build, run

Change-Id: I28d565dcfc04bb71bf891d1b48ce2ec6192eb21f
Merged-in: Icca56d0d9e086b9d94c9b1168df041bf7d418698
2017-03-10 11:51:11 +09:00
Jiyong Park
c5d7c8a27a configstore: add configstore@1.0 HAL
This change adds configstore@1.0 HAL which provides static configuration values
to the framework. As a first attempt, a configuration item in the
surfaceflinger (VSYNC_EVENT_PHASE_OFFSET_NS) is choosen and converted to
a HAL function named vsyncEventPhaseoffsetNs().

Bug: 34314793
Test: build & run. make sure that configstore is up and running.
$ ps -A | grep configstore

Change-Id: I0692190180cadc8e3f64ee840c737e05b519a135
Merged-in: Ibc70b14176d2e0144a5745d71ceba49ebc3ca706
2017-03-10 11:51:05 +09:00
Fabien Sanglard
eebc925d1d Add SurfaceFlinger phase offset to configStore
Test: Manual
Bug: None
Change-Id: I64e07154903fedc40c153f4f53fb9a9aeae24dea
2017-03-09 10:58:12 -08:00
Steven Moreland
48c52249e4 hidl_default to all targets.
find hardware/interfaces -type f -not -path "*/.git/*" \
-exec sed -i -e '/cc_[A-Za-z_]\+/ { N; s/$/\n    defaults:
\["hidl_defaults"\],/ }' {} \;
./hardware/interfaces/update-makefiles.sh

Test: pass
Bug: 35840847
Change-Id: If10c464d2f000b85c8d698fe11a4f3fc4cfad282
2017-03-08 19:31:53 -08:00
Jaesoo Lee
e5133d1f42 configstore: build configstore-utils as header library
This change makes android.hardware.configstore-utils library built as 
a header-only library instead of a static library.

Design doc: go/design-confighal
Bug: 35397068
Test: build, run

Change-Id: Idee48816a1a271bdb9ba8cf907d98c3823925da4
2017-02-27 07:25:02 +00:00
Steven Moreland
7e73d5b908 Remove viral dependency on libhwbinder. (2/2)
find hardware/interfaces -name Android.mk -exec sed -i -e '/libhwbinder
\\/d' {} \;
find hardware/interfaces -name Android.bp -exec sed -i -e
'/"libhwbinder"/d' {} \;
./hardware/interfaces/update-makefiles.sh

Note, automotive has some actual dependencies on libhwbinder, filed
b/35758626 for this.

Test: everything links
Test: (sanity) booted marlin on internal master with these changes
Bug: 35710429
Change-Id: I6d0726c8130d00684b978efbdd48e3ae396f12e5
2017-02-24 12:18:01 -08:00
Jaesoo Lee
d643fc08c5 configstore: add new configuration item
This change adds to configstore@1.0 HAL a new configuration item
for surfaceflinger; useTripleFramebuffer()

In the default implementation, useTripleFramebuffer() will return true
only if the build flag NUM_FRAMEBUFFER_SURFACE_BUFFERS is defined as 3.

Bug: 34723491
Test: build & run. log message "SurfaceFlinger FrameBuffer: ?"
      should be seen.

Change-Id: Iac97e25cd69717c73a135f6b2a44538124544987
2017-02-16 08:35:01 +09:00
Jaesoo Lee
f185ec6f0a configstore: add utility library functions for configstore
this change adds a set of library functions to facilitate
accessing(retrieving) configuration items.

Specifically, added template functions for accessing configuration
items for following types:

OptionalBool, OptionalInt32, OptionalUInt32, OptionalInt64,
OptionalUInt64, OptionalString

Design doc: go/design-confighal
Bug: 34724435
Test: build, run

Change-Id: Icca56d0d9e086b9d94c9b1168df041bf7d418698
2017-02-16 08:11:36 +09:00
Steven Moreland
a0da1a1c3d Move hidl shims to the vendor partition. (2/2)
We need google shims on the vendor partition because they are providing
an implementation of a vendor defined interface. They were written by
google just as a courtesy/to make the transition easier. They're
basically a set for vendors to assemble their hal implementations
from.

Bug: 34135607
Test: marlin persist.hal.binderization on/off
Change-Id: I2e2af5af39264cf290259755bb9b2eb9827a21f5
2017-02-13 15:03:41 -08:00
Tri Vo
85120c9490 Update makefiles to use filgroup syntax.
Test: mmma hardware/interfaces
Change-Id: I9f4457c78b7820c242d46359f0debe05d1b3e482
2017-02-10 12:45:19 -08:00
Andreas Huber
d38f147c35 Updated makefiles
Java intermediates are now created in the common rather than the device-
specific generated sources subdirectory.

Bug: 33842609
Test: make
Change-Id: I16af4cd19bf0b24baa0ad9ebfdb86b4d959c8672
2017-02-09 17:20:45 -08:00
Tri Vo
ce608bec74 Migrate driver/profiler to test/vts-testcase/hal.
Bug: 34893894
Test: mmma hardware/interfaces

Change-Id: Ic72716577a5f93700c5056986aff55a76b170b5d
2017-02-07 19:13:28 -08:00
Zhuoyao Zhang
e9b43bbe2d Update Andriod.bp for hals.
* Add driver/profiler build rule for all hals.

Test: mma
Change-Id: I98325f7af14fec7dd1bb64b1668de8c7c20ace92
2017-02-03 10:03:01 -08:00
Jiyong Park
200825e359 configstore: add configstore@1.0 HAL
This change adds configstore@1.0 HAL which provides static configuration values
to the framework. As a first attempt, a configuration item in the
surfaceflinger (VSYNC_EVENT_PHASE_OFFSET_NS) is choosen and converted to
a HAL function named vsyncEventPhaseoffsetNs().

Design doc: go/design-confighal

Bug: 34314793
Test: build & run. make sure that configstore is up and running.
$ ps -A | grep configstore
Change-Id: Ibc70b14176d2e0144a5745d71ceba49ebc3ca706
2017-02-01 09:53:17 +09:00