OSDN Git Service

android-x86/frameworks-native.git
9 years agoMerge "Allow apk path to contain one subdirectory." into lmp-dev
Calin Juravle [Fri, 22 Aug 2014 12:58:10 +0000 (12:58 +0000)]
Merge "Allow apk path to contain one subdirectory." into lmp-dev

9 years agoSensorService fixes.
Aravind Akella [Thu, 21 Aug 2014 19:28:35 +0000 (12:28 -0700)]
SensorService fixes.

   i) Add more debug stats (acks needed, acks received)
  ii) Comment out write failure message.

Change-Id: Iac892a66530849a2dd023d6f5628cd070a79537d

9 years agoAllow apk path to contain one subdirectory.
Calin Juravle [Fri, 15 Aug 2014 14:45:51 +0000 (15:45 +0100)]
Allow apk path to contain one subdirectory.

In the current directory layout this prevented rm_dex and move_dex
commands to validate the apk path and thus cleaning up resources.

Bug: 16888084
Change-Id: Iba579d075a9c6d7de047e7ffef95441498257086

9 years agoMerge "atrace: avoid unnecessary writes to trace_clock" into lmp-dev
Colin Cross [Thu, 21 Aug 2014 00:41:24 +0000 (00:41 +0000)]
Merge "atrace: avoid unnecessary writes to trace_clock" into lmp-dev

9 years agosf: Clear display configs when hot pluggable display is disconnected
Naseer Ahmed [Wed, 20 Aug 2014 20:31:58 +0000 (16:31 -0400)]
sf: Clear display configs when hot pluggable display is disconnected

Display configs for external displays are stored in the framework
everytime we receive a hot plug to connect. However, since the
configs are not cleared on disconnect, framework will just assume
that the configs are valid. This does not work for use cases when
you connect/disconnect external displays with different resolutions.

e.g. 1080p to 4K and vice-versa

With this change we clear the display configs and repopulate when
we receive a hot plug to connect.

Change-Id: I2eeab186a8d8668a53390a2413b2ce5e044a1845
Acked-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
9 years agoatrace: avoid unnecessary writes to trace_clock
Colin Cross [Wed, 20 Aug 2014 21:28:47 +0000 (14:28 -0700)]
atrace: avoid unnecessary writes to trace_clock

Writing to trace_clock erases the trace buffer, even if the value
hasn't changed.  This prevents use of --async_start and --async_dump
to leave background tracing running and dump after an even that
needs debugging, because --async_dump writes to trace_clock and
resets the buffer before it can read it.

Read and parse the current value from trace_clock before writing,
and skip the write if the value isn't changing.

Change-Id: Ia2ec5bb654fb0bd179771b511ff261731ba47dca

9 years agoam 514e30a9: am c3d1889e: Merge "surfaceflinger: skip composition for empty frames...
Jesse Hall [Wed, 20 Aug 2014 20:02:02 +0000 (20:02 +0000)]
am 514e30a9: am c3d1889e: Merge "surfaceflinger: skip composition for empty frames" into klp-modular-dev

* commit '514e30a96cefad109509ce01622fa7f82f3f318c':
  surfaceflinger: skip composition for empty frames

9 years agoam c3d1889e: Merge "surfaceflinger: skip composition for empty frames" into klp-modul...
Jesse Hall [Wed, 20 Aug 2014 19:52:40 +0000 (19:52 +0000)]
am c3d1889e: Merge "surfaceflinger: skip composition for empty frames" into klp-modular-dev

* commit 'c3d1889e508038efe240ed1974ed377a2e12835c':
  surfaceflinger: skip composition for empty frames

9 years agoam 1f1ca890: Adding an ECG hardware feature
Vinod Krishnan [Wed, 20 Aug 2014 18:18:32 +0000 (18:18 +0000)]
am 1f1ca890: Adding an ECG hardware feature

* commit '1f1ca890d4d82cd8d54d428c3120945a0a308975':
  Adding an ECG hardware feature

9 years agoAdding an ECG hardware feature
Vinod Krishnan [Tue, 19 Aug 2014 18:40:36 +0000 (11:40 -0700)]
Adding an ECG hardware feature

Change-Id: I368772d4cd6b2713fb5180bedc91bf2b5bc015b4

9 years agoMerge "Destroy eglSurface before recreating." into lmp-dev
Michael Lentine [Wed, 20 Aug 2014 19:38:19 +0000 (19:38 +0000)]
Merge "Destroy eglSurface before recreating." into lmp-dev

9 years agoam 2eaec5a8: am 1f1ca890: Adding an ECG hardware feature
Vinod Krishnan [Wed, 20 Aug 2014 18:29:27 +0000 (18:29 +0000)]
am 2eaec5a8: am 1f1ca890: Adding an ECG hardware feature

