OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge changes from topic 'libutils-remove-string'
TreeHugger Robot [Sat, 11 Mar 2017 01:26:24 +0000 (01:26 +0000)]
Merge changes from topic 'libutils-remove-string'

* changes:
  RegionHelper.h: include <limits> directly.
  opengl egl_object.h: add <atomic> include.

7 years agoMerge "Use std::string for profile operations instead of const char" am: 7c7d888d94...
Calin Juravle [Sat, 11 Mar 2017 01:03:09 +0000 (01:03 +0000)]
Merge "Use std::string for profile operations instead of const char" am: 7c7d888d94 am: ccaa1f3f78
am: 0045d606d1

Change-Id: I6ad63a777811dbc5e5d74870441d8c76dc3273af

7 years agoMerge "Use std::string for profile operations instead of const char" am: 7c7d888d94
Calin Juravle [Sat, 11 Mar 2017 01:00:07 +0000 (01:00 +0000)]
Merge "Use std::string for profile operations instead of const char" am: 7c7d888d94
am: ccaa1f3f78

Change-Id: If09e67000ca5818c27bbfe521554c22209c0d04f

7 years agoMerge "Use std::string for profile operations instead of const char"
Calin Juravle [Sat, 11 Mar 2017 00:56:07 +0000 (00:56 +0000)]
Merge "Use std::string for profile operations instead of const char"
am: 7c7d888d94

Change-Id: I44676d7bc0b9297ccb920066284f371fa2e40c3c

7 years agoMerge "Use std::string for profile operations instead of const char"
Calin Juravle [Sat, 11 Mar 2017 00:50:30 +0000 (00:50 +0000)]
Merge "Use std::string for profile operations instead of const char"

7 years agoMerge "surfaceflinger: simplify HWC buffer cache clean up"
Chia-I Wu [Fri, 10 Mar 2017 22:43:31 +0000 (22:43 +0000)]
Merge "surfaceflinger: simplify HWC buffer cache clean up"

7 years agoUse std::string for profile operations instead of const char
Calin Juravle [Thu, 9 Mar 2017 21:19:42 +0000 (13:19 -0800)]
Use std::string for profile operations instead of const char

Will make things cleaner when adding secondary dex profile support.

Also, add tests to verify profile path creation.

Bug: 26719109
Test: /data/nativetest64/installd_utils_test/installd_utils_test
Change-Id: I8cb1a11cefee21f5001d2b729110696d52fc8323

7 years agoMerge changes I20d546fd,I15363803 am: 632dbe2c77 am: dc9fcf4218
Calin Juravle [Fri, 10 Mar 2017 22:21:58 +0000 (22:21 +0000)]
Merge changes I20d546fd,I15363803 am: 632dbe2c77 am: dc9fcf4218
am: 0c90e1c416

Change-Id: I7f976a58fea69e98bbc3126c8b5288c082422363

7 years agoMerge changes I20d546fd,I15363803 am: 632dbe2c77
Calin Juravle [Fri, 10 Mar 2017 22:18:26 +0000 (22:18 +0000)]
Merge changes I20d546fd,I15363803 am: 632dbe2c77
am: dc9fcf4218

Change-Id: I6f091a21f326682deaec7527b40a235fecc4c267

7 years agoMerge changes I20d546fd,I15363803
Calin Juravle [Fri, 10 Mar 2017 22:15:00 +0000 (22:15 +0000)]
Merge changes I20d546fd,I15363803
am: 632dbe2c77

Change-Id: I5fe86348657aa5e7f733be63c2134af4fe4a5365

7 years agoMerge changes I20d546fd,I15363803
Calin Juravle [Fri, 10 Mar 2017 22:07:38 +0000 (22:07 +0000)]
Merge changes I20d546fd,I15363803

* changes:
  Allow "android" package name.
  Update is_valid_package_name() to match framework.

7 years agoAllow "android" package name.
Jeff Sharkey [Wed, 8 Mar 2017 19:39:46 +0000 (12:39 -0700)]
Allow "android" package name.

Test: /data/nativetest64/installd_utils_test/installd_utils_test
Bug: 36062649

(cherry picked from commit ab7ac8d5a04bd3f38b85ce20ae5bb382f2a26585)

Change-Id: I20d546fdd20813e96bcb5f061ca5b352dff44450

7 years agoUpdate is_valid_package_name() to match framework.
Jeff Sharkey [Wed, 8 Mar 2017 05:12:03 +0000 (22:12 -0700)]
Update is_valid_package_name() to match framework.

The framework has a new format for /data/app directory names in OC
to protect user privacy.  This change updates the validation logic
in installd to support the new format.

For consistency the logic now mirrors the package name validation
logic used by PackageParser.

