OSDN Git Service

android-x86/frameworks-native.git
9 years agoMerge "Fix pointer-to-int and int-to-pointer warnings."
Dan Albert [Wed, 25 Feb 2015 22:50:10 +0000 (22:50 +0000)]
Merge "Fix pointer-to-int and int-to-pointer warnings."

9 years agoFix pointer-to-int and int-to-pointer warnings.
Dan Albert [Mon, 23 Feb 2015 18:39:14 +0000 (10:39 -0800)]
Fix pointer-to-int and int-to-pointer warnings.

Change-Id: If534cbcf2c3e644270572cbf829ba9b5acab29e6

9 years agoMerge "vsync.cpp test is throwing error whe compiled"
Mark Salyzyn [Mon, 23 Feb 2015 15:14:23 +0000 (15:14 +0000)]
Merge "vsync.cpp test is throwing error whe compiled"

9 years agovsync.cpp test is throwing error whe compiled
Nanik Tolaram [Sat, 14 Feb 2015 00:32:46 +0000 (11:32 +1100)]
vsync.cpp test is throwing error whe compiled

frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:55:44: error: 'ALOOPER_EVENT_INPUT' was not declared in this scope
     loop->addFd(myDisplayEvent.getFd(), 0, ALOOPER_EVENT_INPUT, receiver,
                                            ^
frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:64:18: error: 'ALOOPER_POLL_WAKE' was not declared in this scope
             case ALOOPER_POLL_WAKE:
                  ^
frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:67:18: error: 'ALOOPER_POLL_CALLBACK' was not declared in this scope
             case ALOOPER_POLL_CALLBACK:
                  ^
frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:70:18: error: 'ALOOPER_POLL_TIMEOUT' was not declared in this scope
             case ALOOPER_POLL_TIMEOUT:
                  ^
frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:73:18: error: 'ALOOPER_POLL_ERROR' was not declared in this scope
             case ALOOPER_POLL_ERROR:
                  ^

it is missing one header file

Change-Id: Ie2fb02523a866b13a99edf837f072d101cacb466
Signed-off-by: Nanik Tolaram <nanikjava@gmail.com>
9 years agoMerge "Add missing <unistd.h> include for close."
Elliott Hughes [Fri, 20 Feb 2015 01:08:07 +0000 (01:08 +0000)]
Merge "Add missing <unistd.h> include for close."

9 years agoAdd missing <unistd.h> include for close.
Elliott Hughes [Fri, 20 Feb 2015 00:58:44 +0000 (16:58 -0800)]
Add missing <unistd.h> include for close.

Change-Id: Iebce6d74eecb8c275e800b7f47f74bbd4374860d

9 years agoMerge "egl: Remove old tuna BGRA vs RGBA workaround."
Jesse Hall [Wed, 18 Feb 2015 17:31:12 +0000 (17:31 +0000)]
Merge "egl: Remove old tuna BGRA vs RGBA workaround."

9 years agoMerge "Add missing <sys/file.h> include for flock."
Elliott Hughes [Tue, 17 Feb 2015 01:24:48 +0000 (01:24 +0000)]
Merge "Add missing <sys/file.h> include for flock."

9 years agoAdd missing <sys/file.h> include for flock.
Elliott Hughes [Mon, 16 Feb 2015 18:44:22 +0000 (10:44 -0800)]
Add missing <sys/file.h> include for flock.

Change-Id: I5c9bb4aa74d8a36d44e086bbcb5d60876727ce4c

9 years agoegl: Remove old tuna BGRA vs RGBA workaround.
Alistair Strachan [Thu, 12 Feb 2015 20:33:25 +0000 (12:33 -0800)]
egl: Remove old tuna BGRA vs RGBA workaround.

Some time before kitkat, a workaround was put in place to keep tuna
working with obsolete PowerVR GPU drivers. The tuna product was dropped
in AOSP for kitkat, but the workaround remained.

There are still a number of devices shipping with OMAP4 processors, and
this workaround continues to be applied on those products even when it
is not required. The effect is that virtual display CTS will fail on
those devices.

9 years agoMerge "Remove -z option."
Christopher Ferris [Tue, 10 Feb 2015 01:26:58 +0000 (01:26 +0000)]
Merge "Remove -z option."

9 years agoRemove -z option.
Christopher Ferris [Tue, 10 Feb 2015 00:24:47 +0000 (16:24 -0800)]
Remove -z option.

This option doesn't work with the current selinux protections and
doesn't serve much of a purpose. You can get the same results running
this:

dumpstate | gzip > /data/local/tmp/dump.txt.gz

Bug: 19271141
Change-Id: Icc76200df33dc708e30c556ec8a0f393f995fe7c

9 years agoMerge "Add better timeout mechanism for running commands."
Christopher Ferris [Wed, 4 Feb 2015 01:57:13 +0000 (01:57 +0000)]
Merge "Add better timeout mechanism for running commands."

9 years agoAdd better timeout mechanism for running commands.
Christopher Ferris [Fri, 30 Jan 2015 19:00:52 +0000 (11:00 -0800)]
Add better timeout mechanism for running commands.

Change-Id: I60fc9e7d59c3e0e4b8b2f69f79c6903240bfd131

9 years agoMerge "Add missing includes."
Elliott Hughes [Fri, 30 Jan 2015 06:34:37 +0000 (06:34 +0000)]
Merge "Add missing includes."

9 years agoAdd missing includes.
Elliott Hughes [Fri, 30 Jan 2015 06:32:32 +0000 (22:32 -0800)]
Add missing includes.

Change-Id: I1dad32ab459c25063a70cf52100a29d00fea3a90

9 years agoMerge "Switch dumpstate to "ip link list"."
Elliott Hughes [Wed, 28 Jan 2015 17:22:27 +0000 (17:22 +0000)]
Merge "Switch dumpstate to "ip link list"."

9 years agoSwitch dumpstate to "ip link list".
Elliott Hughes [Wed, 28 Jan 2015 04:48:52 +0000 (20:48 -0800)]
Switch dumpstate to "ip link list".

Change-Id: Ia1db51c866890f09fbd4316764dea5982554598f

9 years agoMerge "Kill HAVE_PTHREADS."
Yabin Cui [Tue, 27 Jan 2015 19:46:54 +0000 (19:46 +0000)]
Merge "Kill HAVE_PTHREADS."

9 years agoKill HAVE_PTHREADS.
Yabin Cui [Tue, 27 Jan 2015 03:45:47 +0000 (19:45 -0800)]
Kill HAVE_PTHREADS.

Bug: 19083585
Change-Id: I355491de945590f43c82bdcb7968b01b4bff6e06

9 years agoMerge "Use register numbers instead of register names"
Jesse Hall [Mon, 26 Jan 2015 17:17:08 +0000 (17:17 +0000)]
Merge "Use register numbers instead of register names"

9 years agoMerge "Move atrace from the obsolete bzero to memset."
Elliott Hughes [Sun, 25 Jan 2015 19:17:14 +0000 (19:17 +0000)]
Merge "Move atrace from the obsolete bzero to memset."

9 years agoMove atrace from the obsolete bzero to memset.
Elliott Hughes [Sun, 25 Jan 2015 16:35:20 +0000 (08:35 -0800)]
Move atrace from the obsolete bzero to memset.

(This file wasn't including <strings.h> for bzero or <string.h> for memset.)

Change-Id: Icef0e0dbfd36ebd21058cfd8c747e0a17aee8308

9 years agoMerge "Refactor of the bugreport code."
Christopher Ferris [Fri, 23 Jan 2015 23:01:28 +0000 (23:01 +0000)]
Merge "Refactor of the bugreport code."

9 years agoRefactor of the bugreport code.
Christopher Ferris [Wed, 21 Jan 2015 03:18:59 +0000 (19:18 -0800)]
Refactor of the bugreport code.

Implemented these changes:

- Make this code C++.
- Avoid hangs by adding a timeout.
- Add the necessary TEMP_FAILURE_RETRY calls.
- Restructure the code a bit.

Bug: 18800936

Change-Id: Iba9f86a4c7beee4f0f36e51234855f4c0834db47

9 years agoMerge "[MIPS] Further opengl support for mips64 and mipsr6"
Jesse Hall [Thu, 22 Jan 2015 16:55:04 +0000 (16:55 +0000)]
Merge "[MIPS] Further opengl support for mips64 and mipsr6"

9 years agoMerge "Restore Region::set(uint32_t, uint32_t)"
Dan Stoza [Wed, 21 Jan 2015 16:39:22 +0000 (16:39 +0000)]
Merge "Restore Region::set(uint32_t, uint32_t)"

9 years agoUse register numbers instead of register names
Nikola Veljkovic [Fri, 26 Dec 2014 16:33:14 +0000 (17:33 +0100)]
Use register numbers instead of register names

Avoid ambiguity by using register numbers. Register names are
interpreted depending on the ABI. Fixes the issue with mips64 gcc,
where registers t0-t4 are translated into $8-$11 (o32 ABI) instead
of $12-$15 (o64 ABI).

Also, use t9 ($25) for storing function address
(in getProcAddress.cpp).

Change-Id: I12ef5cd98bf14dab3c01f2756889cc02856c1cd8

9 years ago[MIPS] Further opengl support for mips64 and mipsr6
Duane Sand [Wed, 26 Nov 2014 21:17:40 +0000 (13:17 -0800)]
[MIPS] Further opengl support for mips64 and mipsr6

Combines 4 patches by Dragoslav and Douglas:

Use t9 to hold the address of the called function.
Add support for gl binding.
Fix inline assembly code to be R6 compatible.
Fix some more inline assembly code to be R6 compatible.

Change-Id: I0b899813790b2ba4ca538bb21692014cc1933f66

9 years agoMerge "Follow StrictMode refactoring."
Jeff Sharkey [Fri, 16 Jan 2015 01:10:51 +0000 (01:10 +0000)]
Merge "Follow StrictMode refactoring."

9 years agoMerge "Use the timeout stack dump functions."
Christopher Ferris [Thu, 15 Jan 2015 23:40:39 +0000 (23:40 +0000)]
Merge "Use the timeout stack dump functions."

9 years agoUse the timeout stack dump functions.
Christopher Ferris [Wed, 14 Jan 2015 21:23:30 +0000 (13:23 -0800)]
Use the timeout stack dump functions.

Use the native stack dumping functions that allows time outs. If
debuggerd locks up, before a bugreport would hang forever. Now
it will timeout properly and still get all of the other information.

Bug: 18766581

(cherry picked from commit 457731f69e3106b5aae8fc04f9565af1d875876c)

Change-Id: I39e8e9c60209e3ef9efac795fedb8e1edce2bd3e

9 years agoMerge "Revert "Revert "Update protobuf library from 2.3 to 2.6."""
Jeff Davidson [Thu, 15 Jan 2015 22:49:02 +0000 (22:49 +0000)]
Merge "Revert "Revert "Update protobuf library from 2.3 to 2.6."""

9 years agoFollow StrictMode refactoring.
Jeff Sharkey [Thu, 18 Dec 2014 18:26:57 +0000 (10:26 -0800)]
Follow StrictMode refactoring.

Bug: 18335678
Change-Id: Iea920cfa26b5ebfd77b4601c9e6e65b21599342a

9 years agoMerge "Replace all instances of intptr_t with uintptr_t."
Riley Andrews [Tue, 13 Jan 2015 22:06:05 +0000 (22:06 +0000)]
Merge "Replace all instances of intptr_t with uintptr_t."

9 years agoMerge "Fix signed/unsigned comparison warnings in driver interface test."
Riley Andrews [Tue, 13 Jan 2015 22:00:23 +0000 (22:00 +0000)]
Merge "Fix signed/unsigned comparison warnings in driver interface test."

9 years agoReplace all instances of intptr_t with uintptr_t.
Riley Andrews [Tue, 13 Jan 2015 02:16:29 +0000 (18:16 -0800)]
Replace all instances of intptr_t with uintptr_t.

When compiling 32 bit binaries against a 64 bit binder interface,
implicit promotions of intptr_t types to uint64_t for fields in the
binder ioctl structures can result in invalid pointers because of sign
extension.

9 years agoMerge "[MIPS] Build libGLES for mips64, mips32r6"
Brian Carlstrom [Tue, 13 Jan 2015 06:19:36 +0000 (06:19 +0000)]
Merge "[MIPS] Build libGLES for mips64, mips32r6"

9 years ago[MIPS] Build libGLES for mips64, mips32r6
Duane Sand [Wed, 26 Nov 2014 00:43:13 +0000 (16:43 -0800)]
[MIPS] Build libGLES for mips64, mips32r6

For now, use generic C code instead of assembler.

Change-Id: I604ecdcde2d5373f1f68ab97a63a80667b630846

9 years agoFix signed/unsigned comparison warnings in driver interface test.
Riley Andrews [Tue, 13 Jan 2015 02:14:55 +0000 (18:14 -0800)]
Fix signed/unsigned comparison warnings in driver interface test.

9 years agoMerge "surfaceflinger: use Mutex timedLock instead of tryLock loop"
Jesse Hall [Mon, 12 Jan 2015 23:33:06 +0000 (23:33 +0000)]
Merge "surfaceflinger: use Mutex timedLock instead of tryLock loop"

9 years agoRevert "Revert "Update protobuf library from 2.3 to 2.6.""
Jeff Davidson [Mon, 12 Jan 2015 20:07:43 +0000 (20:07 +0000)]
Revert "Revert "Update protobuf library from 2.3 to 2.6.""

This reverts commit bca4262dac55cc59b28d6fde658d5f8a254fcc2d.

Change-Id: I8ecd859340779dfacffba4c6d1a44c5cdbdfceed

9 years agoMerge "Revert "Update protobuf library from 2.3 to 2.6.""
Jeff Davidson [Mon, 12 Jan 2015 20:00:51 +0000 (20:00 +0000)]
Merge "Revert "Update protobuf library from 2.3 to 2.6.""

9 years agoRevert "Update protobuf library from 2.3 to 2.6."
Jeff Davidson [Mon, 12 Jan 2015 20:00:33 +0000 (20:00 +0000)]
Revert "Update protobuf library from 2.3 to 2.6."

This reverts commit a42cdf169060e1bb65c77bc8a394d266403d8583.

Change-Id: I8f75e6fcc921041ebdfd35c4724134fcb2c739c6

9 years agoMerge "Update protobuf library from 2.3 to 2.6."
Jeff Davidson [Mon, 12 Jan 2015 19:37:20 +0000 (19:37 +0000)]
Merge "Update protobuf library from 2.3 to 2.6."

9 years agoMerge "Fix message when a command times out."
Christopher Ferris [Mon, 12 Jan 2015 18:41:06 +0000 (18:41 +0000)]
Merge "Fix message when a command times out."

9 years agosurfaceflinger: use Mutex timedLock instead of tryLock loop
Jesse Hall [Tue, 23 Dec 2014 21:57:23 +0000 (13:57 -0800)]
surfaceflinger: use Mutex timedLock instead of tryLock loop

Rather than trying to acquire the state lock without waiting three
times at 1 second intervals in SurfaceFlinger::dump(), just try to
acquire the lock once with a 1 second timeout. Avoids spurious mutex
acquire failures that lead to flaky
com.android.cts.jank.opengl.CtsHostJankOpenGl results.

Bug: 18842510
Change-Id: I00ce6109647de2aef8831dd2f8fa98652ba7f4e0

9 years agoFix message when a command times out.
Christopher Ferris [Fri, 9 Jan 2015 23:56:21 +0000 (15:56 -0800)]
Fix message when a command times out.

The previous version printed out the nanoseconds elapsed, not seconds.

Change-Id: I10f6d7bf7b7a4647658313ed83781fda6fd744a5

9 years agoMerge "We have POSIX clocks, and we don't need to ask for the openssl headers."
Elliott Hughes [Sat, 10 Jan 2015 00:03:46 +0000 (00:03 +0000)]
Merge "We have POSIX clocks, and we don't need to ask for the openssl headers."

9 years agoWe have POSIX clocks, and we don't need to ask for the openssl headers.
Elliott Hughes [Fri, 9 Jan 2015 23:56:15 +0000 (15:56 -0800)]
We have POSIX clocks, and we don't need to ask for the openssl headers.

This code doesn't need to run on the Mac, and the BoringSSL transition
will be easier without references to external/openssl.

Change-Id: I14ea11fa2911af0f4e95e69636e6a2c26126cbe0

9 years agoUpdate protobuf library from 2.3 to 2.6.
Jeff Davidson [Tue, 16 Sep 2014 01:14:22 +0000 (18:14 -0700)]
Update protobuf library from 2.3 to 2.6.

Remove generated cpp/h files for gltrace.proto as we can use the build
system to generate these dynamically.

Change-Id: I949d32fb5126f1c05e2a6ed48f6636a4a9b15a48

9 years agoMerge "Installd: Disallow relocation for decryption"
Andreas Gampe [Wed, 7 Jan 2015 22:04:28 +0000 (22:04 +0000)]
Merge "Installd: Disallow relocation for decryption"

9 years agoInstalld: Disallow relocation for decryption
neo.chae [Wed, 7 Jan 2015 09:46:13 +0000 (18:46 +0900)]
Installd: Disallow relocation for decryption

When decrypting a device, a tmpfs is temporarily mounted as /data,
the size of which is usually small. When the zygote, system server
and necessary apps are brought up, they will be compiled into the
tmpfs.

If the system image contains prebuilts, they will be relocated instead
of compiled. This is unnecessary. In this special situation it is
acceptable to run out of the prebuilt oat files without relocation,
which can save space in the tmpfs.

This patch ensures that apps are not being relocated.

Change-Id: I42bfb7e3039574b7e4f2772e0d395f093d59ed1b
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
9 years agoMerge "InputDispatcher: Optimize count()"
Narayan Kamath [Wed, 24 Dec 2014 10:25:42 +0000 (10:25 +0000)]
Merge "InputDispatcher: Optimize count()"

9 years agoRestore Region::set(uint32_t, uint32_t)
Bernhard Rosenkraenzer [Mon, 22 Dec 2014 20:15:08 +0000 (21:15 +0100)]
Restore Region::set(uint32_t, uint32_t)

The Region::set(uint32_t,uint32_t) ABI is used by the Nexus 10 graphics
driver blobs.
After commit dd883c0b08d2a60f89542b9b9f5fdabcb14885c7, Nexus 10 blobs
need a rebuild unless the old ABI is added back

Change-Id: I138dcc1cc281b8d3cde0021282bf874054ec4eaf
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
9 years agoMerge "Installd: Swap file for dex2oat"
Andreas Gampe [Mon, 22 Dec 2014 18:30:57 +0000 (18:30 +0000)]
Merge "Installd: Swap file for dex2oat"

9 years agoInstalld: Swap file for dex2oat
Andreas Gampe [Thu, 11 Dec 2014 00:41:11 +0000 (16:41 -0800)]
Installd: Swap file for dex2oat

Add swap file support for dex2oat to installd. Only use in low-memory
mode.

Bug: 18596910

(cherry picked from commit f68ce4de7fcfcc090af7985972b304eed7dbaf63)

Change-Id: I131448f3907115054a592af73db86d2b9257ea33

9 years agoMerge "Add binder tests"
Riley Andrews [Fri, 19 Dec 2014 00:39:39 +0000 (00:39 +0000)]
Merge "Add binder tests"

9 years agoAdd binder tests
Riley Andrews [Thu, 18 Dec 2014 20:10:08 +0000 (12:10 -0800)]
Add binder tests

Change-Id: Ib0b38708dd6387fc4d5a4857ca74a217f3edad1a

9 years agoMerge "Add binder driver interface test"
Riley Andrews [Fri, 19 Dec 2014 00:38:41 +0000 (00:38 +0000)]
Merge "Add binder driver interface test"

9 years agoAdd binder driver interface test
Riley Andrews [Thu, 18 Dec 2014 19:54:32 +0000 (11:54 -0800)]
Add binder driver interface test

Test ioctls and some binder commands without using libbinder.

Change-Id: I86dde56ff1380bca17d086021ac5324dc5210354

9 years agoMerge "Installd: Remove dalvik paths"
Andreas Gampe [Tue, 16 Dec 2014 02:29:11 +0000 (02:29 +0000)]
Merge "Installd: Remove dalvik paths"

9 years agoInstalld: Remove dalvik paths
Andreas Gampe [Mon, 15 Dec 2014 19:41:11 +0000 (11:41 -0800)]
Installd: Remove dalvik paths

Dalvik is dead. Dexopt is dead.

Change-Id: I9ff6b638a3e2c52ae7aec33d7b08a7bee012854f

9 years agoMerge "Fix clang -Wc++11-narrowing warnings."
Chih-Hung Hsieh [Thu, 11 Dec 2014 22:48:17 +0000 (22:48 +0000)]
Merge "Fix clang -Wc++11-narrowing warnings."

9 years agoFix clang -Wc++11-narrowing warnings.
Chih-Hung Hsieh [Thu, 11 Dec 2014 18:39:59 +0000 (10:39 -0800)]
Fix clang -Wc++11-narrowing warnings.

Clang compiler gives warning to implicit conversions of
literal structure fields, although the compiler generated
implicit conversions are what we want in these cases.

Change-Id: I8f04e7f2fa1db0ed1d1937135d9091532eec3d5b

9 years agoMerge "GUI: Remove unused variables"
Andreas Gampe [Tue, 9 Dec 2014 19:57:05 +0000 (19:57 +0000)]
Merge "GUI: Remove unused variables"

9 years agoGUI: Remove unused variables
Andreas Gampe [Tue, 9 Dec 2014 04:42:40 +0000 (20:42 -0800)]
GUI: Remove unused variables

For build-system CFLAGS clean-up, remove unused variables.

Bug: 18632512
Change-Id: I79fdcf830683d7278f4bf114cfb76a26da1b88ff

9 years agoMerge "libgui: Enable -Weverything and -Werror"
Dan Stoza [Mon, 8 Dec 2014 18:46:08 +0000 (18:46 +0000)]
Merge "libgui: Enable -Weverything and -Werror"

9 years agoMerge "Libui: Remove unused variables"
Andreas Gampe [Mon, 8 Dec 2014 18:23:15 +0000 (18:23 +0000)]
Merge "Libui: Remove unused variables"

9 years agoLibui: Remove unused variables
Andreas Gampe [Sat, 6 Dec 2014 04:50:34 +0000 (20:50 -0800)]
Libui: Remove unused variables

For build-system CFLAGS clean-up, remove unused variables.

Bug: 18632512
Change-Id: Ib78912ae442ddc6410960ab1efb4fb2faa1a9208

9 years agolibgui: Enable -Weverything and -Werror
Dan Stoza [Tue, 18 Nov 2014 18:24:03 +0000 (10:24 -0800)]
libgui: Enable -Weverything and -Werror

Enables -Weverything and -Werror, with just a few exceptions for
warnings we can't (or shouldn't need to) work around.

This is a squashed commit based on an initial change with a couple of
fixes to avoid breaking certain targets. The source commits are:
  d723bd7669b4fc88dc282d8bf8ba5ecb2849d22f
  00d504c06ea034befe143e6b8cb34d004670ed02
  429ba89cd293633d2f882165066b422c96597df2

Change-Id: I034abec27bf4020d84af60d7acc1939c59986dd6

9 years agoMerge "Fix crash when user provides large values in the Parcel."
Dan Stoza [Fri, 5 Dec 2014 21:08:42 +0000 (21:08 +0000)]
Merge "Fix crash when user provides large values in the Parcel."

9 years agoFix crash when user provides large values in the Parcel.
Michael Lentine [Fri, 31 Oct 2014 18:10:13 +0000 (11:10 -0700)]
Fix crash when user provides large values in the Parcel.

Bug: 18102648
Change-Id: Ie6a24718e586a34424238363de80f9545951514f
(cherry-picked from commit 8afa1c4ab86d724feb7716e153b7835385534590)

9 years agoMerge "Fix -Werror on 64-bit builds"
Dan Albert [Fri, 5 Dec 2014 17:48:53 +0000 (17:48 +0000)]
Merge "Fix -Werror on 64-bit builds"

9 years agoMerge "Disable struct padding warning/error"
Dan Albert [Fri, 5 Dec 2014 17:48:47 +0000 (17:48 +0000)]
Merge "Disable struct padding warning/error"

9 years agoMerge "libui: Enable -Weverything and -Werror"
Dan Albert [Fri, 5 Dec 2014 17:48:10 +0000 (17:48 +0000)]
Merge "libui: Enable -Weverything and -Werror"

9 years agoMerge "Enable clang for libui/libgui/surfaceflinger"
Dan Albert [Fri, 5 Dec 2014 17:47:58 +0000 (17:47 +0000)]
Merge "Enable clang for libui/libgui/surfaceflinger"

9 years agoMerge "Fix for corruption when numFds or numInts is too large."
Dan Albert [Fri, 5 Dec 2014 17:47:37 +0000 (17:47 +0000)]
Merge "Fix for corruption when numFds or numInts is too large."

9 years agoFix -Werror on 64-bit builds
Dan Stoza [Mon, 1 Dec 2014 23:15:31 +0000 (15:15 -0800)]
Fix -Werror on 64-bit builds

Add another static_cast to avoid an error on 64-bit builds

Change-Id: I62fb2c67766c4aab70d9d1834f255d06ff82dd8d
(cherry picked from commit 116c7a113cb2db4d3f7708627ac4713c7e92cd43)

9 years agoDisable struct padding warning/error
Dan Stoza [Mon, 1 Dec 2014 23:03:34 +0000 (15:03 -0800)]
Disable struct padding warning/error

Adds -Wno-padded, which was triggering on 64-bit devices

Change-Id: If27bac27881f2081a222b32213901f5087554b07
(cherry picked from commit 4e84bd310c876e1450077959333c87e6e83dbf63)

9 years agolibui: Enable -Weverything and -Werror
Dan Stoza [Mon, 17 Nov 2014 20:03:59 +0000 (12:03 -0800)]
libui: Enable -Weverything and -Werror

Enables -Weverything and -Werror, with just a few exceptions for
warnings we can't (or shouldn't need to) work around.

