OSDN Git Service

android-x86/frameworks-native.git
10 years agoam 7de2bde3: Merge "Add vm_safe_mode to dexopt." into lmp-dev
Calin Juravle [Tue, 26 Aug 2014 19:28:57 +0000 (19:28 +0000)]
am 7de2bde3: Merge "Add vm_safe_mode to dexopt." into lmp-dev

* commit '7de2bde3c4c3a6ecc7e6f21e3f3322688b718c4a':
  Add vm_safe_mode to dexopt.

10 years agoMerge "Add vm_safe_mode to dexopt." into lmp-dev
Calin Juravle [Tue, 26 Aug 2014 19:09:55 +0000 (19:09 +0000)]
Merge "Add vm_safe_mode to dexopt." into lmp-dev

10 years agoam c70626a1: Merge "Pass isa features flag to dex2oat."
Calin Juravle [Tue, 26 Aug 2014 18:08:48 +0000 (18:08 +0000)]
am c70626a1: Merge "Pass isa features flag to dex2oat."

* commit 'c70626a1ef18ef316a633ba0e399dbdf8f85973a':
  Pass isa features flag to dex2oat.

10 years agoMerge "Pass isa features flag to dex2oat."
Calin Juravle [Tue, 26 Aug 2014 17:52:26 +0000 (17:52 +0000)]
Merge "Pass isa features flag to dex2oat."

10 years agoam 20558f11: Merge "Pass isa features flag to dex2oat." into lmp-dev
Calin Juravle [Tue, 26 Aug 2014 17:51:57 +0000 (17:51 +0000)]
am 20558f11: Merge "Pass isa features flag to dex2oat." into lmp-dev

* commit '20558f1154abcf3360fd972f6d2c80bb80f78502':
  Pass isa features flag to dex2oat.

10 years agoPass isa features flag to dex2oat.
Calin Juravle [Tue, 19 Aug 2014 17:48:50 +0000 (18:48 +0100)]
Pass isa features flag to dex2oat.

Bug: 16716262

(cherry picked from commit 8fc7315a67fdbf9b56cc6fa061f0773be2223a81)

Change-Id: I3cb1d82604612bc7212bcbdeef685bc05b695b6a

10 years agoMerge "Pass isa features flag to dex2oat." into lmp-dev
Calin Juravle [Tue, 26 Aug 2014 17:34:57 +0000 (17:34 +0000)]
Merge "Pass isa features flag to dex2oat." into lmp-dev

10 years agoAdd vm_safe_mode to dexopt.
Calin Juravle [Thu, 21 Aug 2014 18:05:20 +0000 (19:05 +0100)]
Add vm_safe_mode to dexopt.

The flag enforces interpret-only flag for dex2oat.

Bug: 12457423
Change-Id: Ifdafcc1afa32996577fa44c5682eeb58c79772ac

10 years agoPass isa features flag to dex2oat.
Calin Juravle [Tue, 19 Aug 2014 17:48:50 +0000 (18:48 +0100)]
Pass isa features flag to dex2oat.

Bug: 16716262
Change-Id: Ifbc3a1520bc177aa87855edb60c36346f24c77cd

10 years agoam 4d407a0f: surfaceflinger: Trace HW vsync enable
Jesse Hall [Tue, 26 Aug 2014 14:46:20 +0000 (14:46 +0000)]
am 4d407a0f: surfaceflinger: Trace HW vsync enable

* commit '4d407a0f05ad9ba3c232ff5b6742495660c0e4ab':
  surfaceflinger: Trace HW vsync enable

10 years agoam f00945cf: Merge "Add native flag to reflect new density type" into lmp-dev
Adam Lesinski [Tue, 26 Aug 2014 04:53:49 +0000 (04:53 +0000)]
am f00945cf: Merge "Add native flag to reflect new density type" into lmp-dev

* commit 'f00945cfd7b105ad83aa0e26478681ee2ebf9bb7':
  Add native flag to reflect new density type

