OSDN Git Service

android-x86/frameworks-native.git
8 years agolibEGL: allow devices to workaround Google bug 10194508
Pawit Pornkitprasan [Sun, 3 Nov 2013 06:02:15 +0000 (23:02 -0700)]
libEGL: allow devices to workaround Google bug 10194508

Most older blobs don't have the EGL_KHR_gl_colorspace
extension and need this workaround.

Change-Id: Ifc5d097c1a0b68275d23c2d191976ac96631b695

8 years agoBring back support for glReadPixels screenshot path
Pawit Pornkitprasan [Tue, 18 Nov 2014 01:38:33 +0000 (08:38 +0700)]
Bring back support for glReadPixels screenshot path

Squashed commit of the following:

commit 012d3fe41d1d6cd38a0858b59145e9a4447641fa
Author: Hashcode <hashcode0f@gmail.com>
Date:   Sun Dec 8 19:36:50 2013 +0000

    sf: Always use opengles for screen capture

    Go back to the usage of GRALLOC_USAGE_HW_TEXTURE and GRALLOC_USAGE_HW_RENDERER
    in captureScreenImplLocked regardless of useReadPixels value

    This fixes the EGL_NO_IMAGE_KHR error returned from
    eglCreateImageKHR (blank images returned from screenshot path)

    Change-Id: I62fe90a081607b9e89c67f3dcfd34c84efc89d35

commit 4866ddf98ac98d8e22a1cd6a21894bb17f274588
Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Thu Oct 31 03:53:39 2013 +0000

    Revert "remove support for glReadPixels screenshot path"

    This reverts commit 3ca76f416bc8665a97636ca8a2d0128b9da9d92c.

    Conflicts:
     include/gui/ISurfaceComposer.h
     libs/gui/ISurfaceComposer.cpp
     libs/gui/SurfaceComposerClient.cpp
     services/surfaceflinger/SurfaceFlinger.cpp
     services/surfaceflinger/SurfaceFlinger.h

    Change-Id: I8c239e533757af770e418dbb198f5a86c736961f

Change-Id: I8c239e533757af770e418dbb198f5a86c736961f

8 years agoRevert "egl: Remove old tuna BGRA vs RGBA workaround."
Ethan Chen [Thu, 15 Oct 2015 20:50:10 +0000 (13:50 -0700)]
Revert "egl: Remove old tuna BGRA vs RGBA workaround."

This reverts commit 733a80754786d39cdc0fee09509b194472c320bc.

Change-Id: Ifb41720ed020489892a667914ea3bd3f1ac6504e

8 years agoexynos4: getphys implementation on buffermanager for samsung omx
Ricardo Cerqueira [Sun, 3 Nov 2013 03:06:55 +0000 (03:06 +0000)]
exynos4: getphys implementation on buffermanager for samsung omx

Change-Id: I73d9633e1a7b3316ede28dd1369f8f069609cbb0

8 years agosurfaceflinger: Clean up use of QC extended API
Steve Kondik [Mon, 12 Oct 2015 23:44:11 +0000 (13:44 -1000)]
surfaceflinger: Clean up use of QC extended API

Change-Id: I1256605e63e90f3baaa213453246fb0e44e0c770

8 years agonative: Use project pathmap
Steve Kondik [Mon, 12 Oct 2015 23:00:01 +0000 (13:00 -1000)]
native: Use project pathmap

Change-Id: I81752c2c433752c02ab2a922f974f363e10d8def

8 years agonative: Restore VM memory overrides
Diogo Ferreira [Sun, 9 Nov 2014 16:16:41 +0000 (16:16 +0000)]
native: Restore VM memory overrides

This change adds back the property overrides for several device
types as we had in CM 11.

It contains a squished commit of the following:

commit 5b9240927f8af0b26c406835df33b2d999496434
Author: Steve Kondik <shade@chemlab.org>
Date:   Thu Nov 6 14:40:44 2014 -0800

    Add hdpi-2048 tunings

commit ed579d8be17fb52ef92a1dc9c83843879f396fa1
Author: Steve Kondik <shade@chemlab.org>
Date:   Sat Jan 4 12:12:00 2014 -0800

    Update HWUI config for xxhdpi/2GB devices

commit 386f220e174f9ed5aad487867223033fd5d986c6
Author: Steve Kondik <shade@chemlab.org>
Date:   Tue Aug 6 02:53:19 2013 -0700

    hwui: Update configuration for 2GB/1080p devices

commit b7392d113d8ae6c3c07990bbb3f2621bef490d11
Author: Steve Kondik <shade@chemlab.org>
Date:   Sat Jun 1 14:51:17 2013 +0200

    provide overrides for hwui memory limits for xxhdpi phones

commit 247b3c635b1d6776ffedf3cd61a936546c2f6603
Author: Steve Kondik <shade@chemlab.org>
Date:   Fri May 17 13:10:19 2013 -0700

    Add heap configuration for 1080p phones with 2048m

     * Increase heap start size to 16m to minimize GC with larger bitmaps