Change-Id: I470a267e9b1c373f2d5c960f005c3b0e02b2db63
(cherry picked from commit 303b9a51239d36d237a7d40c67b5085cdb3c1059)

9 years agoEnable clang for libui/libgui/surfaceflinger
Dan Stoza [Tue, 11 Nov 2014 18:32:31 +0000 (10:32 -0800)]
Enable clang for libui/libgui/surfaceflinger

Enables clang and C++11 for libui/libgui/surfaceflinger, and
eliminates all compile-time warnings.

Change-Id: Ie237fdb5ae44f2bfcddaa884f9c65ec3f08ae50f
(cherry picked from commit f10c46ef855b6410b20ebd8b1351d4d78d8eca8e)

9 years agoFix for corruption when numFds or numInts is too large.
Michael Lentine [Fri, 31 Oct 2014 22:25:03 +0000 (15:25 -0700)]
Fix for corruption when numFds or numInts is too large.

Bug: 18076253
Change-Id: I4c5935440013fc755e1d123049290383f4659fb6
(cherry picked from commit dfd06b89a4b77fc75eb85a3c1c700da3621c0118)

9 years agoMerge "OpenGL tests: Fix unused variables"
Andreas Gampe [Tue, 2 Dec 2014 18:24:56 +0000 (18:24 +0000)]
Merge "OpenGL tests: Fix unused variables"