Test: /data/nativetest64/installd_utils_test/installd_utils_test
Bug: 33705143

(cherry picked from commit 367ace2f77105f7a09b34a50bc875fd4fa591177)

Merged-In: I41d270942479c52e063c29a2cb9552d7b238b86e
Change-Id: I15363803fb45310697e29be810e800dc1b1902d0

7 years agoMerge "Re-add mistakenly removed lock in SurfaceFlinger::removeLayer."
TreeHugger Robot [Fri, 10 Mar 2017 20:49:58 +0000 (20:49 +0000)]
Merge "Re-add mistakenly removed lock in SurfaceFlinger::removeLayer."

7 years agoMerge "[SurfaceFlinger] Use sf phase offset from CS"
TreeHugger Robot [Fri, 10 Mar 2017 19:23:36 +0000 (19:23 +0000)]
Merge "[SurfaceFlinger] Use sf phase offset from CS"

7 years agoRe-add mistakenly removed lock in SurfaceFlinger::removeLayer.
Robert Carr [Fri, 10 Mar 2017 19:08:39 +0000 (11:08 -0800)]
Re-add mistakenly removed lock in SurfaceFlinger::removeLayer.

Lock was mistakenly removed with "Add detachChildren transaction"
when refactoring the weak-pointer to a strong-pointer.

Test: I will try and follow up with a stress-test in Transaction_test.
Bug: 36117490
Change-Id: I94171c86334bb52b974392186e1c3ebbf9f33a05

7 years agosurfaceflinger: simplify HWC buffer cache clean up
Chia-I Wu [Mon, 13 Feb 2017 20:28:24 +0000 (12:28 -0800)]
surfaceflinger: simplify HWC buffer cache clean up

When a Layer is no longer connected, we destroy the associated HWC
layers on next call to SurfaceFlinger::rebuildLayerStacks or when
the Layer is destroyed.  There is no need to listen to
onBuffersReleased.  Besides, we need to perform the cleanup from the
main thread as we only talk to HWC process from the main thread.

While at it, move HWComposerBufferCache to its own files.

Bug: 35320590
Test: manual
Change-Id: Ifa32f24076b094c8fa9cda8572b03d5bfb8e0b93

7 years agoRegionHelper.h: include <limits> directly.
Steven Moreland [Fri, 10 Mar 2017 18:09:51 +0000 (10:09 -0800)]
RegionHelper.h: include <limits> directly.

Includes are transitively imported by <string> in String8.h + String16.h
but that include is being removed.

Test: pass
Change-Id: I378d533ee5445bc0286c7535581a491f55ca36c9

7 years agoopengl egl_object.h: add <atomic> include.
Steven Moreland [Fri, 10 Mar 2017 18:08:45 +0000 (10:08 -0800)]
opengl egl_object.h: add <atomic> include.

Includes are transitively imported by <string> in String8.h + String16.h
but that include is being removed.

Test: pass
Change-Id: I6176389d41aa5eb6fdf8b8afe3378eeb877bc525

7 years agoMerge "Revise virtual touchpad interface."
Kevin Schoedel [Fri, 10 Mar 2017 17:51:51 +0000 (17:51 +0000)]
Merge "Revise virtual touchpad interface."

7 years agoRemove debug flags
Stephen Kiazyk [Fri, 10 Mar 2017 16:28:44 +0000 (08:28 -0800)]
Remove debug flags

I accidentally left the debug flags on my last commit.

Bug: None
Test: Still compiles and works.
Change-Id: I9fc652e643aa53ebb531332c3b156b8f001837d8

7 years agoMerge "Fix DummyNativeWindow to respond to new query"
TreeHugger Robot [Fri, 10 Mar 2017 02:39:30 +0000 (02:39 +0000)]
Merge "Fix DummyNativeWindow to respond to new query"

7 years agoMerge "Reland: Remove NativeWindow and unused DVR functions"
TreeHugger Robot [Fri, 10 Mar 2017 01:31:25 +0000 (01:31 +0000)]
Merge "Reland: Remove NativeWindow and unused DVR functions"

7 years agoFix DummyNativeWindow to respond to new query
Stephen Kiazyk [Thu, 9 Mar 2017 23:23:40 +0000 (15:23 -0800)]
Fix DummyNativeWindow to respond to new query

The `NATIVE_WINDOW_IS_VALID` query must now return true in order for
`eglCreateWindowSurface` to succeed. Technically this isn't true for our
dummy window, but we only need it to create the context, it gets dropped
immediately afterwards.

Bug: 36102224
Test: Created a simple test application. Also ran a Vr application with
      these changes applied.

Change-Id: I2d559962d28db4b1cb6ad188269e4e54cf47245d