* commit '2eaec5a833f69b3c460386e38aa6affe5e4b1772':
  Adding an ECG hardware feature

9 years agoDestroy eglSurface before recreating.
Michael Lentine [Wed, 20 Aug 2014 17:51:23 +0000 (10:51 -0700)]
Destroy eglSurface before recreating.

Bug: 16856208

Change-Id: Ifb5c8997afab4bc922356a3542d1f899a2546855

9 years agoFix inverse orientation when original is not applied first.
Michael Lentine [Wed, 20 Aug 2014 01:14:06 +0000 (18:14 -0700)]
Fix inverse orientation when original is not applied first.

Change-Id: I6f1a11950c77c99800acbf08a672bc1b2310b0b5

9 years agoFix camera orientation by swapping horizontal and vertical flips when needed.
Michael Lentine [Tue, 19 Aug 2014 18:27:30 +0000 (11:27 -0700)]
Fix camera orientation by swapping horizontal and vertical flips when needed.

Bug: 16637957

Change-Id: I66de597546fdc19e0af9e6150ca20460ab36bf8b

9 years agoMerge "Fix camera orientation by swapping horizontal and vertical flips when needed...
Michael Lentine [Tue, 19 Aug 2014 23:34:23 +0000 (23:34 +0000)]
Merge "Fix camera orientation by swapping horizontal and vertical flips when needed." into lmp-dev

9 years agoMerge "Incorporate TransformToDisplayInverse into the crop calculation." into lmp-dev
Michael Lentine [Tue, 19 Aug 2014 20:56:48 +0000 (20:56 +0000)]
Merge "Incorporate TransformToDisplayInverse into the crop calculation." into lmp-dev

9 years agoMerge "surfaceflinger: skip composition for empty frames" into klp-modular-dev
Jesse Hall [Wed, 20 Aug 2014 19:42:34 +0000 (19:42 +0000)]
Merge "surfaceflinger: skip composition for empty frames" into klp-modular-dev

9 years agosurfaceflinger: skip composition for empty frames
Jesse Hall [Thu, 14 Aug 2014 22:45:06 +0000 (15:45 -0700)]
surfaceflinger: skip composition for empty frames

By not committing the results of composition for empty frames, we
avoid spitting out series of black frames for virtual displays that
don't have visible layers. We still draw one black frame when going
from having layers to not having any. In particular, this avoids
having a series of empty frames due to re-compositing the primary
display in the period between creating the virtual display and adding
layers to it.

Bug: 16786752
Change-Id: I7e9b2ed2e407d8d49c7af736b447d4c6181b0ad8

9 years agoIncorporate TransformToDisplayInverse into the crop calculation.
Michael Lentine [Mon, 18 Aug 2014 23:35:43 +0000 (16:35 -0700)]
Incorporate TransformToDisplayInverse into the crop calculation.

Change-Id: Ia9757b3a43d3b8f99df9fef2ed4d11c43b5abdd2

9 years agoMerge "Within CpuConsumer, use gralloc lockAsync/unlockAsync" into lmp-dev
Riley Andrews [Tue, 19 Aug 2014 20:41:18 +0000 (20:41 +0000)]
Merge "Within CpuConsumer, use gralloc lockAsync/unlockAsync" into lmp-dev

9 years agoWithin CpuConsumer, use gralloc lockAsync/unlockAsync
Riley Andrews [Mon, 18 Aug 2014 23:57:11 +0000 (16:57 -0700)]
Within CpuConsumer, use gralloc lockAsync/unlockAsync

Change-Id: I6b2cd195e111c3c7bf94c8052af4db92e09649a5

9 years agoTake advantage of sync points during screen cap.
Riley Andrews [Fri, 15 Aug 2014 19:27:24 +0000 (12:27 -0700)]
Take advantage of sync points during screen cap.

Do not wait for the screen capture to complete within surface flinger,
instead pass a sync point back with the captured gralloc buffer.

Change-Id: I7137c0e0fc710688d1d61f189159418fb27ea263

9 years agoMerge "SensorService fixes." into lmp-dev
Aravind Akella [Tue, 19 Aug 2014 20:21:24 +0000 (20:21 +0000)]
Merge "SensorService fixes." into lmp-dev

9 years agoSensorService fixes.
Aravind Akella [Wed, 13 Aug 2014 19:24:50 +0000 (12:24 -0700)]
SensorService fixes.

   1) Flush should only be received by the app calling flush(). Maintain
      a queue of all flush() calls and send flush_complete events in that
      order.
   2) Log warnings for older HALs. Remove batch() calls with DRY_RUN flag.
   3) Reallocate event cache when more sensors register and the desired
      maxCacheSize increases. Clear NEEDS_ACK flag in the buffer whenever
      there is a write() failure.
   4) More dump information. Add wake-up flag, maxDelay and timestamps for
      sensor events.