commit 9856e93970fd6def1349e564f17d42f505904eba
Author: Andrew Bartholomew <andrewb03@gmail.com>
Date:   Thu Apr 25 13:48:21 2013 -0400

    build/phone-xhdpi-1024-dalvik-heap.mk Revert AOSP heapgrowthlimit change from 64 to 96

    This reverts part of AOSP change at

    https://android.googlesource.com/platform/frameworks/native/+/c84e9844d621223d14178be521

    Possible performance issues have arisen because of it. Discussion at

    http://code.google.com/p/android/issues/detail?id=40961

    Patch Set 2: Clean up commit message

commit bd7fb4be323f6f868a886b22e93cf203944af9a6
Author: Bhargav Upperla <bhargavuln@codeaurora.org>
Date:   Thu May 23 12:50:15 2013 -0700

    Configure dalvik heap parameters for low memory devices

    Reduces after boot memory footprint by about 5-8MB
    Note: This is for low memory based devices only (~512MB RAM
    or less)

Change-Id: Id7e1967d18227359ad9631139bfd47e61e494829

8 years agoAdd dalvik heap override for xxxhdpi phone
bmc08gt [Fri, 20 Mar 2015 14:19:19 +0000 (15:19 +0100)]
Add dalvik heap override for xxxhdpi phone

Change-Id: Ib2649f55327775bbd4d94012952b4301536391ed
Signed-off-by: bmc08gt <brandon.mcansh@gmail.com>
8 years agoAdd HWUI overrides for xxxhdpi phone
bmc08gt [Fri, 20 Mar 2015 14:14:07 +0000 (15:14 +0100)]
Add HWUI overrides for xxxhdpi phone

Change-Id: I4393ef0a5f6f1e9775b5d40b094da3f74ed3ae35
Signed-off-by: bmc08gt <brandon.mcansh@gmail.com>
8 years agosf: Avoid disabling DispSync resync
Raj Kamal [Thu, 25 Sep 2014 08:40:54 +0000 (14:10 +0530)]
sf: Avoid disabling DispSync resync

Avoid disabling DispSync resync if app and SF events aren't
using phase offsets. This prevents hardware VSYNC from turning
on always whenever something needs to be drawn, thereby
bringing down the power numbers.

Change-Id: I83c8f79eb46b9fdaa730ec32767ebed3286347b8

8 years agoSurfaceFlinger: Add dim layer information into HWC layer.
Dileep Marchya [Thu, 3 Sep 2015 01:49:21 +0000 (18:49 -0700)]
SurfaceFlinger: Add dim layer information into HWC layer.

- Set dim layer flag = 0x80000000 to send dim layer hint to HWC.
- Clear HWC_SKIP_LAYER flag when dim layer flag is set.

Change-Id: I56904c65fb487e6e89d4c057015443730d727299

8 years agolibgui: Copyback all region except dirty region for newly allocated buffer
Baldev Sahu [Fri, 23 Jan 2015 08:30:34 +0000 (14:00 +0530)]
libgui: Copyback all region except dirty region for newly allocated buffer

Inside Surface::lock if new buffer is allocated
and DirtyRegion does not cover complete buffer
bounds then copyback may not cover all remaining area
as it copyback only area covered by dirty regions
from other buffers. This will lead to left out
black area which may cause flicker.

Change-Id: I4a3f7a56fc5fbaf4af926584919577d8d34bed57

8 years agofix copy back dirty region
Omprakash Dhyade [Fri, 10 Aug 2012 02:00:37 +0000 (19:00 -0700)]
fix copy back dirty region

Copyback dirty region logic does copyback,
even when its not necessary causing 2ms delay.
Fix the logic to copy back only what is necessary

CRs-fixed: 562334
Change-Id: I52de68258ac9f87d704ee5401f93417805fa6773

8 years agosf: This is a combination of following changes.
Ramkumar Radhakrishnan [Fri, 21 Aug 2015 01:18:30 +0000 (18:18 -0700)]
sf: This is a combination of following changes.

Author: Prabhanjan Kandula<pkandula@codeaurora.org>
SF: Add support for inverse mounted panels.

Add 180 rotation in SF to account for inverse mounted panels.
The framework will be unaffected and use policies for a 0 mounted
panel. SF changes the global transform and silently induces the H,V
flips. Similar flips are added to screenshots as well.

CRs-Fixed: 894147

Change-Id: I6e9576ee734ee85097491eaa1e8e94cfb3731e0f

Author: Ramkumar Radhakrishnan<ramkumar@codeaurora.org>
SF: Clear visible region of layer appropriately.

Clear visible region of layer having layer stack id different than
the display layer stack id to ensure that the layer won't be present
on the wrong display layer list.

Change-Id: I59289fea63ec7a2451d4715cfe7926ba34fdb8e3

Change-Id: I5ad08a6013aa173d621ee80c766a6e19e1086a35

8 years agoSurfaceFlinger: Add support for V4L2 based wfd solution.
Baldev Sahu [Wed, 12 Aug 2015 10:55:05 +0000 (16:25 +0530)]
SurfaceFlinger: Add support for V4L2 based wfd solution.