7 years agoReland: Remove NativeWindow and unused DVR functions
Jiwen 'Steve' Cai [Tue, 7 Mar 2017 22:16:43 +0000 (14:16 -0800)]
Reland: Remove NativeWindow and unused DVR functions

1/ Remove the NativeWindow-backed DVR DisplaySurface implementation.
2/ Unused API such as: dvrCreateDisplaySurface and friends are removed.

Bug: 36033302
Test: Built system, ran basicvr, ran particles on marlin and lucid. Also
updated graphics_app_tests to stop testing deprecated API.

Change-Id: I586a6933f18a5c116bcffdf390ada122fadb9545

7 years agoMerge changes from topic 'igraphicbufferallocator'
Mathias Agopian [Thu, 9 Mar 2017 21:53:58 +0000 (21:53 +0000)]
Merge changes from topic 'igraphicbufferallocator'

* changes:
  get rid of IGraphicBufferAlloc
  Remove a dependency of EGL on ui/GraphicBuffer.h
  remove EGL dependency on libbinder

7 years agoMerge "Disable input-vdex when doing speed-profile." am: 028ad63e80 am: a5582c290c
Nicolas Geoffray [Thu, 9 Mar 2017 21:13:09 +0000 (21:13 +0000)]
Merge "Disable input-vdex when doing speed-profile." am: 028ad63e80 am: a5582c290c
am: a15409a340

Change-Id: I3261131e0f71f6305cdb177ef227ab114be23c60

7 years agoMerge "Disable input-vdex when doing speed-profile." am: 028ad63e80
Nicolas Geoffray [Thu, 9 Mar 2017 21:07:35 +0000 (21:07 +0000)]
Merge "Disable input-vdex when doing speed-profile." am: 028ad63e80
am: a5582c290c

Change-Id: I297b481892c75babde5b239bf6b1fe4e3701244e

7 years agoMerge "Disable input-vdex when doing speed-profile."
Nicolas Geoffray [Thu, 9 Mar 2017 21:04:06 +0000 (21:04 +0000)]
Merge "Disable input-vdex when doing speed-profile."
am: 028ad63e80

Change-Id: I3ec636cd526bcdb749fc3af87f2ac0d301fbcafd

7 years agoMerge "Disable input-vdex when doing speed-profile."
Nicolas Geoffray [Thu, 9 Mar 2017 20:56:53 +0000 (20:56 +0000)]
Merge "Disable input-vdex when doing speed-profile."

7 years agoDisable input-vdex when doing speed-profile.
Nicolas Geoffray [Thu, 9 Mar 2017 13:11:25 +0000 (13:11 +0000)]
Disable input-vdex when doing speed-profile.

input-vdex and dexlayout are incompatible with each other.

bug: 36084905
bug: 36076104
bug: 36059948
bug: 35872504

Test: device boots, vdex works on OTA, input-vdex is not passed
      for speed-profile.

Change-Id: I194311041899399db422867670f5e788d6b9ceeb

7 years agoget rid of IGraphicBufferAlloc
Mathias Agopian [Tue, 28 Feb 2017 02:17:44 +0000 (18:17 -0800)]
get rid of IGraphicBufferAlloc

buffers can now be allocated in-process.

Test: compile & run
Bug: cleanup
Change-Id: I3d4317a9bed20a6d8be2b7ac8fbb85738efb3657

7 years agoRemove a dependency of EGL on ui/GraphicBuffer.h
Mathias Agopian [Sat, 25 Feb 2017 00:38:15 +0000 (16:38 -0800)]
Remove a dependency of EGL on ui/GraphicBuffer.h

the conversion to a ANativeWindowBuffer is now
handled by libnativewindow.

Test: compiled & run
Bug: cleanup
Change-Id: I52dd64574afbc1eff5bdbefacec234a79f8acd97

7 years agoremove EGL dependency on libbinder
Mathias Agopian [Tue, 7 Feb 2017 20:59:18 +0000 (12:59 -0800)]
remove EGL dependency on libbinder

This gets rid of the
eglCreateNativeClientBufferANDROID extension,
which is replaced by NDK’s AHardwareBuffer.

Bug: 35101209

Test: Not tested yet
Change-Id: I7905eb875139781a23e9fa0b3447ea1ad25c71cf

7 years agoMerge "Create libhwc2on1adapter"
TreeHugger Robot [Thu, 9 Mar 2017 03:04:07 +0000 (03:04 +0000)]
Merge "Create libhwc2on1adapter"

7 years agoMerge changes from topic 'vintf_arch' am: 45370128a5 am: c2b36f5696
Yifan Hong [Thu, 9 Mar 2017 03:03:15 +0000 (03:03 +0000)]
Merge changes from topic 'vintf_arch' am: 45370128a5 am: c2b36f5696
am: 628dafc85e

