OSDN Git Service

android-x86/frameworks-native.git
9 years agoam 3a1c6dac: Merge "Add XML files for new camera2 hardware features" into lmp-mr1-dev
Yin-Chia Yeh [Sat, 15 Nov 2014 15:46:07 +0000 (15:46 +0000)]
am 3a1c6dac: Merge "Add XML files for new camera2 hardware features" into lmp-mr1-dev

* commit '3a1c6dacecb328a38ae26c513246eab7a84219f2':
  Add XML files for new camera2 hardware features

9 years agoMerge "Add XML files for new camera2 hardware features" into lmp-mr1-dev
Yin-Chia Yeh [Fri, 14 Nov 2014 18:56:00 +0000 (18:56 +0000)]
Merge "Add XML files for new camera2 hardware features" into lmp-mr1-dev

9 years agoam 26653bad: Fix build.
Narayan Kamath [Fri, 14 Nov 2014 10:42:55 +0000 (10:42 +0000)]
am 26653bad: Fix build.

* commit '26653bad7cdaa09470828781c5a2bab7c4d2445f':
  Fix build.

9 years agoFix build.
Narayan Kamath [Fri, 14 Nov 2014 10:23:48 +0000 (10:23 +0000)]
Fix build.

Remove reference to undefined open max index extension.

Change-Id: I984b91afad3ca4d279a31048b4112fa9afdba9e9

9 years agoam 1d5d637d: Merge "implement asString() for OMX enumerations used by framework"...
Lajos Molnar [Fri, 14 Nov 2014 10:10:15 +0000 (10:10 +0000)]
am 1d5d637d: Merge "implement asString() for OMX enumerations used by framework" into lmp-mr1-dev

* commit '1d5d637d6e68bd4965bf0ff9df7b99bc146172f3':
  implement asString() for OMX enumerations used by framework

9 years agoMerge "implement asString() for OMX enumerations used by framework" into lmp-mr1-dev
Lajos Molnar [Fri, 14 Nov 2014 10:02:21 +0000 (10:02 +0000)]
Merge "implement asString() for OMX enumerations used by framework" into lmp-mr1-dev

9 years agoam a4cff88d: Fix issue #18356768: some app process may hang at Runtime#exit...
Dianne Hackborn [Fri, 14 Nov 2014 01:43:31 +0000 (01:43 +0000)]
am a4cff88d: Fix issue #18356768: some app process may hang at Runtime#exit...

* commit 'a4cff88d80bf1acbdbd063af88ecad83a8b9b7b4':
  Fix issue #18356768: some app process may hang at Runtime#exit...

9 years agoFix issue #18356768: some app process may hang at Runtime#exit...
Dianne Hackborn [Fri, 14 Nov 2014 01:07:40 +0000 (17:07 -0800)]
Fix issue #18356768: some app process may hang at Runtime#exit...

...in Parcel destructor

Don't use a Mutux object, just use simple posix mutex primitives,
to avoid static init/destroy order problems.

Change-Id: Ic012d94297564c0a55d58869f8276d7d10545fbc

9 years agoam 11bf9e5c: Merge "Add support for dalvik.vm.isa.<instruction set>.variant"
Ian Rogers [Fri, 14 Nov 2014 00:30:33 +0000 (00:30 +0000)]
am 11bf9e5c: Merge "Add support for dalvik.vm.isa.<instruction set>.variant"

* commit '11bf9e5c2f90101d56d918e1b3fe780b873e5566':
  Add support for dalvik.vm.isa.<instruction set>.variant

9 years agoMerge "Add support for dalvik.vm.isa.<instruction set>.variant"
Ian Rogers [Fri, 14 Nov 2014 00:20:51 +0000 (00:20 +0000)]
Merge "Add support for dalvik.vm.isa.<instruction set>.variant"

9 years agoam bc49cd07: Merge "kill HAVE_FORKEXEC"
Yabin Cui [Thu, 13 Nov 2014 23:35:25 +0000 (23:35 +0000)]
am bc49cd07: Merge "kill HAVE_FORKEXEC"

* commit 'bc49cd07664d8a590bc6ed44884ba9405f6b706e':
  kill HAVE_FORKEXEC

9 years agoMerge "kill HAVE_FORKEXEC"
Yabin Cui [Thu, 13 Nov 2014 23:22:26 +0000 (23:22 +0000)]
Merge "kill HAVE_FORKEXEC"

9 years agoam 9c17fb19: Merge "Frameworks/native: Wall Werror in batteryservice & powermanager"
Andreas Gampe [Thu, 13 Nov 2014 23:19:37 +0000 (23:19 +0000)]
am 9c17fb19: Merge "Frameworks/native: Wall Werror in batteryservice & powermanager"

