Commit graph

255 commits

Author SHA1 Message Date
Vijay Venkatraman
49abdb96d2 Moved all files from include/system to libsystem/include/system
Bug: 33241851
Test: No changes for modules not using VNDK. For compiling with VNDK,
add libsystem_headers as dependency for using these headers

Change-Id: I2acce0ab771e10ac83461c2f931e2c19e922089e
2017-04-05 16:45:44 -07:00
bohu
f66a7ee897 Revert "Revert "Qemu-pipe: refactor qemu_pipe.h into libqemu_pipe""
This reverts commit 63ef9ff5fa.
2017-03-29 12:19:40 -07:00
bohu
63ef9ff5fa Revert "Qemu-pipe: refactor qemu_pipe.h into libqemu_pipe"
It broke master
BUG: 36695011

This reverts commit ff87855e10.

Change-Id: Ic1057a416748d4a3c9736cf3bb73982b8d45e5d5
2017-03-28 15:05:00 -07:00
Bo Hu
08ef70558d Merge changes from topic 'qemu-cp'
* changes:
  Qemu: make the qemu_pipe_open back compatible
  Emulator: Enhance qemu_pipe.h to handle partial rw
  Qemu-pipe: refactor qemu_pipe.h into libqemu_pipe
2017-03-28 18:13:54 +00:00
bohu
ff87855e10 Qemu-pipe: refactor qemu_pipe.h into libqemu_pipe
Traditionally, qemu_pipe has both the declaration and implentation of each
function in one header file--qemu_pipe.h, and it is getting incovenient to
maintain.

This CL separates the implementation of functions from the header file,
and makes qemu_pipe a static library for other modules to link to.

Note that the interface and implementation of qemu_pipe are kept unchanged,
and future CLs will enhance the implementation to make it more reliable and
more compatible with old and new API levels.

Following projects are affected by this refactoring, and they are modified
accordingly:

hardware/ril/reference-ril

Change-Id: I541ecbf0cc7eadeef9d4e37ffd9ca7bfcc5c94c0
(cherry picked from aosp 294d44be33)
2017-03-28 09:27:00 -07:00
Mathias Agopian
34c9fbb6d1 Deprecate system/window.h
Renamed it to system/window-deprecated.h and
added a comment to that effect. 
window.h now includes system/window-deprecated.h,
which should make it obvious it shouldn’t be used.

Test: compiled
Bug: 34453351
Change-Id: Ie6953fd4383ba6289bd8950c389d14d9ac41f7d5
2017-03-22 20:57:27 +00:00
Brian Anderson
4e080e5128 Remove retire frame event.
Test: adb shell /data/nativetest/libgui_test/libgui_test
  --gtest_filter=*GetFrameTimestamps*

Change-Id: I9e7fa878fe7cc339d33c221d56b56cce1709aa74
2017-03-16 16:12:21 -07:00
Mathias Agopian
c1d77bedad Add an “is valid” query to ANativeWindow
This will help avoid certain crash (null dereference),
and return an error instead. This is useful for
app developers as java language apps are not
expected to crash when passed bad arguments

This doesn’t fix bug 36065206, but was prompted
by it.

Test: compile / run
Bug: 36065206
Change-Id: I329874821f5cd780eeaacf8945859af5ab790cf4
2017-03-08 15:04:09 -08:00
Courtney Goeltzenleuchter
fbef1c3c79 Add queries for surface color space support
Add two queries to query if the current surface can support
wide-color (Display-P3) or HDR.
Test: TBD CTS test

Change-Id: I2c68b0e1b1e0c2a0257e0c93f60cb8d84de20b4a
2017-03-03 08:04:43 -07:00
Courtney Goeltzenleuchter
7ab0579800 Add dataspace to match upstream EGL extension
EGL's EGL_EXT_gl_colorspace_bt2020_pq extension
supports a bt2020 color space with a ST2084
transfer function (Dolby Perceptual Quantizer)
Test: make
Change-Id: Ibdacb00ce48189b1faf16fb8dd071caff2ec2a98
2017-03-01 18:25:15 -07:00
Brian Anderson
b5ade03417 Replace "GL" naming with "GPU".
Test: Manual testing with Chrome.