Bug: 16874778
Change-Id: I195646191059fd31f75f2f07886c0f98bf9b509a

9 years agoMerge "Don't try to capture the pointer when using PBOs for texture APIs" into lmp-dev
Ben Clayton [Wed, 20 Aug 2014 16:20:22 +0000 (16:20 +0000)]
Merge "Don't try to capture the pointer when using PBOs for texture APIs" into lmp-dev

9 years agoDon't try to capture the pointer when using PBOs for texture APIs
Ben Clayton [Mon, 18 Aug 2014 16:25:34 +0000 (17:25 +0100)]
Don't try to capture the pointer when using PBOs for texture APIs

If a PBO is bound, then the pointer argument is a relative offset from
the start of the PBO, not an absolute address.

Fixes b/17063439

Change-Id: I39629ce6c9bb3cb6bac5c9b0311287628306ddd4
(cherry picked from commit 0ad707f2f3d714af7d983d68330ed51dace815f5)

9 years agoMerge "Fix inverse orientation when original is not applied first." into lmp-dev
Michael Lentine [Wed, 20 Aug 2014 15:32:42 +0000 (15:32 +0000)]
Merge "Fix inverse orientation when original is not applied first." into lmp-dev

9 years agoMerge changes I4cfb3138,I45356c29 into lmp-dev
Colin Cross [Tue, 19 Aug 2014 01:26:00 +0000 (01:26 +0000)]
Merge changes I4cfb3138,I45356c29 into lmp-dev

* changes:
  atrace: add memory reclaim tracing
  atrace: Add IRQ events

9 years agoatrace: add memory reclaim tracing
Colin Cross [Mon, 18 Aug 2014 22:22:13 +0000 (15:22 -0700)]
atrace: add memory reclaim tracing

Add "memreclaim" to trace direct reclaim, shrink slab cycles, and
kswapd waking up and sleeping.

Change-Id: I4cfb313820a3a9aa5a9d07a39c42db41c24304a6

9 years agoatrace: Add IRQ events
Dan Willemsen [Fri, 11 Apr 2014 22:44:09 +0000 (15:44 -0700)]
atrace: Add IRQ events

Add "irq" to trace irq and softirq events.

Change-Id: I45356c2912a1fa130667ada7b21e9fb54ddcfba5

9 years agoShelve InputFlinger for another release. DO NOT MERGE
Michael Wright [Mon, 18 Aug 2014 03:01:12 +0000 (20:01 -0700)]
Shelve InputFlinger for another release. DO NOT MERGE

Change-Id: I0f034a2b8b1d9192f61f5001799bd3aa4b3964c7

9 years agoMerge "Add trace tag for power management." into lmp-dev
Jeff Brown [Sat, 16 Aug 2014 01:16:28 +0000 (01:16 +0000)]
Merge "Add trace tag for power management." into lmp-dev

9 years agoDisable verification based on vold.decrypt. [frameworks/native]
Brian Carlstrom [Fri, 15 Aug 2014 16:55:50 +0000 (09:55 -0700)]
Disable verification based on vold.decrypt. [frameworks/native]

Bug: 15165413
Change-Id: Ie70bf4e1348b7b8b2454cf9b498b272416d61c34

9 years agoAdd trace tag for power management.
Jeff Brown [Fri, 15 Aug 2014 02:24:47 +0000 (19:24 -0700)]
Add trace tag for power management.

Also added a couple of other existing missing tags in atrace.

Bug: 17004602
Change-Id: I6f697a2a15922bd4695acfa203d45eaae40cd00e

9 years agoUse set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup
Brian Carlstrom [Fri, 8 Aug 2014 07:52:22 +0000 (00:52 -0700)]
Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup

Bug: 15927194

(cherry picked from commit 0378aaf257aee92539d30543914a50c4481c6a18)

Change-Id: I462b5ac256c4d091ed4023cf4b97dd6a4abcaa5f

9 years agoMerge "Tunneled Video Playback support" into lmp-dev
Rachad [Sat, 9 Aug 2014 04:56:09 +0000 (04:56 +0000)]
Merge "Tunneled Video Playback support" into lmp-dev

9 years agoRevert "Modify EGL to disconnect the window when the surface gets destroyed."
Michael Lentine [Fri, 8 Aug 2014 17:30:44 +0000 (10:30 -0700)]
Revert "Modify EGL to disconnect the window when the surface gets destroyed."

This reverts commit 843cbb241da60ada234918a30cfe9a01a1e04187.

9 years agoMerge "Change output format to not throw warning on volantis." into lmp-dev
Michael Lentine [Thu, 7 Aug 2014 22:05:44 +0000 (22:05 +0000)]
Merge "Change output format to not throw warning on volantis." into lmp-dev