9 years agoMerge "Avoid overwriting EGL14.EGL_NO_SURFACE"
Jesse Hall [Tue, 2 Dec 2014 00:34:50 +0000 (00:34 +0000)]
Merge "Avoid overwriting EGL14.EGL_NO_SURFACE"

9 years agoMerge "binder: Add {read,write}Uint32 methods to Parcel"
Dan Stoza [Mon, 1 Dec 2014 19:16:16 +0000 (19:16 +0000)]
Merge "binder: Add {read,write}Uint32 methods to Parcel"

9 years agobinder: Add {read,write}Uint32 methods to Parcel
Dan Stoza [Mon, 1 Dec 2014 18:01:10 +0000 (10:01 -0800)]
binder: Add {read,write}Uint32 methods to Parcel

Adds readUint32 and writeUint32 methods to the Parcel class. This
saves a lot of static_casting in anything implementing a Binder
interface on the native side.

Change-Id: Iafc73b0633654a3a4c49767f41806b56906c924f

9 years agoMerge "binder: Return pid_t/uid_t instead of int"
Dan Stoza [Mon, 1 Dec 2014 19:10:58 +0000 (19:10 +0000)]
Merge "binder: Return pid_t/uid_t instead of int"

9 years agobinder: Return pid_t/uid_t instead of int
Dan Stoza [Wed, 26 Nov 2014 20:23:23 +0000 (12:23 -0800)]
binder: Return pid_t/uid_t instead of int