Change-Id: Ib9c861f27c59ed17bd2155d9b8b4224cd90e8935
2017-02-16 12:19:26 -08:00
Brian Anderson
ad79a39037 Add NATIVE_WINDOW_GET_COMPOSITOR_TIMING
Helps support eglGetCompositorTimingANDROID.

Test: Manual testing with Chrome.
Change-Id: I107cf14228dcde8da130bde6d477d0d0f1b38c5f
2017-02-03 15:24:00 -08:00
Brian Anderson
d1dbcd6f82 Add native_window_get_next_frame_id.
Test: Tested with Chrome.
Change-Id: I2fce20837359e4b6f8212d3672537f4eb920b69a
2017-02-03 14:59:00 -08:00
Courtney Goeltzenleuchter
15c151bd6d Merge "Add SMPTE2086 structures" 2017-01-30 16:35:57 +00:00
Courtney Goeltzenleuchter
75d8680794 Merge "Add enums for 10bit color formats" 2017-01-30 15:49:53 +00:00
TreeHugger Robot
45f6de6a4a Merge "Add dataspace for sensor direct report" 2017-01-27 23:43:45 +00:00
Courtney Goeltzenleuchter
cae6767698 Add SMPTE2086 structures
Add necessary data structures to hold SMPTE2086 data
describing the capabilities of the mastering display.
Test: TBD
Bug: 29940137

Change-Id: I085112f07e453d9f8bc73bbd6a8f91605c12e75d
2017-01-26 16:48:22 -07:00
Courtney Goeltzenleuchter
bde1241327 Add enums for 10bit color formats
To improve wide-color behavior it's useful to have more bits
per color component. This defines 10:10:10:2 and 10:10:10:X
for that use.
This can be used for any color space / dataspace that is
compatible with unsigned integer components, e.g. Display-P3,
BT2020, etc.
Test: TBD
Bug: 29940137

Change-Id: Ieb8757e76b1d5bc45ce37c2473289eed7db66139
2017-01-26 16:48:13 -07:00
Ian Elliott
4b8a262feb Remove old macro/function to get {min|max}RefreshDuration
Test: make
Change-Id: I1d35500eb677985fdc426ae7b38d697dcb7c38bd
2017-01-26 10:54:41 -07:00
Ian Elliott
94ef994d0e Vulkan: only report refresh duration (add new call for new way)
As part of discussions within Khronos, it was decided that
VK_GOOGLE_display_timing should only report one refresh duration for a display,
and assume that it's refresh rate is fixed (which is the case for our current
devices).

