OSDN Git Service

android-x86/frameworks-native.git
10 years agoMerge "surfaceflinger: add frame duration logging"
Jamie Gennis [Wed, 24 Jul 2013 20:47:37 +0000 (20:47 +0000)]
Merge "surfaceflinger: add frame duration logging"

10 years agoMerge "libutils: give BasicHashtableImpl a virtual destructor"
Alex Ray [Wed, 24 Jul 2013 20:00:35 +0000 (20:00 +0000)]
Merge "libutils: give BasicHashtableImpl a virtual destructor"

10 years agoMerge "add static dependency on liblog"
Colin Cross [Wed, 24 Jul 2013 17:53:36 +0000 (17:53 +0000)]
Merge "add static dependency on liblog"

10 years agolibutils: give BasicHashtableImpl a virtual destructor
Alex Ray [Wed, 17 Jul 2013 23:57:21 +0000 (16:57 -0700)]
libutils: give BasicHashtableImpl a virtual destructor

Change-Id: I4ec590b060d732af5fe525670becbe778684247b

10 years agoadd static dependency on liblog
Colin Cross [Wed, 24 Jul 2013 00:39:35 +0000 (17:39 -0700)]
add static dependency on liblog

Change-Id: Ibf8733142d52e4ffac2e3b26932d7196fb79c5a7

10 years agodumpstate: remove libutils dependency
Alex Ray [Tue, 23 Jul 2013 20:44:34 +0000 (13:44 -0700)]
dumpstate: remove libutils dependency

Change-Id: I9745f389402c01b90877612e060ac996eba99964

10 years agosurfaceflinger: add frame duration logging
Jamie Gennis [Wed, 17 Jul 2013 03:12:42 +0000 (20:12 -0700)]
surfaceflinger: add frame duration logging

Change-Id: Ib414a45e7e191f23a2726cbbbeb606e9ce68a3b5

10 years agoutils: move thread enums to system/core
Alex Ray [Wed, 24 Jul 2013 00:06:55 +0000 (17:06 -0700)]
utils: move thread enums to system/core

Change-Id: Ia97963cc9acf8661d01355786f5e7e7bf54581c2

10 years agoMerge "libbinder: include sys/uio.h instead of cutils/uio.h"
Colin Cross [Tue, 23 Jul 2013 23:35:48 +0000 (23:35 +0000)]
Merge "libbinder: include sys/uio.h instead of cutils/uio.h"

10 years agolibbinder: include sys/uio.h instead of cutils/uio.h
Colin Cross [Tue, 23 Jul 2013 21:52:34 +0000 (14:52 -0700)]
libbinder: include sys/uio.h instead of cutils/uio.h

libbinder is only built for the target, where bionic will provide
uio, so it does not need to include the libcutils wrapper around
uio for windows.

Change-Id: Ifc2dd353bf7ed51bf08ec0ae91c43b12830f94ba

10 years agoMerge "libbinder: add libutils dependency"
Alex Ray [Tue, 23 Jul 2013 21:49:37 +0000 (21:49 +0000)]
Merge "libbinder: add libutils dependency"

10 years agoMerge "Add controller numbers for gamepads / joysticks"
Michael Wright [Tue, 23 Jul 2013 20:52:42 +0000 (20:52 +0000)]
Merge "Add controller numbers for gamepads / joysticks"

10 years agolibbinder: add libutils dependency
Alex Ray [Tue, 23 Jul 2013 20:42:12 +0000 (13:42 -0700)]
libbinder: add libutils dependency

Change-Id: I30c7291b04788c98faa43843a51b026b8a01932c

10 years agoMerge "Add C++ library for ConnectivityManager"
Geremy Condra [Tue, 23 Jul 2013 17:52:22 +0000 (17:52 +0000)]
Merge "Add C++ library for ConnectivityManager"

10 years agoMerge "fix log messages and bogus error message"
Mathias Agopian [Tue, 23 Jul 2013 01:06:00 +0000 (01:06 +0000)]
Merge "fix log messages and bogus error message"

10 years agofix log messages and bogus error message
Mathias Agopian [Tue, 23 Jul 2013 01:00:53 +0000 (18:00 -0700)]
fix log messages and bogus error message

also assert when releasing a buffer and it has
been queued