Makes IPCThreadState::getCalling{Pid,Uid} return a more
appropriate type.

Change-Id: I97f8a83c1c0722bc1afbf8a6df1a288f8f1f0d2c

9 years agoInputDispatcher: Optimize count()
Jon McCaffrey [Tue, 18 Nov 2014 20:07:08 +0000 (12:07 -0800)]
InputDispatcher: Optimize count()

Count items as they are added and removed rather than iterating over the
entire list to count them.

Increases performance slightly, particularly when tracing is turned on,
which causes count to be queried more often, and when the number of
items in the queues grow large.  This can happen due to applications not
responding, for example.

Change-Id: I0f11f7edd46089612af910cdfabfeb3ee685d7d9

9 years agoMerge "Don't error out because SensorEventConnection::dump overloads BBinder::dump"
Chih-hung Hsieh [Tue, 25 Nov 2014 23:45:38 +0000 (23:45 +0000)]
Merge "Don't error out because SensorEventConnection::dump overloads BBinder::dump"

9 years agoDon't error out because SensorEventConnection::dump overloads BBinder::dump
Bernhard Rosenkränzer [Mon, 17 Nov 2014 20:03:39 +0000 (21:03 +0100)]
Don't error out because SensorEventConnection::dump overloads BBinder::dump

clang warns about SensorEventConnection::dump overloading BBinder::dump
in some conditions.