This commit adds the new macro/function that will be used long-term.  A future
commit will remove the old macro/function, once it is no longer used (since the
plumbing crosses repository boundaires.

Test: Manually tested with a modified cube demo, that reports the refresh
duration returned from this extension.

Change-Id: Icff385db120f3e49fec0b2b8b0f35a06a9db6ca4
2017-01-25 13:01:37 -07:00
Peng Xu
c216a795af Add dataspace for sensor direct report
This CL syncs change in HAL.
Test: compiles

Change-Id: I6b6dca9ca68f25b6d68df2db1605cc31cca0beae
2017-01-24 02:58:07 -08:00
TreeHugger Robot
b7b91d5deb Merge "Plumb refresh cycle duration up to VK_GOOGLE_display_timing." 2017-01-23 22:13:42 +00:00
Ian Elliott
b5663fc093 Plumb refresh cycle duration up to VK_GOOGLE_display_timing.
Test: Manually tested with a modified cube demo, that reports the refresh
duration returned from this extension.

Change-Id: Ida765850e185f5bdf6570796534be005791a64a8
2017-01-23 11:45:15 -07:00
Romain Guy
abe4304deb Add Display P3 color mode
Bug: 32984164
Test: compile
Change-Id: Ic3f8e5ae840ad6de8d0dc416221098078d8a1b0f
2017-01-20 16:04:15 -08:00
Brian C. Anderson
eccaae3659 Merge "Update native_window_get_frame_timestamps args" 2017-01-17 01:09:47 +00:00
Brian Anderson
6933088664 Update native_window_get_frame_timestamps args
- Add outLatchTime, outLastRefreshStartTime and
  outDequeueReadyTime.
- Rename outRefreshStartTime to outFirstRefreshStartTime.

Test: Manual testing with Chrome.

Change-Id: I1ed3237e393803546f627a645f65f3a8f1ab9dfc
2017-01-12 12:18:34 -08:00
Tomasz Wasilczyk
0994121251 Merge "Fix typo in radio_metadata_t definition." 2017-01-12 19:09:09 +00:00
Courtney Goeltzenleuchter
6769842f3a Merge "Add DISPLAY-P3 DATASPACE" 2017-01-10 18:31:46 +00:00
Tomasz Wasilczyk
a4b9066685 Make metadata field mandatory for program info struct.
Test: VTS, manual
Change-Id: I7dbd62d36ac21475fdbc49723ba3ea6744460d21
2017-01-06 14:20:13 -08:00
Courtney Goeltzenleuchter
de092983c7 Add DISPLAY-P3 DATASPACE
Industry specifications will include a Display-P3
color space that we'll want to use.
Test: compile

Change-Id: I17107f0c63a4d18a29eedbb248417c643adbbb79
2017-01-06 13:41:42 -07:00
Tomasz Wasilczyk
fd08e55799 Fix typo in radio_metadata_t definition.
Test: none, this code is unused yet.

Change-Id: I515aac5ce56e706225518cf7f6cbd1a28750001b
2016-12-29 11:55:52 -08:00
Romain Guy
f52d65a73b Remove RGBX_FP16 format
Bug: 32984164
Test: compile
Change-Id: I5fb298c7020b9e09bbec041088b296e315e9bec4
2016-12-16 09:57:58 -08:00
Romain Guy
631e0b7dfc Regenerate graphics-base.h
Bug: 32984164
Test: hidl-gen -o system/core/include/system/graphics-base.h -Lexport-header
-r android.hardware:hardware/interfaces
android.hardware.graphics.common@1.0 and compilation

Change-Id: Ied7f53c97b94eb15e11e26db4e73a568cfd982bb
2016-12-14 18:29:28 -08:00
Romain Guy
0c6dde6159 Prevent conflict with deprecated pixel format constants
Bug: 32984164
Test: Compile
Change-Id: Ia075c24740eeb33ca748e3423da156ffb9af0550
2016-12-14 10:10:49 -08:00
Steven Moreland
f4321334d4 Ran hardware/interfaces/update-base-files.sh.
Test: pass
Change-Id: I9301f22e2bec1d61021186da9e22e3c1b3a5df71
2016-12-12 09:48:49 -08:00
Brian C. Anderson
2aaa485e15 Merge "Add NATIVE_WINDOW_ENABLE_FRAME_TIMESTAMPS" 2016-12-04 00:36:23 +00:00
Brian C. Anderson
3e151ecb1a Merge "Add displayPresentTime to NATIVE_WINDOW_GET_FRAME_TIMESTAMPS" 2016-12-01 15:47:49 +00:00
Brian C. Anderson
a8f0b3a2ed Merge "Rename posted to requestedPresent for NATIVE_WINDOW_GET_FRAME_TIMESTAMPS" 2016-11-30 17:25:49 +00:00
Brian Anderson
77e53d990b Add NATIVE_WINDOW_ENABLE_FRAME_TIMESTAMPS
Test: Manual testing with Chrome.

Change-Id: Ia16546064952693f42205de34a06f3b097debea0
2016-11-17 15:52:49 -08:00
Brian Anderson
43f232bd55 Add displayPresentTime to NATIVE_WINDOW_GET_FRAME_TIMESTAMPS
Test: Manual testing with Chrome.

Change-Id: Ifbf0debf9883099b7b5a8a237edbb0a0eb2adf9a
2016-11-17 15:52:39 -08:00
Courtney Goeltzenleuchter
de5df5f520 Update with wide gamut defines
Test: make
Change-Id: I0542bdc5c6d9caedcc86e5b66d263abd9c0596dc
2016-11-17 08:27:10 -07:00
Brian Anderson
18f2903cf7 Rename posted to requestedPresent for NATIVE_WINDOW_GET_FRAME_TIMESTAMPS
Test: Manual testing with Chrome.

Change-Id: Ib7ef5c76dcd71887848c7cb91336f7fcc5815773
2016-11-15 15:41:41 -08:00
Craig Donner
ce54b4d14e Adds ANativeWindowBuffer support for layered images.
This is required for support of buffers that back texture arrays.

Bug: 31686534
Test: manual
Change-Id: I78ce132592f3803482ca858fd4be103c286f21e9
2016-11-11 11:35:08 -08:00
Chia-I Wu
e4c672a2ad graphics.h: generate some of the enums from HIDL
Test: make
Change-Id: I77791f05bdaf2d2696ba995a3572ca28f3a18d5b
2016-11-01 09:35:35 +08:00
Eric Laurent
5d4d06ab1e radio: fix compatibility for 64 bit processes
Clarify use of 32 bit quantities in all internal and HAL structures
to make sure that structures can be passed through binder calls between
processes with different data unit sizes.

NOTE: some structures still contain a pointer to metadata buffer: This pointer
is always at the end of the structures and special care is taken in binder
call implementations to cope with pointer size differences.

Change-Id: I2023f70c3c62f6fa45f9eab3f09d18033f0efe4f
2016-10-26 15:37:33 -07:00
Miodrag Dinic
53be7eb3d0 Merge "[qemu]: Fix payload size format in qemu_pipe_frame_send()" am: e5976bea7a am: 8c274361fb
am: f610eaac14

Change-Id: I890fbb885044e82d4ec66a5a400240124003ac25
2016-09-30 18:00:16 +00:00
Miodrag Dinic
192be1dcae [qemu]: Fix payload size format in qemu_pipe_frame_send()
The following change introduced regression for booting AOSP
on emulator for all architectures:

7c7990e Fix warnings in system/ headers

qemu_pipe expects payload size in the message header to be in hex format,
as stated in the comment for qemu_pipe_frame_send().

Change-Id: I32cfa9c9b2af56f93bbda0ea5597451c389ae45e
Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
2016-09-30 13:58:11 +02:00
Colin Cross
bd45ba6972 Merge "Fix warnings in system/ headers" am: d7f60fd871 am: 299df0bf01
am: 88fd7e2ec4

Change-Id: I94891ea3c3a00ee39b48531fcc8e5e3d6ebe724a
2016-09-22 22:52:44 +00:00
Colin Cross
7c7990e6fd Fix warnings in system/ headers
system/core/include is included in the global include path using
-isystem, which hides all warnings.  Fix warnings in
system/core/include/system in preparation for moving from -isystem to -I.

- Fix invalid doxygen syntax in graphics.h
- Use a pragma to hide a C99 extension warning on the flexible length
  array in graphics.h
- Make static functions in radio.h static inline
- Fix size_t printf and size_t vs. ssize_t comparision in qemu_pipe.h
- Fix old style cast in window.h

Test: m -j native
Bug: 31492149
Change-Id: I857f289e4c8e303494831873282bbb69de155c10
2016-09-21 17:46:59 -07:00
Courtney Goeltzenleuchter
a2e874eabc Add color mode enums
The android_color_mode_t defines the color modes supported
by a display. A display can support multiple different
color modes.

sRGB mode and AdobeRGB are deliberately placed at 7 and 8
so that they match mode ID's used on prior devices.

bug: http://b/27926012
Change-Id: I9ab41b56ec0b495c02539665da5be158ffddf843
2016-09-08 11:39:32 -07:00