* commit '9c17fb191253e9bdc9fc73ba9ff2d590892e5061':
  Frameworks/native: Wall Werror in batteryservice & powermanager

9 years agoresolved conflicts for merge of 07dffa18 to lmp-mr1-dev-plus-aosp
Andreas Gampe [Thu, 13 Nov 2014 22:59:49 +0000 (14:59 -0800)]
resolved conflicts for merge of 07dffa18 to lmp-mr1-dev-plus-aosp

Change-Id: I42d8bc291f4f48f3098754b076889159c4b20e41

9 years agoMerge "Frameworks/native: Wall Werror in batteryservice & powermanager"
Andreas Gampe [Thu, 13 Nov 2014 22:55:41 +0000 (22:55 +0000)]
Merge "Frameworks/native: Wall Werror in batteryservice & powermanager"

9 years agoMerge "Frameworks/native: Wall Werror in surfaceflinger"
Andreas Gampe [Thu, 13 Nov 2014 22:33:47 +0000 (22:33 +0000)]
Merge "Frameworks/native: Wall Werror in surfaceflinger"

9 years agoFrameworks/native: Wall Werror in batteryservice & powermanager
Andreas Gampe [Thu, 13 Nov 2014 22:31:11 +0000 (14:31 -0800)]
Frameworks/native: Wall Werror in batteryservice & powermanager

Turn on -Wall -Werror in services/batteryservice and services/powermanager.
Fix warnings.

Change-Id: I1da667083013379cd8240377c48d63fa5c53033d

9 years agoFrameworks/native: Wall Werror in surfaceflinger
Andreas Gampe [Thu, 13 Nov 2014 22:18:56 +0000 (14:18 -0800)]
Frameworks/native: Wall Werror in surfaceflinger

Turn on -Wall -Werror in services/surfaceflinger. Fix warnings.

Change-Id: Ifef830300d9d4bc657d8f1257c02bfe8c2b4d9c5

9 years agoAdd XML files for new camera2 hardware features
Yin-Chia Yeh [Thu, 13 Nov 2014 18:08:20 +0000 (10:08 -0800)]
Add XML files for new camera2 hardware features

Bug: 18276863
Change-Id: I65fa70e5ee2e9b90f819ca39f933279905b37f38

9 years agokill HAVE_FORKEXEC
Yabin Cui [Tue, 11 Nov 2014 17:26:00 +0000 (09:26 -0800)]
kill HAVE_FORKEXEC

Bug: 18317407
Change-Id: I0c7b5886e5de12bdd95cfcc046bc87e4a6aeef5b

9 years agoam fecc0bf4: Merge "Frameworks/native: Add pragmas to glgen headers"
Andreas Gampe [Wed, 12 Nov 2014 18:40:21 +0000 (18:40 +0000)]
am fecc0bf4: Merge "Frameworks/native: Add pragmas to glgen headers"

* commit 'fecc0bf4f1d8d1939807123d0f01ca1fe377bda4':
  Frameworks/native: Add pragmas to glgen headers

9 years agoMerge "Frameworks/native: Add pragmas to glgen headers"
Andreas Gampe [Wed, 12 Nov 2014 18:30:40 +0000 (18:30 +0000)]
Merge "Frameworks/native: Add pragmas to glgen headers"

9 years agoFrameworks/native: Add pragmas to glgen headers
Andreas Gampe [Tue, 11 Nov 2014 06:51:01 +0000 (22:51 -0800)]
Frameworks/native: Add pragmas to glgen headers

The code currently being generated by glgen is not the cleanest, but
we would like to get core/jni onto -Werror. Thus add pragmas turning
off warnings locally to the C headers.

Also fix signed-comparison in two functions.

Longer term TODO: Emit clean code.

Change-Id: Iee8582f8c0c1de076d64851d3b6ca467afd5bc43

9 years agoam 7b3fd290: Merge "EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer...
Jesse Hall [Wed, 12 Nov 2014 17:31:03 +0000 (17:31 +0000)]
am 7b3fd290: Merge "EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag"

* commit '7b3fd29037bc12c2691e06334bf51171853aa8f3':
  EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag

9 years agoMerge "EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag"
Jesse Hall [Wed, 12 Nov 2014 17:21:26 +0000 (17:21 +0000)]
Merge "EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag"

9 years agoimplement asString() for OMX enumerations used by framework
Lajos Molnar [Fri, 7 Nov 2014 01:05:46 +0000 (17:05 -0800)]
implement asString() for OMX enumerations used by framework