Change-Id: I6f78d9ceb406ec85ff46c7b6d0c047b14063e3d0

10 years agoMerge "Fix AppOsManager missing mutex unlock."
Zhijun He [Tue, 23 Jul 2013 00:15:27 +0000 (00:15 +0000)]
Merge "Fix AppOsManager missing mutex unlock."

10 years agoFix AppOsManager missing mutex unlock.
Zhijun He [Tue, 23 Jul 2013 00:09:35 +0000 (17:09 -0700)]
Fix AppOsManager missing mutex unlock.

Need unlock the mutex after finish the getToken operation.

Change-Id: Icd83b383913d06e4d60976857aa314c3008ebea1

10 years agoAdd NFC host-based card emulation feature.
Martijn Coenen [Mon, 22 Jul 2013 23:57:17 +0000 (16:57 -0700)]
Add NFC host-based card emulation feature.

Change-Id: I699817731cdaf7139daeb10d4e24e376ba66fc8e

10 years agoAdd controller numbers for gamepads / joysticks
Michael Wright [Wed, 17 Jul 2013 20:23:26 +0000 (13:23 -0700)]
Add controller numbers for gamepads / joysticks

Change-Id: I5294aabbadb836a6a4c7ce76a670abcf50c1f885

10 years agomove services executables sources in their respective src folder
Mathias Agopian [Mon, 22 Jul 2013 19:20:28 +0000 (12:20 -0700)]
move services executables sources in their respective src folder

Change-Id: Ic65434a26c7fed1699abf0851fec6faa40e09c0c

10 years agoMerge changes Ic45929f3,Ic63f4f96,I1e703d36,I691f9507
Mathias Agopian [Sat, 20 Jul 2013 01:02:47 +0000 (01:02 +0000)]
Merge changes Ic45929f3,Ic63f4f96,I1e703d36,I691f9507

* changes:
  make sure to reset the framenumber when a buffer is marked FREE
  Make ANW.setSwapInterval(0) work again
  BuffferQueue disconnect is now always asynchrnous
  BufferQueue improvements and APIs changes

10 years agomake sure to reset the framenumber when a buffer is marked FREE
Mathias Agopian [Fri, 19 Jul 2013 05:25:55 +0000 (22:25 -0700)]
make sure to reset the framenumber when a buffer is marked FREE

Change-Id: Ic45929f35553de209801f74e8006fb1bf0b25b45

10 years agoMake ANW.setSwapInterval(0) work again
Mathias Agopian [Fri, 19 Jul 2013 05:10:56 +0000 (22:10 -0700)]
Make ANW.setSwapInterval(0) work again

we can now queue/dequeue a buffer in asynchrnous mode by using the
async parameter to these calls. async mode is only specified
with those calls (it is not modal anymore).

as a consequence it can only be specified when the buffer count
is not overidden, as error is returned otherwise.

Change-Id: Ic63f4f96f671cb9d65c4cecbcc192615e09a8b6b

10 years agoMerge "Add input device property for buttons under touchpads"
Michael Wright [Fri, 19 Jul 2013 22:45:38 +0000 (22:45 +0000)]
Merge "Add input device property for buttons under touchpads"

10 years agoBuffferQueue disconnect is now always asynchrnous
Mathias Agopian [Thu, 18 Jul 2013 22:55:03 +0000 (15:55 -0700)]
BuffferQueue disconnect is now always asynchrnous

we tag queued buffers with the "bufferqueue cannot block" flag
and use that bit to discard a buffer in the queue by new ones
comming in. this allows us to remove the buffer queue drain in
disconnect while maintaining the right behaviour if it gets
connected again (since each buffer remembers how it was enqueued).

Change-Id: I1e703d363a687b70b19ba49cef32213116e8bd3f

10 years agoBufferQueue improvements and APIs changes
Mathias Agopian [Wed, 17 Jul 2013 05:56:09 +0000 (22:56 -0700)]
BufferQueue improvements and APIs changes

this is the first step of a series of improvements to
BufferQueue. A few things happen in this change:

- setSynchronousMode() goes away as well as the SynchronousModeAllowed flag
- BufferQueue now defaults to (what used to be) synchronous mode
- a new "controlled by app" flag is passed when creating consumers and producers
  those flags are used to put the BufferQueue in a mode where it
  will never block if both flags are set. This is achieved by:
  - returning an error from dequeueBuffer() if it would block
  - making sure a buffer is always available by replacing
    the previous buffer with the new one in queueBuffer()
    (note: this is similar to what asynchrnous mode used to be)

Note: in this change EGL's swap-interval 0 is broken; this will be
fixed in another change.

Change-Id: I691f9507d6e2e158287e3039f2a79a4d4434211d

10 years agoMerge "Follow framework change to track started ops by proc."
Dianne Hackborn [Thu, 18 Jul 2013 18:13:14 +0000 (18:13 +0000)]
Merge "Follow framework change to track started ops by proc."

10 years agoFollow framework change to track started ops by proc.
Dianne Hackborn [Thu, 18 Jul 2013 00:26:15 +0000 (17:26 -0700)]
Follow framework change to track started ops by proc.

Change-Id: Ibbce3bf6556f45751c74bab045b46377e56bff9b

10 years agoMerge "Clarify some android-specific OMX extensions for native buffers."
Lajos Molnar [Wed, 17 Jul 2013 22:30:28 +0000 (22:30 +0000)]
Merge "Clarify some android-specific OMX extensions for native buffers."

10 years agoClarify some android-specific OMX extensions for native buffers.
Lajos Molnar [Wed, 17 Jul 2013 21:55:55 +0000 (14:55 -0700)]
Clarify some android-specific OMX extensions for native buffers.

Clarify the use of enableAndroidNativeBuffers and
storeMetaDataInBuffers extensions.

Change-Id: Ia1ca4a262525de74f133619f92ef6ba8271a6f72
Signed-off-by: Lajos Molnar <lajos@google.com>
10 years agoam 082fc1ca: am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"
Jesse Hall [Wed, 17 Jul 2013 21:13:56 +0000 (14:13 -0700)]
am 082fc1ca: am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"

* commit '082fc1cae6a0c283de3ad0d848e0757de3154d0b':
  EGL: Fix error for eglCreateWindowSurface

10 years agoam ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"
Jesse Hall [Wed, 17 Jul 2013 21:10:00 +0000 (14:10 -0700)]
am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"

* commit 'ae9610220b5f509687b840532f95f3638ee0146b':
  EGL: Fix error for eglCreateWindowSurface

10 years agoMerge "EGL: Fix error for eglCreateWindowSurface"
Jesse Hall [Wed, 17 Jul 2013 21:06:54 +0000 (21:06 +0000)]
Merge "EGL: Fix error for eglCreateWindowSurface"

10 years agoEGL: Fix error for eglCreateWindowSurface
Jonathan Hamilton [Wed, 17 Jul 2013 16:41:42 +0000 (09:41 -0700)]
EGL: Fix error for eglCreateWindowSurface

The EGL 1.4 spec section 3.5.1 states that EGL_BAD_ALLOC should be set
if the supplied window already has an associated EGLSurface, not
EGL_BAD_NATIVE_WINDOW as is currently set.

Change-Id: If1598617f4e31904f2045560ae1cdf49d8a697dc

10 years agoam 384f55ff: (-s ours) Merge "Tweaks for forward compatibility" into stage-aosp-master
Jean-Baptiste Queru [Tue, 16 Jul 2013 22:36:08 +0000 (15:36 -0700)]
am 384f55ff: (-s ours) Merge "Tweaks for forward compatibility" into stage-aosp-master

* commit '384f55fff01a9d0630b801abd016b82ded4c5984':
  Tweaks for forward compatibility

10 years agoAdd C++ library for ConnectivityManager
Chad Brubaker [Tue, 16 Jul 2013 17:18:31 +0000 (10:18 -0700)]
Add C++ library for ConnectivityManager

Add C++ library for access to ConnectivityManager's markSocketAsUser.

Change-Id: Icb9faa5be8c11d10e5c4a3bf95d338319449399c

10 years agoFix build -- update for function signature change
Jesse Hall [Tue, 16 Jul 2013 20:46:20 +0000 (13:46 -0700)]
Fix build -- update for function signature change

Change-Id: I9c2448d5853c69ec7e962847fdaba9a99906cc42