Change-Id: Ib17fb1e919fdc5a1d3ce652debf1f0d530fde57f

7 years agoMerge changes from topic 'vintf_arch' am: 45370128a5
Yifan Hong [Thu, 9 Mar 2017 03:00:44 +0000 (03:00 +0000)]
Merge changes from topic 'vintf_arch' am: 45370128a5
am: c2b36f5696

Change-Id: Id6a10176042b63fcefe8298dae2df4c5ac4c5297

7 years agoMerge changes from topic 'vintf_arch'
Yifan Hong [Thu, 9 Mar 2017 02:57:48 +0000 (02:57 +0000)]
Merge changes from topic 'vintf_arch'
am: 45370128a5

Change-Id: Ia8e62d1a64e5a893b651c46e5872854e2f52034f

7 years agoMerge changes from topic 'vintf_arch'
Treehugger Robot [Thu, 9 Mar 2017 02:54:05 +0000 (02:54 +0000)]
Merge changes from topic 'vintf_arch'

* changes:
  Update to use bitness info in VINTF.
  Fix forEachTable will copy the table.

7 years agoMerge "check that the NativeWindowType is valid in eglCreateWindowSurface"
Mathias Agopian [Thu, 9 Mar 2017 02:28:56 +0000 (02:28 +0000)]
Merge "check that the NativeWindowType is valid in eglCreateWindowSurface"

7 years agoCreate libhwc2on1adapter
Fabien Sanglard [Wed, 8 Mar 2017 19:36:46 +0000 (11:36 -0800)]
Create libhwc2on1adapter

Extract the adapter out of SurfaceFlinger library to allow code
behind HAL to use it.

Test: Manual
Change-Id: I415aa2674564eccb2c38f76086807f834177f80f

7 years agoUpdate to use bitness info in VINTF.
Yifan Hong [Wed, 8 Mar 2017 22:01:58 +0000 (14:01 -0800)]
Update to use bitness info in VINTF.

Bug: 35966597
Test: lshal -ir has bitness info for passthrough ref section
Test: lshal --init-vintf has bitness info in the manifest.
Change-Id: Ie9f52bb1ca30ce69856dbf44fab8287563014550

7 years agoFix forEachTable will copy the table.
Yifan Hong [Wed, 8 Mar 2017 22:01:11 +0000 (14:01 -0800)]
Fix forEachTable will copy the table.

std::initializer_list<T> has T deduced to Table, which will
copy the table. Use pointers instead.

Test: pass
Change-Id: I7da40eb0f5d0171244a9b9caacf37b41fe0af304

7 years agoMerge "Delete typo in SurfaceFlinger documentation"
TreeHugger Robot [Thu, 9 Mar 2017 00:08:30 +0000 (00:08 +0000)]
Merge "Delete typo in SurfaceFlinger documentation"

7 years agoMerge "Revert "Remove NativeWindow and unused DVR functions""
TreeHugger Robot [Wed, 8 Mar 2017 23:11:44 +0000 (23:11 +0000)]
Merge "Revert "Remove NativeWindow and unused DVR functions""

7 years agoMerge "Allow "android" package name."
TreeHugger Robot [Wed, 8 Mar 2017 23:10:26 +0000 (23:10 +0000)]
Merge "Allow "android" package name."

7 years agocheck that the NativeWindowType is valid in eglCreateWindowSurface
Mathias Agopian [Wed, 8 Mar 2017 23:02:55 +0000 (15:02 -0800)]
check that the NativeWindowType is valid in eglCreateWindowSurface

This will avoid certain crash (null dereference),
and return an error instead. This is useful for
app developers as java language apps are not
expected to crash when passed bad arguments

This doesn’t fix bug 36065206, but was prompted
by it.

Test: compile / run
Bug: 36065206
Change-Id: I90d25730b3dd292d756b4c38b51320a466fa6d48

7 years agoDelete typo in SurfaceFlinger documentation
Fabien Sanglard [Wed, 8 Mar 2017 22:50:11 +0000 (14:50 -0800)]
Delete typo in SurfaceFlinger documentation

Test: None (this is a comment)
Change-Id: I0876a40697fe5bb5245513520bc1f9a4bf1139f7

7 years agoMerge "Fix the usage of EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE"
Miao Wang [Wed, 8 Mar 2017 22:43:50 +0000 (22:43 +0000)]
Merge "Fix the usage of EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE"

7 years agoMerge "A helper header for matrices."
Okan Arikan [Wed, 8 Mar 2017 22:29:47 +0000 (22:29 +0000)]
Merge "A helper header for matrices."

7 years agoRevise virtual touchpad interface.
Kevin Schoedel [Tue, 7 Mar 2017 18:06:25 +0000 (13:06 -0500)]
Revise virtual touchpad interface.