9 years agoChange output format to not throw warning on volantis.
Michael Lentine [Thu, 7 Aug 2014 21:54:23 +0000 (14:54 -0700)]
Change output format to not throw warning on volantis.

Change-Id: Id66eb61bdb1ceccfb7aefa0aa70793dac807c257

9 years agoFix HWComposer Surface Crop when surface is rotated
Michael Lentine [Thu, 7 Aug 2014 20:40:48 +0000 (13:40 -0700)]
Fix HWComposer Surface Crop when surface is rotated

Bug: 15091149

Change-Id: I97ecd8af9636da9403fafdb3f9b846f95053ebb7

9 years agoMerge "Fix HWComposer Surface Crop when surface is rotated" into lmp-dev
Michael Lentine [Thu, 7 Aug 2014 21:30:06 +0000 (21:30 +0000)]
Merge "Fix HWComposer Surface Crop when surface is rotated" into lmp-dev

9 years agoMerge changes Idae36efa,I6613c971 into lmp-dev
Brian Carlstrom [Thu, 7 Aug 2014 05:28:37 +0000 (05:28 +0000)]
Merge changes Idae36efa,I6613c971 into lmp-dev

* changes:
  Disable compilation based on vold.decrypt. [frameworks/native]
  Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [frameworks/native]

9 years agoDisable compilation based on vold.decrypt. [frameworks/native]
Brian Carlstrom [Wed, 30 Jul 2014 21:37:11 +0000 (14:37 -0700)]
Disable compilation based on vold.decrypt. [frameworks/native]

Bug: 15165413

(cherry picked from commit 538998f204d1e542e235de9e7ce18ef4dc68c9cc)

Change-Id: Idae36efa1cb3fb99b51fa0a79b6bb037981d1c71

9 years agoMove from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [frameworks/native]
Brian Carlstrom [Tue, 29 Jul 2014 02:13:28 +0000 (19:13 -0700)]
Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter [frameworks/native]

This will allow us to conditionally change the compiler-filter based on other properties.

Bug: 15165413

(cherry picked from commit cf51ba1360ee13459830a0502b0d454d0145544f)

Change-Id: I6613c9710878d56ed8c121e0caded76a64430f76

9 years agoMerge "Make system use patchoat to relocate during runtime." into lmp-dev
Brian Carlstrom [Thu, 7 Aug 2014 05:28:33 +0000 (05:28 +0000)]
Merge "Make system use patchoat to relocate during runtime." into lmp-dev

9 years agoRevert "Revert "Add system accelerators for BACK and HOME.""
Michael Wright [Wed, 6 Aug 2014 22:55:28 +0000 (15:55 -0700)]
Revert "Revert "Add system accelerators for BACK and HOME.""

This reverts commit d671f98a27f547ebcddff8dc962fe895549355e2.

Change-Id: Ibec48f81653bd2f755fc59a241fa7836baf53233

9 years agoMake system use patchoat to relocate during runtime.
Alex Light [Mon, 21 Jul 2014 19:23:48 +0000 (12:23 -0700)]
Make system use patchoat to relocate during runtime.

Make installd understand a patchoat directive and carry it out.

Bug: 15358152

(cherry picked from commit 7365a10689df23334d245b211ce272502ad20669)

Change-Id: Id84a15e626ddde63876914068d3d9aa037abc65b

9 years agoRevert "Add system accelerators for BACK and HOME."
Michael Wright [Wed, 6 Aug 2014 22:50:43 +0000 (15:50 -0700)]
Revert "Add system accelerators for BACK and HOME."

This reverts commit 278b525d25b852554015ec4f92862f9297b502fd.

9 years agoAdd system accelerators for BACK and HOME.
Michael Wright [Tue, 5 Aug 2014 03:26:30 +0000 (20:26 -0700)]
Add system accelerators for BACK and HOME.

Meta+Backspace -> BACK
Meta+Enter -> HOME

Bug: 14066931
Change-Id: Iff1d027300fa9911626785944a6d8efe4f62235e

9 years agoMerge "Sensor related changes for NDK." into lmp-dev
Aravind Akella [Wed, 6 Aug 2014 02:23:25 +0000 (02:23 +0000)]
Merge "Sensor related changes for NDK." into lmp-dev

9 years agoSensor related changes for NDK.
Aravind Akella [Tue, 5 Aug 2014 21:53:07 +0000 (14:53 -0700)]
Sensor related changes for NDK.

   i) ASensorManager_getDefaultSensor returns a wake-up/non wake-up sensor
      depending on the type.
   ii) Add ASensor_isWakeUpSensor and ASensorManager_getDefaultSensorEx
       methods.
Bug : 16399898
Change-Id: I1a86fb8d9de23039fdf41679d1487e1cd761a9d0