Since the cause isn't fixable without changing the API, tell clang not
to error out on it.

Change-Id: I15659de7c5499d937019599cfefb01305039e6b5
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
9 years agoMerge "Fix build with clang in C++11 mode"
Chih-hung Hsieh [Tue, 25 Nov 2014 22:43:44 +0000 (22:43 +0000)]
Merge "Fix build with clang in C++11 mode"

9 years agoFix build with clang in C++11 mode
Bernhard Rosenkränzer [Tue, 25 Nov 2014 20:55:33 +0000 (21:55 +0100)]
Fix build with clang in C++11 mode

Now that we're in C++11 mode by default, clang complains about switch
statements with case values not matching the type -- since some
binder_driver_return_protocol values are > 0x7fffffff, we need to make
the switch statements operate on uint32_t rather than int32_t.

BUG: 18466763
Change-Id: Iedbfd5c7a3d3d9f087d2eab4ff21343ad7a2a448
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
9 years agoOpenGL tests: Fix unused variables
Andreas Gampe [Tue, 25 Nov 2014 04:02:04 +0000 (20:02 -0800)]
OpenGL tests: Fix unused variables

For build-system CFLAGS clean-up, fix unused variables.

Change-Id: I1863418f7467412d7698dd0ce0c8e40d1bd0348e