Bug: 18285408
Change-Id: I7893cbf0b13514e0fe9001c90db3c8387c1920c0

9 years agoEGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag
Michal Wajdeczko [Fri, 8 Aug 2014 15:26:25 +0000 (17:26 +0200)]
EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag

Wrapper functions were broken on builds that forced -fno-omit-frame-pointer flag.

Change-Id: I5a80f9587fb3db821b4156af56acda59a0b4579b
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
9 years agoam ca69e8f2: Merge "Add tracking of parcel memory allocations." into lmp-mr1-dev
Dianne Hackborn [Wed, 12 Nov 2014 03:51:05 +0000 (03:51 +0000)]
am ca69e8f2: Merge "Add tracking of parcel memory allocations." into lmp-mr1-dev

* commit 'ca69e8f2d0a1fc963bd170f9b2bf164028761323':
  Add tracking of parcel memory allocations.

9 years agoam 83cbc5a7: Merge "Stop consuming input on error dialogs." into lmp-mr1-dev
Craig Mautner [Wed, 12 Nov 2014 03:51:04 +0000 (03:51 +0000)]
am 83cbc5a7: Merge "Stop consuming input on error dialogs." into lmp-mr1-dev

* commit '83cbc5a7588793435fd986e220fe1f9b88342069':
  Stop consuming input on error dialogs.

9 years agoMerge "Add tracking of parcel memory allocations." into lmp-mr1-dev
Dianne Hackborn [Wed, 12 Nov 2014 00:24:28 +0000 (00:24 +0000)]
Merge "Add tracking of parcel memory allocations." into lmp-mr1-dev

9 years agoAdd tracking of parcel memory allocations.
Dianne Hackborn [Tue, 11 Nov 2014 20:22:53 +0000 (12:22 -0800)]
Add tracking of parcel memory allocations.

Change-Id: I76ffed0e69ccfe70e87d98646f11d4de7c3fd980

9 years agoMerge "Stop consuming input on error dialogs." into lmp-mr1-dev
Craig Mautner [Wed, 12 Nov 2014 00:16:07 +0000 (00:16 +0000)]
Merge "Stop consuming input on error dialogs." into lmp-mr1-dev

9 years agoresolved conflicts for merge of 37878b1e to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Wed, 12 Nov 2014 00:08:29 +0000 (16:08 -0800)]
resolved conflicts for merge of 37878b1e to lmp-mr1-dev-plus-aosp

Change-Id: I748a7d2fb43fd63189f4688edbd0991e2b609dba

9 years agoStop consuming input on error dialogs.
Craig Mautner [Tue, 11 Nov 2014 21:28:43 +0000 (13:28 -0800)]
Stop consuming input on error dialogs.

This code is no longer necessary and was preventing input from
reaching their desired windows. See bug 17648830.

Change-Id: Ib1c026ece70e6fa98343340b89af4199d6d0ffca

9 years agoMerge "Add an installd command to mark the end of boot." into lmp-mr1-dev
Narayan Kamath [Tue, 11 Nov 2014 16:12:58 +0000 (16:12 +0000)]
Merge "Add an installd command to mark the end of boot." into lmp-mr1-dev

9 years agoAdd an installd command to mark the end of boot.
Narayan Kamath [Mon, 10 Nov 2014 15:03:46 +0000 (15:03 +0000)]
Add an installd command to mark the end of boot.

bug: 18280671

Change-Id: I6b3aeaf143ab3b78881f163ec5c17b9bf20172ed

9 years agoAdd support for dalvik.vm.isa.<instruction set>.variant
Ian Rogers [Sun, 9 Nov 2014 00:58:13 +0000 (16:58 -0800)]
Add support for dalvik.vm.isa.<instruction set>.variant

Bug: 18056890
Change-Id: Ia266fa9f2a79158ced82016106aa1cd2529259c9

9 years agoam bfd633e1: Frameworks/native: Fix unused parameter warning
Andreas Gampe [Sun, 9 Nov 2014 00:30:37 +0000 (00:30 +0000)]
am bfd633e1: Frameworks/native: Fix unused parameter warning

* commit 'bfd633e131585d8e924b6a77c66284ec7e5dcc72':
  Frameworks/native: Fix unused parameter warning

9 years agoFrameworks/native: Fix unused parameter warning
Andreas Gampe [Sat, 8 Nov 2014 00:49:48 +0000 (16:49 -0800)]
Frameworks/native: Fix unused parameter warning

Pulled in in hardware/, where -Werror is used.