9 years agoAAC codec profile updates
Jean-Michel Trivi [Sat, 2 Aug 2014 05:20:17 +0000 (22:20 -0700)]
AAC codec profile updates

Add new fields to OMX_AUDIO_PARAM_AACPROFILETYPE for
- SBR configuration
- decoder max number of channels
- decoder DRC parameters

Bug 16740915

Change-Id: Ib01822bc402fe9064c6c1c68b72c570cf72b7ecb

9 years agoTunneled Video Playback support
Rachad [Wed, 30 Jul 2014 00:53:53 +0000 (17:53 -0700)]
Tunneled Video Playback support

 Added native_window_set_sideband_stream() method to Surface.[h|cpp]
 Added ConfigureVideoTunnelModeParams OMX configuration structure to
 HardwareAPI.h

Bug: 16132368
Change-Id: I28fa1b9dbe858d93e353e0991098cad45c626bd9

9 years agoMerge "Allow device to be unprovisioned" into lmp-dev
Jeff Tinker [Mon, 4 Aug 2014 20:48:37 +0000 (20:48 +0000)]
Merge "Allow device to be unprovisioned" into lmp-dev

9 years agoAllow device to be unprovisioned
Jeff Tinker [Wed, 30 Apr 2014 17:21:53 +0000 (10:21 -0700)]
Allow device to be unprovisioned

bug: 12247651
Change-Id: Ib0ec34da708b11a95da66c353d864bb87a6616c9

9 years agoBuild fix to use the correct source.
Michael Lentine [Wed, 30 Jul 2014 22:39:17 +0000 (15:39 -0700)]
Build fix to use the correct source.

Change-Id: If36710be600dd0e15c31682e0343f281baa55627

9 years agoAdd error for format and make sure setActiveConfig fails with an invalid mode.
Michael Lentine [Wed, 30 Jul 2014 20:00:37 +0000 (13:00 -0700)]
Add error for format and make sure setActiveConfig fails with an invalid mode.

Change-Id: Iacdb5cbad125787f96c64c88d432fc541c4cad1a

9 years agoAllow for resizing of Virtual Displays.
Michael Lentine [Fri, 18 Jul 2014 22:34:25 +0000 (15:34 -0700)]
Allow for resizing of Virtual Displays.

Modify SurfaceFlinger to use VirtualDisplaySurface in all cases when a virtual
display is used. Add functionality in VirtualDisplaySurface to resize the
buffers aquired in the QueueBufferOutput. Add transaction support in
SurfaceFlinger for resize. Add the modification of the size in DisplayDevice.

Change-Id: Iae7e3556dc06fd18d470adbbd76f7255f6e6dd6b
Tested: None

9 years agoHave VirtualDisplays send SF resize messages when resizing
Michael Wright [Thu, 26 Jun 2014 23:01:02 +0000 (16:01 -0700)]
Have VirtualDisplays send SF resize messages when resizing

Change-Id: I76d15b22099a659450ec875836c9bf2b6584838f

9 years agoMerge "Modified SurfaceFlinger to implment setActiveConfig and getActiveConfig."...
Michael Lentine [Wed, 30 Jul 2014 17:52:57 +0000 (17:52 +0000)]
Merge "Modified SurfaceFlinger to implment setActiveConfig and getActiveConfig." into lmp-dev

9 years agoMerge "SurfaceFlinger: Prevent deadlock by updating an atomic layer set." into lmp-dev
Eric Penner [Thu, 31 Jul 2014 18:31:37 +0000 (18:31 +0000)]
Merge "SurfaceFlinger: Prevent deadlock by updating an atomic layer set." into lmp-dev

9 years agoSurfaceFlinger: Prevent deadlock by updating an atomic layer set.
Eric Penner [Tue, 29 Jul 2014 02:51:58 +0000 (19:51 -0700)]
SurfaceFlinger: Prevent deadlock by updating an atomic layer set.

Bug: 12934849

Change-Id: I9dede7316f1e967de4140bd731ac810115ea302f

9 years agoMerge "Sensor.cpp changes." into lmp-dev
Aravind Akella [Thu, 31 Jul 2014 16:46:14 +0000 (16:46 +0000)]
Merge "Sensor.cpp changes." into lmp-dev

9 years agoSensor.cpp changes.
Aravind Akella [Tue, 29 Jul 2014 19:27:41 +0000 (12:27 -0700)]
Sensor.cpp changes.

  1) Rename TILT_DETECTOR
  2) Set mFlags correctly for wake-up sensors.
  2) Log errors for incorrect sensor flags.

Change-Id: Ia449217d3b8a53353ad6b5c33c544ce37eb1de4f

9 years agoImprove network connectivity dumping.
Lorenzo Colitti [Wed, 30 Jul 2014 05:38:20 +0000 (14:38 +0900)]
Improve network connectivity dumping.