10 years agoMerge "Rewrite VirtualDisplaySurface"
Jesse Hall [Tue, 16 Jul 2013 20:29:29 +0000 (20:29 +0000)]
Merge "Rewrite VirtualDisplaySurface"

10 years agoMerge "Tweaks for forward compatibility" into stage-aosp-master
Jean-Baptiste Queru [Tue, 16 Jul 2013 20:11:18 +0000 (20:11 +0000)]
Merge "Tweaks for forward compatibility" into stage-aosp-master

10 years agoTweaks for forward compatibility
Jean-Baptiste Queru [Tue, 16 Jul 2013 16:38:03 +0000 (09:38 -0700)]
Tweaks for forward compatibility

Change-Id: Id6a96521b3fd5bd2a034fe89cfa4d3a179a66328

10 years agoalways pass the BufferQueue explicitely to consumers
Ying Wang [Tue, 16 Jul 2013 05:20:35 +0000 (22:20 -0700)]
always pass the BufferQueue explicitely to consumers

to fix tests build.

Change-Id: I70b9cf5b0d76df709e474181eeb7c42a54ecf43a

10 years agoMerge "always pass the BufferQueue explicitely to consumers"
Mathias Agopian [Tue, 16 Jul 2013 02:17:58 +0000 (02:17 +0000)]
Merge "always pass the BufferQueue explicitely to consumers"

10 years agoMerge "Completely remove skia dependency from libinput."
Jeff Brown [Tue, 16 Jul 2013 01:49:55 +0000 (01:49 +0000)]
Merge "Completely remove skia dependency from libinput."

10 years agoCompletely remove skia dependency from libinput.
Jeff Brown [Tue, 16 Jul 2013 01:07:09 +0000 (18:07 -0700)]
Completely remove skia dependency from libinput.

Including the tests...

Change-Id: I6ec8f1a5ae7e7514831d7e3b430b3b37b0841b92

10 years agoMerge "Add a keycode to switch audio tracks (2/2)"
michaelwr [Tue, 16 Jul 2013 01:38:36 +0000 (01:38 +0000)]
Merge "Add a keycode to switch audio tracks (2/2)"

10 years agoMerge "Fix issue #9860494: Waiting for service batteryinfo..."
Dianne Hackborn [Tue, 16 Jul 2013 01:15:44 +0000 (01:15 +0000)]
Merge "Fix issue #9860494: Waiting for service batteryinfo..."

10 years agoMerge "Fix PDK build."
Jeff Brown [Tue, 16 Jul 2013 00:44:19 +0000 (00:44 +0000)]
Merge "Fix PDK build."

10 years agoFix PDK build.
Jeff Brown [Tue, 16 Jul 2013 00:28:19 +0000 (17:28 -0700)]
Fix PDK build.

Quick hack to remove Skia dependency from libinput.

Change-Id: Ibaf2e312236f5e3f7251fa903ce381456a77467c

10 years agoMerge "Change legacy "persona" references to userid_t."
Jeff Sharkey [Tue, 16 Jul 2013 00:19:19 +0000 (00:19 +0000)]
Merge "Change legacy "persona" references to userid_t."

10 years agoAdd skeleton of input flinger.
Jeff Brown [Mon, 15 Jul 2013 20:27:05 +0000 (13:27 -0700)]
Add skeleton of input flinger.

Change-Id: I7f25080e446d4d3d9de9b18fe432a09bc751e0d9

10 years agoFix issue #9860494: Waiting for service batteryinfo...
Dianne Hackborn [Mon, 15 Jul 2013 22:20:11 +0000 (15:20 -0700)]
Fix issue #9860494: Waiting for service batteryinfo...

I changed the name of the service, this needs to follow.

Change-Id: Id8e346cee9d75cfe142cd43f6aea43302878b6dc

10 years agoChange legacy "persona" references to userid_t.
Jeff Sharkey [Wed, 10 Jul 2013 23:55:46 +0000 (16:55 -0700)]
Change legacy "persona" references to userid_t.

Offers stronger typing with no functional change.

Change-Id: I09f0262470feec5cfdf26658f998c20550af84d4

10 years agoMake getCallingUid/Pid const.
Jeff Brown [Fri, 12 Jul 2013 23:32:00 +0000 (16:32 -0700)]
Make getCallingUid/Pid const.

Change-Id: I1853b21eaa45d85274189dfd72f73fec48d0d6b7

