Commit Graph

2479 Commits

Author SHA1 Message Date
Vijay Venkatraman 39958cb6e8 Merge "Moved include/android_filesystem_*.h and canned_fs_config.h to libcutils" am: a4bc98941a am: c0c4aeb556
am: 3286d2d0d2

Change-Id: I203baad63ece6cb9b223018a8664d625a6a5046d
2017-03-22 18:36:06 +00:00
Vijay Venkatraman c0c4aeb556 Merge "Moved include/android_filesystem_*.h and canned_fs_config.h to libcutils"
am: a4bc98941a

Change-Id: Ib90d711895c8a75f5abec2284ff66723c4f5b35e
2017-03-22 18:31:55 +00:00
Vijay Venkatraman d4e2386057 Moved include/android_filesystem_*.h and canned_fs_config.h to libcutils
Bug: 33241851
Test: No changes needed for modules not using VNDK.
For VNDK, enable BOARD_VNDK_VERSION in BoardConfig.mk
and add libcutils to modules that need these headers.

Change-Id: I6102778aab35ed26a5ddde11230502dcd4edc852
2017-03-21 17:34:58 -07:00
TreeHugger Robot 7486e65a6c Merge "Remove retire frame event." 2017-03-21 22:07:58 +00:00
Jeff Sharkey db36227d43 Merge "Allocate new UID for OTA update resource tracking." am: 1ed1d3dac9 am: 2e86917f92
am: 80a09ebab3

Change-Id: Ia8eb25608f9bb52b497fdb4ede134ce563a74f64
2017-03-20 23:18:50 +00:00
Jeff Sharkey 2e86917f92 Merge "Allocate new UID for OTA update resource tracking."
am: 1ed1d3dac9

Change-Id: Ic365e6f4084d063363005cd42b66ee0799691031
2017-03-20 23:11:37 +00:00
Jeff Sharkey e1bddc78bf Allocate new UID for OTA update resource tracking.
Recent changes to OTA updates started "blaming" network usage on the
system UID, which makes it difficult to triage incoming bugreports
that claim heavy network usage.  Instead, this change gives OTA
updates an explicit UID to make triage easier.

Test: builds, boots
Bug: 36130264
Change-Id: I0a0cc009f3d891b19b419bc12cd237ef8ac64519
2017-03-20 14:57:42 -06: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
Andrew Scull 164b70e927 Merge "Add eSE AID." am: e323976e74 am: 4614ba5134
am: 31a515bdcd

Change-Id: Iaf6592b934bf810d7a7b587a19fe4bf39016d22e
2017-03-16 18:10:22 +00:00
Andrew Scull 4614ba5134 Merge "Add eSE AID."
am: e323976e74

Change-Id: I0ce8f821fa1e2028a1d7a1275773b54bd250a612
2017-03-16 18:03:21 +00:00
Treehugger Robot e323976e74 Merge "Add eSE AID." 2017-03-16 17:58:48 +00:00
Andrew Scull b364328a59 Add eSE AID.
This is used by components that communicate with the embedded secure
element.

Test: Boot system with a daemon and device using this AID.
Bug: 35628284
Change-Id: I1fd1a300c69fefbd19fda69add5d3b098be873c2
2017-03-16 15:05:19 +00: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
bohu 294d44be33 DO NOT MERGE ANYWHERE 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:

device/generic/goldfish
device/generic/goldfish-opengl
hardware/ril/reference-ril

Change-Id: I541ecbf0cc7eadeef9d4e37ffd9ca7bfcc5c94c0
2017-03-01 16:33:44 -08: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
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