OSDN Git Service

android-x86/frameworks-native.git
8 years agoFixed check if zip file was generated properly.
Felipe Leme [Thu, 19 Nov 2015 23:30:35 +0000 (15:30 -0800)]
Fixed check if zip file was generated properly.

During the earlier development stages, this function was returning an
int and later it was changed to boolean, but the check was not updated.

BUG: 25563823
Change-Id: I77f50bf2184d5dd4da2156a5eca4c8a555b567a4

8 years agoMerge "Remove obsolete profile handling from installd." am: 8161da7a0e am: a51f45a601
Calin Juravle [Wed, 18 Nov 2015 00:20:44 +0000 (00:20 +0000)]
Merge "Remove obsolete profile handling from installd." am: 8161da7a0e am: a51f45a601
am: 357cb908fa

* commit '357cb908faa88b915c1d2c977f16e533e855f19f':
  Remove obsolete profile handling from installd.

8 years agobatteryservice: Add max charging voltage
Badhri Jagan Sridharan [Tue, 17 Nov 2015 19:53:07 +0000 (19:53 +0000)]
batteryservice: Add max charging voltage
am: 4e5a5adda8

* commit '4e5a5adda807cec54df8c1f2ccf51830abe9b4e2':
  batteryservice: Add max charging voltage

8 years agoMerge "Fix a few bugs related to dumping files."
Christopher Ferris [Tue, 17 Nov 2015 00:10:09 +0000 (00:10 +0000)]
Merge "Fix a few bugs related to dumping files."

8 years agoActively mangage EAS schedtune nodes
Todd Kjos [Mon, 16 Nov 2015 23:49:50 +0000 (15:49 -0800)]
Actively mangage EAS schedtune nodes

Move foreground tasks to /sys/fs/cgroup/stune/boost/tasks (boosted
weight in EAS scheduler). Move background tasks to
/sys/fs/cgroup/stune/tasks (default weight). For services started
with init, set "foreground" services to boosted.

Change-Id: I0e489fad9510727c13e6754dabaf311c2391f395

8 years agoFix a few bugs related to dumping files.
Christopher Ferris [Thu, 12 Nov 2015 22:01:56 +0000 (14:01 -0800)]
Fix a few bugs related to dumping files.

Fixes:

- Fix double print of header in dump_file.

- Fix a few possible file descriptor leaks.

- Add /d/ as another directory which should be skipped when printing out
  last mod time of a file.

- Fix possible crash if the path passed to _dump_file_from_fd is less than
  the length of one of the directory checks.

Change-Id: I450dfab76fd0ce4d4dca9ed39c82a980054f3cc3

8 years agoMerge "Added option (-z) to generate a zipfile with the bugreport."
Felipe Leme [Mon, 16 Nov 2015 22:10:20 +0000 (22:10 +0000)]
Merge "Added option (-z) to generate a zipfile with the bugreport."

8 years agobatteryservice: Add max charging voltage
Badhri Jagan Sridharan [Tue, 27 Oct 2015 20:37:05 +0000 (13:37 -0700)]
batteryservice: Add max charging voltage

Bug: 25229483
Change-Id: I4b6dd13870c41907c708f32412261efdca826023
(cherry picked from commit 06f511b469c7ba69d889cc5252e908f1084c8ff5)

8 years agoMerge "Remove obsolete profile handling from installd." am: 8161da7a0e
Calin Juravle [Mon, 16 Nov 2015 11:28:16 +0000 (11:28 +0000)]
Merge "Remove obsolete profile handling from installd." am: 8161da7a0e
am: a51f45a601

* commit 'a51f45a6014907d0e0fd06f0fcffed592c843419':
  Remove obsolete profile handling from installd.

8 years agoMerge "Remove obsolete profile handling from installd."
Calin Juravle [Mon, 16 Nov 2015 11:20:25 +0000 (11:20 +0000)]
Merge "Remove obsolete profile handling from installd."
am: 8161da7a0e

* commit '8161da7a0e54bc4af36e49353e4caad02de384dc':
  Remove obsolete profile handling from installd.

8 years agoMerge "Remove obsolete profile handling from installd."
Calin Juravle [Mon, 16 Nov 2015 11:07:38 +0000 (11:07 +0000)]
Merge "Remove obsolete profile handling from installd."

8 years agoadd vehicle_network_service to stack dump
keunyoung [Fri, 16 Oct 2015 22:21:43 +0000 (15:21 -0700)]
add vehicle_network_service to stack dump

bug: 24095928
Change-Id: I32874f36003cd0dfacc8d9d5b568e6fc963bfa43

8 years agoMerge "SF: Initialize mSingleBufferMode"
Pablo Ceballos [Fri, 13 Nov 2015 22:44:16 +0000 (22:44 +0000)]
Merge "SF: Initialize mSingleBufferMode"