10 years agoRewrite VirtualDisplaySurface
Jesse Hall [Sun, 7 Apr 2013 06:12:29 +0000 (23:12 -0700)]
Rewrite VirtualDisplaySurface

The previous implementation assumed that the HWC could read and write
the same buffer on frames that involved both GLES and HWC composition.
It turns out some hardware can't do this. The new implementation
maintains a scratch buffer pool to use on these mixed frames, but on
GLES-only or HWC-only frames still does composition directly into the
output buffer.

Bug: 8384764
Change-Id: I7a3addb34fad9bfcbdabbb8b635083e10223df69

10 years agoMerge "dumpstate: Show SELinux process labels"
Nick Kralevich [Mon, 15 Jul 2013 19:36:39 +0000 (19:36 +0000)]
Merge "dumpstate: Show SELinux process labels"

10 years agodumpstate: Show SELinux process labels
Nick Kralevich [Mon, 15 Jul 2013 19:21:40 +0000 (12:21 -0700)]
dumpstate: Show SELinux process labels

Change-Id: Ie19586a3b733bd4420f6b20b5d253d42c2f165ea

10 years agoam 65752b2b: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Mon, 15 Jul 2013 16:37:54 +0000 (09:37 -0700)]
am 65752b2b: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge

* commit '65752b2b516204d890e59dbc395608d7dec0cff5':

10 years agoReconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Mon, 15 Jul 2013 16:33:20 +0000 (09:33 -0700)]
Reconcile with jb-mr2-zeroday-release - do not merge

Change-Id: Ia73ebcebfb83a21442a31dc7280763484e47534c

10 years agomerge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
The Android Automerger [Mon, 15 Jul 2013 15:19:12 +0000 (08:19 -0700)]
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev

10 years agoalways pass the BufferQueue explicitely to consumers
Mathias Agopian [Sat, 13 Jul 2013 05:06:26 +0000 (22:06 -0700)]
always pass the BufferQueue explicitely to consumers

Change-Id: I883b0a7b19d8e722f9ab714ba6f49e658b02ca86

10 years agoMerge "SurfaceFlinger: EventThread: Fix Vsync array size."
Jesse Hall [Fri, 12 Jul 2013 23:31:57 +0000 (23:31 +0000)]
Merge "SurfaceFlinger: EventThread: Fix Vsync array size."

10 years agoSurfaceFlinger: EventThread: Fix Vsync array size.
Saurabh Shah [Fri, 12 Jul 2013 21:42:40 +0000 (14:42 -0700)]
SurfaceFlinger: EventThread: Fix Vsync array size.

Vsync array size is specified as HWC_DISPLAY_TYPES_SUPPORTED whose
value luckily happens to be 2. That enum is actually used for querying
hwc for the number of displays supported.

The implementation file EventThread.cpp correctly accesses the array
upto HWC_NUM_DISPLAY_TYPES

Change-Id: I36e3f0913e7d6fda7bbf4449c1fb32c7f18bb934
Signed-off-by: Amara Venkata Mastan Manoj Kumar<manojavm@codeaurora.org>
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
10 years agoresolved conflicts for merge of 00aea5c5 to master
Mathias Agopian [Fri, 12 Jul 2013 21:19:10 +0000 (14:19 -0700)]
resolved conflicts for merge of 00aea5c5 to master

Change-Id: Ie1769be863ee2d411eae451907a928db57882e14

10 years agoam ac9a96da: fix a dead-lock in sensorservice
Mathias Agopian [Fri, 12 Jul 2013 20:17:05 +0000 (13:17 -0700)]
am ac9a96da: fix a dead-lock in sensorservice

* commit 'ac9a96da65f6eae4513654adaad8a457d1c1575c':
  fix a dead-lock in sensorservice

10 years agoFix cmd line arguments for usagestats.
Dianne Hackborn [Thu, 11 Jul 2013 18:45:18 +0000 (11:45 -0700)]
Fix cmd line arguments for usagestats.

Change-Id: I9a1436aa1d1665924ba62a568bb4b66d67ae2814

10 years agofix a dead-lock in sensorservice
Mathias Agopian [Fri, 12 Jul 2013 09:01:16 +0000 (02:01 -0700)]
fix a dead-lock in sensorservice