Change-Id: I13fc31d31fe2f623d39c84862b0c95a28813723d
(cherry picked from commit a32900deec6284973100a29f7b399d061f82b3a8)

9 years agoFrameworks/native: Fix unused parameter warning
Andreas Gampe [Sat, 8 Nov 2014 00:49:48 +0000 (16:49 -0800)]
Frameworks/native: Fix unused parameter warning

Pulled in in hardware/, where -Werror is used.

Change-Id: I13fc31d31fe2f623d39c84862b0c95a28813723d

9 years agoam a2614354: Merge "Add a timeout for releasing SensorService wake_lock." into lmp...
Aravind Akella [Fri, 7 Nov 2014 22:01:03 +0000 (22:01 +0000)]
am a2614354: Merge "Add a timeout for releasing SensorService wake_lock." into lmp-mr1-dev

* commit 'a26143546e4665cc3b07d6527b63a2e4bb04fb9f':
  Add a timeout for releasing SensorService wake_lock.

9 years agoMerge "Add a timeout for releasing SensorService wake_lock." into lmp-mr1-dev
Aravind Akella [Fri, 7 Nov 2014 21:47:48 +0000 (21:47 +0000)]
Merge "Add a timeout for releasing SensorService wake_lock." into lmp-mr1-dev

9 years agoam 98d20f82: Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev
Dan Stoza [Fri, 7 Nov 2014 20:03:42 +0000 (20:03 +0000)]
am 98d20f82: Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev

* commit '98d20f82ca8979b30c81df9639f54ab11e1951f9':
  Add a BufferItem parameter to onFrameAvailable

9 years agoMerge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev
Dan Stoza [Fri, 7 Nov 2014 19:44:30 +0000 (19:44 +0000)]
Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev

9 years agoAdd a BufferItem parameter to onFrameAvailable
Dan Stoza [Tue, 4 Nov 2014 19:37:46 +0000 (11:37 -0800)]
Add a BufferItem parameter to onFrameAvailable

Passes the BufferItem for the queued buffer to the onFrameAvailable
callback so the consumer can track the BufferQueue's contents. Also
adds an onFrameReplaced callback, which is necessary if the consumer
wants to do anything more than simple queue length tracking.

Bug: 18111837
Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0

9 years agoam c6f93a43: Merge "Add missing include to fix libc++ build."
Dan Albert [Fri, 7 Nov 2014 18:37:43 +0000 (18:37 +0000)]
am c6f93a43: Merge "Add missing include to fix libc++ build."

* commit 'c6f93a43d636b0ad16b75adf664c6a33d30b39dd':
  Add missing include to fix libc++ build.

9 years agoMerge "Add missing include to fix libc++ build."
Dan Albert [Fri, 7 Nov 2014 18:04:49 +0000 (18:04 +0000)]
Merge "Add missing include to fix libc++ build."

9 years agoAdd missing include to fix libc++ build.
Dan Albert [Fri, 7 Nov 2014 17:33:44 +0000 (09:33 -0800)]
Add missing include to fix libc++ build.

This was previously committed, but I guess it got lost in the merge
queue.

Bug: 15193147
Change-Id: Ic0e5d90ab403fb833d6a3bb7c55d279c56534869

9 years agoam 106e5820: Merge "installd: Set priority to background for dexopting" into lmp...
Igor Murashkin [Thu, 6 Nov 2014 02:55:23 +0000 (02:55 +0000)]
am 106e5820: Merge "installd: Set priority to background for dexopting" into lmp-mr1-dev

* commit '106e582053121f1934c33a6c98d35377e8ae384a':
  installd: Set priority to background for dexopting

9 years agoam 621c6f3b: Merge "Add missing secure stop methods" into lmp-mr1-dev
Jeff Tinker [Thu, 6 Nov 2014 02:44:25 +0000 (02:44 +0000)]
am 621c6f3b: Merge "Add missing secure stop methods" into lmp-mr1-dev

* commit '621c6f3b13f96b0e84163f355c6f3024cd3afb2e':
  Add missing secure stop methods

9 years agoMerge "installd: Set priority to background for dexopting" into lmp-mr1-dev
Igor Murashkin [Thu, 6 Nov 2014 02:43:56 +0000 (02:43 +0000)]
Merge "installd: Set priority to background for dexopting" into lmp-mr1-dev

9 years agoMerge "Add missing secure stop methods" into lmp-mr1-dev
Jeff Tinker [Thu, 6 Nov 2014 02:33:31 +0000 (02:33 +0000)]
Merge "Add missing secure stop methods" into lmp-mr1-dev