9 years agoAvoid overwriting EGL14.EGL_NO_SURFACE
Sangkyu Lee [Fri, 7 Nov 2014 09:55:07 +0000 (18:55 +0900)]
Avoid overwriting EGL14.EGL_NO_SURFACE

Both EGL14 and EGLExt have the same initialization codes for
EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY.
Since EGLExt is initialized later, they are overwritten by EGLExt's
initialization codes.
Therefore, EGL_NO_SURFACE returned by methods in EGL14 is not
actually EGL14.EGL_NO_SURFACE object and it makes several problems in
handling error cases.
For instance, "Let's fish" game application cannot be run on L.

To solve the problem, this patch makes EGL14.EGL_NO_SURFACE,
EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY initialized just once.

Change-Id: Icce878164ff0b715ad2b5a2cd038a9616c7cf1e9

9 years agoMerge "Fix potential format string vulnerability"
chh [Tue, 25 Nov 2014 01:04:09 +0000 (01:04 +0000)]
Merge "Fix potential format string vulnerability"

9 years agoFix potential format string vulnerability
Bernhard Rosenkränzer [Mon, 17 Nov 2014 20:06:20 +0000 (21:06 +0100)]
Fix potential format string vulnerability

A sensor name containing a format string could have interesting side
effects...

Change-Id: If7f1378aa68572d9716c339728eab18faa6b9f2a
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
9 years agoMerge "Binder: Remove unused functions & variables"
Andreas Gampe [Mon, 24 Nov 2014 20:32:40 +0000 (20:32 +0000)]
Merge "Binder: Remove unused functions & variables"

9 years agoBinder: Remove unused functions & variables
Andreas Gampe [Mon, 24 Nov 2014 19:39:11 +0000 (11:39 -0800)]
Binder: Remove unused functions & variables

For build-system CFLAGS clean-up, remove unused functions and
variables.

Change-Id: I88abc2bc99e6b91c7aa56470ff9671bf8bf29f8d