10 years agosurfaceflinger: Trace HW vsync enable
Jesse Hall [Mon, 25 Aug 2014 21:44:16 +0000 (14:44 -0700)]
surfaceflinger: Trace HW vsync enable

This makes it possible to tell whether two HW vsync signals are too
far apart because one was late, or because we turned HW vsync off
briefly between them.

Bug: 17259382
Change-Id: If4fba2a8a6013568349949ce87c5c36f0468d2a2

10 years agoMerge "Add native flag to reflect new density type" into lmp-dev
Adam Lesinski [Mon, 25 Aug 2014 21:42:35 +0000 (21:42 +0000)]
Merge "Add native flag to reflect new density type" into lmp-dev

10 years agoam 47c166a9: Merge "Fix deadlock when killing adb bugreport" into lmp-dev
Andres Morales [Mon, 25 Aug 2014 17:49:18 +0000 (17:49 +0000)]
am 47c166a9: Merge "Fix deadlock when killing adb bugreport" into lmp-dev

* commit '47c166a9ad740707f86719e0de56e20c73f407c1':
  Fix deadlock when killing adb bugreport

10 years agoMerge "Fix deadlock when killing adb bugreport" into lmp-dev
Andres Morales [Mon, 25 Aug 2014 17:31:49 +0000 (17:31 +0000)]
Merge "Fix deadlock when killing adb bugreport" into lmp-dev

10 years agoAdd native flag to reflect new density type
Adam Lesinski [Sat, 23 Aug 2014 05:23:08 +0000 (22:23 -0700)]
Add native flag to reflect new density type

Bug:17007265
Change-Id: If0129c4ad222fe28628d6f7cd8ee78fc6424e177

10 years agoam 5466c3d2: SensorService fixes
Aravind Akella [Sat, 23 Aug 2014 00:50:17 +0000 (00:50 +0000)]
am 5466c3d2: SensorService fixes

* commit '5466c3d20d03d4ae4b0fd0e0a93175091e3b0bb2':
  SensorService fixes

10 years agoSensorService fixes
Aravind Akella [Fri, 22 Aug 2014 23:11:10 +0000 (16:11 -0700)]
SensorService fixes

     1) Limit maxEventsToWrite depending on the size of the socket
     buffer allocated (Fix for write failure on manta).
     2) Do not call flush() if the sensor is not activated (OEM issue).

Change-Id: I81ea78dbdef3a3773af505ca1c9a5e39492c0b48

10 years agoFix deadlock when killing adb bugreport
Andres Morales [Thu, 21 Aug 2014 19:38:22 +0000 (12:38 -0700)]
Fix deadlock when killing adb bugreport

Leave default signal handler (terminate) for parent process,
add SIG_IGN as signal handler for children and let them
go down when the parent gets SIGPIPE.

Bug: 17109154
Change-Id: Id33db3e97a32f289eb2a9a1a0ca8acbe3dcd285d

10 years agoam b1bbfc2d: Merge "Add Voice Assist key." into lmp-dev
Michael Wright [Fri, 22 Aug 2014 18:20:54 +0000 (18:20 +0000)]
am b1bbfc2d: Merge "Add Voice Assist key." into lmp-dev

* commit 'b1bbfc2d029b709f6b4bb26f4d840e4002eb3781':
  Add Voice Assist key.

10 years agoMerge "Add Voice Assist key." into lmp-dev
Michael Wright [Fri, 22 Aug 2014 18:02:01 +0000 (18:02 +0000)]
Merge "Add Voice Assist key." into lmp-dev

10 years agoam 72deed8c: Merge "Fix validation of system paths in installd."
Calin Juravle [Fri, 22 Aug 2014 17:27:58 +0000 (17:27 +0000)]
am 72deed8c: Merge "Fix validation of system paths in installd."

* commit '72deed8cd25349ed12390a7a5088d07d63f3d8cd':
  Fix validation of system paths in installd.