9 years agoinstalld: Set priority to background for dexopting
Igor Murashkin [Wed, 5 Nov 2014 23:21:12 +0000 (15:21 -0800)]
installd: Set priority to background for dexopting

This fixes jank caused by dex2oat while installing an application in the
background.

Bug: 17497551
Change-Id: I5a69b00c0fd76ae22a0d1adb242bef6c18a75743

9 years agoam 26645298: Merge "Fix for corruption when numFds or numInts is too large." into...
Michael Lentine [Wed, 5 Nov 2014 19:06:19 +0000 (19:06 +0000)]
am 26645298: Merge "Fix for corruption when numFds or numInts is too large." into lmp-mr1-dev

* commit '26645298400c0ae3a95731388364263d6a914ee4':
  Fix for corruption when numFds or numInts is too large.

9 years agoMerge "Fix for corruption when numFds or numInts is too large." into lmp-mr1-dev
Michael Lentine [Wed, 5 Nov 2014 18:58:22 +0000 (18:58 +0000)]
Merge "Fix for corruption when numFds or numInts is too large." into lmp-mr1-dev

9 years agoam c90b7d9c: am d12586b8: Merge "Move hwc tests to libc++."
Dan Albert [Wed, 5 Nov 2014 02:57:31 +0000 (02:57 +0000)]
am c90b7d9c: am d12586b8: Merge "Move hwc tests to libc++."

* commit 'c90b7d9c0f1df1cec8afbfebad0f111d878113e7':
  Move hwc tests to libc++.

9 years agoam d12586b8: Merge "Move hwc tests to libc++."
Dan Albert [Wed, 5 Nov 2014 02:41:59 +0000 (02:41 +0000)]
am d12586b8: Merge "Move hwc tests to libc++."

* commit 'd12586b8593cf0cb894d02104a9794ed9dd85d16':
  Move hwc tests to libc++.

9 years agoMerge "Move hwc tests to libc++."
Dan Albert [Wed, 5 Nov 2014 01:38:09 +0000 (01:38 +0000)]
Merge "Move hwc tests to libc++."

9 years agoMove hwc tests to libc++.
Dan Albert [Wed, 5 Nov 2014 01:25:12 +0000 (17:25 -0800)]
Move hwc tests to libc++.

Since these tests were pulling in a static library linked against
stlport, the tests needed to be explicit about which STL they're
using. Might as well be libc++.

Bug: 15193147
Change-Id: I4e0fc4ea10f7982dd04e7baaf57139dd5d55543e

9 years agoam 9cea6ccb: dumpstate: report device uptime mmc performance
Mark Salyzyn [Wed, 5 Nov 2014 00:15:47 +0000 (00:15 +0000)]
am 9cea6ccb: dumpstate: report device uptime mmc performance

* commit '9cea6ccbd8789f9583c78ce2b36ac5dd75717b6c':
  dumpstate: report device uptime mmc performance

9 years agodumpstate: report device uptime mmc performance
Mark Salyzyn [Tue, 4 Nov 2014 17:38:19 +0000 (09:38 -0800)]
dumpstate: report device uptime mmc performance

Bug: 18085992
Change-Id: Ibc0a37d3d2649d1e6708d9357f37ed75f2cea121

9 years agoam fee99040: Revert "Add more logging for dup(fd) failure"
Jesse Hall [Tue, 4 Nov 2014 17:35:23 +0000 (17:35 +0000)]
am fee99040: Revert "Add more logging for dup(fd) failure"

* commit 'fee99040de000a64f6036a7db172fb7c68d9764a':
  Revert "Add more logging for dup(fd) failure"

9 years agoam 8e5cf83a: Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"
Jesse Hall [Tue, 4 Nov 2014 17:35:23 +0000 (17:35 +0000)]
am 8e5cf83a: Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"

* commit '8e5cf83afbe2b671f96d04786cf0d0f967e342f9':
  Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"

9 years agoam de288fe2: Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"
Jesse Hall [Tue, 4 Nov 2014 17:35:22 +0000 (17:35 +0000)]
am de288fe2: Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"

* commit 'de288fe2d43adfa1b2243ae534faaf832bf50491':
  Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"

9 years agoRevert "Add more logging for dup(fd) failure"
Jesse Hall [Tue, 4 Nov 2014 16:36:31 +0000 (08:36 -0800)]
Revert "Add more logging for dup(fd) failure"

Underlying bug has been fixed, extra debug code no longer needed

This reverts commit 36273c991b189c5516819f4d5e3f83061c320593.

Change-Id: Ia47f1ae9ee7338329bfb8d710aff57e15e944f20