sensorservice would deadlock if for some reason
a sensor failed to enable.

simplifed the code a bit, and made it behave a little
closer to mr1.1 -- I couldn't convince myself that
some changes in how locks were used were correct.

Bug: 9794362
Change-Id: I6110f5dbb67e543f1c71d127de2299232badb36a

10 years agoAdd a keycode to switch audio tracks (2/2)
Jaekyun Seok [Mon, 8 Jul 2013 04:56:02 +0000 (13:56 +0900)]
Add a keycode to switch audio tracks (2/2)

A key to switch audio tracks is general on media devices like blu-ray.

Bug: 9728155
Change-Id: I13ebbc64321f3cf10370f9a605f3d94ea0d16d6d

10 years agoAdd input device property for buttons under touchpads
Michael Wright [Thu, 11 Jul 2013 01:05:15 +0000 (18:05 -0700)]
Add input device property for buttons under touchpads

Bug: 8990644
Change-Id: I6df5fb9e11199173d62523928082db428af55394

10 years agoam 9201798c: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Thu, 11 Jul 2013 17:17:28 +0000 (10:17 -0700)]
am 9201798c: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge

* commit '9201798cd99d0578fb781aea03635304e49ee3f3':

10 years agoam 47f31b19: (-s ours) Reconcile with jb-mr2-release - do not merge
The Android Open Source Project [Thu, 11 Jul 2013 17:17:06 +0000 (10:17 -0700)]
am 47f31b19: (-s ours) Reconcile with jb-mr2-release - do not merge

* commit '47f31b19811a177baa1ae868282374970295caeb':
  Find non-extension GLES wrappers in eglGetProcAddress

10 years agoam 54d97c88: am 9da67a94: am 67481607: Merge "Revert "Second try at adding a compatib...
Elliott Hughes [Thu, 11 Jul 2013 17:16:47 +0000 (10:16 -0700)]
am 54d97c88: am 9da67a94: am 67481607: Merge "Revert "Second try at adding a compatibility symbol for the MemoryBase constructor.""

* commit '54d97c88b57d2c341f0629c9648d4400a34e4f41':
  Revert "Second try at adding a compatibility symbol for the MemoryBase constructor."

10 years agoMerge "resolved conflicts for merge of 5477d0e4 to master"
Jesse Hall [Thu, 11 Jul 2013 17:07:26 +0000 (17:07 +0000)]
Merge "resolved conflicts for merge of 5477d0e4 to master"

10 years agoresolved conflicts for merge of 5477d0e4 to master
Jesse Hall [Thu, 11 Jul 2013 16:40:35 +0000 (09:40 -0700)]
resolved conflicts for merge of 5477d0e4 to master

Change-Id: I7ca75a44018a68bf3a7ac1de17a3ef568a48d2ac

10 years agoMerge "Pay attention to buffer timestamps"
Andy McFadden [Thu, 11 Jul 2013 14:40:45 +0000 (14:40 +0000)]
Merge "Pay attention to buffer timestamps"

10 years agoMerge "fix SF buffer cropping"
Mathias Agopian [Wed, 10 Jul 2013 23:10:58 +0000 (23:10 +0000)]
Merge "fix SF buffer cropping"

10 years agoPay attention to buffer timestamps
Andy McFadden [Fri, 28 Jun 2013 20:52:40 +0000 (13:52 -0700)]
Pay attention to buffer timestamps

When acquiring a buffer, SurfaceFlinger now computes the expected
presentation time and passes it to the BufferQueue acquireBuffer()
method.  If it's not yet time to display the buffer, acquireBuffer()
returns PRESENT_LATER instead of a buffer.

The current implementation of the expected-present-time computation
uses approximations and guesswork.

Bug 7900302

Change-Id: If9345611c5983a11a811935aaf27d6388a5036f1

10 years agofix SF buffer cropping
Mathias Agopian [Wed, 10 Jul 2013 04:24:52 +0000 (21:24 -0700)]
fix SF buffer cropping

When a buffer had a crop (meaning its content is scaled to the window size)
and a window crop was defined, the resulting crop couldn't be expressed
properly because h/w composer's API was limited to integers, since
this is fixed in h/w composer 1.3, we take adventage of this to
make sure we get the correct crop.