8 years agoMerge "Use templates for write*Vector methods" am: 81960facb6 am: d6bb937114
Casey Dahlin [Fri, 13 Nov 2015 22:22:02 +0000 (22:22 +0000)]
Merge "Use templates for write*Vector methods" am: 81960facb6 am: d6bb937114
am: 18f0bd5731

* commit '18f0bd57311457a0a9f6229c4c409d985651e56d':
  Use templates for write*Vector methods

8 years agoMerge "Use templates for write*Vector methods" am: 81960facb6
Casey Dahlin [Fri, 13 Nov 2015 22:20:05 +0000 (22:20 +0000)]
Merge "Use templates for write*Vector methods" am: 81960facb6
am: d6bb937114

* commit 'd6bb937114a945dd1ebe4299ab2dab1bd6ff795e':
  Use templates for write*Vector methods

8 years agoMerge "Use templates for write*Vector methods"
Casey Dahlin [Fri, 13 Nov 2015 22:18:11 +0000 (22:18 +0000)]
Merge "Use templates for write*Vector methods"
am: 81960facb6

* commit '81960facb673740acd41b72d21febea16ba4986c':
  Use templates for write*Vector methods

8 years agoMerge "Use templates for write*Vector methods"
Casey Dahlin [Fri, 13 Nov 2015 22:15:01 +0000 (22:15 +0000)]
Merge "Use templates for write*Vector methods"

8 years agoUse templates for write*Vector methods
Casey Dahlin [Fri, 13 Nov 2015 21:46:29 +0000 (13:46 -0800)]
Use templates for write*Vector methods

Change-Id: I86223bd54940ebe3e8f090b7786ddfa3ee57195e
Test: AIDL integration tests still pass
Bug: None
Signed-off-by: Casey Dahlin <sadmac@google.com>
8 years agoSF: Initialize mSingleBufferMode
Pablo Ceballos [Fri, 13 Nov 2015 21:39:23 +0000 (13:39 -0800)]
SF: Initialize mSingleBufferMode

Bug 25586311

Change-Id: I2d66542c6ecb762924fa002e5487188703be8515

8 years agoMerge "Move dumpstate to top -H rather than top -t." am: 20986bf383 am: 5e02b1bfbb
Elliott Hughes [Fri, 13 Nov 2015 20:33:43 +0000 (20:33 +0000)]
Merge "Move dumpstate to top -H rather than top -t." am: 20986bf383 am: 5e02b1bfbb
am: 439903c2ff

* commit '439903c2ff50cb632891006b9dfad0b4993b8384':
  Move dumpstate to top -H rather than top -t.

8 years agoMerge "Move dumpstate to top -H rather than top -t." am: 20986bf383
Elliott Hughes [Fri, 13 Nov 2015 20:30:45 +0000 (20:30 +0000)]
Merge "Move dumpstate to top -H rather than top -t." am: 20986bf383
am: 5e02b1bfbb

* commit '5e02b1bfbbaedfb3703cd0f56e6bcac3aa4edfd9':
  Move dumpstate to top -H rather than top -t.

8 years agoMerge "Move dumpstate to top -H rather than top -t."
Elliott Hughes [Fri, 13 Nov 2015 20:28:00 +0000 (20:28 +0000)]
Merge "Move dumpstate to top -H rather than top -t."
am: 20986bf383

* commit '20986bf3830dabae74837660403c43f92c9131bd':
  Move dumpstate to top -H rather than top -t.

8 years agoMerge "Move dumpstate to top -H rather than top -t."
Elliott Hughes [Fri, 13 Nov 2015 20:23:22 +0000 (20:23 +0000)]
Merge "Move dumpstate to top -H rather than top -t."

8 years agoMove dumpstate to top -H rather than top -t.
Elliott Hughes [Fri, 13 Nov 2015 19:32:48 +0000 (11:32 -0800)]
Move dumpstate to top -H rather than top -t.

Change-Id: Ibc26b51e92425b2de7870a7a2890fc3566909cda

8 years agoAdded option (-z) to generate a zipfile with the bugreport.
Felipe Leme [Thu, 12 Nov 2015 03:35:14 +0000 (19:35 -0800)]
Added option (-z) to generate a zipfile with the bugreport.

Currently, dumpstate generates a text file and Shell zips it, but that
breaks the android.intent.action.BUGREPORT_FINISHED contract.

Also changed some string variables from char* to std::string.