9 years agoRevert "Parcel: extra validation/debug code for writeDupFileDescriptor"
Jesse Hall [Tue, 4 Nov 2014 16:35:12 +0000 (08:35 -0800)]
Revert "Parcel: extra validation/debug code for writeDupFileDescriptor"

Underlying bug has been fixed, extra debug code no longer needed.

This reverts commit ccf851f108c008d086b7f3c3923d60d385985e71.

Change-Id: I19ad9239efdf1d8f70cd74af9b7c2ae97713208f

9 years agoRevert "bufferqueue: workaround: allow NULL fence with queueBuffer"
Jesse Hall [Tue, 4 Nov 2014 16:30:48 +0000 (08:30 -0800)]
Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"

Underlying bug has been fixed, workaround no longer needed

This reverts commit 5b0cbcf9464dbcda9d19ae978911222806ec8bdc.

Change-Id: Ic9532b407d1291a7780a12a75aaa117ae4aa9fcb

9 years agoam ac5cd96f: am dbab409c: Merge "Avoid two warnings from clang."
Chih-Hung Hsieh [Tue, 4 Nov 2014 01:58:17 +0000 (01:58 +0000)]
am ac5cd96f: am dbab409c: Merge "Avoid two warnings from clang."

* commit 'ac5cd96fe24690d9e0ae823c77334b8579139aa2':
  Avoid two warnings from clang.

9 years agoam dbab409c: Merge "Avoid two warnings from clang."
Chih-Hung Hsieh [Tue, 4 Nov 2014 01:24:07 +0000 (01:24 +0000)]
am dbab409c: Merge "Avoid two warnings from clang."

* commit 'dbab409c49ca5dd6686912d0b3eeb19ef1c37a3e':
  Avoid two warnings from clang.

9 years agoMerge "Avoid two warnings from clang."
Chih-Hung Hsieh [Tue, 4 Nov 2014 01:14:16 +0000 (01:14 +0000)]
Merge "Avoid two warnings from clang."

9 years agoam 7aa0c47e: sf: Add a NULL check in getDisplayConfigs
Naseer Ahmed [Mon, 3 Nov 2014 22:31:50 +0000 (22:31 +0000)]
am 7aa0c47e: sf: Add a NULL check in getDisplayConfigs

* commit '7aa0c47e4205c6fca136c38f272d911c25c8a8fa':
  sf: Add a NULL check in getDisplayConfigs

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

9 years agosf: Add a NULL check in getDisplayConfigs
Naseer Ahmed [Mon, 3 Nov 2014 19:49:23 +0000 (14:49 -0500)]
sf: Add a NULL check in getDisplayConfigs

Validate the display binder by adding a NULL check in getDisplayConfigs.
This will prevent a false match if the caller queries the display
configs for an inactive display (whose binder is NULL by default).

Without this change we might end up attempting to index the display
config array, which is unpopulated for inactive displays, and this will
result in a crash. (See getDisplayInfo in SurfaceComposerClient.cpp for
an example of this scenario)

Change-Id: I1a12f43b7c375b9c01998dadd5b658275c733fb2
Acked-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
9 years agoAdd a timeout for releasing SensorService wake_lock.
Aravind Akella [Thu, 30 Oct 2014 00:55:20 +0000 (17:55 -0700)]
Add a timeout for releasing SensorService wake_lock.

 If SensorService is holding a wake_lock and there are no acknowledgements
 from ANY app within 5 seconds, release the wake_lock and reset the wake_lock
 refcounts for all connections.

Bug: 16874240
Change-Id: I5e950dd393c20173c439cbd5a4ba614ee09d61f4

9 years agoam 793fc0e1: Merge "Fix crash when user provides large values in the Parcel." into...
Michael Lentine [Sat, 1 Nov 2014 00:33:29 +0000 (00:33 +0000)]
am 793fc0e1: Merge "Fix crash when user provides large values in the Parcel." into lmp-mr1-dev

* commit '793fc0e13d25bdecda1219999f8be2cb3c121d20':
  Fix crash when user provides large values in the Parcel.

9 years agoMerge "Fix crash when user provides large values in the Parcel." into lmp-mr1-dev
Michael Lentine [Fri, 31 Oct 2014 23:37:47 +0000 (23:37 +0000)]
Merge "Fix crash when user provides large values in the Parcel." into lmp-mr1-dev

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

9 years agoam 98536859: Merge "Fix output of pointers for 64bit devices." into lmp-mr1-dev
Michael Lentine [Fri, 31 Oct 2014 22:58:19 +0000 (22:58 +0000)]
am 98536859: Merge "Fix output of pointers for 64bit devices." into lmp-mr1-dev