this bug could result in the buffer being scaled by an incorrect ratio and
be slightly offset; moreover, it would produce different results from the
GL code path, which is always correct.

Change-Id: I8e20e00b6e26177d14f4ab4d2cd581e26c818892

10 years agoRenaming dalvik.vm.lib to persist.sys.dalvik.vm.lib
Brian Carlstrom [Sun, 30 Jun 2013 20:17:38 +0000 (13:17 -0700)]
Renaming dalvik.vm.lib to persist.sys.dalvik.vm.lib

Change-Id: If31695e04bb813eb75b2fdd00e5d70ced4fbb0e9

10 years agoReconcile with jb-mr2-zeroday-release - do not merge
The Android Open Source Project [Wed, 10 Jul 2013 15:35:04 +0000 (08:35 -0700)]
Reconcile with jb-mr2-zeroday-release - do not merge

Change-Id: I5445989fd1dd6e851d3efe060cf3fc4ae1d104fb

10 years agomerge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
The Android Automerger [Wed, 10 Jul 2013 12:55:26 +0000 (05:55 -0700)]
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev

10 years agoReconcile with jb-mr2-release - do not merge
The Android Open Source Project [Wed, 10 Jul 2013 00:13:32 +0000 (17:13 -0700)]
Reconcile with jb-mr2-release - do not merge

Change-Id: Id26b917342f6ee70c32c2713d07944dae1c10e01

10 years agoFind non-extension GLES wrappers in eglGetProcAddress
Jesse Hall [Thu, 4 Jul 2013 19:08:16 +0000 (12:08 -0700)]
Find non-extension GLES wrappers in eglGetProcAddress

This allows apps to find OpenGL ES 3.0 functions using
eglGetProcAddress() instead of dlopen/dlsym.

Bug: 9681677
Change-Id: I7ce6e1636bc47d6b0bf20a4e46bd67235714d129

10 years agoam 9da67a94: am 67481607: Merge "Revert "Second try at adding a compatibility symbol...
Elliott Hughes [Tue, 9 Jul 2013 22:35:33 +0000 (15:35 -0700)]
am 9da67a94: am 67481607: Merge "Revert "Second try at adding a compatibility symbol for the MemoryBase constructor.""

* commit '9da67a9427f695128b5da61c8f987fd9198a5e05':
  Revert "Second try at adding a compatibility symbol for the MemoryBase constructor."

10 years agoam 67481607: Merge "Revert "Second try at adding a compatibility symbol for the Memor...
Elliott Hughes [Tue, 9 Jul 2013 22:30:48 +0000 (15:30 -0700)]
am 67481607: Merge "Revert "Second try at adding a compatibility symbol for the MemoryBase constructor.""

* commit '674816078588d0951c3c9bdaf26ecc9e9b3f2e0a':
  Revert "Second try at adding a compatibility symbol for the MemoryBase constructor."

10 years agoMerge "Revert "Second try at adding a compatibility symbol for the MemoryBase constru...
Elliott Hughes [Tue, 9 Jul 2013 22:27:16 +0000 (22:27 +0000)]
Merge "Revert "Second try at adding a compatibility symbol for the MemoryBase constructor.""

10 years agoRevert "Second try at adding a compatibility symbol for the MemoryBase constructor."
Elliott Hughes [Tue, 9 Jul 2013 22:15:42 +0000 (22:15 +0000)]
Revert "Second try at adding a compatibility symbol for the MemoryBase constructor."

This reverts commit ddd286301b466b5cd10cfcdc0a5ee5729ef2e385, because the third-party library in question has now been fixed.

Change-Id: Ic195a913f90b36268ed9d6e60be520decb4e198d

10 years agoUpdate to follow procstats options changes.
Dianne Hackborn [Tue, 9 Jul 2013 22:01:40 +0000 (15:01 -0700)]
Update to follow procstats options changes.

Change-Id: I6f016c944cfcd01bbbcf3cf37bc7ff05482f0012

10 years agoam c07b5206: Find non-extension GLES wrappers in eglGetProcAddress
Jesse Hall [Tue, 9 Jul 2013 17:54:20 +0000 (10:54 -0700)]
am c07b5206: Find non-extension GLES wrappers in eglGetProcAddress