10 years agoMerge "Fix validation of system paths in installd."
Calin Juravle [Fri, 22 Aug 2014 17:11:51 +0000 (17:11 +0000)]
Merge "Fix validation of system paths in installd."

10 years agoam eb21986d: Merge "Update currentConfig variable when active display is changed...
Michael Lentine [Fri, 22 Aug 2014 16:52:12 +0000 (16:52 +0000)]
am eb21986d: Merge "Update currentConfig variable when active display is changed." into lmp-dev

* commit 'eb21986df0429d63f5e9678741730f07f17dcbad':
  Update currentConfig variable when active display is changed.

10 years agoMerge "Update currentConfig variable when active display is changed." into lmp-dev
Michael Lentine [Fri, 22 Aug 2014 16:34:13 +0000 (16:34 +0000)]
Merge "Update currentConfig variable when active display is changed." into lmp-dev

10 years agoam c597b6dd: Fix validation of system paths in installd.
Calin Juravle [Fri, 22 Aug 2014 14:54:28 +0000 (14:54 +0000)]
am c597b6dd: Fix validation of system paths in installd.

* commit 'c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c':
  Fix validation of system paths in installd.

10 years agoFix validation of system paths in installd.
Calin Juravle [Tue, 19 Aug 2014 16:43:05 +0000 (17:43 +0100)]
Fix validation of system paths in installd.

System apps are now installed under their own directory
(system_app_dir/app_dir/app.apk). The new path doesn't pass installd
validation because of obsolete checks which verify that the path does
not contain subdirectories past the system_app_dir.

The CL fixes the validation to accept at most on subdirectory.

Bug: 17109858

(cherry picked from commit c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c)

Change-Id: Ic5f15d1864c6af9f4c4b07dc27244ebbb521ad5e

10 years agoam 57282562: Merge "Allow apk path to contain one subdirectory."
Calin Juravle [Fri, 22 Aug 2014 13:59:23 +0000 (13:59 +0000)]
am 57282562: Merge "Allow apk path to contain one subdirectory."

* commit '5728256201a3f67365f24763813f72354668667a':
  Allow apk path to contain one subdirectory.

10 years agoFix validation of system paths in installd.
Calin Juravle [Tue, 19 Aug 2014 16:43:05 +0000 (17:43 +0100)]
Fix validation of system paths in installd.

System apps are now installed under their own directory
(system_app_dir/app_dir/app.apk). The new path doesn't pass installd
validation because of obsolete checks which verify that the path does
not contain subdirectories past the system_app_dir.

The CL fixes the validation to accept at most on subdirectory.

Bug: 17109858
Change-Id: I13abb52c0016610ff436f6a26bb6b3b85dc4dfb0

10 years agoMerge "Allow apk path to contain one subdirectory."
Calin Juravle [Fri, 22 Aug 2014 13:40:49 +0000 (13:40 +0000)]
Merge "Allow apk path to contain one subdirectory."

10 years agoam 67cfe0c0: Merge "Allow apk path to contain one subdirectory." into lmp-dev
Calin Juravle [Fri, 22 Aug 2014 13:15:53 +0000 (13:15 +0000)]
am 67cfe0c0: Merge "Allow apk path to contain one subdirectory." into lmp-dev

* commit '67cfe0c0660c36ca385ad0eeb1352a2df721b49c':
  Allow apk path to contain one subdirectory.

10 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

(cherry picked from commit fd88ff2edd954117e36372fb095b6f5f35aad0e3)

Change-Id: I1002529b0c35852c67540d3165d1444523460592

10 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

10 years agoAdd Voice Assist key.
Michael Wright [Fri, 22 Aug 2014 02:09:49 +0000 (19:09 -0700)]
Add Voice Assist key.

Bug: 16292420
Change-Id: I607fadc2edf673079bfd9f7406e6e45603474957

10 years agoam e74baf6c: SensorService fixes.
Aravind Akella [Fri, 22 Aug 2014 00:05:39 +0000 (00:05 +0000)]
am e74baf6c: SensorService fixes.