This change add support for V4L2 based Wi-Fi display.

Change-Id: Ib3f3868eb0b7fa2bf7e58246fb2c5cd0ddceb7e1

8 years agogui: add Tertiary display support in surface composer header
Vinu Deokaran [Mon, 20 Jul 2015 17:50:15 +0000 (13:50 -0400)]
gui: add Tertiary display support in surface composer header

Add definition of Tertiary display into the enumeration list of
surface composer header file, to support third display for all
Surface Flinger APIs.

Change-Id: Ic932be4f7f1ac9c44a5a8f36d17eb9386135de87

8 years agoSurfaceFlinger: Add support for DisplayUtils
Raj Kamal [Tue, 23 Jun 2015 19:55:15 +0000 (12:55 -0700)]
SurfaceFlinger: Add support for DisplayUtils

Add DisplayUtils class which uses the custom implementations
of ExLayer, ExSurfaceFlinger, ExHWComposer,
and ExVirtualDisplaySurface classes if needed

Change-Id: Ibdd8da5d3d0d602f42b76a15d0994c6aa98bee3f

8 years agoSurfaceFlinger: Support get/set ActiveConfigs
Tatenda Chipeperekwa [Mon, 22 Sep 2014 23:57:24 +0000 (16:57 -0700)]
SurfaceFlinger: Support get/set ActiveConfigs

This includes the following two changes squashed into one and
retaining the change I182f41edbaf9226fc62d6d17ee964998cd9f21f7

sf: Fixes for resolution change in SurfaceFlinger

1. Use active config from HWC when querying display attributes

   When we query the display attributes we should use the active
   config as reported by HWC in cases where HWC version is 1.4.
   In all other cases we should revert to the default config,
   config 0, as the active config.

2. Set/update the display config if HWC config change was successful

   The new config should only be applied if HWC succeeded in changing
   the active config. This would otherwise cause failure or undefined
   behavior if the client sets an invalid/unsupported display config.

3. Set the active config at display creation time

   When a new display device is added update the active config by
   querying HWC.

   Change-Id: I182f41edbaf9226fc62d6d17ee964998cd9f21f7

sf: Initialize active config for non-virtual displays at boot time

When a non-virtual display device is added at boot time, update the
active config by querying HWC otherwise the default config (config 0)
will be used.

    Change-Id: I90f42fa1d20ed6176c4be464a10ae69a2f6a6d55

Change-Id: I182f41edbaf9226fc62d6d17ee964998cd9f21f7

8 years agoAdd body sensors app op for custom sensors
Prashant Malani [Fri, 21 Aug 2015 00:19:05 +0000 (17:19 -0700)]
Add body sensors app op for custom sensors

If the custom sensor requires the BODY SENSOR permission, we should add
the body sensors app op for the custom sensor

Bug: 23396558
Change-Id: I132917d1bca12c76c8a9fb146e00951cba3e6d7a

8 years agoAdd XML for pro audio feature
Glenn Kasten [Fri, 28 Aug 2015 03:09:39 +0000 (20:09 -0700)]
Add XML for pro audio feature