* commit '9853685931298ba02066ebb50a8377ad4aa80f00':
  Fix output of pointers for 64bit devices.

9 years agoam affc4d80: Merge "surfaceflinger: fix -Wunused-parameter warning" into lmp-mr1-dev
Jesse Hall [Fri, 31 Oct 2014 22:57:44 +0000 (22:57 +0000)]
am affc4d80: Merge "surfaceflinger: fix -Wunused-parameter warning" into lmp-mr1-dev

* commit 'affc4d809edbcb3b0e49e5ccc9821b9695a57d44':
  surfaceflinger: fix -Wunused-parameter warning

9 years agoam c7636f60: Merge "surfaceflinger: fix -Wsign-compare warnings" into lmp-mr1-dev
Jesse Hall [Fri, 31 Oct 2014 22:57:43 +0000 (22:57 +0000)]
am c7636f60: Merge "surfaceflinger: fix -Wsign-compare warnings" into lmp-mr1-dev

* commit 'c7636f606270a4b79d745ec1acf049daedfa0e2f':
  surfaceflinger: fix -Wsign-compare warnings

9 years agoam 6e74e3cc: Merge "surfaceflinger: fix -Woverloaded-virtual warning" into lmp-mr1-dev
Jesse Hall [Fri, 31 Oct 2014 22:57:42 +0000 (22:57 +0000)]
am 6e74e3cc: Merge "surfaceflinger: fix -Woverloaded-virtual warning" into lmp-mr1-dev

* commit '6e74e3ccd972fe90d9998f6b683e25dca38f470d':
  surfaceflinger: fix -Woverloaded-virtual warning

9 years agoresolved conflicts for merge of 04c9683a to lmp-mr1-dev-plus-aosp
Jesse Hall [Fri, 31 Oct 2014 22:41:03 +0000 (15:41 -0700)]
resolved conflicts for merge of 04c9683a to lmp-mr1-dev-plus-aosp

Change-Id: I83fdaf504ca37536c277a146c1d624e44cfe11b0

9 years agoMerge "Fix output of pointers for 64bit devices." into lmp-mr1-dev
Michael Lentine [Fri, 31 Oct 2014 18:39:22 +0000 (18:39 +0000)]
Merge "Fix output of pointers for 64bit devices." into lmp-mr1-dev

9 years agoAvoid two warnings from clang.
Chih-Hung Hsieh [Fri, 24 Oct 2014 21:10:09 +0000 (14:10 -0700)]
Avoid two warnings from clang.

Clang compiler warns about undefined static functions like getReturnString
before all references are removed inside IF_LOG_COMMANDS.
To remove such warnings, we can leave those static functions defined
and the compiler will remove them at the end when they are not used.

Add a cast to long before converting from int to void*,
to avoid type cast warnings on 64 bit targets.

BUG: 17043248
Change-Id: Ica31101522279d2c8eacc90e2939767002fb827b

9 years agoFix output of pointers for 64bit devices.
Michael Lentine [Fri, 31 Oct 2014 18:08:19 +0000 (11:08 -0700)]
Fix output of pointers for 64bit devices.

Change-Id: I279c1cf8d4c126b98f4a92ca807ade3749d01ff0

9 years agoMerge "surfaceflinger: fix -Wunused-parameter warning" into lmp-mr1-dev
Jesse Hall [Fri, 31 Oct 2014 16:59:45 +0000 (16:59 +0000)]
Merge "surfaceflinger: fix -Wunused-parameter warning" into lmp-mr1-dev

9 years agoMerge "surfaceflinger: fix -Wsign-compare warnings" into lmp-mr1-dev
Jesse Hall [Fri, 31 Oct 2014 16:59:26 +0000 (16:59 +0000)]
Merge "surfaceflinger: fix -Wsign-compare warnings" into lmp-mr1-dev

9 years agoMerge "surfaceflinger: fix -Woverloaded-virtual warning" into lmp-mr1-dev
Jesse Hall [Fri, 31 Oct 2014 16:59:11 +0000 (16:59 +0000)]
Merge "surfaceflinger: fix -Woverloaded-virtual warning" into lmp-mr1-dev

9 years agoMerge "surfaceflinger: fix -Wmismatched-tags warnings" into lmp-mr1-dev
Jesse Hall [Fri, 31 Oct 2014 16:58:44 +0000 (16:58 +0000)]
Merge "surfaceflinger: fix -Wmismatched-tags warnings" into lmp-mr1-dev

9 years agosurfaceflinger: fix -Wunused-parameter warning
Jesse Hall [Fri, 8 Aug 2014 05:48:06 +0000 (22:48 -0700)]
surfaceflinger: fix -Wunused-parameter warning