* commit 'e74baf6ca7d57375f38540b6b7ac5e4af019951b':
  SensorService fixes.

10 years agoUpdate currentConfig variable when active display is changed.
Michael Lentine [Thu, 21 Aug 2014 21:43:13 +0000 (14:43 -0700)]
Update currentConfig variable when active display is changed.

Bug: 17182607
Change-Id: I8631c105a9e0fa402a7d9670717becc9857af935

10 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

10 years agoam 61a4eecb: Merge "atrace: avoid unnecessary writes to trace_clock" into lmp-dev
Colin Cross [Thu, 21 Aug 2014 03:06:23 +0000 (03:06 +0000)]
am 61a4eecb: Merge "atrace: avoid unnecessary writes to trace_clock" into lmp-dev

* commit '61a4eecbe615bc94944161c4cf4aa590dfca1b2e':
  atrace: avoid unnecessary writes to trace_clock

10 years agoam 949ea086: sf: Clear display configs when hot pluggable display is disconnected
Naseer Ahmed [Thu, 21 Aug 2014 02:57:12 +0000 (02:57 +0000)]
am 949ea086: sf: Clear display configs when hot pluggable display is disconnected

* commit '949ea0868de1df7e2f28a32d777cc41f901d6770':
  sf: Clear display configs when hot pluggable display is disconnected

10 years agoam d4548dd0: am 514e30a9: am c3d1889e: Merge "surfaceflinger: skip composition for...
Jesse Hall [Thu, 21 Aug 2014 00:44:35 +0000 (00:44 +0000)]
am d4548dd0: am 514e30a9: am c3d1889e: Merge "surfaceflinger: skip composition for empty frames" into klp-modular-dev

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

10 years agoam 4d7c4100: Merge "Destroy eglSurface before recreating." into lmp-dev
Michael Lentine [Thu, 21 Aug 2014 00:43:55 +0000 (00:43 +0000)]
am 4d7c4100: Merge "Destroy eglSurface before recreating." into lmp-dev

* commit '4d7c41008d0945b58d802e04d0bea28e9b739a5f':
  Destroy eglSurface before recreating.

10 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>
10 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

10 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

10 years agoam 1b6d7c12: am 2eaec5a8: am 1f1ca890: Adding an ECG hardware feature
Vinod Krishnan [Wed, 20 Aug 2014 18:49:04 +0000 (18:49 +0000)]
am 1b6d7c12: am 2eaec5a8: am 1f1ca890: Adding an ECG hardware feature

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

10 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

10 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

10 years agoam 4c5b9acf: Merge "Don\'t try to capture the pointer when using PBOs for texture...
Ben Clayton [Wed, 20 Aug 2014 16:32:37 +0000 (16:32 +0000)]
am 4c5b9acf: Merge "Don\'t try to capture the pointer when using PBOs for texture APIs" into lmp-dev

* commit '4c5b9acf655531f1be45bf7fffc5ee145a80cca7':
  Don't try to capture the pointer when using PBOs for texture APIs

10 years agoam 2cfbef25: Merge "Fix inverse orientation when original is not applied first."...
Michael Lentine [Wed, 20 Aug 2014 15:46:34 +0000 (15:46 +0000)]
am 2cfbef25: Merge "Fix inverse orientation when original is not applied first." into lmp-dev

* commit '2cfbef255b0e1b1b8fad3cba0e447d79a7b8203b':
  Fix inverse orientation when original is not applied first.

10 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

10 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

10 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

10 years agoam 62205596: Merge "Fix camera orientation by swapping horizontal and vertical flips...
Michael Lentine [Tue, 19 Aug 2014 23:50:18 +0000 (23:50 +0000)]
am 62205596: Merge "Fix camera orientation by swapping horizontal and vertical flips when needed." into lmp-dev

* commit '62205596b9848d9d7d9de90aa0f5682d6ce17ea3':
  Fix camera orientation by swapping horizontal and vertical flips when needed.