BUG: 25563823
Change-Id: I6e61798bf559fa9f79f629b22fd410752da2bbf7

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1...
Lajos Molnar [Fri, 13 Nov 2015 00:27:44 +0000 (00:27 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1 am: 37b8c1f77c am: 8abb053a2e am: bc9bc0e0fc
am: 08a1eacdb1

* commit '08a1eacdb1e03dd6d93869812153270b14662b36':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc am: fb1f4cf4d4
Christopher Wiley [Fri, 13 Nov 2015 00:26:20 +0000 (00:26 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc am: fb1f4cf4d4
am: e6dde7a85d

* commit 'e6dde7a85d51ec85da7e3e2463686ec8dbb6925f':
  libbinder: Return UNEXPECTED_NULL when appropriate

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1...
Lajos Molnar [Fri, 13 Nov 2015 00:21:08 +0000 (00:21 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1 am: 37b8c1f77c am: 8abb053a2e
am: bc9bc0e0fc

* commit 'bc9bc0e0fc75097e48feff9bb954de648930817c':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1...
Lajos Molnar [Fri, 13 Nov 2015 00:16:41 +0000 (00:16 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1 am: 37b8c1f77c
am: 8abb053a2e

* commit '8abb053a2ea021c649e481813e45860add946e36':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1
Lajos Molnar [Fri, 13 Nov 2015 00:11:57 +0000 (00:11 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev am: f1de4547c1
am: 37b8c1f77c

* commit '37b8c1f77cab3ee9809bcbad81d765ec5bddedce':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev
Lajos Molnar [Fri, 13 Nov 2015 00:07:04 +0000 (00:07 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev
am: f1de4547c1

* commit 'f1de4547c14467c03b00187efde5381dd1fb265c':
  OMX: clarify EOS signaling for tunneled decoders

8 years agoMerge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev
Lajos Molnar [Fri, 13 Nov 2015 00:00:19 +0000 (00:00 +0000)]
Merge "OMX: clarify EOS signaling for tunneled decoders" into mnc-dev

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc
Christopher Wiley [Thu, 12 Nov 2015 22:40:07 +0000 (22:40 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate" am: 41e50f99bc
am: fb1f4cf4d4

* commit 'fb1f4cf4d481f1614bae977b187cdb888c8af09a':
  libbinder: Return UNEXPECTED_NULL when appropriate

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate"
Christopher Wiley [Thu, 12 Nov 2015 22:35:00 +0000 (22:35 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate"
am: 41e50f99bc

* commit '41e50f99bc3b832df2b7249ce1d3fc92e718c98d':
  libbinder: Return UNEXPECTED_NULL when appropriate

8 years agoMerge "libbinder: Return UNEXPECTED_NULL when appropriate"
Christopher Wiley [Thu, 12 Nov 2015 22:25:04 +0000 (22:25 +0000)]
Merge "libbinder: Return UNEXPECTED_NULL when appropriate"

8 years agoCloses stdout when it is redirected to a file.
Felipe Leme [Wed, 11 Nov 2015 01:39:08 +0000 (17:39 -0800)]
Closes stdout when it is redirected to a file.

Bug: 19271141
Change-Id: I2990542649e64bf0a281bb9e322ed7b3b98a75c1

8 years agoMerge "Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps."
Felipe Leme [Thu, 12 Nov 2015 00:54:57 +0000 (00:54 +0000)]
Merge "Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps."

8 years agoAdd option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.
Felipe Leme [Wed, 11 Nov 2015 04:10:25 +0000 (20:10 -0800)]
Add option to #define _DUMPSTATE_DRY_RUN_ to skip the actual dumps.

Such option is useful when debugging dumpstate itself, since it will
finish much sooner and its output will be much smaller.

Change-Id: If821ed21715461bf82eea0b2be4b926239ad69da

8 years agoCreate device-encrypted directories for apps.
Jeff Sharkey [Mon, 9 Nov 2015 21:10:36 +0000 (13:10 -0800)]
Create device-encrypted directories for apps.

When device has FBE, create device-encrypted storage location when
installing apps.

Also remove "renamepkg" unused command.

Bug: 22358539
Change-Id: Ic56eeecdc64bdaa7429b93426727a243a4e45f47

8 years agolibbinder: Return UNEXPECTED_NULL when appropriate
Christopher Wiley [Tue, 10 Nov 2015 17:44:30 +0000 (09:44 -0800)]
libbinder: Return UNEXPECTED_NULL when appropriate

Return a meaningful and consistent error code when libbinder encounters
a null reference that it didn't expect.  This allows us to detect these
situations and cause a corresponding NullPointerException to be thrown
on the remote callsite.

While here, consolidate places we read vector<T> from a parcel into a
single templated version.  This dramatically reduces code duplication.

Bug: 25617251
Test: Integration tests asserting that vectors serialize correctly
      passes.  Integration test asserting that we throw
      NullPointerException on seeing a null reference also passes.

Change-Id: Ia59c264884ec89539c1b99cd7bd28ac201b5b7ac

8 years agoMerge "Migrated dumpstate to C++."
Felipe Leme [Tue, 10 Nov 2015 22:11:10 +0000 (22:11 +0000)]
Merge "Migrated dumpstate to C++."

8 years agoMerge "glgen: Better support for null arguments in JNI"
Pablo Ceballos [Tue, 10 Nov 2015 21:41:52 +0000 (21:41 +0000)]
Merge "glgen: Better support for null arguments in JNI"

8 years agoMigrated dumpstate to C++.
Felipe Leme [Tue, 10 Nov 2015 19:04:45 +0000 (11:04 -0800)]
Migrated dumpstate to C++.

Changes required:

- Explicity casting function pointers.
- Moving variables initialization before 'goto' statements.
- Changing string references from 'char *' to 'const char *'.
- Using 'extern "C"' so device-dependent implementation of
  'dumpstate_board()' can be written in C or C++.

BUG: 25563823
Change-Id: I5712c2adbe181c6d17983cbb136b17757900b4ba

8 years agoMerge "Fix parsing the EGL extension string."
Nicolas Capens [Mon, 9 Nov 2015 20:46:53 +0000 (20:46 +0000)]
Merge "Fix parsing the EGL extension string."

8 years agoMerge "Allow read access to /proc entries for other UIDs" am: fd53598220 am: 877b5daecc
Nick Kralevich [Mon, 9 Nov 2015 20:33:46 +0000 (20:33 +0000)]
Merge "Allow read access to /proc entries for other UIDs" am: fd53598220 am: 877b5daecc
am: 3e606062b3

* commit '3e606062b3b2e8143f5353a7028e78b25a803aa8':
  Allow read access to /proc entries for other UIDs

8 years agoFix parsing the EGL extension string.
Nicolas Capens [Fri, 30 Oct 2015 16:55:21 +0000 (12:55 -0400)]
Fix parsing the EGL extension string.

The EGL extension string does not necessarily have a space before the
terminating null. The previous code would skip the last extension name
when there's no extra space. The new code also works for empty strings.

Change-Id: Ib272cf05a7ebcc0de417f91966489ed4db33c283

8 years agoMerge "Allow read access to /proc entries for other UIDs" am: fd53598220
Nick Kralevich [Mon, 9 Nov 2015 20:30:04 +0000 (20:30 +0000)]
Merge "Allow read access to /proc entries for other UIDs" am: fd53598220
am: 877b5daecc

* commit '877b5daeccaf25a84745b2dfc9f6c5d4f3787ccf':
  Allow read access to /proc entries for other UIDs

8 years agoMerge "Allow read access to /proc entries for other UIDs"
Nick Kralevich [Mon, 9 Nov 2015 20:28:00 +0000 (20:28 +0000)]
Merge "Allow read access to /proc entries for other UIDs"
am: fd53598220

* commit 'fd53598220e19fbb91270f1f1831f6c69c669aaa':
  Allow read access to /proc entries for other UIDs

8 years agoMerge "Allow read access to /proc entries for other UIDs"
Nick Kralevich [Mon, 9 Nov 2015 20:05:20 +0000 (20:05 +0000)]
Merge "Allow read access to /proc entries for other UIDs"

8 years agoAllow read access to /proc entries for other UIDs
Nick Kralevich [Sun, 8 Nov 2015 01:05:41 +0000 (17:05 -0800)]
Allow read access to /proc entries for other UIDs

Allow dumpstate (aka adb bugreport), servicemanager, and
surfaceflinger to access /proc entries associated with other UIDs.

Bug: 23310674
Change-Id: I385dcf0db3376ba979409cbe6fe1a468d36237ef

8 years agoglgen: Better support for null arguments in JNI
Pablo Ceballos [Fri, 2 Oct 2015 01:25:56 +0000 (18:25 -0700)]
glgen: Better support for null arguments in JNI

- Modify the checks.spec file format to specify which argument is
  allowed to be null.
- Update the JniCodeEmitter to support passing null arguments for all
  pointer types as well as strings.
- Update the EGL/GLES checks.spec files and stub files to allow null
  arguments through the JNI layer where the spec allows it.

Bug 9321681

Change-Id: I7d8e7319b43da95993516aa3ac5318b971a1ff92

8 years agoMerge changes from topic 'single_buffer_mode'
Pablo Ceballos [Thu, 5 Nov 2015 18:14:08 +0000 (18:14 +0000)]
Merge changes from topic 'single_buffer_mode'

* changes:
  SF: Force refresh when in single buffer mode
  BQ: Add support for single buffer mode

8 years agoMerge "Add support for reading/writing a vector of binders" am: fd6843236f am: 4ed5d8c98e
Casey Dahlin [Thu, 5 Nov 2015 00:19:12 +0000 (00:19 +0000)]
Merge "Add support for reading/writing a vector of binders" am: fd6843236f am: 4ed5d8c98e
am: e6788fa5c2

* commit 'e6788fa5c2548db912a098174eb93b784dc8b7dd':
  Add support for reading/writing a vector of binders

8 years agoMerge "Add support for reading/writing a vector of binders" am: fd6843236f
Casey Dahlin [Thu, 5 Nov 2015 00:17:07 +0000 (00:17 +0000)]
Merge "Add support for reading/writing a vector of binders" am: fd6843236f
am: 4ed5d8c98e

* commit '4ed5d8c98ea74c953b767a84ebfedf9d038dba3b':
  Add support for reading/writing a vector of binders

8 years agoMerge "Add support for reading/writing a vector of binders"
Casey Dahlin [Thu, 5 Nov 2015 00:15:12 +0000 (00:15 +0000)]
Merge "Add support for reading/writing a vector of binders"
am: fd6843236f

* commit 'fd6843236fe9094fc8868f1a58e6ba4364a485a7':
  Add support for reading/writing a vector of binders

8 years agoMerge "Add support for reading/writing a vector of binders"
Casey Dahlin [Thu, 5 Nov 2015 00:12:57 +0000 (00:12 +0000)]
Merge "Add support for reading/writing a vector of binders"

8 years agoRemove obsolete profile handling from installd.
Calin Juravle [Wed, 4 Nov 2015 14:47:37 +0000 (14:47 +0000)]
Remove obsolete profile handling from installd.

Bug: 24698874
Bug: 17173268
Change-Id: I140d70262f8f8fa7afd52c3cf63b4abaf401a479

8 years agoMerge "Add ipi tracing to irq tracing." am: c84da67d72 am: b813f5e2e8
Riley Andrews [Wed, 4 Nov 2015 00:52:35 +0000 (00:52 +0000)]
Merge "Add ipi tracing to irq tracing." am: c84da67d72 am: b813f5e2e8
am: 6ea4e35ab1

* commit '6ea4e35ab1c4fc93b9dc176423e6e425c85bf360':
  Add ipi tracing to irq tracing.

8 years agoMerge "Add ipi tracing to irq tracing." am: c84da67d72
Riley Andrews [Wed, 4 Nov 2015 00:47:32 +0000 (00:47 +0000)]
Merge "Add ipi tracing to irq tracing." am: c84da67d72
am: b813f5e2e8

* commit 'b813f5e2e8b6a799b14720097bb9e1394e2c5262':
  Add ipi tracing to irq tracing.

8 years agoMerge "Add ipi tracing to irq tracing."
Riley Andrews [Wed, 4 Nov 2015 00:43:08 +0000 (00:43 +0000)]
Merge "Add ipi tracing to irq tracing."
am: c84da67d72

* commit 'c84da67d723ce4bafc3622cd269207ea3995ff1c':
  Add ipi tracing to irq tracing.

8 years agoMerge "Add ipi tracing to irq tracing."
Riley Andrews [Wed, 4 Nov 2015 00:29:45 +0000 (00:29 +0000)]
Merge "Add ipi tracing to irq tracing."

8 years agoMerge commit \'75c5de42b759bdcfa7c0e6103fb959c28d686116\' into HEAD am: 14f8cf12e2
Bill Yi [Tue, 3 Nov 2015 23:47:27 +0000 (23:47 +0000)]
Merge commit \'75c5de42b759bdcfa7c0e6103fb959c28d686116\' into HEAD am: 14f8cf12e2
am: cdb42259d2

* commit 'cdb42259d2d0b82af58ae54227f2a8162106c94a':

8 years agoMerge commit \'75c5de42b759bdcfa7c0e6103fb959c28d686116\' into HEAD
Bill Yi [Tue, 3 Nov 2015 23:33:57 +0000 (23:33 +0000)]
Merge commit \'75c5de42b759bdcfa7c0e6103fb959c28d686116\' into HEAD
am: 14f8cf12e2

* commit '14f8cf12e2764ff554dd0e3b72cc8711b14adffe':

8 years agoMerge commit '75c5de42b759bdcfa7c0e6103fb959c28d686116' into HEAD
Bill Yi [Tue, 3 Nov 2015 22:30:01 +0000 (14:30 -0800)]
Merge commit '75c5de42b759bdcfa7c0e6103fb959c28d686116' into HEAD

8 years agoAdd support for reading/writing a vector of binders
Casey Dahlin [Tue, 3 Nov 2015 21:50:37 +0000 (13:50 -0800)]
Add support for reading/writing a vector of binders

Change-Id: Iaa8da704b2ae3c1ca5456177441a335991b40e8a
Test: unit tests pass
Bug: 24470786
Signed-off-by: Casey Dahlin <sadmac@google.com>
8 years agoSF: Force refresh when in single buffer mode
Pablo Ceballos [Wed, 7 Oct 2015 23:32:12 +0000 (16:32 -0700)]
SF: Force refresh when in single buffer mode

- Add a boolean to BufferItem to track whether single buffer mode is
  enabled. When it is, force SurfaceFlinger to acquire a new buffer
  and refresh on every vsync.

Bug 24940410

Change-Id: Iea67330c416b6fb14500865f98c67f1c12f23197

8 years agoBQ: Add support for single buffer mode
Pablo Ceballos [Wed, 7 Oct 2015 22:05:45 +0000 (15:05 -0700)]
BQ: Add support for single buffer mode

- Adds a single buffer mode to BufferQueue. In this mode designate the
  first dequeued buffer as the shared buffer. All calls to dequeue()
  and acquire() will then return the shared buffer, allowing the
  producer and consumer to share it.
- Modify the buffer slot state tracking. Add a new SHARED state for
  the shared buffer in single buffer mode. Also track how many times
  a buffer has been dequeued/queued/acquired as it's possible for a
  shared buffer to be both dequeued and acquired at the same time, or
  dequeued/acquired multiple times. This tracking is needed to know
  when to drop the buffer out of the SHARED state after single buffer
  mode has been disabled.
- Add plumbing for enabling/disabling single buffer mode from Surface.

Bug 24940410

Change-Id: I3fc550c74bacb5523c049a227111356257386853

8 years agoAdd ipi tracing to irq tracing.
Riley Andrews [Tue, 3 Nov 2015 05:01:34 +0000 (21:01 -0800)]
Add ipi tracing to irq tracing.

8 years agoMerge "Fix bug in byte vector serialization" am: fe98e8d6e5 am: 28df99d077
Christopher Wiley [Tue, 3 Nov 2015 00:05:01 +0000 (00:05 +0000)]
Merge "Fix bug in byte vector serialization" am: fe98e8d6e5 am: 28df99d077
am: 3c0a4d288e

* commit '3c0a4d288eee41b2df2c1f75a0cd8561d8c8cb70':
  Fix bug in byte vector serialization

8 years agoMerge "Further reduce duplication in bugreport ps output." am: 670508d09a am: 1fa95dd57b
Elliott Hughes [Tue, 3 Nov 2015 00:04:54 +0000 (00:04 +0000)]
Merge "Further reduce duplication in bugreport ps output." am: 670508d09a am: 1fa95dd57b
am: 91ff9d56d5

* commit '91ff9d56d5991de50b6bda4134121643166727cd':
  Further reduce duplication in bugreport ps output.

8 years agoMerge "Fix bug in byte vector serialization" am: fe98e8d6e5
Christopher Wiley [Tue, 3 Nov 2015 00:00:40 +0000 (00:00 +0000)]
Merge "Fix bug in byte vector serialization" am: fe98e8d6e5
am: 28df99d077

* commit '28df99d077e86bd395e0f6235238d283773125cf':
  Fix bug in byte vector serialization

8 years agoMerge "Fix bug in byte vector serialization"
Christopher Wiley [Mon, 2 Nov 2015 23:58:23 +0000 (23:58 +0000)]
Merge "Fix bug in byte vector serialization"
am: fe98e8d6e5

* commit 'fe98e8d6e53ffef172c4571e6c408c4801c3e96c':
  Fix bug in byte vector serialization

8 years agoMerge "Fix bug in byte vector serialization"
Christopher Wiley [Mon, 2 Nov 2015 23:53:16 +0000 (23:53 +0000)]
Merge "Fix bug in byte vector serialization"

8 years agoMerge "Further reduce duplication in bugreport ps output." am: 670508d09a
Elliott Hughes [Mon, 2 Nov 2015 22:48:36 +0000 (22:48 +0000)]
Merge "Further reduce duplication in bugreport ps output." am: 670508d09a
am: 1fa95dd57b

* commit '1fa95dd57b61735b816e29c74a7613e261ba538d':
  Further reduce duplication in bugreport ps output.

8 years agoMerge "Further reduce duplication in bugreport ps output."
Elliott Hughes [Mon, 2 Nov 2015 22:45:36 +0000 (22:45 +0000)]
Merge "Further reduce duplication in bugreport ps output."
am: 670508d09a

* commit '670508d09acf64fad83d0c7ac90330d3db89c861':
  Further reduce duplication in bugreport ps output.

8 years agoMerge "Further reduce duplication in bugreport ps output."
Elliott Hughes [Mon, 2 Nov 2015 22:43:23 +0000 (22:43 +0000)]
Merge "Further reduce duplication in bugreport ps output."

8 years agoFurther reduce duplication in bugreport ps output.
Elliott Hughes [Mon, 2 Nov 2015 22:16:09 +0000 (14:16 -0800)]
Further reduce duplication in bugreport ps output.

PROCESSES and PROCESSES AND THREADS can be combined. There's nothing in
the former that isn't in the latter.

Change-Id: I105a6d8d35488236ef6dbf4107496ea7e5ad70ea

8 years agoMerge "batteryservice: Add max charging voltage"
Badhri Jagan Sridharan [Mon, 2 Nov 2015 18:35:08 +0000 (18:35 +0000)]
Merge "batteryservice: Add max charging voltage"

8 years agoFix bug in byte vector serialization
Christopher Wiley [Sat, 31 Oct 2015 20:22:15 +0000 (13:22 -0700)]
Fix bug in byte vector serialization

Byte vectors are used by the generated C++ code as the representation
of Java byte[].  This type is serialized as a packed byte array on
the java side.

Bug: 25012838
Test: integration tests for byte[] show this type crossing language
      boundaries correctly.

Change-Id: I8bb1b8ffcb77ced44f99f6b370226a32694f7df1

8 years agoMerge "Reduce duplication in bugreport ps output." am: 8ebad13b34 am: ed59c4e629
Elliott Hughes [Fri, 30 Oct 2015 23:52:41 +0000 (23:52 +0000)]
Merge "Reduce duplication in bugreport ps output." am: 8ebad13b34 am: ed59c4e629
am: ac6e708560

* commit 'ac6e7085600bcfa222261d578f65d8c08a87c230':
  Reduce duplication in bugreport ps output.

8 years agoMerge "Reduce duplication in bugreport ps output." am: 8ebad13b34
Elliott Hughes [Fri, 30 Oct 2015 23:48:37 +0000 (23:48 +0000)]
Merge "Reduce duplication in bugreport ps output." am: 8ebad13b34
am: ed59c4e629

* commit 'ed59c4e629c0c72871866e75789e0ece829f4823':
  Reduce duplication in bugreport ps output.

8 years agoMerge "Reduce duplication in bugreport ps output."
Elliott Hughes [Fri, 30 Oct 2015 23:44:50 +0000 (23:44 +0000)]
Merge "Reduce duplication in bugreport ps output."
am: 8ebad13b34

* commit '8ebad13b340921a40a367c9f1808d0c26147e2a6':
  Reduce duplication in bugreport ps output.

8 years agoMerge "Reduce duplication in bugreport ps output."
Elliott Hughes [Fri, 30 Oct 2015 23:39:29 +0000 (23:39 +0000)]
Merge "Reduce duplication in bugreport ps output."

8 years agoReduce duplication in bugreport ps output.
Elliott Hughes [Fri, 30 Oct 2015 23:17:49 +0000 (16:17 -0700)]
Reduce duplication in bugreport ps output.

PROCESSES AND THREADS and PROCESSES (SELINUX LABELS) can be combined.
I suspect we can just remove PROCESSES too, since it's a strict
subset of the other information, but one step at a time. (The worry
is that someone's actually parsing this output, but it would be good
to find out who's doing that as soon as possible so we can work with
them as we transition to a more complete ps implementation.)

Change-Id: I5f1085f8853f7a988f7edcaeefdd7b63175c1473

8 years agoSF: more DispSync improvements.
Haixia Shi [Wed, 28 Oct 2015 23:19:01 +0000 (16:19 -0700)]
SF: more DispSync improvements.

Pass the reference time to DispSyncThread. Since the phase offset is calculated
using timestamps relative to the reference time, we must also adjust the phase
offset by the same reference time when computing the next refresh time.

Always reset phase offset to zero when updating the reference time because the
reference time equals the first timestamp.

After beginResync() we need to keep HW vsync enabled until the model is updated.

Bug: 25113115
Change-Id: I8eae227bee91c24a99bf8e57fbebceb98d29c77d
Test: check in systrace that app/sf vsync events have correct phase

8 years agoSF: use first sample timestamp as reference.
Haixia Shi [Wed, 28 Oct 2015 20:22:22 +0000 (13:22 -0700)]
SF: use first sample timestamp as reference.

Do not use the absolute 64-bit nsecs_t timestamp directly in phase
and error calculations. Compared to the estimated vsync period, the
timestamp tend to many orders of magnitudes larger, and consequently
the integer modulo operation used to calculate phase and error can
be very sensitive to tiny fluctuation in vsync period.

Bug: 25113115
Test: set kTraceDetailedInfo=true; see Phase and Error are stable in systrace

Change-Id: I687703eec31b1072c606898c0424a96c0a8ca033

8 years agoFinish up the Rect constructor cleanup
Pablo Ceballos [Fri, 23 Oct 2015 23:20:19 +0000 (16:20 -0700)]
Finish up the Rect constructor cleanup

Bug 18173359

Change-Id: I36e83ba4e9ce9884533952d8321d22f666cc8a06

8 years agoMerge "Avoiding flush on-change sensors at subscription" into mnc-dr-dev am: a78c2e65...
Peng Xu [Fri, 30 Oct 2015 04:24:12 +0000 (04:24 +0000)]
Merge "Avoiding flush on-change sensors at subscription" into mnc-dr-dev am: a78c2e65e1 am: ffb07f645e am: e4db21f4b8
am: cca37b0d39

* commit 'cca37b0d39137ccb5ad6843fffd1ff34b5961f06':
  Avoiding flush on-change sensors at subscription

8 years agoMerge "Support SurfaceView synchronization."
Rob Carr [Thu, 29 Oct 2015 19:22:04 +0000 (19:22 +0000)]
Merge "Support SurfaceView synchronization."

8 years agobatteryservice: Add max charging voltage
Badhri Jagan Sridharan [Tue, 27 Oct 2015 20:37:05 +0000 (13:37 -0700)]
batteryservice: Add max charging voltage

Bug: 25229483
Change-Id: I4b6dd13870c41907c708f32412261efdca826023

8 years agoMerge "Avoiding flush on-change sensors at subscription" into mnc-dr-dev am: a78c2e65...
Peng Xu [Thu, 29 Oct 2015 16:54:25 +0000 (16:54 +0000)]
Merge "Avoiding flush on-change sensors at subscription" into mnc-dr-dev am: a78c2e65e1 am: ffb07f645e
am: e4db21f4b8

* commit 'e4db21f4b8bd12000e8052a6d5a6e1b1e4349a5a':
  Avoiding flush on-change sensors at subscription

8 years agoMerge "Avoiding flush on-change sensors at subscription" into mnc-dr-dev am: a78c2e65e1
Peng Xu [Thu, 29 Oct 2015 16:46:18 +0000 (16:46 +0000)]
Merge "Avoiding flush on-change sensors at subscription" into mnc-dr-dev am: a78c2e65e1
am: ffb07f645e

* commit 'ffb07f645e12b5c32479bba74b3310353edf691a':
  Avoiding flush on-change sensors at subscription

8 years agoSupport SurfaceView synchronization.
Dan Stoza [Fri, 22 May 2015 16:51:44 +0000 (09:51 -0700)]
Support SurfaceView synchronization.

Add API for fetching the next frame number to be produced by
a given buffer producer. Add an API to SurfaceComposer to
defer execution of the current transaction until a given frame number.
Together these may be used to synchronize app drawing and surface
control updates.

Change-Id: I8e0f4993332ac0199c768c88581a453fefbaff1d

8 years agoMerge "Add readStrongBinder that takes an interface" am: 71b70a244c am: 6319281c24
Casey Dahlin [Wed, 28 Oct 2015 23:55:10 +0000 (23:55 +0000)]
Merge "Add readStrongBinder that takes an interface" am: 71b70a244c am: 6319281c24
am: 75c5de42b7

* commit '75c5de42b759bdcfa7c0e6103fb959c28d686116':
  Add readStrongBinder that takes an interface

8 years agoMerge "Add readStrongBinder that takes an interface" am: 71b70a244c
Casey Dahlin [Wed, 28 Oct 2015 23:51:49 +0000 (23:51 +0000)]
Merge "Add readStrongBinder that takes an interface" am: 71b70a244c
am: 6319281c24

* commit '6319281c24284a83f8bab090c6048d864635f0dd':
  Add readStrongBinder that takes an interface

8 years agoMerge "Add readStrongBinder that takes an interface"
Casey Dahlin [Wed, 28 Oct 2015 23:48:12 +0000 (23:48 +0000)]
Merge "Add readStrongBinder that takes an interface"
am: 71b70a244c

* commit '71b70a244c56719d30654b7123a944d971eb8d02':
  Add readStrongBinder that takes an interface

8 years agoMerge "Add readStrongBinder that takes an interface"
Casey Dahlin [Wed, 28 Oct 2015 23:41:58 +0000 (23:41 +0000)]
Merge "Add readStrongBinder that takes an interface"

8 years agoAdd readStrongBinder that takes an interface
Casey Dahlin [Wed, 28 Oct 2015 01:33:56 +0000 (18:33 -0700)]
Add readStrongBinder that takes an interface

We use a template function to let us pass arbitrary interfaces, all of which
can be cast to IBinder.

Change-Id: Iadf21c495cde43e8a5adb85a49e6592196f401ff
Test: unit tests
Bug: 23600713
Signed-off-by: Casey Dahlin <sadmac@google.com>
8 years agoMerge "Add XML for FEATURE_FREEFORM_WINDOW_MANAGEMENT"
Vladislav Kaznacheev [Wed, 28 Oct 2015 20:12:23 +0000 (20:12 +0000)]
Merge "Add XML for FEATURE_FREEFORM_WINDOW_MANAGEMENT"

8 years agoMerge "libbinder: Fix out of bounds in readBoolVector" am: 1f76049c95 am: 87a30d930a
Christopher Wiley [Wed, 28 Oct 2015 18:28:32 +0000 (18:28 +0000)]
Merge "libbinder: Fix out of bounds in readBoolVector" am: 1f76049c95 am: 87a30d930a
am: 23cd9ff6d8

* commit '23cd9ff6d80cfb33873728369211e014fd0351a2':
  libbinder: Fix out of bounds in readBoolVector