- Explicit start and stop, outside of which the evdev devices
  don't exist.
- Permission test (not compiled by default pending build & SELinux
  support for temporarily retaining a second copy of the service
  for vr_wm).
- Enforce a single user of the touchpad.
- Support 'dumpsys'.

Bug: 36051900
Test: log inspection
Change-Id: I038ed2632d5adf50a3565a981031691d5dc5f7cd

7 years agoRevert "Remove NativeWindow and unused DVR functions"
Jiwen Cai [Wed, 8 Mar 2017 21:23:30 +0000 (21:23 +0000)]
Revert "Remove NativeWindow and unused DVR functions"

This reverts commit a001af5ae07e156f9c31dcdb24fb7ddead4d9f1e.

Change-Id: Ieb60bc8e8e7caefee30b0fbd13cda15298c32075

7 years agoFix the usage of EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE
Miao Wang [Wed, 8 Mar 2017 20:32:05 +0000 (12:32 -0800)]
Fix the usage of EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE

  - Eigen::internal::traits is not specialized for Eigen::MatrixBase, it
  should only be used with the Derived types. Just as Eigen's own tests
  do.

Bug: 34161771
Test: mm
Change-Id: I997b26b4a470c4ba851afe6edc5c602ae450c222

7 years agoAllow "android" package name.
Jeff Sharkey [Wed, 8 Mar 2017 19:39:46 +0000 (12:39 -0700)]
Allow "android" package name.

Test: /data/nativetest64/installd_utils_test/installd_utils_test
Bug: 36062649
Change-Id: I9b41a34822a1a194d256f5b99d5955e51716029c

7 years agoMerge "Remove NativeWindow and unused DVR functions"
Jiwen Cai [Wed, 8 Mar 2017 18:41:48 +0000 (18:41 +0000)]
Merge "Remove NativeWindow and unused DVR functions"

7 years agoMerge "Interface for multiple virtual touchpads."
Kevin Schoedel [Wed, 8 Mar 2017 18:27:15 +0000 (18:27 +0000)]
Merge "Interface for multiple virtual touchpads."

7 years agoMerge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize" am: b638bf8d3f am: f8340...
Ganesh Mahendran [Wed, 8 Mar 2017 16:33:00 +0000 (16:33 +0000)]
Merge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize" am: b638bf8d3f am: f83403fdd2
am: 391becb8a7

Change-Id: I11546e02a736bd6c6ece606831462f7ef85c4ec4

7 years agoMerge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize" am: b638bf8d3f
Ganesh Mahendran [Wed, 8 Mar 2017 16:30:00 +0000 (16:30 +0000)]
Merge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize" am: b638bf8d3f
am: f83403fdd2

Change-Id: If136ef494a22fb750321272302db7a0d8144eb95

7 years agoMerge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize"
Ganesh Mahendran [Wed, 8 Mar 2017 16:27:30 +0000 (16:27 +0000)]
Merge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize"
am: b638bf8d3f

Change-Id: I90088d0769cfe337b2c2c5c308f5fa7e832ca4df

7 years agoMerge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize"
Treehugger Robot [Wed, 8 Mar 2017 16:22:32 +0000 (16:22 +0000)]
Merge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize"

7 years agoMerge "Update is_valid_package_name() to match framework."
TreeHugger Robot [Wed, 8 Mar 2017 06:58:42 +0000 (06:58 +0000)]
Merge "Update is_valid_package_name() to match framework."

7 years agoUpdate is_valid_package_name() to match framework.
Jeff Sharkey [Wed, 8 Mar 2017 05:12:03 +0000 (22:12 -0700)]
Update is_valid_package_name() to match framework.

The framework has a new format for /data/app directory names in OC
to protect user privacy.  This change updates the validation logic
in installd to support the new format.

For consistency the logic now mirrors the package name validation
logic used by PackageParser.

Test: /data/nativetest64/installd_utils_test/installd_utils_test
Bug: 33705143
Change-Id: I41d270942479c52e063c29a2cb9552d7b238b86e

7 years agoMerge "Fix enum ordering in sensor NDK"
TreeHugger Robot [Wed, 8 Mar 2017 05:09:10 +0000 (05:09 +0000)]
Merge "Fix enum ordering in sensor NDK"

7 years agoMerge "Temporarily disable vr_wm visibility while we figure out what triggers it...
TreeHugger Robot [Wed, 8 Mar 2017 03:21:16 +0000 (03:21 +0000)]
Merge "Temporarily disable vr_wm visibility while we figure out what triggers it to come up at all time. This is to quickly unblock everyone."

7 years agoFix enum ordering in sensor NDK
Peng Xu [Wed, 8 Mar 2017 01:49:31 +0000 (17:49 -0800)]
Fix enum ordering in sensor NDK

