Commit graph

2460 commits

Author SHA1 Message Date
Mark Salyzyn
28e4276693 Merge "Revert "Continue using the legacy NDK android/log.h."" am: 33aa9fc0e1 am: cb29e6e94f am: f598640e48
am: 764b040b1c

Change-Id: Ibf469562e5aee08459aad2088534124065576797
2017-01-31 00:24:29 +00:00
Mark Salyzyn
bdac221cc3 Revert "Continue using the legacy NDK android/log.h."
Use refreshed android/log.h for NDK

This effectively a modern revert of the commit
b7c3996f7c

Test: build
Bug: 30465923
Bug: 34250038
Change-Id: I7d4a5134bb711051283c36a2d5bc803436dca12e
2017-01-30 22:14:59 +00: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
Ian Elliott
5429c76fd5 Merge "Remove old macro/function to get {min|max}RefreshDuration" 2017-01-27 20:54:07 +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
Mark Salyzyn
9df9c2922b ndk: reverse course on android/log.h am: 5c967da341 am: 37e1ee432c am: 285f1284f3
am: 3a4f9054f1

Change-Id: I4c19de8b2d0067b302d762eb1e92e591deef0630
2017-01-26 18:57:00 +00:00
Mark Salyzyn
37e1ee432c ndk: reverse course on android/log.h
am: 5c967da341

Change-Id: Id8cf37817462359131caaa6ddd786323b8218771
2017-01-26 18:48:00 +00:00
Treehugger Robot
1cb8d9df6c Merge changes Iad5b5abf,Iad3704cc,If182dd9b
* changes:
  liblog: add log/log_radio.h
  liblog: add log/log_id.h
  ndk: reverse course on android/log.h
2017-01-26 18:42:22 +00: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
Vijay Venkatraman
a040114bcb Merge "Exporting C++ headers from system/core" am: 812b7d5d52 am: f484dd3401 am: a252f11da3
am: 5a8f555e49

Change-Id: Id449aadc3b9e6e263d351ce031b1f7f7bb4672b8
2017-01-26 02:03:45 +00:00
Vijay Venkatraman
32e3fee0c3 Merge "Revert "Revert "Exporting C headers from system/core""" am: 01678a0c84 am: e6588b4bfa am: 2d37a4ff16
am: 48f756e5aa

Change-Id: I4d63b6e6d4949fb06d60abf755cc9443fd46c23f
2017-01-25 23:48:01 +00:00
Mark Salyzyn
5c967da341 ndk: reverse course on android/log.h
move LOG macros to log/log_main.h

move include/android/log.h to liblog/include/android/log.h

Test: compile of all components and gTest liblog-unit-tests
Bug: 34250038
Bug: 30465923
Change-Id: If182dd9b83689e8b7bc1a44b2f5d913c7ee5eeee
2017-01-25 15:41:43 -08:00
Vijay Venkatraman
651f8383e6 Revert "Revert "Exporting C headers from system/core""
This reverts commit a3f2be2b73.

Test: compile
Change-Id: I04b3a8e47e1fa3eb9d80c14ae3a90c68a780e858
2017-01-25 12:50:29 -08: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
Elliott Hughes
9a617138cc Merge "Remove unused klog_get_level." am: acdb06de6b am: 5ecc8d2439 am: d505d0c747
am: 14f12ddabd

Change-Id: I9cd92641a4df122429e416069638ff5cf2ba3e03
2017-01-25 16:50:13 +00:00
Elliott Hughes
acdb06de6b Merge "Remove unused klog_get_level." 2017-01-25 16:39:11 +00:00
Vijay Venkatraman
7ecee40df5 Merge "Revert "Exporting C headers from system/core"" am: 22b7f76a00 am: 16aac283f4 am: ebc9f4eb58
am: 061ed4de3e

Change-Id: Ic5d71373b0a84dd4bcf75acbc0e745ca4f99de3c
2017-01-25 00:59:42 +00:00
Vijay Venkatraman
a3f2be2b73 Revert "Exporting C headers from system/core"
This reverts commit 3c6763ca21.

Change-Id: If3b3e106478d28a5df927d57649abdca0a99dd0e
2017-01-25 00:44:08 +00:00
Vijay Venkatraman
8786e488c8 Merge "Exporting C headers from system/core" am: 897bc9b2b3 am: e6464ca571 am: e7bbb3c4b0
am: 561ac663a3

Change-Id: I87fcb2ac64d9646093e34ba5c67ab9747e2e66fb
2017-01-24 22:52:19 +00:00
Vijay Venkatraman
75acc7bf81 Exporting C++ headers from system/core
Moved headers from include/libutils and include/libsysutils to
libutils/include and libsysutils/include respectively, so they can be
exported via these libs. They needed to be moved since Soong does
not allow export from external folder.

Added symlink from old locations. They are needed since Soong
includes system/core/include by default. Once all modules are
cleaned up to explicitly add the required libs, the symlinks will be
removed.

Moved headers of libutils to libutils_headers. They should be used
by modules for header-only inlines. Added libutils_headers as
dependency of libutils.

Split of C++ headers into those that have no dependency and those that
have dependency on libutils.so will be handled in a later CL.

Test: Add above libs to shared lib of local module
Change-Id: I122db72056b26b1f39bad1d9a0c2a1c5efda3550
2017-01-24 22:51:36 +00: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
Vijay Venkatraman
3c6763ca21 Exporting C headers from system/core
Moved headers from include/libcutils and include/liblog to
libcutils/include and liblog/include respectively, so they can be
exported via these libs. They needed to be moved since Soong does
not allow export from external folder.

Added symlink from old locations. They are needed since Soong
includes system/core/include by default. Once all modules are
cleaned up to explicitly add the required libs, the symlinks will be
removed.