1. Explicitly dump IP addresses.

   Currently, some IP addresses are dumped using netcfg, but that
   only dumps the first IPv4 address on each interface. Instead,
   call ip -4 addr and ip -6 addr explicitly to dump all IPv4 and
   IPv6 addresses on the system.

2. Disable dumping /proc/net/{ipv6,}route, because:

 - We already dump all IPv4 and IPv6 routes in the tables that
   we use.
 - /proc/net/route is confusing because it only includes routes
   in the main table, which are all but unused. It's also in
   unreadable host-byte-order hex.
 - /proc/net/ipv6_route is confusing because it includes routes
   from all tables but does not say what table they are in.

3. Instead of dumping the contents of /proc/net/arp , use
   "ip -4 neigh show" and "ip -6 neigh show" to dump the
   neighbour caches for both IPv4 and IPv6.

Bug: 16663736
Change-Id: Id3e509b877ab7b00eb2399b6a9868b12245da2f0

9 years agoBuild fix for size_t on 64bit.
Michael Lentine [Wed, 30 Jul 2014 23:42:12 +0000 (16:42 -0700)]
Build fix for size_t on 64bit.

Change-Id: Ic16895b30d78ba8a635b709adbae31a590501b20

9 years agoBuild fix for printf with int64 and size_t
Michael Lentine [Wed, 30 Jul 2014 23:24:48 +0000 (16:24 -0700)]
Build fix for printf with int64 and size_t

Change-Id: I642584cce7dd43e6d491a49228b0bce047d53354

9 years agoModified SurfaceFlinger to implment setActiveConfig and getActiveConfig.
Michael Lentine [Mon, 14 Jul 2014 20:48:55 +0000 (13:48 -0700)]
Modified SurfaceFlinger to implment setActiveConfig and getActiveConfig.

This can be used to change the current display mode of the device.

Change-Id: Icdc3fb58389b861dc77b68102083da6f7a96eccb
Tested: None
(cherry picked from commit 2651fa94635a96d653038fb389a0dd827338f8d3)

9 years agoTurn on support for async cursor update in surfaceflinger.
Riley Andrews [Tue, 1 Jul 2014 21:22:59 +0000 (14:22 -0700)]
Turn on support for async cursor update in surfaceflinger.

If available, surfaceflinger will use the hwc setCursorPositionAsync()
api to change the position of supported cursor layers outside of
the usual prepare/set loop.

Change-Id: Ib3fc5c0c390b3489ddbba202379840a1d2748917

9 years agoMerge "Modify EGL to disconnect the window when the surface gets destroyed." into...
Michael Lentine [Wed, 30 Jul 2014 17:19:32 +0000 (17:19 +0000)]
Merge "Modify EGL to disconnect the window when the surface gets destroyed." into lmp-dev

9 years agoModify EGL to disconnect the window when the surface gets destroyed.
Michael Lentine [Wed, 23 Jul 2014 17:19:41 +0000 (10:19 -0700)]
Modify EGL to disconnect the window when the surface gets destroyed.

Bug: 14445579

Change-Id: I1d263ff6cffcb6e448761fca7ca4b06466ad65aa

9 years agoMerge "BufferQueueProducer: fix which slot gets pre-allocated" into lmp-dev
Antoine Labour [Sat, 26 Jul 2014 02:05:44 +0000 (02:05 +0000)]
Merge "BufferQueueProducer: fix which slot gets pre-allocated" into lmp-dev

9 years agoBufferQueueProducer: fix which slot gets pre-allocated
Antoine Labour [Sat, 26 Jul 2014 01:14:42 +0000 (18:14 -0700)]
BufferQueueProducer: fix which slot gets pre-allocated

Commit 78014f32da6d0ebf52fb34ebb7663863000520a0 introduced a bug that
made us pre-allocate buffers into the last available free slots instead
of the first available ones. This in turn caused more re-allocations,
and possibly triggered driver bugs.

Change-Id: Ic4a70e676b4f2bbb054bc873be62ced26e3099a0

9 years agoOMX: add supporting methods for flexible YUV
Lajos Molnar [Fri, 25 Jul 2014 14:53:56 +0000 (07:53 -0700)]
OMX: add supporting methods for flexible YUV

Bug: 10706245
Change-Id: I2427930a34c468e49d3db7ba2865344f1fba2960

9 years agoMerge "Remove WAKE_UP_* sensor constants." into lmp-dev
Aravind Akella [Tue, 29 Jul 2014 19:02:00 +0000 (19:02 +0000)]
Merge "Remove WAKE_UP_* sensor constants." into lmp-dev

9 years agoRemove WAKE_UP_* sensor constants.
Aravind Akella [Tue, 29 Jul 2014 01:01:11 +0000 (18:01 -0700)]
Remove WAKE_UP_* sensor constants.