Test: compiles
Change-Id: Ie186270af2f51d723855cdc62f0b09ffe1ab6ecf

7 years agoMerge "Sensor direct report with HardwareBuffer channel"
TreeHugger Robot [Wed, 8 Mar 2017 03:12:53 +0000 (03:12 +0000)]
Merge "Sensor direct report with HardwareBuffer channel"

7 years agoRemove NativeWindow and unused DVR functions
Jiwen 'Steve' Cai [Tue, 7 Mar 2017 22:16:43 +0000 (14:16 -0800)]
Remove NativeWindow and unused DVR functions

1/ Remove the NativeWindow-backed DVR DisplaySurface implementation.
2/ Unused API such as: dvrCreateDisplaySurface and friends are removed.

Bug: 36033302
Test: Built system, ran basicvr, ran particles on Marlin. Also updated
graphics_app_tests to stop testing deprecated API.

Change-Id: I6ea6063c56fabacddcc301bc91567cc1b3f5d67e

7 years agoMerge "Disable Eigen static assertion for tests/numeric_test.cpp"
TreeHugger Robot [Wed, 8 Mar 2017 02:10:54 +0000 (02:10 +0000)]
Merge "Disable Eigen static assertion for tests/numeric_test.cpp"

7 years agoTemporarily disable vr_wm visibility while we figure out what triggers it
Alex Sakhartchouk [Wed, 8 Mar 2017 01:44:56 +0000 (20:44 -0500)]
Temporarily disable vr_wm visibility while we figure out what triggers it
to come up at all time. This is to quickly unblock everyone.

Bug: 36036583
Test: Compiled
Change-Id: Ibf045e7354ee96b7609af1c47b1e64b63659feb9

7 years agoMerge "Add ASensorEventQueue_registerSensor and default error value"
TreeHugger Robot [Wed, 8 Mar 2017 01:30:59 +0000 (01:30 +0000)]
Merge "Add ASensorEventQueue_registerSensor and default error value"

7 years agoDisable Eigen static assertion for tests/numeric_test.cpp
Miao Wang [Wed, 8 Mar 2017 00:19:06 +0000 (16:19 -0800)]
Disable Eigen static assertion for tests/numeric_test.cpp

  - Clang complains with the Eigen static assertions in the tests, after
  Eigen 3.3.3 rebase.
  - Disable the static assertion until it is fixed in Eigen / Clang.

Bug: 34161771
Test: mm
Change-Id: I25056cf9df9bbb32f979390e02df1f23ac760bab

7 years agoA helper header for matrices.
Okan Arikan [Tue, 7 Mar 2017 19:43:13 +0000 (11:43 -0800)]
A helper header for matrices.

Bug: 34720474
Test: No functional change.
Change-Id: Ibcb8f11feeeadf6f484396d66c0b0cd1ef751f94
(cherry picked from commit 6fff8f0580e352fd81ecd7a0b6b58a6604bcbed7)

7 years ago[SurfaceFlinger] Use sf phase offset from CS
Fabien Sanglard [Mon, 6 Mar 2017 19:54:40 +0000 (11:54 -0800)]
[SurfaceFlinger] Use sf phase offset from CS

If present, use sf phase offset from the config Store.

Test: Manual
Change-Id: I2dd7ecf984b7484f6b447699680f54c7c8e221a0

7 years agoMerge "Add MiniFence to drop HWC2on1Adapter libui dep"
TreeHugger Robot [Tue, 7 Mar 2017 23:16:12 +0000 (23:16 +0000)]
Merge "Add MiniFence to drop HWC2on1Adapter libui dep"

7 years agoMerge "[SurfaceFlinger] Comment SurfaceFlinger HWC2"
Fabien Sanglard [Tue, 7 Mar 2017 22:25:02 +0000 (22:25 +0000)]
Merge "[SurfaceFlinger] Comment SurfaceFlinger HWC2"

7 years agoSensor direct report with HardwareBuffer channel
Peng Xu [Sun, 5 Mar 2017 09:48:11 +0000 (01:48 -0800)]
Sensor direct report with HardwareBuffer channel

Implement creation of sensor direct channel in sensor
service for sensor direct report feature.

Bug: 30985702
Test: cts-tradefed run cts --module CtsSensorTestCases
      --test android.hardware.cts.SensorDirectReportTest
Test: cts-tradefed run cts --module CtsSensorTestCases
      --test android.hardware.cts.SensorNativeTest

Change-Id: I52350811df538986cea7f5e1fb336fad53234c86

7 years agoAdd ASensorEventQueue_registerSensor and default error value
Peng Xu [Wed, 1 Mar 2017 04:19:47 +0000 (20:19 -0800)]
Add ASensorEventQueue_registerSensor and default error value