* commit 'c07b52060acd627c8510c1a9151e0753fce76330':
  Find non-extension GLES wrappers in eglGetProcAddress

10 years agofix a bug where surfaceflinger and system_server could deadlock
Mathias Agopian [Tue, 9 Jul 2013 00:09:41 +0000 (17:09 -0700)]
fix a bug where surfaceflinger and system_server could deadlock

    because surfaceflinger handles screenshot in a different
    thread from the binder thread that requested it and because
    the IGraphicBufferProducer is a synchronous interface
    calling back into the system server; it is possible for
    the latter to run out of binder threads (b/c it holds
    a lock while calling into SF).

    The solution is to make sure all calls on IGraphicBufferProducer
    happen on the incoming binder thread. We achieve this by creating
    a IGBP wrapper which is given to the screenshot code.

    Bug: 8734824

Change-Id: I2be85660d9dc65d239d68f6d3ab3c973c13b34cc

10 years agoMerge "Refactor SF. Move all GL operations in their own class."
Mathias Agopian [Mon, 8 Jul 2013 22:50:01 +0000 (22:50 +0000)]
Merge "Refactor SF. Move all GL operations in their own class."

10 years agoimprove sensorservice's dumpsys
Mathias Agopian [Wed, 3 Jul 2013 23:20:57 +0000 (16:20 -0700)]
improve sensorservice's dumpsys

it now displays the reported trigger mode properly, as well as
the number and type of the last received data

Change-Id: I2ff64b32ab71f1332bc2e09671c8c02bb9550490

10 years agoMerge "simplify some unnecessary complex code"
Mathias Agopian [Mon, 8 Jul 2013 22:34:54 +0000 (22:34 +0000)]
Merge "simplify some unnecessary complex code"

10 years agoDebug code for detecting all black pixels screenshots
Mathias Agopian [Wed, 3 Jul 2013 19:34:01 +0000 (12:34 -0700)]
Debug code for detecting all black pixels screenshots

Bug: 9120292
Change-Id: If60db32524db973bb1f905ba3cb415c2a1cd7e71

10 years agosimplify some unnecessary complex code
Mathias Agopian [Mon, 8 Jul 2013 19:50:39 +0000 (12:50 -0700)]
simplify some unnecessary complex code

getSensorType() ran in O(n) instead of O(1). fix that.

Change-Id: Idcf29e46fc34db32604a0d8e5a9156486783b74f

10 years agoMerge "mv libcpustats from frameworks/native to frameworks/av"
Glenn Kasten [Mon, 8 Jul 2013 15:40:51 +0000 (15:40 +0000)]
Merge "mv libcpustats from frameworks/native to frameworks/av"

11 years agoFind non-extension GLES wrappers in eglGetProcAddress
Jesse Hall [Thu, 4 Jul 2013 19:08:16 +0000 (12:08 -0700)]
Find non-extension GLES wrappers in eglGetProcAddress

This allows apps to find OpenGL ES 3.0 functions using
eglGetProcAddress() instead of dlopen/dlsym.

Bug: 9681677
Change-Id: I7ce6e1636bc47d6b0bf20a4e46bd67235714d129

11 years agobinder: add polling / single-threaded operation
Todd Poynor [Wed, 26 Jun 2013 02:12:18 +0000 (19:12 -0700)]
binder: add polling / single-threaded operation

This is currently safe to do only for processes that disallow any binder
threads to be created: setThreadPoolMaxThreadCount(0).

Change-Id: I8a27f3cf26f4d51edb7f222af487ac256cbcab65

11 years agoUpdate to use --include-committed for procstats.
Dianne Hackborn [Wed, 3 Jul 2013 23:51:15 +0000 (16:51 -0700)]
Update to use --include-committed for procstats.

Change-Id: I5ce737b624c5617c94054d6bedebca754fbf16a9

11 years agoRefactor SF. Move all GL operations in their own class.
Mathias Agopian [Fri, 7 Jun 2013 22:35:48 +0000 (15:35 -0700)]
Refactor SF. Move all GL operations in their own class.

this is the first step to add support for GLES 2.x, this
change breaks the dependency of SF on GLES 1.x by moving
all operation into their own class.

Bug: 8679321

Change-Id: I0d2741eca2cefe67dfd9cf837cac10c4d126928b