Bug: 23604253
Change-Id: I480cf0a46c286badc6fd95a3b42e6cb1ed056b1b

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Wed, 12 Aug 2015 08:03:50 +0000 (01:03 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agodumpstate: add logcat -b all -S
Mark Salyzyn [Thu, 30 Jul 2015 21:57:09 +0000 (14:57 -0700)]
dumpstate: add logcat -b all -S

(cherry pick from commit e3c4df96083231b519dad919fd0ed6624100b368)

- For those that are proud to call themselves logspam police
- Every time someone declares that something is too chatty, or that
  they lost their logs because they were declared too chatty and
  their associated logs were aggresively pruned we generally
  ask them to report the logger statistics to pinpoint what software
  product that is the elephant in the room.
- Every time we want to spawn a new 'stop being so spammy' bug spawned
  off a bugreport collected for another purpose, we *wish* we had the
  logger statistics to help add gravitas to the claim that some piece
  of software is the top, or near the top, polluter.

Bug: 22351810
Change-Id: Ifae33cd21d0ae2917a3b4381502d723725b1701c

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Sat, 8 Aug 2015 08:05:16 +0000 (01:05 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoDO NOT MERGE Add new media navigation keys.
Michael Wright [Thu, 6 Aug 2015 14:17:31 +0000 (15:17 +0100)]
DO NOT MERGE Add new media navigation keys.

Bug: 22059484
Change-Id: I587eb7622555194f18f403da583e3b70656a530e

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Tue, 4 Aug 2015 08:02:47 +0000 (01:02 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoMerge "Fix parsing of extension string" into mnc-dev
Naveen Leekha [Mon, 3 Aug 2015 14:45:11 +0000 (14:45 +0000)]
Merge "Fix parsing of extension string" into mnc-dev

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Sat, 1 Aug 2015 08:06:22 +0000 (01:06 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoFix parsing of extension string
Michael Lentine [Tue, 28 Jul 2015 23:30:10 +0000 (16:30 -0700)]
Fix parsing of extension string

Previously the parsing found the next space and then added the the difference
between the current position and space to the set of tokens. This improperly
generated empty strings if there were consecutive spaces or if spaces existed at
the beginning or end of strings. To fix this, the parse is modified to use
simple stringstream parsing.

Bug: 22709246

Change-Id: I9e32c07bbf984eadccdadf1dc34437fa0c46088b

8 years agoSF: Allow present if sideband stream changed
Dan Stoza [Wed, 29 Jul 2015 23:15:50 +0000 (16:15 -0700)]
SF: Allow present if sideband stream changed

Allows the sideband layer to be passed all the way to HWC instead of
getting blocked by the updated PTS tracking code.

Bug: 22291067
Change-Id: Ic2f20a7528e276fff054e86ca35789c26873b348

8 years agoRevert "Bug fix in SensorManager."
Narayan Kamath [Wed, 29 Jul 2015 09:36:05 +0000 (09:36 +0000)]
Revert "Bug fix in SensorManager."

This reverts commit 869eb2089ec8a6286b944bfcff57e4cbe0c7e207.

Change-Id: I4fb865e3b18bbb011fa4e4b4732336930c3a45ae

8 years agoMerge "Revert "Bug fix in SensorManager."" into mnc-dev
Narayan Kamath [Wed, 29 Jul 2015 09:41:23 +0000 (09:41 +0000)]
Merge "Revert "Bug fix in SensorManager."" into mnc-dev

8 years agoRevert "Bug fix in SensorManager."
Narayan Kamath [Wed, 29 Jul 2015 09:36:05 +0000 (09:36 +0000)]
Revert "Bug fix in SensorManager."

This reverts commit 869eb2089ec8a6286b944bfcff57e4cbe0c7e207.

Change-Id: I4fb865e3b18bbb011fa4e4b4732336930c3a45ae

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Wed, 29 Jul 2015 08:06:33 +0000 (01:06 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoMerge "Bug fix in SensorManager." into mnc-dev
Aravind Akella [Wed, 29 Jul 2015 00:21:09 +0000 (00:21 +0000)]
Merge "Bug fix in SensorManager." into mnc-dev

8 years agoBug fix in SensorManager.
Aravind Akella [Fri, 24 Jul 2015 18:08:41 +0000 (11:08 -0700)]
Bug fix in SensorManager.

If SensorService hasn't started when SensorManager instance is requested, keep retrying for a
longer duration.

Bug: 22529981
Change-Id: I4ba6b760608e34d79273aeb39568f0fa72fbaf9d

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Sat, 25 Jul 2015 08:06:02 +0000 (01:06 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoMerge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev
Jim Miller [Fri, 24 Jul 2015 02:41:02 +0000 (02:41 +0000)]
Merge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev

8 years agoAdd FEATURE_FINGERPRINT to PackageManager's feature list
Jim Miller [Thu, 23 Jul 2015 02:56:05 +0000 (19:56 -0700)]
Add FEATURE_FINGERPRINT to PackageManager's feature list

Fixes bug 22674557

Change-Id: I2ced132c1cb4f4b5166f9af288dd3e697fdcf92b

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Wed, 22 Jul 2015 08:05:28 +0000 (01:05 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoMerge "Check for the presence of accel and magnetometer sensors before adding AOSP...
Chenjie Luo [Wed, 22 Jul 2015 06:26:27 +0000 (06:26 +0000)]
Merge "Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors." into mnc-dev

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Tue, 21 Jul 2015 08:05:56 +0000 (01:05 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoCheck for the presence of accel and magnetometer sensors before adding AOSP fusion...
Aravind Akella [Tue, 21 Jul 2015 00:29:33 +0000 (17:29 -0700)]
Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors.

Bug: 22502485
Change-Id: I3d9018649302b98004e4e216b2173e8411a08501

8 years agoMerge "omx: fix structure sizes to be the same on 32 and 64-bit builds" into mnc-dev
Lajos Molnar [Tue, 21 Jul 2015 00:22:18 +0000 (00:22 +0000)]
Merge "omx: fix structure sizes to be the same on 32 and 64-bit builds" into mnc-dev

8 years agoomx: fix structure sizes to be the same on 32 and 64-bit builds
Lajos Molnar [Mon, 20 Jul 2015 22:29:24 +0000 (15:29 -0700)]
omx: fix structure sizes to be the same on 32 and 64-bit builds

Bug: 22512621
Change-Id: I2100b8aad0a1cf110936f4a765718ba97f3d8ce7

8 years agoOnly restorecon_data once for all users.
Jeff Sharkey [Mon, 20 Jul 2015 23:26:19 +0000 (16:26 -0700)]
Only restorecon_data once for all users.

restorecon_data already iterates across all found users internally,
so we don't need to call it for each UID moved.  In fact, this was a
bug that caused data for the owner to be relabeled when moving apps
back to internal storage.

Bug: 21813384
Change-Id: I5ba76d4f30d129365864c8a25b665f344b99a6b4

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Sat, 18 Jul 2015 08:04:21 +0000 (01:04 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoBufferQueueConsumer: signal onFrameReleased on dropped frames
Lajos Molnar [Mon, 13 Jul 2015 23:04:24 +0000 (16:04 -0700)]
BufferQueueConsumer: signal onFrameReleased on dropped frames

Bug: 22552826
Change-Id: I9bdfeb8c68f403301af90d4b494f0ae7166a767c

8 years agoInstalld: Add a swap override flag
Andreas Gampe [Thu, 16 Jul 2015 22:55:41 +0000 (15:55 -0700)]
Installd: Add a swap override flag

Add dalvik.vm.dex2oat-swap system property to override a default
decision.

Bug: 20658562
Change-Id: I34368c6e435d1a9ceec20a0bf1c8c6213e527f5e

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Wed, 15 Jul 2015 08:04:39 +0000 (01:04 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoMerge "Cancel touches as well as pointer gestures." into mnc-dev
Michael Wright [Tue, 14 Jul 2015 14:22:36 +0000 (14:22 +0000)]
Merge "Cancel touches as well as pointer gestures." into mnc-dev

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Tue, 14 Jul 2015 08:06:35 +0000 (01:06 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoMerge "Rename wakelock held internally by SensorService." into mnc-dev
Aravind Akella [Mon, 13 Jul 2015 18:21:48 +0000 (18:21 +0000)]
Merge "Rename wakelock held internally by SensorService." into mnc-dev

8 years agoCancel touches as well as pointer gestures.
Michael Wright [Mon, 22 Jun 2015 15:18:21 +0000 (16:18 +0100)]
Cancel touches as well as pointer gestures.

Bug: 19264992
Change-Id: If48e0953b972c9d69f516906adf7c6faf67e3eb8

8 years agoRename wakelock held internally by SensorService.
Aravind Akella [Fri, 10 Jul 2015 18:24:28 +0000 (11:24 -0700)]
Rename wakelock held internally by SensorService.

Bug: 22076400
Change-Id: I62129549b0681f200f40da01f53140245309ed88

8 years agoDO NOT MERGE ANYWHERE. reset back to 570052f with history.
Qiwen Zhao [Fri, 10 Jul 2015 00:39:23 +0000 (17:39 -0700)]
DO NOT MERGE ANYWHERE. reset back to 570052f with history.

8 years agoMerge "Cancel touches as well as pointer gestures." into mnc-dev
Michael Wright [Thu, 9 Jul 2015 21:56:20 +0000 (21:56 +0000)]
Merge "Cancel touches as well as pointer gestures." into mnc-dev

8 years agoCancel touches as well as pointer gestures.
Michael Wright [Mon, 22 Jun 2015 15:18:21 +0000 (16:18 +0100)]
Cancel touches as well as pointer gestures.

Bug: 19264992
Change-Id: Idbe964a1a35c190a32f845e2a19542d54652d011

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Wed, 8 Jul 2015 08:04:40 +0000 (01:04 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoMerge "Split app move into separate copy/delete steps." into mnc-dev
Jeff Sharkey [Tue, 7 Jul 2015 20:46:32 +0000 (20:46 +0000)]
Merge "Split app move into separate copy/delete steps." into mnc-dev

8 years agoSplit app move into separate copy/delete steps.
Jeff Sharkey [Tue, 7 Jul 2015 20:31:37 +0000 (13:31 -0700)]
Split app move into separate copy/delete steps.

App movement now has three distinct stages: copying, scanning, and
cleanup.  Previously, a battery pull late in the move process would
end up with packages.xml pointing at the old location which had been
torn down.  Now, we update packages.xml to point at the new location
as the "source of truth" before we start deleting the old location.

Bug: 21831336
Change-Id: I62b8916c673265c240e2574ea968cdce5a7a0074

8 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Tue, 7 Jul 2015 08:05:37 +0000 (01:05 -0700)]
merge in mnc-release history after reset to mnc-dev

8 years agoSF: Ignore PTS more than one second in the future
Dan Stoza [Mon, 6 Jul 2015 19:56:50 +0000 (12:56 -0700)]
SF: Ignore PTS more than one second in the future

Some of this logic already existed, but when we optimized
SurfaceFlinger to avoid unnecessary wake-ups, we didn't carry the logic
over into the new readiness test. shouldPresentNow now returns true if
the timestamp is more than a second in the future (since it's likely a
bogus timestamp and should be ignored).

Bug: 21932760
Change-Id: Ib50970a4eb621588c0b60766c8d8d1a8bddf853b

8 years agoMerge "Implement a number of KHR EGL extensions" into mnc-dev
Jesse Hall [Mon, 6 Jul 2015 16:09:33 +0000 (16:09 +0000)]
Merge "Implement a number of KHR EGL extensions" into mnc-dev

9 years agoam 990c5448: am 35851e2a: am 38ff2b44: am c1d8af50: am 3a9b9aec: am dc3d6af9: am...
Christopher Tate [Thu, 2 Jul 2015 03:28:47 +0000 (03:28 +0000)]
am 990c5448: am 35851e2a: am 38ff2b44: am c1d8af50: am 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parcel bounds

* commit '990c54485f361d587d09952e60ab5fb608d161dd':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 35851e2a: am 38ff2b44: am c1d8af50: am 3a9b9aec: am dc3d6af9: am bb686c25: Disrega...
Christopher Tate [Thu, 2 Jul 2015 02:57:06 +0000 (02:57 +0000)]
am 35851e2a: am 38ff2b44: am c1d8af50: am 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parcel bounds

* commit '35851e2abbfe8f1d9c4cc7dc13a6e6e155b61664':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 38ff2b44: am c1d8af50: am 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged...
Christopher Tate [Thu, 2 Jul 2015 02:45:16 +0000 (02:45 +0000)]
am 38ff2b44: am c1d8af50: am 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parcel bounds

* commit '38ff2b44ad7a64768cd1bb8793ec6c45e8d1e68e':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam c1d8af50: am 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged binder entities...
Christopher Tate [Thu, 2 Jul 2015 02:33:03 +0000 (02:33 +0000)]
am c1d8af50: am 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parcel bounds

* commit 'c1d8af50c314164c0e6760d364b47d16b8d423ee':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 8bd860c3: am 110654ae: am 8e44d0a1: am 0804ed8e: am 1b8a2f82: Disregard alleged...
Christopher Tate [Thu, 2 Jul 2015 02:26:52 +0000 (02:26 +0000)]
am 8bd860c3: am 110654ae: am 8e44d0a1: am 0804ed8e: am 1b8a2f82: Disregard alleged binder entities beyond parcel bounds

* commit '8bd860c3dc2eaac10b6f55c9ec85cae4d172eb26':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 110654ae: am 8e44d0a1: am 0804ed8e: am 1b8a2f82: Disregard alleged binder entities...
Christopher Tate [Thu, 2 Jul 2015 02:18:21 +0000 (02:18 +0000)]
am 110654ae: am 8e44d0a1: am 0804ed8e: am 1b8a2f82: Disregard alleged binder entities beyond parcel bounds

* commit '110654ae44e45b1afd5badd24ada96cb9018bed1':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 134fd91b: am 708b42e0: am eba7afcc: am 2f340be3: Disregard alleged binder entities...
Christopher Tate [Thu, 2 Jul 2015 02:14:46 +0000 (02:14 +0000)]
am 134fd91b: am 708b42e0: am eba7afcc: am 2f340be3: Disregard alleged binder entities beyond parcel bounds

* commit '134fd91bccde911bf9497f09841ec9922bbefec9':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parce...
Christopher Tate [Thu, 2 Jul 2015 02:07:24 +0000 (02:07 +0000)]
am 3a9b9aec: am dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parcel bounds

* commit '3a9b9aec7a0c04b74a278be5773fcfdaa2a04f4e':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 8e44d0a1: am 0804ed8e: am 1b8a2f82: Disregard alleged binder entities beyond parce...
Christopher Tate [Thu, 2 Jul 2015 02:06:40 +0000 (02:06 +0000)]
am 8e44d0a1: am 0804ed8e: am 1b8a2f82: Disregard alleged binder entities beyond parcel bounds

* commit '8e44d0a173d1f0ec4075778791c88dc392f3981e':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 0804ed8e: am 1b8a2f82: Disregard alleged binder entities beyond parcel bounds
Christopher Tate [Thu, 2 Jul 2015 01:55:53 +0000 (01:55 +0000)]
am 0804ed8e: am 1b8a2f82: Disregard alleged binder entities beyond parcel bounds

* commit '0804ed8e604f2c4304fa7be3a84f429f770221bf':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 708b42e0: am eba7afcc: am 2f340be3: Disregard alleged binder entities beyond parce...
Christopher Tate [Thu, 2 Jul 2015 01:55:43 +0000 (01:55 +0000)]
am 708b42e0: am eba7afcc: am 2f340be3: Disregard alleged binder entities beyond parcel bounds

* commit '708b42e0ee5ad97b8426a6245f73131ddfc59a33':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parcel bounds
Christopher Tate [Thu, 2 Jul 2015 01:42:09 +0000 (01:42 +0000)]
am dc3d6af9: am bb686c25: Disregard alleged binder entities beyond parcel bounds

* commit 'dc3d6af97d521678981c773ad9f4e1da088d7870':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam eba7afcc: am 2f340be3: Disregard alleged binder entities beyond parcel bounds
Christopher Tate [Thu, 2 Jul 2015 01:41:09 +0000 (01:41 +0000)]
am eba7afcc: am 2f340be3: Disregard alleged binder entities beyond parcel bounds

* commit 'eba7afcc14f55e7fd32db9254f2b186108e1c776':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam bb686c25: Disregard alleged binder entities beyond parcel bounds
Christopher Tate [Thu, 2 Jul 2015 01:31:09 +0000 (01:31 +0000)]
am bb686c25: Disregard alleged binder entities beyond parcel bounds

* commit 'bb686c25b214edadd1830abd056db2d570d716ff':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 1b8a2f82: Disregard alleged binder entities beyond parcel bounds
Christopher Tate [Thu, 2 Jul 2015 01:29:18 +0000 (01:29 +0000)]
am 1b8a2f82: Disregard alleged binder entities beyond parcel bounds

* commit '1b8a2f82fedffbc0b24c884def197db392b16576':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 2f340be3: Disregard alleged binder entities beyond parcel bounds
Christopher Tate [Thu, 2 Jul 2015 01:28:56 +0000 (01:28 +0000)]
am 2f340be3: Disregard alleged binder entities beyond parcel bounds

* commit '2f340be345612d9fc2ecb1ea2a4c9e147610a593':
  Disregard alleged binder entities beyond parcel bounds

9 years agoImplement a number of KHR EGL extensions
Season Li [Wed, 1 Jul 2015 18:39:40 +0000 (11:39 -0700)]
Implement a number of KHR EGL extensions

Add following KHR EGL extensions:

EGL_KHR_gl_texture_3D_image
EGL_KHR_config_attribs
EGL_KHR_surfaceless_context
EGL_KHR_stream
EGL_KHR_stream_fifo
EGL_KHR_stream_producer_eglsurface
EGL_KHR_stream_consumer_gltexture
EGL_KHR_stream_cross_process_fd

Change-Id: Ie7a35b5e3761e343cb71cf446cba77f67f604bdf

9 years agomerge in mnc-release history after reset to mnc-dev
The Android Automerger [Wed, 1 Jul 2015 21:24:01 +0000 (14:24 -0700)]
merge in mnc-release history after reset to mnc-dev

9 years agoMerge "Revert "Revert "Modify EGL to disconnect the window when the surface gets...
Amith Dsouza [Wed, 1 Jul 2015 17:44:57 +0000 (17:44 +0000)]
Merge "Revert "Revert "Modify EGL to disconnect the window when the surface gets destroyed.""" into mnc-dev

9 years agoMerge "Enable sensor data injection mode through adb." into mnc-dev
Aravind Akella [Wed, 1 Jul 2015 17:40:07 +0000 (17:40 +0000)]
Merge "Enable sensor data injection mode through adb." into mnc-dev

9 years agoRevert "Revert "Modify EGL to disconnect the window when the surface gets destroyed.""
Amith Dsouza [Wed, 1 Jul 2015 05:54:16 +0000 (22:54 -0700)]
Revert "Revert "Modify EGL to disconnect the window when the surface gets destroyed.""

This reverts commit 6e1a2fea67006b58e83ebbcc72f7b12f18c49d15.

Driver level issues fixed by an updated graphics driver.

Bug: 21266976
Change-Id: I93339fb6c6bab988f3550adb49ef8e70cda6473e

9 years agoam 00078817: am 59a33a01: (-s ours) am dbc2d87a: Merge "Installd: Fix delete_code_cac...
Narayan Kamath [Wed, 1 Jul 2015 13:49:21 +0000 (13:49 +0000)]
am 00078817: am 59a33a01: (-s ours) am dbc2d87a: Merge "Installd: Fix delete_code_cache() clearing the wrong cache dir"

* commit '000788178c411e2c6e5ee99f25cffe6662c5ee66':
  Installd: Fix delete_code_cache() clearing the wrong cache dir

9 years agoam 59a33a01: (-s ours) am dbc2d87a: Merge "Installd: Fix delete_code_cache() clearing...
Narayan Kamath [Wed, 1 Jul 2015 13:35:14 +0000 (13:35 +0000)]
am 59a33a01: (-s ours) am dbc2d87a: Merge "Installd: Fix delete_code_cache() clearing the wrong cache dir"

* commit '59a33a012d64d21fb73cac527ef25db8a0478d23':
  Installd: Fix delete_code_cache() clearing the wrong cache dir

9 years agoam dbc2d87a: Merge "Installd: Fix delete_code_cache() clearing the wrong cache dir"
Narayan Kamath [Wed, 1 Jul 2015 13:14:41 +0000 (13:14 +0000)]
am dbc2d87a: Merge "Installd: Fix delete_code_cache() clearing the wrong cache dir"

* commit 'dbc2d87a74987db84f6cb3cf1eed9ae7ca450ce7':
  Installd: Fix delete_code_cache() clearing the wrong cache dir

9 years agoMerge "Installd: Fix delete_code_cache() clearing the wrong cache dir"
Narayan Kamath [Wed, 1 Jul 2015 13:03:55 +0000 (13:03 +0000)]
Merge "Installd: Fix delete_code_cache() clearing the wrong cache dir"

9 years agoInstalld: Fix delete_code_cache() clearing the wrong cache dir
Hao Li [Thu, 25 Jun 2015 02:31:56 +0000 (14:31 +1200)]
Installd: Fix delete_code_cache() clearing the wrong cache dir

Fix a typo in delete_code_cache() introduced by commit c03de09, which
causes the function to empty /data/data/<package_name>/cache/ rather
than /data/data/<package_name>/code_cache/.

The following CTS test case should now pass:

 com.android.cts.appsecurity.SplitTests#testClearCodeCache

Change-Id: I2d9452d70ed39b3ea29ad65fb35e788c2fef5100
Signed-off-by: Hao Li <hao.i.li@intel.com>
Signed-off-by: Yu Ning <yu.ning@intel.com>
9 years agoam b5d6ec7c: am e59cb43e: Fix writeByteArray/writeInt32Array size on x64
Chad Brubaker [Tue, 30 Jun 2015 23:13:27 +0000 (23:13 +0000)]
am b5d6ec7c: am e59cb43e: Fix writeByteArray/writeInt32Array size on x64

* commit 'b5d6ec7cff06e6cbeeb238bea535c54a67e94d49':
  Fix writeByteArray/writeInt32Array size on x64

9 years agoam e59cb43e: Fix writeByteArray/writeInt32Array size on x64
Chad Brubaker [Tue, 30 Jun 2015 22:59:12 +0000 (22:59 +0000)]
am e59cb43e: Fix writeByteArray/writeInt32Array size on x64

* commit 'e59cb43edad0eff28a81b18c3c4484442ff680dd':
  Fix writeByteArray/writeInt32Array size on x64

9 years agoEnable sensor data injection mode through adb.
Aravind Akella [Mon, 29 Jun 2015 19:37:48 +0000 (12:37 -0700)]
Enable sensor data injection mode through adb.

Change-Id: I415cf8ff0871fa74babaf9b879c68f210298b472

9 years agoFix writeByteArray/writeInt32Array size on x64
Chad Brubaker [Tue, 30 Jun 2015 21:03:55 +0000 (14:03 -0700)]
Fix writeByteArray/writeInt32Array size on x64

writeByteArray writes the size using sizeof(size_t), however it is always
read using readInt32(). On devices where sizeof(size_t) != 4 this causes
extra bytes to be written.

BUG: 22204736
Change-Id: I8d4507b6b616857ef5827f1fe9da0907d09abf0e

9 years agoFix directory path of codecache.
Daichi Hirono [Wed, 24 Jun 2015 06:57:06 +0000 (15:57 +0900)]
Fix directory path of codecache.

Previously installd removed the normal cache directory when delete_code_cache is
called. It should delete the code cache directory.

BUG=21206499

Change-Id: I5774430e389e22805fa7984b4c83420c3677ca75

9 years agoam 6a25a287: am 806334aa: am 1998615f: Merge "sf: Initialize EventThread before creat...
Dan Stoza [Tue, 30 Jun 2015 17:49:47 +0000 (17:49 +0000)]
am 6a25a287: am 806334aa: am 1998615f: Merge "sf: Initialize EventThread before creating HWC"

* commit '6a25a2872852f23058268adcec61600460fcdfb6':
  sf: Initialize EventThread before creating HWC

9 years agoam 806334aa: am 1998615f: Merge "sf: Initialize EventThread before creating HWC"
Dan Stoza [Tue, 30 Jun 2015 17:38:41 +0000 (17:38 +0000)]
am 806334aa: am 1998615f: Merge "sf: Initialize EventThread before creating HWC"

* commit '806334aacd089d1c419ed77021a2b1bb4f7644ef':
  sf: Initialize EventThread before creating HWC

9 years agoam 1998615f: Merge "sf: Initialize EventThread before creating HWC"
Dan Stoza [Tue, 30 Jun 2015 17:24:40 +0000 (17:24 +0000)]
am 1998615f: Merge "sf: Initialize EventThread before creating HWC"

* commit '1998615f8b5becc6d2bb309a4a1686fe24c71bbc':
  sf: Initialize EventThread before creating HWC

9 years agoMerge "sf: Initialize EventThread before creating HWC"
Dan Stoza [Tue, 30 Jun 2015 17:11:08 +0000 (17:11 +0000)]
Merge "sf: Initialize EventThread before creating HWC"

9 years agoam b5b21d18: am fe608c5e: Merge "Fix directory path of codecache." into mnc-dev
Daichi Hirono [Tue, 30 Jun 2015 04:34:50 +0000 (04:34 +0000)]
am b5b21d18: am fe608c5e: Merge "Fix directory path of codecache." into mnc-dev

* commit 'b5b21d1837ba2039293feb283117e8ee441ec2a8':
  Fix directory path of codecache.

9 years agoam fe608c5e: Merge "Fix directory path of codecache." into mnc-dev
Daichi Hirono [Tue, 30 Jun 2015 04:23:17 +0000 (04:23 +0000)]
am fe608c5e: Merge "Fix directory path of codecache." into mnc-dev

* commit 'fe608c5e3c75714e4aa6c31e048f4a15e4951411':
  Fix directory path of codecache.