Change-Id: I3de9d114ce82de4ed841932747d72e1f6f73c24f

9 years agoMerge "SensorService performance improvements." into lmp-dev
Aravind Akella [Fri, 25 Jul 2014 18:04:57 +0000 (18:04 +0000)]
Merge "SensorService performance improvements." into lmp-dev

9 years agoSensorService performance improvements.
Aravind Akella [Thu, 10 Jul 2014 23:01:10 +0000 (16:01 -0700)]
SensorService performance improvements.

  i) Send ack for wake_up sensors on the socket connection instead of using Binder RPC.
  ii) Cache events per connection in case there are write failures. Compute cache size
      from FIFO counts of sensors.
 iii) Send FlushCompleteEvent only for apps that explicitly called flush().

Change-Id: I018969736b7794b1b930529586f2294a03ee8667

9 years agoMerge "GLProducer: Reference count images rather than buffers." into lmp-dev
Eric Penner [Thu, 24 Jul 2014 19:14:50 +0000 (19:14 +0000)]
Merge "GLProducer: Reference count images rather than buffers." into lmp-dev

9 years agoInstall symlinks in multilib build.
Ying Wang [Wed, 23 Jul 2014 18:33:24 +0000 (11:33 -0700)]
Install symlinks in multilib build.

(cherry picked from commit c3aed1eaefa9c824d5863d58db3954eb642cffe4)

Change-Id: Ic0082ffbd7ecf610476bccb0929e67427a05190d

9 years agoAdd dumping of tombstones to dumpstate.
Christopher Ferris [Tue, 22 Jul 2014 23:08:19 +0000 (16:08 -0700)]
Add dumping of tombstones to dumpstate.

Dump only those tombstones modified within the last half an hour.

Change-Id: I8ce836b2e19eba7a9c0c31a4f312f9a382526da7

9 years agoadd noteResetVideo/Audio to IBatteryStats
Chong Zhang [Wed, 23 Jul 2014 21:47:00 +0000 (14:47 -0700)]
add noteResetVideo/Audio to IBatteryStats

Bug: 12979595
Change-Id: Ida474e539a3af0a85ec157a66bbf986430c8020e

9 years agoMerge "crash if getNativeBuffer() called on NULL GraphicBuffer" into lmp-dev
Colin Cross [Wed, 23 Jul 2014 19:56:38 +0000 (19:56 +0000)]
Merge "crash if getNativeBuffer() called on NULL GraphicBuffer" into lmp-dev

9 years agocrash if getNativeBuffer() called on NULL GraphicBuffer
Colin Cross [Tue, 22 Jul 2014 22:55:08 +0000 (15:55 -0700)]
crash if getNativeBuffer() called on NULL GraphicBuffer

If getNativeBuffer() is called on a NULL GraphicBuffer the
static_cast of this from GraphicBuffer* to ANativeWindowBuffer*
will return a small pointer like (ANativeWindowBuffer*)0x10.
This value can propagate past NULL checks until it causes a crash
far away from the original NULL pointer.  Crash immediately
instead.

Change-Id: Id614b9eb1484108b3c3c733545309844c4b87532

9 years agoMerge "update battery status for audio/video" into lmp-dev
Chong Zhang [Wed, 23 Jul 2014 00:02:53 +0000 (00:02 +0000)]
Merge "update battery status for audio/video" into lmp-dev

9 years agoupdate battery status for audio/video
Chong Zhang [Tue, 22 Jul 2014 16:12:21 +0000 (09:12 -0700)]
update battery status for audio/video

Bug: 12979595

Change-Id: Ic8e8d625becc6d1050f840ad63b7423f388eeba3

9 years agoBufferQueue: release mutex while allocating. DO NOT MERGE
Antoine Labour [Wed, 16 Jul 2014 04:17:03 +0000 (21:17 -0700)]
BufferQueue: release mutex while allocating. DO NOT MERGE

BufferQueueProducer::allocateBuffers used to keep the BufferQueueCore
mutex while doing the buffer allocation, which would cause the consumer
(which also needs the mutex) to block if the allocation takes a long
time.
Instead, release the mutex while doing the allocation, and grab it again
before filling the slots. Keep a bool state and a condvar to prevent
other producers from trying to allocate the slots while the mutex is
released.

Bug: 11792166

Change-Id: I4ab1319995ef892be2beba892f1fdbf50ce0416d
(cherry picked from commit ea96044470a29133321c681080870b9d31f81a19)

9 years agoGLProducer: Reference count images rather than buffers.
Eric Penner [Sat, 12 Jul 2014 02:08:04 +0000 (19:08 -0700)]
GLProducer: Reference count images rather than buffers.

In most cases, EGLImages can be created one-to-one with graphic
buffers in slots, but that was difficult due to some special
cases:
- ReleaseTexImage binds a custom 'unslotted' debug image.
- When all slots are freed, we still need to hang on to one.