10 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

10 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

10 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

10 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

10 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

10 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

10 years agoam efc0b35f: Merge "Fix CAS argument type."
Hans Boehm [Tue, 19 Aug 2014 22:28:41 +0000 (22:28 +0000)]
am efc0b35f: Merge "Fix CAS argument type."

* commit 'efc0b35fbd256bb3e225f4a1b953d0895ee3e99a':
  Fix CAS argument type.

10 years agoam b3abe7c0: Merge "Incorporate TransformToDisplayInverse into the crop calculation...
Michael Lentine [Tue, 19 Aug 2014 21:13:00 +0000 (21:13 +0000)]
am b3abe7c0: Merge "Incorporate TransformToDisplayInverse into the crop calculation." into lmp-dev

* commit 'b3abe7c06a834d92439d034b29e3b5af632de130':
  Incorporate TransformToDisplayInverse into the crop calculation.

10 years agoam 51d3d176: Merge "Within CpuConsumer, use gralloc lockAsync/unlockAsync" into lmp-dev
Riley Andrews [Tue, 19 Aug 2014 21:07:51 +0000 (21:07 +0000)]
am 51d3d176: Merge "Within CpuConsumer, use gralloc lockAsync/unlockAsync" into lmp-dev

* commit '51d3d176e35abc8b72e55035b0f7b81388ee044d':
  Within CpuConsumer, use gralloc lockAsync/unlockAsync

10 years agoam a54f3b2f: Merge "SensorService fixes." into lmp-dev
Aravind Akella [Tue, 19 Aug 2014 20:34:18 +0000 (20:34 +0000)]
am a54f3b2f: Merge "SensorService fixes." into lmp-dev

* commit 'a54f3b2f4a1d531bca952b5a10fa8181502ce820':
  SensorService fixes.

10 years agoam 86639909: Take advantage of sync points during screen cap.
Riley Andrews [Tue, 19 Aug 2014 20:02:07 +0000 (20:02 +0000)]
am 86639909: Take advantage of sync points during screen cap.

* commit '866399093f9f60e7305f291e688abb456bace710':
  Take advantage of sync points during screen cap.

10 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

10 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

10 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

10 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

10 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

10 years agoam b1f0f288: Merge changes I4cfb3138,I45356c29 into lmp-dev
Colin Cross [Tue, 19 Aug 2014 01:48:59 +0000 (01:48 +0000)]
am b1f0f288: Merge changes I4cfb3138,I45356c29 into lmp-dev

* commit 'b1f0f288e30c0448cabd46d19c60b3bd0d272f74':
  atrace: add memory reclaim tracing
  atrace: Add IRQ events

10 years agoam 62fbb163: Shelve InputFlinger for another release. DO NOT MERGE
Michael Wright [Tue, 19 Aug 2014 01:33:52 +0000 (01:33 +0000)]
am 62fbb163: Shelve InputFlinger for another release. DO NOT MERGE

* commit '62fbb16383d6d8268821f947e2c6d0828f7e2b41':
  Shelve InputFlinger for another release. DO NOT MERGE

10 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

10 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

10 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

10 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

10 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

10 years agoam 703b60ce: Merge "Use gettid directly in binder."
Elliott Hughes [Mon, 18 Aug 2014 19:34:22 +0000 (19:34 +0000)]
am 703b60ce: Merge "Use gettid directly in binder."

* commit '703b60ce39e52d319074adf53704d33f9c16dbbd':
  Use gettid directly in binder.

10 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

10 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

10 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)

10 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

10 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

10 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

10 years agoMerge "Fix CAS argument type."
Hans Boehm [Tue, 19 Aug 2014 22:15:01 +0000 (22:15 +0000)]
Merge "Fix CAS argument type."

10 years agoFix CAS argument type.
Hans Boehm [Tue, 19 Aug 2014 20:42:54 +0000 (13:42 -0700)]
Fix CAS argument type.

Gcc apparently doesn't check; clang does.

