OSDN Git Service
Jean-Michel Trivi [Wed, 1 Feb 2017 22:55:51 +0000 (14:55 -0800)]
IPlayer interface: resync with Java interface definition
Add pan and start delay methods in IPlayer native definition
Test: adb shell clpac 0, then control pan/vol of an SL player
Bug
30258418
Change-Id: Ifebdfe5c7e376b3bf183ae00dfcc3d8041de21c0
Yifan Hong [Wed, 1 Feb 2017 21:29:50 +0000 (21:29 +0000)]
Merge "Do not -1 for lshal." am:
50752b732e am:
bd4cc238fb am:
44a6d5a5eb
am:
035fa3eb6b
Change-Id: I0547c8b71e2709c19f30db457d881ee7d2986cc7
Yifan Hong [Wed, 1 Feb 2017 21:27:19 +0000 (21:27 +0000)]
Merge "Do not -1 for lshal." am:
50752b732e am:
bd4cc238fb
am:
44a6d5a5eb
Change-Id: Icfd5998fd5a6cc558cc26addf0e89ccd0b61bb5f
Yifan Hong [Wed, 1 Feb 2017 21:24:49 +0000 (21:24 +0000)]
Merge "Do not -1 for lshal." am:
50752b732e
am:
bd4cc238fb
Change-Id: I1dd676e1d50b68913578890c5d5096a8d81480b9
Yifan Hong [Wed, 1 Feb 2017 21:20:38 +0000 (21:20 +0000)]
Merge "Do not -1 for lshal."
am:
50752b732e
Change-Id: I8e0f285f5b17b11f32b504dda3a4c31da770653f
Treehugger Robot [Wed, 1 Feb 2017 21:15:42 +0000 (21:15 +0000)]
Merge "Do not -1 for lshal."
Evgenii Stepanov [Wed, 1 Feb 2017 19:35:37 +0000 (19:35 +0000)]
Merge "Disable integer sanitization on host." am:
b79d9f9d49 am:
e81efc5036 am:
49cfd967de
am:
eb14cbfedc
Change-Id: I26be24d20912d990b1c4945ff634e91113755e60
Evgenii Stepanov [Wed, 1 Feb 2017 19:33:08 +0000 (19:33 +0000)]
Merge "Disable integer sanitization on host." am:
b79d9f9d49 am:
e81efc5036
am:
49cfd967de
Change-Id: I85c053b519fba0915076800cbc7314f45ea7a9cd
Evgenii Stepanov [Wed, 1 Feb 2017 19:31:10 +0000 (19:31 +0000)]
Merge "Disable integer sanitization on host." am:
b79d9f9d49
am:
e81efc5036
Change-Id: Ifc9e92b6c39b9dc08066f051da263171bef1ee06
Evgenii Stepanov [Wed, 1 Feb 2017 19:28:31 +0000 (19:28 +0000)]
Merge "Disable integer sanitization on host."
am:
b79d9f9d49
Change-Id: I517a019007bcf12b0884c22234abf25482d50cca
Evgenii Stepanov [Wed, 1 Feb 2017 19:24:10 +0000 (19:24 +0000)]
Merge "Disable integer sanitization on host."
TreeHugger Robot [Wed, 1 Feb 2017 16:56:22 +0000 (16:56 +0000)]
Merge "Remove makefiles for vr_window_manager"
Alex Vakulenko [Wed, 1 Feb 2017 05:27:41 +0000 (21:27 -0800)]
Remove makefiles for vr_window_manager
This is temporary until we figure out what to do with vendor-specific
gralloc calls in vr_window_manager
Bug:
34819414
Test: `make checkbuild -j32` succeeds
Change-Id: I9e37af1e5fce50acc4930ea241ce7208e5ce6a52
TreeHugger Robot [Wed, 1 Feb 2017 09:01:50 +0000 (09:01 +0000)]
Merge "Push mapping from file extension to GID."
George Burgess IV [Wed, 1 Feb 2017 07:32:37 +0000 (07:32 +0000)]
Merge "Fix a use-of-uninitialized-value warning" am:
d047e10558 am:
f9e9c5bc2e am:
dfadb2a1da
am:
491b616e1d
Change-Id: I147fb87e62e93a54d40f701076463420ed50105e
George Burgess IV [Wed, 1 Feb 2017 07:27:27 +0000 (07:27 +0000)]
Merge "Fix a use-of-uninitialized-value warning" am:
d047e10558 am:
f9e9c5bc2e
am:
dfadb2a1da
Change-Id: I47059e2f25361093fdff1743ccc0c3682b0827b3
George Burgess IV [Wed, 1 Feb 2017 07:22:02 +0000 (07:22 +0000)]
Merge "Fix a use-of-uninitialized-value warning" am:
d047e10558
am:
f9e9c5bc2e
Change-Id: Iff659ffdf206f94e88fcec2a27a1518357fecead
George Burgess IV [Wed, 1 Feb 2017 07:13:44 +0000 (07:13 +0000)]
Merge "Fix a use-of-uninitialized-value warning"
am:
d047e10558
Change-Id: I4bd31c59331b6ef26e36bfff3fe57becf9b5ecc2
Jeff Sharkey [Wed, 1 Feb 2017 07:09:11 +0000 (00:09 -0700)]
Push mapping from file extension to GID.
An upcoming sdcardfs change will offer to automatically change the
GID of files on external storage based on the extension, but we need
to tell the kernel the mapping that we'd like to see.
Test: build, boots
Bug:
34733702
Change-Id: I15d4db5423d18c4da17e198c0e45a8adb381fed2
Treehugger Robot [Wed, 1 Feb 2017 07:09:50 +0000 (07:09 +0000)]
Merge "Fix a use-of-uninitialized-value warning"
TreeHugger Robot [Wed, 1 Feb 2017 05:36:09 +0000 (05:36 +0000)]
Merge "dumpstate: dump list of hardware hals on device"
Jiyong Park [Wed, 1 Feb 2017 04:23:11 +0000 (04:23 +0000)]
Merge "configstore: remove build flags from surfaceflinger"
Steven Moreland [Wed, 1 Feb 2017 03:50:46 +0000 (19:50 -0800)]
dumpstate: dump list of hardware hals on device
lshal is a binary on the device that lists all registered and
passthrough hardware hals that are currently running.
Fixes:
34809346
Test: bugreport includes lshal dump
Change-Id: Ia1340d1b94ac4c902a81b709924ebf45462435cc
Yifan Hong [Tue, 31 Jan 2017 23:54:39 +0000 (15:54 -0800)]
Do not -1 for lshal.
Test: compiles
Change-Id: I99e6306a6b82ec85bc84f9572f3e4f2f8cdf2847
George Burgess IV [Wed, 1 Feb 2017 03:49:11 +0000 (03:49 +0000)]
Merge "Fix -Wdouble-promotion warnings" am:
7920557287 am:
f2528e2dad am:
c05e232ee8
am:
62b3f36949 -s ours
Change-Id: I21afd8f781eda6c8114870bffda4613f31688acd
George Burgess IV [Wed, 1 Feb 2017 03:40:12 +0000 (03:40 +0000)]
Merge "Fix -Wdouble-promotion warnings" am:
7920557287 am:
f2528e2dad
am:
c05e232ee8
Change-Id: Ic9efe4849e9b88e2340ff8fb4fa57cc8ed3388d6
George Burgess IV [Wed, 1 Feb 2017 03:33:00 +0000 (03:33 +0000)]
Merge "Fix -Wdouble-promotion warnings" am:
7920557287
am:
f2528e2dad
Change-Id: I002b3954932af2c13b81b6f5d2e46b157f730e1e
George Burgess IV [Wed, 1 Feb 2017 03:21:30 +0000 (03:21 +0000)]
Merge "Fix -Wdouble-promotion warnings"
am:
7920557287
Change-Id: I2b7a8f6c24990220f90cb3d2f9221228ec330be5
Treehugger Robot [Wed, 1 Feb 2017 03:14:59 +0000 (03:14 +0000)]
Merge "Fix -Wdouble-promotion warnings"
Evgenii Stepanov [Wed, 1 Feb 2017 00:37:44 +0000 (16:37 -0800)]
Disable integer sanitization on host.
Test: NFC until https://android-review.googlesource.com/#/c/329510
Change-Id: I0183556d5b945c689934664fe7f15caa18a0997d
George Burgess IV [Wed, 1 Feb 2017 00:21:25 +0000 (16:21 -0800)]
Fix a use-of-uninitialized-value warning
Caught by clang's static analyzer:
frameworks/base/core/jni/com_google_android_gles_jni_GLImpl.cpp:190:30:
warning: The right operand of '+' is a garbage value
buf = (char*)buf + offset;
This is because getPointer doesn't always set `offset` to a value. We
could fix it locally by initializing `offset`, but it seems to be less
error-prone to just fix getPointer instead.
Bug: None
Test: Still builds; warning is now gone.
Change-Id: I90bea0c94cf8d7f92a0d9a4db4e64e7e563bfb09
Calin Juravle [Wed, 1 Feb 2017 00:02:53 +0000 (00:02 +0000)]
Merge "DEXOPT_FORCE may be passed for primary apk as well."
TreeHugger Robot [Tue, 31 Jan 2017 23:34:27 +0000 (23:34 +0000)]
Merge "Set cache dirty on layer creation/destruction"
TreeHugger Robot [Tue, 31 Jan 2017 23:22:08 +0000 (23:22 +0000)]
Merge "Refactor how layer metadata for use by VR is propagated from WindowManager based on feedback in frameworks/base."
TreeHugger Robot [Tue, 31 Jan 2017 22:49:13 +0000 (22:49 +0000)]
Merge "Fix -Wdouble-promotion warnings"
TreeHugger Robot [Tue, 31 Jan 2017 21:58:05 +0000 (21:58 +0000)]
Merge "Fix unitialized field in HWC2on1Adapter"
Calin Juravle [Tue, 31 Jan 2017 21:53:00 +0000 (13:53 -0800)]
DEXOPT_FORCE may be passed for primary apk as well.
Remove the check that DEXOPT_FORCE is not set for primary apks. PM will
set it when forcing compilation.
Bug:
32871170
Test: adb shell cmd package compile -f m speed pkgname
Change-Id: I690608c48a2c486230ca7d2328ac5c6181427328
Albert Chaulk [Fri, 27 Jan 2017 19:21:34 +0000 (14:21 -0500)]
Refactor how layer metadata for use by VR is propagated
from WindowManager based on feedback in frameworks/base.
Since windowType and ownerUid are immutable, they are sent
on creation instead of separate IPC.
Bug:
30984984
Test: built locally
Change-Id: I380b3cdcf6aec471fc23f1e27846ab80492e8add
Fabien Sanglard [Tue, 31 Jan 2017 20:14:57 +0000 (12:14 -0800)]
Set cache dirty on layer creation/destruction
The adapter misses an edge cases where a transaction both destroys and
creates a layer. Under these conditions, assignHwc1LayerIds() is not
called. mHwc1LayerMap contains reference to destroyed layers
and ultimately lead to segfault.
Test: Angler eng device and AUPT.
Change-Id: I96bcbabf74a80cc87df796c0bc84b84e2bda8614
Fabien Sanglard [Tue, 31 Jan 2017 20:12:10 +0000 (12:12 -0800)]
Fix unitialized field in HWC2on1Adapter
Layer acquire fence file descriptor was not always initialized. In
the case of a SolidColor layer, the file descriptor was left set to
value 0 (stdin) which after call to set would be closed by the
adapter leading to system unstability.
Test: Angler eng devices and AUPT
Change-Id: Ic931d8cf9b0c6ca8d56c7a0ed7a7f586bf072505
TreeHugger Robot [Tue, 31 Jan 2017 19:51:48 +0000 (19:51 +0000)]
Merge "Do not fade pointer icon on every key press."
Vladislav Kaznacheev [Tue, 31 Jan 2017 18:03:35 +0000 (10:03 -0800)]
Do not fade pointer icon on every key press.
Bug:
34203295
Test: focus on a text input widget, move mouse around,
type something: mouse pointer stays visible.
Change-Id: I29028233e8d919b91c49a24b9e9c0cf4bdd38fe1
TreeHugger Robot [Tue, 31 Jan 2017 17:35:33 +0000 (17:35 +0000)]
Merge "Add ColorSpace::createLUT"
Chris Forbes [Tue, 31 Jan 2017 04:51:19 +0000 (04:51 +0000)]
Merge "vulkan: Add missing IMAGE_LAYOUT_SHARED_PRESENT_KHR enum"
TreeHugger Robot [Tue, 31 Jan 2017 04:14:29 +0000 (04:14 +0000)]
Merge "libbinder: Fix for using default constructor on IpPrefix class"
George Burgess IV [Tue, 31 Jan 2017 03:40:14 +0000 (03:40 +0000)]
Merge "Add permission bits to open calls with O_CREAT" am:
9dc2e6bc43 am:
3e240c81be am:
417c546404
am:
b941ea5b2f
Change-Id: If2239057cb266f40fd2deb086eeec25903a7f075
George Burgess IV [Tue, 31 Jan 2017 03:37:43 +0000 (03:37 +0000)]
Merge "Add permission bits to open calls with O_CREAT" am:
9dc2e6bc43 am:
3e240c81be
am:
417c546404
Change-Id: I35421a4b17751fb04e9b0532d40c822812ad0cb8
George Burgess IV [Tue, 31 Jan 2017 03:35:13 +0000 (03:35 +0000)]
Merge "Add permission bits to open calls with O_CREAT" am:
9dc2e6bc43
am:
3e240c81be
Change-Id: Id28d9cdc5b4862b7c62b4d5dd2da6fde13f8dd9c
George Burgess IV [Tue, 31 Jan 2017 03:32:44 +0000 (03:32 +0000)]
Merge "Add permission bits to open calls with O_CREAT"
am:
9dc2e6bc43
Change-Id: Ifa1d1607751dc89cb341a97c1b737bf2ee7bc260
Treehugger Robot [Tue, 31 Jan 2017 03:29:05 +0000 (03:29 +0000)]
Merge "Add permission bits to open calls with O_CREAT"
Chris Forbes [Tue, 31 Jan 2017 02:37:03 +0000 (15:37 +1300)]
vulkan: Add missing IMAGE_LAYOUT_SHARED_PRESENT_KHR enum
This was missing from the Khronos header & XML at the time of the
previous renames.
Test: build
Change-Id: I20e34987be495fe99ef066d3b3911ac72bace497
Robert Quattlebaum [Tue, 31 Jan 2017 02:45:52 +0000 (18:45 -0800)]
libbinder: Fix for using default constructor on IpPrefix class
We were missing the default constructor on our internal union,
which prevented the default constructor on the main class from
being functional. This change fixes the problem by specifying a
default constructor for the internal union.
Change-Id: I6d296aa27b3a2b6d43aa7accccb9c25ccccfb0a6
Romain Guy [Tue, 31 Jan 2017 01:31:58 +0000 (17:31 -0800)]
Add ColorSpace::createLUT
Generates a 3D LUT of a specified size. The generated LUT is meant to
be used as a 3D OpenGL texture for fast color space conversions in
shaders. This will be used to convert from P3 bitmaps to scRGB.
Bug:
32984164
Test: colorspace_test
Change-Id: I01f7276f885c71bde480e79260013d62786b377c
TreeHugger Robot [Tue, 31 Jan 2017 01:53:13 +0000 (01:53 +0000)]
Merge "libbinder: Add support for Value, Map, and IpPrefix types"
Chris Forbes [Tue, 31 Jan 2017 01:23:16 +0000 (01:23 +0000)]
Merge changes I380512a6,I88b11b47
* changes:
vulkan: Adjust ANDROID_native_buffer to match new shared image naming
vulkan: KHR_swapchain_front_buffered -> KHR_shared_presentable_image
Ecco Park [Tue, 31 Jan 2017 00:36:48 +0000 (00:36 +0000)]
Merge "dumpstate: add the property(ro.radio.log_loc) for modem_logs"
Robert Quattlebaum [Wed, 4 Jan 2017 21:25:14 +0000 (13:25 -0800)]
libbinder: Add support for Value, Map, and IpPrefix types
Change-Id: I4cd06c7c65f69e6b787111573b29c4ff22f57981
Chris Forbes [Mon, 30 Jan 2017 22:48:50 +0000 (11:48 +1300)]
vulkan: Adjust ANDROID_native_buffer to match new shared image naming
Rename the SWAPCHAIN_IMAGE_USAGE_FRONT_BUFFER_BIT to
SWAPCHAIN_IMAGE_USAGE_SHARED_BIT, to match Khronos renames.
Change-Id: I380512a66221c8cfcc650cd7e8259a185d61604d
Test: build
Courtney Goeltzenleuchter [Mon, 30 Jan 2017 22:21:29 +0000 (22:21 +0000)]
Merge "Add support for VK_EXT_swapchain_colorspace"
Chris Forbes [Mon, 30 Jan 2017 21:17:01 +0000 (10:17 +1300)]
vulkan: KHR_swapchain_front_buffered -> KHR_shared_presentable_image
Tracking Khronos naming churn
V2: More churn, no longer shared_image_swapchain.
Test: build
Change-Id: I88b11b47f2fd2f96e1f27f900a65b599aec470af
Calin Juravle [Mon, 30 Jan 2017 20:00:12 +0000 (20:00 +0000)]
Merge "[Installd] Clean up logic for secondary dex oat files"
Calin Juravle [Mon, 30 Jan 2017 19:47:40 +0000 (19:47 +0000)]
Merge "Add installd logic for compiling secondary dex files"
TreeHugger Robot [Mon, 30 Jan 2017 19:26:59 +0000 (19:26 +0000)]
Merge "frameworks/native: Add VR command-line tools"
Courtney Goeltzenleuchter [Mon, 30 Jan 2017 18:53:14 +0000 (18:53 +0000)]
Merge "Add support for EGL_EXT_pixel_format_float"
Alex Vakulenko [Fri, 27 Jan 2017 22:41:25 +0000 (14:41 -0800)]
frameworks/native: Add VR command-line tools
Bug: None
Test: `m -j32` succeeds
Change-Id: Ia83c71875eb0f207f63a168c88a138daeea42d5d
Jiwen 'Steve' Cai [Sun, 29 Jan 2017 19:37:16 +0000 (11:37 -0800)]
Fix libgvr related build issue on mips
Bug:
34787305
Test: make -j109 PRODUCT-aosp_mips-eng dist checkbuild
Change-Id: Ib1d41a70a50b2b34fc2b46dcfd3b49da07dc2495
Jiwen 'Steve' Cai [Sun, 29 Jan 2017 04:44:35 +0000 (20:44 -0800)]
Pull in X86 targets for GVR prebuilts CL@
144004555
Also updates the build_gvr_prebuilts.sh script for future prebuilt pull in.
Bug:
34787305
Test: m -j PRODUCT-sdk_google_phone_x86_64-sdk_addon
Test: m -j PRODUCT-sdk_google_phone_mips-sdk_addon
Change-Id: Iba4c4edbdb97f8c2e0e3e6bf054366c2648884fd
Alex Vakulenko [Fri, 27 Jan 2017 22:41:04 +0000 (14:41 -0800)]
Add DaydreamVR native libraries and services
Upstreaming the main VR system components from master-dreamos-dev
into goog/master.
Bug: None
Test: `m -j32` succeeds. Sailfish boots and basic_vr sample app works
Change-Id: I853015872afc443aecee10411ef2d6b79184d051
TreeHugger Robot [Sat, 28 Jan 2017 07:05:30 +0000 (07:05 +0000)]
Merge "Add color space connection"
TreeHugger Robot [Sat, 28 Jan 2017 05:40:34 +0000 (05:40 +0000)]
Merge "Add various vector functions"
Romain Guy [Sat, 28 Jan 2017 05:23:14 +0000 (21:23 -0800)]
Add color space connection
This will be used to generate a 3D LUT to convert wide gamut bitmaps
to the render target's color space at draw time.
Bug:
32984164
Test: colorspace_test
Change-Id: I1ea8d2b3129dfc8b994c8abc926b24e7e097558c
Romain Guy [Sat, 28 Jan 2017 04:04:01 +0000 (20:04 -0800)]
Add various vector functions
- map()
- Bool vectors
- any(), all(), comparison functions
Example:
all(lessThan(abs(v1 - v0), epsilon))
Bug:
32984164
Test: vec_test
Change-Id: I7d030387f5a280a499ea480015b69138cef38459
Calin Juravle [Wed, 25 Jan 2017 09:17:17 +0000 (01:17 -0800)]
[Installd] Clean up logic for secondary dex oat files
Add a new method to installd, reconcileSecondaryOdex, which checks if
the given dex files still exist and if not, deletes the oat files that
were generated for it.
Test: devices bots
adb shell cmd package reconcile-secondary-dex
com.android.google.gms (after artificially/temporarily renaming some
dex files)
Bug:
32871170
Change-Id: I8465a7be9fd4e44e191ad40f7bd0f41c8b2d6f73
Calin Juravle [Tue, 17 Jan 2017 22:43:25 +0000 (14:43 -0800)]
Add installd logic for compiling secondary dex files
Secondary dex compilation takes almost the same path as primary apk
compilation.
The main difference is in the fact that for secondary dex files we
create the oat dir on the fly and execute dexoptanalyzer (the equivalent
of GetDexOptNeeded) to check if we really need to perform the
compilation.
Test: adb shell cmd package compile -f -m speed --secondary-dex com.google.android.gms
Bug:
32871170
Change-Id: I2c56d57322899968a338ccabffca575d66f8ee08
Ecco Park [Fri, 27 Jan 2017 23:07:35 +0000 (15:07 -0800)]
dumpstate: add the property(ro.radio.log_loc) for modem_logs
For temporary solution for not saving modem logs in bugreport,
I created the property(ro.radio.log_loc) to indicate the place
where modem_logs are saved.
During transition to hal dump of telephony, we will keep the property in
device configuration.
Bug:
33820081
Change-Id: I7712ce095686a54ea7f097f190611aec7a64d79c
Signed-off-by: Ecco Park <eccopark@google.com>
Robert Carr [Wed, 21 Dec 2016 20:58:51 +0000 (12:58 -0800)]
SurfaceFlinger: Add support for non-privileged clients.
Allow clients without privilege to create child layers through scoped
connections. We enable this in preparation for allowing SurfaceView
to bypass the WindowManager. We include support for reparenting of
all of a layer's children for the WindowManager to use in cases where
one surface is replacing another (while keeping its children around).
Test: Tested with corresponding SurfaceView modifications.
Change-Id: I9920e6730d719113522a68788e63fb59f70d3406
George Burgess IV [Wed, 25 Jan 2017 19:36:12 +0000 (11:36 -0800)]
Add permission bits to open calls with O_CREAT
Open needs a third argument if you pass it O_CREAT:
https://linux.die.net/man/3/open
This turns into a compile-time error with FORITFY, so we need this fixed
before our unbroken FORTIFY can go in.
(The TEMP_FAILURE_RETRY open isn't detected by clang FORTIFY, but I
noticed that open_reference_profile potentially passes in O_CREAT as an
open_flag.)
Bug:
32073964
Test: Now builds with clang FORTIFY; CtsCompilationTestCases passes;
manually verified that /data/misc/profiles/ref/*/primary.prof has rw
permissions after a successful `cmd package compile -m speed-profile`.
Change-Id: Ie707d5ad403d2f86c769277b3e0f147c45000a6b
TreeHugger Robot [Fri, 27 Jan 2017 00:17:20 +0000 (00:17 +0000)]
Merge changes from topic 'vr_wm'
* changes:
VR: Add ability to pass layer info through SurfaceFlinger
VR: Create VR implementation for HWC HIDL interface
Ian Elliott [Thu, 26 Jan 2017 22:58:26 +0000 (22:58 +0000)]
Merge "Fix VK_KHR_SWAPCHAIN_FRONT_BUFFERED_SPEC_VERSION, it's actually 1"
Ian Elliott [Thu, 26 Jan 2017 21:04:17 +0000 (14:04 -0700)]
Fix VK_KHR_SWAPCHAIN_FRONT_BUFFERED_SPEC_VERSION, it's actually 1
Test: Visually compare the spec with the source.
Change-Id: I1bbadf9e618e1704aaa53e77738540e807a05e80
George Burgess IV [Thu, 26 Jan 2017 20:47:55 +0000 (20:47 +0000)]
Merge "Replace strlen with arraysize in array bounds." am:
70a5f12045 am:
5f186d057a am:
d427837d32
am:
c4aaa479ba
Change-Id: Ie73ddfcbf564778b7a3d085773ef6fba3ad66977
George Burgess IV [Thu, 26 Jan 2017 20:41:16 +0000 (20:41 +0000)]
Merge "Replace strlen with arraysize in array bounds." am:
70a5f12045 am:
5f186d057a
am:
d427837d32
Change-Id: Ia9f3ad966545b25d05394d57f38f3c1107a69469
George Burgess IV [Thu, 26 Jan 2017 20:33:01 +0000 (20:33 +0000)]
Merge "Replace strlen with arraysize in array bounds." am:
70a5f12045
am:
5f186d057a
Change-Id: Ic23f22a26e160055c2e50eb9641183c0da9dfc2a
George Burgess IV [Thu, 26 Jan 2017 20:26:56 +0000 (20:26 +0000)]
Merge "Replace strlen with arraysize in array bounds."
am:
70a5f12045
Change-Id: I3357cadb32858a94d94c6b4bd82fe69f241027b4
Treehugger Robot [Thu, 26 Jan 2017 20:06:50 +0000 (20:06 +0000)]
Merge "Replace strlen with arraysize in array bounds."
Courtney Goeltzenleuchter [Wed, 16 Nov 2016 20:53:40 +0000 (13:53 -0700)]
Add support for EGL_EXT_pixel_format_float
Bug:
32146087
Test: run test-opengl-configdump on device.
Change-Id: Ic7843f523a1c4125f6697c58d930aad6fc3248ba
George Burgess IV [Wed, 25 Jan 2017 21:33:38 +0000 (13:33 -0800)]
Fix -Wdouble-promotion warnings
With the new clang FORTIFY, this code emits the following error:
error: implicit conversion increases floating-point precision: 'float'
to 'double' [-Werror,-Wdouble-promotion]
This is because strncpy is now a function, not a macro defined in a
system header. So, the warning is considered to appear in user code
(instead of system code), and is therefore no longer suppressed.
Bug:
32073964
Test: Now builds with clang FORTIFY
Change-Id: Id5fcfe91755535f90b542e11bc42b66976fe24fc
Merged-In: I5e8292d7800434268793bc4db4a96f20b7022e17
George Burgess IV [Wed, 25 Jan 2017 19:52:01 +0000 (11:52 -0800)]
Replace strlen with arraysize in array bounds.
clang-FORTIFY doesn't let us evaluate strlen("foo") as a constant
expression that can be used in static array bounds. Instead, we'd need
to either do __builtin_strlen("foo") or arraysize("foo") - 1. Just use
arraysize here, since the extra 1 byte per array isn't likely to be a
terrible thing.
Happy to swap to __builtin_strlen if anyone cares deeply enough.
Bug:
32073964
Test: Now builds with clang FORTIFY.
Change-Id: I4c9b3eb74775901554b939246722bd3a22326d10
Yifan Hong [Thu, 26 Jan 2017 18:33:58 +0000 (18:33 +0000)]
Merge changes from topic 'lshal' am:
1f2d5a9cda am:
65b5fab397 am:
cf41d3fa69
am:
86e0f74b09
Change-Id: I410c1ad96a56905bd146f0730a3497458ab54e3b
Yifan Hong [Thu, 26 Jan 2017 18:32:39 +0000 (18:32 +0000)]
Add debugDump() to IServiceManager. am:
5ccdab9bc5 am:
169161171c am:
6c24cc3dd6
am:
bd0382f41d
Change-Id: Ia7b46d17897c0214ff20a189745ebfb54b4a7433
Yifan Hong [Thu, 26 Jan 2017 18:32:28 +0000 (18:32 +0000)]
Add an lshal command. am:
85dd3ad89f am:
a763ae7121 am:
5a0eaa454f
am:
684fae26ec
Change-Id: I3ecd794a8d51e3c316cf2974af0c7c95a4bfcef5
Yifan Hong [Thu, 26 Jan 2017 18:30:58 +0000 (18:30 +0000)]
Merge changes from topic 'lshal' am:
1f2d5a9cda am:
65b5fab397
am:
cf41d3fa69
Change-Id: Ia11923e218c0594d2f67b95ec510fa80716d74e3
Yifan Hong [Thu, 26 Jan 2017 18:29:38 +0000 (18:29 +0000)]
Add debugDump() to IServiceManager. am:
5ccdab9bc5 am:
169161171c
am:
6c24cc3dd6
Change-Id: Id823cb5ce3aab358311858a5c041fbeb305dfdb7
Yifan Hong [Thu, 26 Jan 2017 18:29:26 +0000 (18:29 +0000)]
Add an lshal command. am:
85dd3ad89f am:
a763ae7121
am:
5a0eaa454f
Change-Id: Ifa851e5bb55a870a290b4be134607a744af5f741
Yifan Hong [Thu, 26 Jan 2017 18:27:25 +0000 (18:27 +0000)]
Merge changes from topic 'lshal' am:
1f2d5a9cda
am:
65b5fab397
Change-Id: If32d7c1459710e4f584be7740e8de785337dd54b
Yifan Hong [Thu, 26 Jan 2017 18:26:07 +0000 (18:26 +0000)]
Add debugDump() to IServiceManager. am:
5ccdab9bc5
am:
169161171c
Change-Id: I570c0d3f712dd8069d14fdae37c587ebcfd99229
Yifan Hong [Thu, 26 Jan 2017 18:25:56 +0000 (18:25 +0000)]
Add an lshal command. am:
85dd3ad89f
am:
a763ae7121
Change-Id: I627e16e1216e09dccbc96db26dfba844e073d403
Yifan Hong [Thu, 26 Jan 2017 18:24:44 +0000 (18:24 +0000)]
Merge changes from topic 'lshal'
am:
1f2d5a9cda
Change-Id: If2ed2950dfa6f7a4598e143e9e22b34426a8f196
Yifan Hong [Thu, 26 Jan 2017 18:23:12 +0000 (18:23 +0000)]
Add debugDump() to IServiceManager.
am:
5ccdab9bc5
Change-Id: I4823ca88072ebe167fa6a3b894cad610cea88c94
Yifan Hong [Thu, 26 Jan 2017 18:23:02 +0000 (18:23 +0000)]
Add an lshal command.
am:
85dd3ad89f
Change-Id: I43be1cd548f30d7d6e954411fc3db8b13e20f3c0