These cases were handled by keeping an additional reference to
the 'current' buffer (mCurrentTextureBuf), but we would create
new images since we can't reference count them in the same way.
This patch uses the same semantics, except that it reference
counts the image (an EglImage wrapper class) rather than just
buffer. The wrapper class also detects the cases when we need
a new EGLImage, and only creates them in those rare cases.

Change-Id: I2915761dbe49d2a9bda1f59e60f857543634636b

9 years agoUse the count parameter to store all the uniform vectors, not just the first one...
Ben Clayton [Thu, 17 Jul 2014 10:10:45 +0000 (11:10 +0100)]
Use the count parameter to store all the uniform vectors, not just the first one. DO NOT MERGE.

Change-Id: Ib56d859051f0b895de5c12ffa371cd4b2b65ac0b
(cherry picked from commit 31b0aec64ba44b1ee0581e00a588d84f4b081512)

9 years agoMerge "Add OpenGL ES AEP feature xml." into lmp-dev
Jesse Hall [Mon, 21 Jul 2014 04:51:56 +0000 (04:51 +0000)]
Merge "Add OpenGL ES AEP feature xml." into lmp-dev

9 years agoAlways #include <sys/...>, not <linux/...>.
Elliott Hughes [Sat, 19 Jul 2014 00:54:09 +0000 (17:54 -0700)]
Always #include <sys/...>, not <linux/...>.

(cherry picked from commit 1e4ee9afd2de12af98dbf476b73e2d43f605384c)

Change-Id: Ie005774484f98bb33c8f867cddb778ac04a1d4ea

9 years agoFix implicit declaration of function 'prctl' in installd.
Elliott Hughes [Sat, 19 Jul 2014 00:29:15 +0000 (17:29 -0700)]
Fix implicit declaration of function 'prctl' in installd.

(cherry picked from commit ec535c5ba515f58791aa5044ba116d35a10a188e)

Change-Id: I3da977d85ce544b23ff00934fdbd201d683e9210

9 years agoAdd OpenGL ES AEP feature xml.
Jesse Hall [Fri, 18 Jul 2014 18:58:19 +0000 (11:58 -0700)]
Add OpenGL ES AEP feature xml.

Bug: 15593761
Change-Id: Ia961c64c5bf33da752518921c570c7f6dafe724e

9 years agoAdd glance gesture for doze mode.
Jeff Brown [Thu, 17 Jul 2014 22:13:55 +0000 (15:13 -0700)]
Add glance gesture for doze mode.

Change-Id: I038a706c3999200313ff5360c5ff1150ec081f08

9 years agodumpstate: fix dumping traces for vm processes on 64-bit
Colin Cross [Thu, 17 Jul 2014 02:00:46 +0000 (19:00 -0700)]
dumpstate: fix dumping traces for vm processes on 64-bit

dumpstate was not dumping any stack traces for vm processes because
it was failing the string compare for /system/bin/app_process.
64-bit devices use app_process32 and app_process64 instead of
app_process, and zygote64 alongside zygote.  Change the string
matching to be prefix matching.

(cherry picked from commit 8eb25d552b07ffa799b7b61ad46d0109e7512741)

Change-Id: I6b1568161fae278f0e6107990e5b750cf0ca902b

9 years agoAdd XML files for new camera2 hardware features
Eino-Ville Talvala [Tue, 15 Jul 2014 18:05:18 +0000 (11:05 -0700)]
Add XML files for new camera2 hardware features

Bug: 15415688
Change-Id: I1ea9f65b03c4fa06a5004f9d1d485935742001c8

9 years agoOffer to delete code cache directories.
Jeff Sharkey [Wed, 16 Jul 2014 04:49:51 +0000 (21:49 -0700)]
Offer to delete code cache directories.

Bug: 16187224
Change-Id: Ia860b051a34ffdfb4f6e0ea19f90cb73509c4eee

9 years agoCW on L: Fix a SIGSEGV crash in sensor service.
Sean Wan [Tue, 15 Jul 2014 00:07:33 +0000 (17:07 -0700)]
CW on L: Fix a SIGSEGV crash in sensor service.

This is to fix b/16189080.

BUG: 16189080
Change-Id: I78d44e82f797c0808891acde609040c46745a0bb

9 years agoAdd MAC for remaining service_manager functionality.
Riley Spahn [Tue, 8 Jul 2014 16:03:00 +0000 (09:03 -0700)]
Add MAC for remaining service_manager functionality.

Add SELinux MAC for the list and find functionality
to service_manager. By default the list action uses
the service_manager_type attribute as its target
object.

(cherry picked from commit c67e6307cadb1f2cd876907c42d39b8374b93acd)

Change-Id: Iaf14b21346822a6b544091a0f4a9949117934b9a