warning: unused parameter 'mustRecompose' [-Wunused-parameter]

Change-Id: I6b8c671189639d851bfa5548742de988d6fa2687
(cherry picked from d2e514f71709e6af3dbc754e59686129737f2300)

9 years agosurfaceflinger: fix -Wsign-compare warnings
Jesse Hall [Fri, 8 Aug 2014 05:43:06 +0000 (22:43 -0700)]
surfaceflinger: fix -Wsign-compare warnings

warning: comparison of integers of different signs: 'int' and 'size_t'
(aka 'unsigned int') [-Wsign-compare]

arning: comparison of integers of different signs: 'int32_t' (aka
'int') and 'const uint32_t' (aka 'const unsigned int')
[-Wsign-compare]

Change-Id: I823257aa7218c5fd492a3277853210db539bb2e2
(cherry picked from f9bfdc6c9449143eed674c03e15dd8278296d32b)

9 years agosurfaceflinger: fix -Woverloaded-virtual warning
Jesse Hall [Fri, 8 Aug 2014 05:33:14 +0000 (22:33 -0700)]
surfaceflinger: fix -Woverloaded-virtual warning

warning: 'android::LayerDim::isOpaque' hides overloaded virtual function
[-Woverloaded-virtual]

Change-Id: Ie27a6c943f485bc89ce11e424a4e7d99805d4dd0
(cherry picked from commit 382574d116759ccc19463c03db841e3d6e2d4424)

9 years agosurfaceflinger: fix -Wmismatched-tags warnings
Jesse Hall [Fri, 8 Aug 2014 05:19:07 +0000 (22:19 -0700)]
surfaceflinger: fix -Wmismatched-tags warnings

warning: struct 'HWComposer' was previously declared as a class
[-Wmismatched-tags]

warning: class 'DisplayInfo' was previously declared as a struct
[-Wmismatched-tags]

Change-Id: I13db9f8aab3a957ce8ff8d64598dae1807d6fe7e
(cherry picked from commit 646f54105018e99ef4a30ee41f01f7d1ab66c38e)

9 years agoAdd missing secure stop methods
Jeff Tinker [Fri, 31 Oct 2014 07:42:33 +0000 (00:42 -0700)]
Add missing secure stop methods

b/18053197
b/18076411

Change-Id: I42b97f7e39d6e9e58990b41a4c4b5a7c9b8a49cf

9 years agoam 7b97351b: Merge "Initialize ARect fields in default ctor" into lmp-mr1-dev
Dan Stoza [Thu, 30 Oct 2014 20:58:44 +0000 (20:58 +0000)]
am 7b97351b: Merge "Initialize ARect fields in default ctor" into lmp-mr1-dev

* commit '7b97351b68e96ea67380140266abb897fe1be57d':
  Initialize ARect fields in default ctor

9 years agoam 1834f8ea: GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT
Jesse Hall [Thu, 30 Oct 2014 20:58:43 +0000 (20:58 +0000)]
am 1834f8ea: GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT

* commit '1834f8ea975e9a882b44dc479320fe02e306e630':
  GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT

9 years agoam 1f3efb11: Don\'t run large virtual displays through HWC
Dan Stoza [Thu, 30 Oct 2014 20:58:42 +0000 (20:58 +0000)]
am 1f3efb11: Don\'t run large virtual displays through HWC

* commit '1f3efb11ff8c884a254f4272f0d1ee0b77ceff2f':
  Don't run large virtual displays through HWC

9 years agoam f3929d66: am e42cba8f: Merge "Initialize ARect fields in default ctor"
Dan Stoza [Wed, 29 Oct 2014 23:08:21 +0000 (23:08 +0000)]
am f3929d66: am e42cba8f: Merge "Initialize ARect fields in default ctor"

* commit 'f3929d6611bb8278e561fdd4b05a21915ac9de76':
  Initialize ARect fields in default ctor

9 years agoam e42cba8f: Merge "Initialize ARect fields in default ctor"
Dan Stoza [Wed, 29 Oct 2014 23:04:05 +0000 (23:04 +0000)]
am e42cba8f: Merge "Initialize ARect fields in default ctor"

* commit 'e42cba8feb2bbfe385f162a06e41e2c2c0f40c99':
  Initialize ARect fields in default ctor

9 years agoMerge "Initialize ARect fields in default ctor"
Dan Stoza [Wed, 29 Oct 2014 22:58:47 +0000 (22:58 +0000)]
Merge "Initialize ARect fields in default ctor"