ASensorEventQueue_registerSensor is new function created in 2016 but
is never exported at NDK level. In this CL the function signature is
formalized and the function name is added to NDK function export
table. Internal class SensorEventQueue is also changed to adapt.

Default error values are also defined.

Test: cts-tradefed run cts --module CtsSensorTestCases \
          --test android.hardware.cts.SensorNativeTest
Change-Id: I74dc72e50ea4bae6d2d8944ce6d2e191ed2f495e

7 years agoAdd MiniFence to drop HWC2on1Adapter libui dep
Fabien Sanglard [Tue, 7 Mar 2017 18:10:03 +0000 (10:10 -0800)]
Add MiniFence to drop HWC2on1Adapter libui dep

This class will soon become a library used by devices with no support
for HWC2. They will link against libhwc2on1adapter. Drivers should have
no depedencies on libui.

Test:Manual
Change-Id: Iabd2aa89fc3b737a999632a16c4f6c30464787c4

7 years agoMerge "split libsensor our of libgui "
TreeHugger Robot [Tue, 7 Mar 2017 21:31:01 +0000 (21:31 +0000)]
Merge "split libsensor our of libgui "

7 years agoInterface for multiple virtual touchpads.
Kevin Schoedel [Mon, 6 Mar 2017 19:34:39 +0000 (14:34 -0500)]
Interface for multiple virtual touchpads.

This passes the touchpad selection across binder, but does not yet
actually implement multiple touchpad devices.

Bug: b/35992608
Test: primary only in VirtualTouchpad_test
Change-Id: I7529735362e0e38805b9c0e52e07b5efc86bd535

7 years agosplit libsensor our of libgui
Mathias Agopian [Mon, 6 Mar 2017 23:05:04 +0000 (15:05 -0800)]
split libsensor our of libgui

Test: compile & run
Bug: treble cleanup
Change-Id: I5b2c2a14f7d3b364d25695cf0901c5b08cfb0fc9

7 years agoMerge "Installd: Clean up code related to foreign dex use" am: 62b34b57c4 am: 9d4819ff2e
Calin Juravle [Tue, 7 Mar 2017 19:10:41 +0000 (19:10 +0000)]
Merge "Installd: Clean up code related to foreign dex use" am: 62b34b57c4 am: 9d4819ff2e
am: 9181bdb57f

Change-Id: I2257654b3b73e74a92a179e1068f771e2b6af186

7 years agoMerge "Installd: Clean up code related to foreign dex use" am: 62b34b57c4
Calin Juravle [Tue, 7 Mar 2017 19:08:10 +0000 (19:08 +0000)]
Merge "Installd: Clean up code related to foreign dex use" am: 62b34b57c4
am: 9d4819ff2e

Change-Id: I21299c36def0a5aa5e202d381abd4ad184c2e7b6

7 years agoMerge "Installd: Clean up code related to foreign dex use"
Calin Juravle [Tue, 7 Mar 2017 19:06:10 +0000 (19:06 +0000)]
Merge "Installd: Clean up code related to foreign dex use"
am: 62b34b57c4

Change-Id: Id7beb09ed3d3b79b3b818dd5192b457605f5a54c

7 years agoMerge "Installd: Clean up code related to foreign dex use"
Calin Juravle [Tue, 7 Mar 2017 19:00:18 +0000 (19:00 +0000)]
Merge "Installd: Clean up code related to foreign dex use"

7 years agoMerge "Fix the compiler error for the ternary operator, caused by Eigen rebase."
TreeHugger Robot [Tue, 7 Mar 2017 17:12:32 +0000 (17:12 +0000)]
Merge "Fix the compiler error for the ternary operator, caused by Eigen rebase."

7 years agoMerge "Disable HDR extension for now"
Courtney Goeltzenleuchter [Tue, 7 Mar 2017 14:48:04 +0000 (14:48 +0000)]
Merge "Disable HDR extension for now"

7 years agolibbinder: use sysconf(_SC_PAGESIZE) to get pagesize
Ganesh Mahendran [Fri, 3 Mar 2017 01:41:14 +0000 (09:41 +0800)]
libbinder: use sysconf(_SC_PAGESIZE) to get pagesize

pagesize is not always 4KB, use sysconf(_SC_PAGESIZE) to get
real pagesize.

Change-Id: Ib2c82c3a842257601a5c304da3a1f0b07c6ab8c0
Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
7 years agoMerge "InputDevice warning fixes and make warnigs into Error"
TreeHugger Robot [Tue, 7 Mar 2017 04:04:40 +0000 (04:04 +0000)]
Merge "InputDevice warning fixes and make warnigs into Error"