Bug:17067219
Change-Id: I184084a5063131dbc857c63f97e70e78a05e1a76

10 years agoMerge "Use gettid directly in binder."
Elliott Hughes [Mon, 18 Aug 2014 17:45:48 +0000 (17:45 +0000)]
Merge "Use gettid directly in binder."

10 years agoUse gettid directly in binder.
Elliott Hughes [Mon, 18 Aug 2014 17:38:38 +0000 (10:38 -0700)]
Use gettid directly in binder.

Bug: 17048545
Change-Id: I1df378135961e085a52f6cc5694ad74cd73aac19

10 years agoam c8c5e4c6: Merge "Add trace tag for power management." into lmp-dev
Jeff Brown [Sat, 16 Aug 2014 03:14:00 +0000 (03:14 +0000)]
am c8c5e4c6: Merge "Add trace tag for power management." into lmp-dev

* commit 'c8c5e4c66b858fc41bdb696421eb13c3ea65a238':
  Add trace tag for power management.

10 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

10 years agoam ca58175c: Merge "Disable verification based on vold.decrypt. [frameworks/native]"
Brian Carlstrom [Fri, 15 Aug 2014 17:44:30 +0000 (17:44 +0000)]
am ca58175c: Merge "Disable verification based on vold.decrypt. [frameworks/native]"

* commit 'ca58175c831376bc052bde2e25d40798f0cf7ea9':
  Disable verification based on vold.decrypt. [frameworks/native]

10 years agoam e18987ef: Disable verification based on vold.decrypt. [frameworks/native]
Brian Carlstrom [Fri, 15 Aug 2014 17:20:38 +0000 (17:20 +0000)]
am e18987ef: Disable verification based on vold.decrypt. [frameworks/native]

* commit 'e18987efb5e39ca1bed15527b7b82bde55c99669':
  Disable verification based on vold.decrypt. [frameworks/native]

10 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

10 years agoMerge "Disable verification based on vold.decrypt. [frameworks/native]"
Brian Carlstrom [Fri, 15 Aug 2014 17:21:47 +0000 (17:21 +0000)]
Merge "Disable verification based on vold.decrypt. [frameworks/native]"

10 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

(cherry picked from commit e18987efb5e39ca1bed15527b7b82bde55c99669)

Change-Id: Ie55ef400c9d1f231b3be64248c756ac798a11ffe

10 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

10 years agoam a0187a9c: Merge "Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...
Hans Boehm [Wed, 13 Aug 2014 00:19:23 +0000 (00:19 +0000)]
am a0187a9c: Merge "Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""""

* commit 'a0187a9c83cb042b4cb92dac59214247bb7affcf':
  Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""

10 years agoMerge "Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use...
Hans Boehm [Wed, 13 Aug 2014 00:10:07 +0000 (00:10 +0000)]
Merge "Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use."""""

10 years agoRevert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""
Hans Boehm [Tue, 12 Aug 2014 22:56:00 +0000 (22:56 +0000)]
Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""

After fixing b/16874785.

This reverts commit f010a05c7e9a23b6083294aff4a8183ab01f686e.

Change-Id: I1645ca5d6f60595bf5d388913665ce4b8780b26d

10 years agoam 1a22eb7b: Merge "Change an accidental ALOGE to an ALOGV"
Andreas Gampe [Mon, 11 Aug 2014 20:00:46 +0000 (20:00 +0000)]
am 1a22eb7b: Merge "Change an accidental ALOGE to an ALOGV"

* commit '1a22eb7ba1062ed1ee35cdb9d797019699cbce8b':
  Change an accidental ALOGE to an ALOGV

10 years agoam 3b14e5b1: Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup
Brian Carlstrom [Mon, 11 Aug 2014 18:03:05 +0000 (18:03 +0000)]
am 3b14e5b1: Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup

* commit '3b14e5b1f3fd1f3ef66696dc7ce4e53b6af3c309':
  Use set_sched_policy to put dexopt operations in SP_BACKGROUND cgroup