Also added liblog_vndk_headers that exports a special log/log.h for
VNDK.

Moved headers of libcutils to libcutils_headers. They should be used
by modules for header-only inlines. Added libcutils_headers as
dependency of libcutils.

Added libcutils_vndk_headers that exports a special cutils/log.h
deprecating usage of the file. A later CL will deprecate the one in
libcutils_headers

Test: Add above libs to shared lib of local module
Change-Id: I6e1f9c5f23d8b6eae13dc3b7e5dfe7fae93b8510
2017-01-22 19:45:38 -08:00
Romain Guy
abe4304deb Add Display P3 color mode
Bug: 32984164
Test: compile
Change-Id: Ic3f8e5ae840ad6de8d0dc416221098078d8a1b0f
2017-01-20 16:04:15 -08:00
Jeff Sharkey
84dc96227d Merge "Define GID range for external data and OBBs." am: 1e7cdf3c7d am: d150012349 am: 23b6547230
am: b1e89ec14f

Change-Id: If94a9fd76e895f922f8b5f6ed99b871b5febb3f9
2017-01-19 16:39:37 +00:00
Josh Gao
85401cca56 Merge "debuggerd: advance our amazing bet." am: 230201dcbf am: 11b938e881 am: 787f1b29d0
am: 1b1e416fcc

Change-Id: Id6387b7f7ce6aac7ee1ac68ffcf76e69f5c3a924
2017-01-19 00:45:12 +00:00
Jeff Sharkey
7e5d0b1fae Define GID range for external data and OBBs.
To quickly answer the question of "how much data is a UID using?" we
need a GID range to label files on external storage, similar to
the GID ranges already defined for cached and shared data.

Also define a new GID that will be used to label the OBB files shared
between all users under /data/media/obb.

Test: builds, newly added tests pass
Bug: 34263266
Change-Id: I16fb7d166c3dcdeafbf477162d191d3b73ae8ac2
2017-01-18 17:11:05 -07:00
Josh Gao
cbe70cb0a8 debuggerd: advance our amazing bet.
Remove debuggerd in favor of a helper process that gets execed by
crashing processes.

Bug: http://b/30705528
Test: debuggerd_test
Change-Id: I9906c69473989cbf7fe5ea6cccf9a9c563d75906
2017-01-17 13:57:57 -08:00
Brian C. Anderson
eccaae3659 Merge "Update native_window_get_frame_timestamps args" 2017-01-17 01:09:47 +00:00
Elliott Hughes
e04c3b0533 Remove unused klog_get_level.
Every little helps...

Bug: N/A
Test: builds
Change-Id: Ibcac5cda1619420c95903211ed0b96af81351f9e
2017-01-13 18:14:12 -08:00
Wei Wang
fc453321df Merge "libcutils: change klog_level to KLOG_INFO_LEVEL" am: 5e9863bf63 am: 974dd6291e am: c87d4ce758
am: a06b862257

Change-Id: I83876ce9b0258bc8c5217043f6ea9810a9bfd7a8
2017-01-13 08:22:40 +00:00
Wei Wang
677ba31db2 libcutils: change klog_level to KLOG_INFO_LEVEL
Some of Android componets e.g. init have migrated to use base/logging to get rid
of klog utilities. However, without explicit initilization, the default
klog_level is set to 3 which masks the logwrap output.
This patch sets default klog_level to KLOG_INFO_LEVEL to make
android_fork_execvp_ext log available.

Bug: 34256270
Test: manual
Change-Id: Ibe74707a92c954053cd0e6828a984fbd72b4acae
2017-01-12 22:18:46 -08:00
Mark Salyzyn
5c8bdf42e7 Merge "liblog: use log/log.h for ALOG macros" am: dd9fa24091 am: 112d1dcd95 am: 33807cd6c2
am: 07388af1e6

Change-Id: I3789497189d23724824babaacbc8aa442e7a026c
2017-01-12 23:57:31 +00:00
Mark Salyzyn
dd9fa24091 Merge "liblog: use log/log.h for ALOG macros" 2017-01-12 23:46:29 +00:00
Mark Salyzyn
51c33b7011 liblog: use log/log.h for ALOG macros
Test: compile
Bug: 34250038
Change-Id: I0f56c563871f377c03380498cd867b916892f1dc
2017-01-12 15:44:06 -08: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
3eba74fec1 Fix typo in radio_metadata_t definition.
Test: none, this struct is opaque.
Change-Id: I6b8f5787441618a7a818c7d4595010d241574c13
2017-01-12 11:15:32 -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
Elliott Hughes
b569f4d029 Merge "Revert "Revert "android_ids: move to bionic""" am: b2375fc40c am: 5f57659030 am: 15f24e5df9
am: 86e63c8ae6

Change-Id: I0c9347c53425c7e1fc895a921933c18067e46b56
2017-01-10 01:38:10 +00:00
Tomasz Wasilczyk
e324500f3f Merge "Make metadata field mandatory for program info struct." 2017-01-10 01:24:27 +00:00
Elliott Hughes
b2375fc40c Merge "Revert "Revert "android_ids: move to bionic""" 2017-01-10 01:15:30 +00:00
Tomasz Wasilczyk
70a8148b52 Make metadata field mandatory for program info struct.
Also, make metadata struct aligned.

Test: VTS, manual
Change-Id: I7dbd62d36ac21475fdbc49723ba3ea6744460d21
2017-01-09 14:26:43 -08: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
Elliott Hughes
c57e5d191a Merge "Make libziparchive C++-only." am: b175ee271b am: b7c94f3e50 am: 8f378bc31e
am: 478ffd46ce

Change-Id: I76b54a4cfc7194d884c5919084db342c224416d6
2016-12-30 20:10:07 +00:00