7 years agoInputDevice warning fixes and make warnigs into Error
Frank Barchard [Mon, 6 Mar 2017 19:17:52 +0000 (11:17 -0800)]
InputDevice warning fixes and make warnigs into Error

use const char * for string literals in InputDevice
Remove unused variable in Keyboard

Bug: 35993509
Test: mm in frameworks/native/libs/input builds without the warning
Change-Id: I11242835eae855386c47e56d6c36e5a2f912a28f

7 years agoDisable HDR extension for now
Courtney Goeltzenleuchter [Mon, 6 Mar 2017 23:37:20 +0000 (16:37 -0700)]
Disable HDR extension for now

Test: adb shell vkinfo
Test: Should not see VK_EXT_hdr_metadata in extension list.

bug: 36007564

Change-Id: I96a365d75ddec75856af2fda834d3a4f8368ebb0

7 years agoFix the compiler error for the ternary operator, caused by Eigen rebase.
Miao Wang [Tue, 7 Mar 2017 01:17:21 +0000 (17:17 -0800)]
Fix the compiler error for the ternary operator, caused by Eigen rebase.

Bug: 34161771
Test: build
Change-Id: I3c0c1b3667a3d1f56052b247c94c6255e9e12004

7 years ago[SurfaceFlinger] Document layerStack
Fabien Sanglard [Sat, 4 Mar 2017 02:58:50 +0000 (18:58 -0800)]
[SurfaceFlinger] Document layerStack

Test: None, these are only comments.
Change-Id: Id5d45a5847d253bf92263091e5b322a1577fabe1

7 years agoMerge "Double check hidl service at init + meaningful abort when hidl crash"
TreeHugger Robot [Mon, 6 Mar 2017 23:19:36 +0000 (23:19 +0000)]
Merge "Double check hidl service at init + meaningful abort when hidl crash"

7 years agoMerge "Make the AHardwareBuffer extension compatible with C."
TreeHugger Robot [Mon, 6 Mar 2017 23:08:54 +0000 (23:08 +0000)]
Merge "Make the AHardwareBuffer extension compatible with C."

7 years agoMerge "lshal: update descriptions in output." am: 074c1cd157 am: 105e9391ac
Yifan Hong [Mon, 6 Mar 2017 22:08:26 +0000 (22:08 +0000)]
Merge "lshal: update descriptions in output." am: 074c1cd157 am: 105e9391ac
am: 76ccc8cbd1

Change-Id: Iadb1ea22c087d643d0664919411a3e2408d12fd1

7 years agoMerge "lshal: update descriptions in output." am: 074c1cd157
Yifan Hong [Mon, 6 Mar 2017 22:06:25 +0000 (22:06 +0000)]
Merge "lshal: update descriptions in output." am: 074c1cd157
am: 105e9391ac

Change-Id: I9dfa8644300c91bc2149e9f7f4ba5c978b85ecf5

7 years agoMerge "lshal: update descriptions in output."
Yifan Hong [Mon, 6 Mar 2017 22:03:56 +0000 (22:03 +0000)]
Merge "lshal: update descriptions in output."
am: 074c1cd157

Change-Id: Iaa60e243566133d1674b2591becdbc9ead403754

7 years agoDouble check hidl service at init + meaningful abort when hidl crash
Peng Xu [Fri, 3 Mar 2017 03:10:38 +0000 (19:10 -0800)]
Double check hidl service at init + meaningful abort when hidl crash

Sensor hidl service will kill itself when it detects
double-connection(*) from framework sensor service in order to avoid
potential deadlock.  This cl adds a no-op call to hidl service at
initialization of framework service to allow early detection on hidl
service side. It also adds retry mechanism in this case to avoid
another system server crash.

Log messages is added when hidl call transport failure to help better
identify problem. There is no sane recovery at this point and fatal
log is preferred.

* Double-connection to hidl service happens when framework sensor
service crash but leave a lingering connection in sensor hidl service.
Auto restarted framework service will attempt to connect hidl service
again which result in a double connection.

Test: manually killing sensor hidl service and/or restart runtime,
      with and without sensor service in restricted mode, observe
      system recover to good state.

      Pid of sensor hidl service can be found by lshal
          lshal | grep sensor
      switch to restrict mode
          dumpsys sensorservice restrict a.non-exist.package

Bug: 35727090
Bug: 35843387
Bug: 35702298
Bug: 35919167
Bug: 35848670
Bug: 35903635
Change-Id: Ie5c24300503e125d9de031a70948e2bda1eb6dc6

7 years agoMerge "Fix <vulkan/vulkan.h> compatibility with C."
Jesse Hall [Mon, 6 Mar 2017 21:47:18 +0000 (21:47 +0000)]
Merge "Fix <vulkan/vulkan.h> compatibility with C."