OSDN Git Service

android-x86/frameworks-native.git
7 years agoRemove references to property size limits.
Elliott Hughes [Tue, 28 Mar 2017 21:55:31 +0000 (14:55 -0700)]
Remove references to property size limits.

Bug: http://b/33926793
Test: "python systrace.py"
Change-Id: Ia11c160935b8601bc9c4d867abc57ccf37f84082

7 years agoMerge "Support profile guided compilation for secondary dex files"
Calin Juravle [Thu, 16 Mar 2017 23:53:55 +0000 (23:53 +0000)]
Merge "Support profile guided compilation for secondary dex files"

7 years agoSupport profile guided compilation for secondary dex files
Calin Juravle [Thu, 9 Mar 2017 03:05:07 +0000 (19:05 -0800)]
Support profile guided compilation for secondary dex files

Test: adb shell cmd package bg-dexopt-job works for sercondary dex files
Bug: 26719109
Change-Id: I4011a780f65378c23a4631c07c37cdb4f5fee41e

7 years agoMerge "Use assignment instead of reset for profile unique_fd"
Calin Juravle [Wed, 15 Mar 2017 22:15:00 +0000 (22:15 +0000)]
Merge "Use assignment instead of reset for profile unique_fd"

7 years agoUse assignment instead of reset for profile unique_fd
Calin Juravle [Wed, 15 Mar 2017 20:20:39 +0000 (13:20 -0700)]
Use assignment instead of reset for profile unique_fd

Using reset with a unique_fd will just convert the unique_fd to int
without releasing it.

Test: adb shell cmd package compile -m speed-profile com.google.android.googlequicksearchbox
Bug: 36234017
Change-Id: I577197ac4a147765191777a5ebc6ef150dea1027

7 years agoMerge "Drop non-API headers from the NDK vulkan headers."
Treehugger Robot [Wed, 15 Mar 2017 20:13:10 +0000 (20:13 +0000)]
Merge "Drop non-API headers from the NDK vulkan headers."

7 years agoMerge "test-hwc2: fix build errors on other branches"
Treehugger Robot [Wed, 15 Mar 2017 00:45:27 +0000 (00:45 +0000)]
Merge "test-hwc2: fix build errors on other branches"

7 years agoDrop non-API headers from the NDK vulkan headers.
Dan Albert [Tue, 14 Mar 2017 21:22:05 +0000 (14:22 -0700)]
Drop non-API headers from the NDK vulkan headers.

The other headers in this directory are just for the platform and
shouldn't be in the NDK. Fortunately we never exposed the symbols in
the stub libraries so users couldn't actually do anything with the
other headers, but we shouldn't be exposing these headers anyway.

Test: make checkbuild
Bug: http://b/36224616
Change-Id: I9e162964e349a256e7c7ad25eca3c33c5631e2c8

7 years agotest-hwc2: fix build errors on other branches
Marissa Wall [Tue, 14 Mar 2017 19:30:35 +0000 (12:30 -0700)]
test-hwc2: fix build errors on other branches

Currently, test-hwc2 does not build on other branches due to
differences in GraphicBufferAlloc. Switch to directly allocating
graphic buffers.

Test: run the test-hwc2 tests

Change-Id: I63a058a9b0bf48d1e3236f5e124ecaa1dfb4593a

7 years agoMerge "Use unique_fd instead of fd_t when managing profiles"
Calin Juravle [Tue, 14 Mar 2017 02:17:44 +0000 (02:17 +0000)]
Merge "Use unique_fd instead of fd_t when managing profiles"

7 years agoUse unique_fd instead of fd_t when managing profiles
Calin Juravle [Thu, 9 Mar 2017 22:33:33 +0000 (14:33 -0800)]
Use unique_fd instead of fd_t when managing profiles

Long due code improvement...

This will make things cleaner when adding support for secondary dex
profiles.

Test: adb shell cmd package bg-dexopt-job
Bug: 26719109
Change-Id: I232759d76c285c9eed9885f8ee4b84431fd65d15

7 years agoMerge changes from topic 'test-hwc2'
Treehugger Robot [Mon, 13 Mar 2017 17:50:25 +0000 (17:50 +0000)]
Merge changes from topic 'test-hwc2'

* changes:
  test-hwc2: dump
  test-hwc2: virtual displays
  test-hwc2: color and hdr requests
  test-hwc2: present display
  test-hwc2: add client target support
  test-hwc2: get and accept display changes
  test-hwc2: validate display
  test-hwc2: set layer visible region
  test-hwc2: set layer buffer
  test-hwc2: set layer surface damage
  test-hwc2: set cursor position
  test-hwc2: set layer color
  test-hwc2: set layer source crop
  test-hwc2: set layer display frame
  test-hwc2: set layer z order
  test-hwc2: set layer transform
  test-hwc2: set layer plane alpha
  test-hwc2: set layer dataspace
  test-hwc2: set layer blend mode
  test-hwc2: set layer composition type
  test-hwc2: get display name
  test-hwc2: enable vsync
  test-hwc2: power mode support
  test-hwc2: get and set active config
  test-hwc2: get display configs and attributes
  test-hwc2: create and destroy layers
  test-hwc2: display type support
  test-hwc2: register callback functions
  test-hwc2: open and close hwc2 device

7 years agoMerge changes Ib6b72ca5,I8ea5dfb9,Iaf954877,I803bf9f4
Treehugger Robot [Sat, 11 Mar 2017 17:37:15 +0000 (17:37 +0000)]
Merge changes Ib6b72ca5,I8ea5dfb9,Iaf954877,I803bf9f4

* changes:
  vulkan: update Vulkan headers to 1.0.43
  vulkan: update Vulkan headers to 1.0.42
  vulkan: update Vulkan headers to 1.0.41
  vulkan: update Vulkan headers to 1.0.39

7 years agovulkan: update Vulkan headers to 1.0.43
Jesse Hall [Sat, 11 Mar 2017 05:01:57 +0000 (21:01 -0800)]
vulkan: update Vulkan headers to 1.0.43

Test: mmm frameworks/native/vulkan
Merged-In: Ib4fb6c279349c821384f73991105218e14dd6a79
Change-Id: Ib6b72ca50bff647552f1cad1e726d5398104ffe1

7 years agovulkan: update Vulkan headers to 1.0.42
Jesse Hall [Sat, 11 Mar 2017 02:35:38 +0000 (18:35 -0800)]
vulkan: update Vulkan headers to 1.0.42

Test: mmm frameworks/native/vulkan
Merged-In: I9c41b483fbf48a7404b54bfe405c40b58422ea74
Change-Id: I8ea5dfb9ad79fee64032e9d90b21ee087e4e5baa

7 years agovulkan: update Vulkan headers to 1.0.41
Jesse Hall [Tue, 7 Mar 2017 00:02:58 +0000 (16:02 -0800)]
vulkan: update Vulkan headers to 1.0.41

Includes some header reordering in generated code due to a new version
of clang-format.

Test: mmm frameworks/native/vulkan
Merged-In: I40372758fb7214a627ab686d8a3de6bf9beae205
Change-Id: Iaf9548776d3462fcd9bcc236be6966ecce265565

7 years agovulkan: update Vulkan headers to 1.0.39
Jesse Hall [Mon, 6 Mar 2017 23:22:17 +0000 (15:22 -0800)]
vulkan: update Vulkan headers to 1.0.39

Test: make ; mmm frameworks/native/vulkan
Merged-In: Ic787ce171633dce0d17b3ba838d0c3441ac728c3
Change-Id: I803bf9f4cd0ca4db8579a5c28495e8a66088bae2

7 years agoMerge "dumpsys: remove usage of String16::std_string"
Treehugger Robot [Sat, 11 Mar 2017 08:55:09 +0000 (08:55 +0000)]
Merge "dumpsys: remove usage of String16::std_string"

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 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
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 agodumpsys: remove usage of String16::std_string
Steven Moreland [Fri, 10 Mar 2017 06:59:32 +0000 (22:59 -0800)]
dumpsys: remove usage of String16::std_string

Test: pass

Change-Id: Ib74a126b91d25376a7235f73bbc12ada62ae7e69

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 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 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 agotest-hwc2: dump
Marissa Wall [Thu, 15 Dec 2016 20:42:07 +0000 (12:42 -0800)]
test-hwc2: dump

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I0215fea464fd126b5f9041435bef7e00b46c6ac8

7 years agotest-hwc2: virtual displays
Marissa Wall [Tue, 21 Feb 2017 22:33:46 +0000 (14:33 -0800)]
test-hwc2: virtual displays

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
      frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ia10ec761712ee03f56782e3df2d6eabf7fb77760

7 years agotest-hwc2: color and hdr requests
Marissa Wall [Thu, 15 Dec 2016 20:41:06 +0000 (12:41 -0800)]
test-hwc2: color and hdr requests

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Id515de0fac7e842724ae8f27e865fad4933256e6

7 years agotest-hwc2: present display
Marissa Wall [Tue, 21 Feb 2017 22:01:05 +0000 (14:01 -0800)]
test-hwc2: present display

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
      frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I845320afdf635d1716310d1183bcb10515615517

7 years agotest-hwc2: add client target support
Marissa Wall [Tue, 21 Feb 2017 22:01:05 +0000 (14:01 -0800)]
test-hwc2: add client target support

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
      frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I94c86795b2e334df0570c6c5a3cbbcb5a8ca2826

7 years agotest-hwc2: get and accept display changes
Marissa Wall [Thu, 15 Dec 2016 20:39:14 +0000 (12:39 -0800)]
test-hwc2: get and accept display changes

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ia1d1a0ee5fce43e7904ee49f13a86df0e7adc428

7 years agotest-hwc2: validate display
Marissa Wall [Fri, 27 Jan 2017 20:55:36 +0000 (12:55 -0800)]
test-hwc2: validate display

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I9a9df2902213d99d4f043e3bdea1e5e2fc77b01d

7 years agotest-hwc2: set layer visible region
Marissa Wall [Thu, 15 Dec 2016 20:34:39 +0000 (12:34 -0800)]
test-hwc2: set layer visible region

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I0e620fa6763d258d7875da9bf85d41c182e015d2

7 years agotest-hwc2: set layer buffer
Marissa Wall [Thu, 15 Dec 2016 20:34:06 +0000 (12:34 -0800)]
test-hwc2: set layer buffer

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ie42d1fd4c2d0248c4a3ecf09a9b5871d501f6172

7 years agotest-hwc2: set layer surface damage
Marissa Wall [Thu, 15 Dec 2016 20:32:24 +0000 (12:32 -0800)]
test-hwc2: set layer surface damage

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ie30032c7285d76d26e51b36b0cfded909f4c3480

7 years agotest-hwc2: set cursor position
Marissa Wall [Thu, 15 Dec 2016 20:31:37 +0000 (12:31 -0800)]
test-hwc2: set cursor position

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I4b265826befcf33c3f71b52bfabc076c48efed5f

7 years agotest-hwc2: set layer color
Marissa Wall [Thu, 15 Dec 2016 20:30:12 +0000 (12:30 -0800)]
test-hwc2: set layer color

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ic280f91189a4d6ddd67a33901244714f3c0a46dd

7 years agotest-hwc2: set layer source crop
Marissa Wall [Thu, 15 Dec 2016 20:31:12 +0000 (12:31 -0800)]
test-hwc2: set layer source crop

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: If3079efd7a035d1d182f04c56dc55300cdcedc47

7 years agotest-hwc2: set layer display frame
Marissa Wall [Thu, 15 Dec 2016 20:30:39 +0000 (12:30 -0800)]
test-hwc2: set layer display frame

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I4431ad0d207924b9fcde2c4c2f34382ec8ddc4d8

7 years agotest-hwc2: set layer z order
Marissa Wall [Thu, 15 Dec 2016 20:28:47 +0000 (12:28 -0800)]
test-hwc2: set layer z order

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I2c51df36d62f9d809583003b81c24dbd7a744301

7 years agotest-hwc2: set layer transform
Marissa Wall [Thu, 15 Dec 2016 20:27:48 +0000 (12:27 -0800)]
test-hwc2: set layer transform

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I55e318cbddf957d1728435488c6283f8ce77a3d6

7 years agotest-hwc2: set layer plane alpha
Marissa Wall [Thu, 15 Dec 2016 20:27:20 +0000 (12:27 -0800)]
test-hwc2: set layer plane alpha

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I48146953f745dc650ead5a6e9d6f456cf5a9d7ef

7 years agotest-hwc2: set layer dataspace
Marissa Wall [Thu, 15 Dec 2016 20:26:39 +0000 (12:26 -0800)]
test-hwc2: set layer dataspace

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ia5bc9e53815d519e2016f3db12d69c6cc70a9b26

7 years agotest-hwc2: set layer blend mode
Marissa Wall [Thu, 15 Dec 2016 20:26:09 +0000 (12:26 -0800)]
test-hwc2: set layer blend mode

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Id5a7a568fb81ac9aff388d04077a12765cc135a3

7 years agotest-hwc2: set layer composition type
Marissa Wall [Thu, 15 Dec 2016 20:25:31 +0000 (12:25 -0800)]
test-hwc2: set layer composition type

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I9e71d0c01daa70f28031dd8310f2a40d7162a68e

7 years agotest-hwc2: get display name
Marissa Wall [Thu, 15 Dec 2016 20:24:52 +0000 (12:24 -0800)]
test-hwc2: get display name

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I935329c0c572368f25aeefdbc913a7044f655aa5

7 years agotest-hwc2: enable vsync
Marissa Wall [Thu, 15 Dec 2016 20:24:13 +0000 (12:24 -0800)]
test-hwc2: enable vsync

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I704fcf0ef097602440835981a47dc6c3785e332d

7 years agotest-hwc2: power mode support
Marissa Wall [Thu, 15 Dec 2016 20:23:16 +0000 (12:23 -0800)]
test-hwc2: power mode support

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I4439f8215bb8d0652e6f5ad40f0c4625f7e97f9b

7 years agotest-hwc2: get and set active config
Marissa Wall [Thu, 15 Dec 2016 20:21:46 +0000 (12:21 -0800)]
test-hwc2: get and set active config

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I2ac012a27b31e34886e3ec7f04a8bfc3fd1b83c4

7 years agotest-hwc2: get display configs and attributes
Marissa Wall [Thu, 15 Dec 2016 20:20:47 +0000 (12:20 -0800)]
test-hwc2: get display configs and attributes

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I7aa1200057d9fa3cc7988554e8efcf6db2674584

7 years agotest-hwc2: create and destroy layers
Marissa Wall [Thu, 15 Dec 2016 20:19:39 +0000 (12:19 -0800)]
test-hwc2: create and destroy layers

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I508174a871a74d4c4d2843fc0ded84c517553bce

7 years agotest-hwc2: display type support
Marissa Wall [Sat, 18 Feb 2017 04:53:18 +0000 (20:53 -0800)]
test-hwc2: display type support

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
      frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: I0b1be456e360ac5a218ca0cd0e9f297e178c8727

7 years agotest-hwc2: register callback functions
Marissa Wall [Sat, 18 Feb 2017 04:52:03 +0000 (20:52 -0800)]
test-hwc2: register callback functions

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
      frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ic48431a830115f40e9e851bca8f7c730b06f6529

7 years agotest-hwc2: open and close hwc2 device
Marissa Wall [Thu, 15 Dec 2016 20:16:01 +0000 (12:16 -0800)]
test-hwc2: open and close hwc2 device

Test: Add "#define HAVE_NO_SURFACE_FLINGER" to
          frameworks/native/libs/gui/BufferQueueCore.cpp.
      Recompile and flash.
      Run "mm" in frameworks/native/services/surfaceflinger/tests/hwc2.
      Push test-hwc2 to device.
      Run "adb root && adb shell stop".
      Run test case. Ex: "./test-hwc2"

Change-Id: Ie7d3963540b0c96db8251bd745f37beab8dd340b

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 "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 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 "lshal: update descriptions in output."
Yifan Hong [Mon, 6 Mar 2017 20:20:18 +0000 (20:20 +0000)]
Merge "lshal: update descriptions in output."

7 years agoMerge "Small change for testing."
Jeff Sharkey [Sun, 5 Mar 2017 00:48:59 +0000 (00:48 +0000)]
Merge "Small change for testing."

7 years agoSmall change for testing.
Jeff Sharkey [Sun, 5 Mar 2017 00:48:00 +0000 (17:48 -0700)]
Small change for testing.

Bug: 359709553596943935968280
Change-Id: I56c6626221b456e13b1371b69e9c980edaddfa91

7 years agoInstalld: Clean up code related to foreign dex use
Calin Juravle [Sat, 4 Mar 2017 01:00:35 +0000 (17:00 -0800)]
Installd: Clean up code related to foreign dex use

We simplified the way we track whether or not a dex file is used by
other apps. DexManager in the framework keeps track of the data and we
no longer need file markers on disk.

Also, fix the getUserSize by considering the size of the actual profiles
not of the set of empty markers.

Test: device boots, foreign dex markers are not created anymore

Bug: 32871170
Change-Id: I9250e816a1bfa95cb10155e513ae28ebfda7ce4b

7 years agolshal: update descriptions in output.
Yifan Hong [Fri, 3 Mar 2017 18:57:43 +0000 (10:57 -0800)]
lshal: update descriptions in output.

Test: pass
Change-Id: I912e2153e531a35ecdf1e76fd6bafa68880b8721

7 years agoMerge changes from topic 'lshal_32'
Yifan Hong [Fri, 3 Mar 2017 17:49:54 +0000 (17:49 +0000)]
Merge changes from topic 'lshal_32'

* changes:
  lshal: Put more description to output
  lshal: also list libraries in 32-bit.

7 years agolshal: Put more description to output
Yifan Hong [Fri, 3 Mar 2017 03:19:29 +0000 (19:19 -0800)]
lshal: Put more description to output

Split the output by three parts according to the source of information.
Describe each part before the table.

--sort will be applied to each table individually.

Bug: 35803917
Test: lshal
Change-Id: Ief0dae21fdeb58ebaed46d2aa68f298b8b75218d

7 years agolshal: also list libraries in 32-bit.
Yifan Hong [Fri, 3 Mar 2017 00:54:11 +0000 (16:54 -0800)]
lshal: also list libraries in 32-bit.

Add an "Arch" column (selected by -r) to lshal
to show whether the HAL runs in 32 bit or 64 bit.

* For binderized services, whether the process
  runs in 32bit or 64bit (__LP64__)
* For passthrough libraries (-impl.so), whether
  the library is in /{system,vendor,odm}/lib/hw
  or /{system,vendor,odm}lib64/hw

Bug: 35803184
Test: lshal -itrpc
Change-Id: I328da4ad9eacbf2959be4ac2e478c16535a89068

7 years agoMerge changes from topic 'secondary-dex'
Calin Juravle [Thu, 2 Mar 2017 23:54:22 +0000 (23:54 +0000)]
Merge changes from topic 'secondary-dex'

* changes:
  Fix the ownership of compiler artifacts for secondary dex files
  DEXOPT_FORCE may be passed for primary apk as well.
  [Installd] Clean up logic for secondary dex oat files
  Add installd logic for compiling secondary dex files

7 years agoFix the ownership of compiler artifacts for secondary dex files
Calin Juravle [Wed, 15 Feb 2017 20:44:14 +0000 (12:44 -0800)]
Fix the ownership of compiler artifacts for secondary dex files

odex, vdex and art files should be owned by the app and not by system.

Test: verify odex and vdex owner:
      adb shell cmd package compile -m speed --secondary-dex -f
com.google.android.gms
      adb shell ls
/data/user/0/com.google.android.gms/app_chimera/m/00000004/oat/arm64/
-al
      -rw-r--r-- 1 u0_a17 u0_a17       5640832 2017-02-02 18:00
DynamiteModulesA_GmsCore_prodmnc_alldpi_release.odex
      -rw-r--r-- 1 u0_a17 u0_a17       3016818 2017-02-15 12:42
DynamiteModulesA_GmsCore_prodmnc_alldpi_release.vdex

Bug: 35389574
Bug: 32871170

(cherry picked from commit 944d0def1a628bcbd76056683085efd2b999fe5b)

Change-Id: I1f0d09d04807b6284d42f0cf89956322a4214d5f

Merged-In: I0650265cedcc572d43bb1fc0d0758ae43ea890b2

7 years agoDEXOPT_FORCE may be passed for primary apk as well.
Calin Juravle [Tue, 31 Jan 2017 21:53:00 +0000 (13:53 -0800)]
DEXOPT_FORCE may be passed for primary apk as well.

Remove the check that DEXOPT_FORCE is not set for primary apks. PM will
set it when forcing compilation.

Bug: 32871170
Test: adb shell cmd package compile -f m speed pkgname

(cherry picked from commit 259702336f5826d2a205a2b038cb5a3263fb10e9)

Change-Id: Id34cd1ec929a1e196caf61651a18eb9c275b2590

Merged-In: I690608c48a2c486230ca7d2328ac5c6181427328

7 years ago[Installd] Clean up logic for secondary dex oat files
Calin Juravle [Wed, 25 Jan 2017 09:17:17 +0000 (01:17 -0800)]
[Installd] Clean up logic for secondary dex oat files

Add a new method to installd, reconcileSecondaryOdex, which checks if
the given dex files still exist and if not, deletes the oat files that
were generated for it.

Test: devices bots
      adb shell cmd package reconcile-secondary-dex
com.android.google.gms (after artificially/temporarily renaming some
dex files)

Bug: 32871170

(cherry picked from commit bd9683607d391a29b1422a50f8972267e9bddc47)

Change-Id: Icb5c71b43a0e531d5be5d900149e707d0fe0a8de

Merged-In: I8465a7be9fd4e44e191ad40f7bd0f41c8b2d6f73

7 years agoAdd installd logic for compiling secondary dex files
Calin Juravle [Tue, 17 Jan 2017 22:43:25 +0000 (14:43 -0800)]
Add installd logic for compiling secondary dex files

Secondary dex compilation takes almost the same path as primary apk
compilation.

The main difference is in the fact that for secondary dex files we
create the oat dir on the fly and execute dexoptanalyzer (the equivalent
of GetDexOptNeeded) to check if we really need to perform the
compilation.

Test: adb shell cmd package compile -f -m speed --secondary-dex com.google.android.gms
Bug: 32871170

(cherry picked from commit 42451c029b0e87990e5833daea2286bb12c21df5)

Change-Id: Ie5efe6eccc6b8c91ca7bd7c9e680aa7288d79ae8

Merged-In: I2c56d57322899968a338ccabffca575d66f8ee08

7 years agoMerge "Move dumpstate to calling getprop."
Elliott Hughes [Wed, 1 Mar 2017 23:27:07 +0000 (23:27 +0000)]
Merge "Move dumpstate to calling getprop."

7 years agoMove dumpstate to calling getprop.
Elliott Hughes [Tue, 28 Feb 2017 18:14:22 +0000 (10:14 -0800)]
Move dumpstate to calling getprop.

There's no obvious reason for reinventing the wheel like this (given that
dumpstate already spends most of its time calling out to other utilities),
and I keep having to come and fix this code.

(This time the problem being that there's no longer a limit on system
property names.)

Bug: http://b/33926793
Test: ran dumpstate
Merged-In: I08281680df5aabfdb39228abf8c2aab089cc8b9e
Change-Id: I08281680df5aabfdb39228abf8c2aab089cc8b9e

7 years agoMerge "lshal --vintf to create a skeleton hal manifest."
Treehugger Robot [Wed, 1 Mar 2017 06:05:13 +0000 (06:05 +0000)]
Merge "lshal --vintf to create a skeleton hal manifest."

7 years agolshal --vintf to create a skeleton hal manifest.
Yifan Hong [Wed, 1 Mar 2017 03:38:24 +0000 (19:38 -0800)]
lshal --vintf to create a skeleton hal manifest.

Run it as follows:
lshal --init-vintf=/data/a.xml
lshal --init-vintf > /data/a.xml

Test: lshal --init-vintf with and without path argument
Bug: 35852743
Change-Id: Ief9385fc2764a487d1a70644699e01133bdc8a8e

7 years agoMerge "lshal: separate timeout for hwservicemanager list"
Treehugger Robot [Wed, 1 Mar 2017 03:50:11 +0000 (03:50 +0000)]
Merge "lshal: separate timeout for hwservicemanager list"

7 years agolshal: separate timeout for hwservicemanager list
Steven Moreland [Wed, 1 Mar 2017 01:52:58 +0000 (17:52 -0800)]
lshal: separate timeout for hwservicemanager list

Bug: 35752836
Test: lshal works
Change-Id: I201da49e375d2d5e9ea67dfdf34ef2d5a8b537b0

7 years agoMerge "Truncate trace output files."
Martijn Coenen [Tue, 28 Feb 2017 09:08:33 +0000 (09:08 +0000)]
Merge "Truncate trace output files."

7 years agoMerge changes I6437dc95,I77261381
Jesse Hall [Sun, 26 Feb 2017 05:54:04 +0000 (05:54 +0000)]
Merge changes I6437dc95,I77261381

* changes:
  vulkan: update Vulkan headers to 1.0.38
  vulkan: Update Vulkan headers to 1.0.22

7 years agovulkan: update Vulkan headers to 1.0.38
Jesse Hall [Fri, 24 Feb 2017 23:13:45 +0000 (15:13 -0800)]
vulkan: update Vulkan headers to 1.0.38

Test: make ; mmm frameworks/native/vulkan
Change-Id: I6437dc951bd694cb848f75d0de7eb7dbe8a4d1fe

7 years agovulkan: Update Vulkan headers to 1.0.22
Jesse Hall [Tue, 26 Jul 2016 22:20:40 +0000 (15:20 -0700)]
vulkan: Update Vulkan headers to 1.0.22

Meaningful changes to platform code:
* VKAPI_ATTR is now defined properly when building for 32-bit ARMv8a.
* The pData parameter to vkCmdUpdateBuffer changed from uint32_t* to
  void*. Alignment is still required to be four bytes (by spec), and
  the size parameter was always supposed to be bytes, not words.

Bug: 29460769
Test: make ; mmm frameworks/native/vulkan
Change-Id: I77261381e5702a3b2bc1d1ea4c0606151547be47
(cherry picked from commit 56d386a7a46c8ac36df8820c3ccf3da048ef1970)

7 years agoMerge "lshal: Fix timeout causes unexpected exits."
Yifan Hong [Wed, 22 Feb 2017 18:28:23 +0000 (18:28 +0000)]
Merge "lshal: Fix timeout causes unexpected exits."

7 years agoTruncate trace output files.
Martijn Coenen [Wed, 22 Feb 2017 08:25:31 +0000 (09:25 +0100)]
Truncate trace output files.

To avoid creating trace files with garbage at the end.

Bug: 35588070
Test: atrace runs
Change-Id: I26ef4c652ca2e2dd8ff9d11d4f380b44791cb960

7 years agolshal: Fix timeout causes unexpected exits.
Yifan Hong [Tue, 21 Feb 2017 22:59:00 +0000 (14:59 -0800)]
lshal: Fix timeout causes unexpected exits.

with thread::detach the background thread keeps running even after
the thread object is destroyed; the background thread will access
caller's stack memory, causing segfault. Change it to a thread join
to avoid the issue. To avoid waiting too long on the child thread,
send a SIGINT if timeout (child thread's signal handler will then
call pthread_exit() to terminate the thread).

Since we are using pthread_* functions, change usage of std::thread
to pthread_t for consistency.

Test: lshal
Test: run lshal with IPC_CALL_TIMEOUT set to zero will no longer
      cause SIGSEGV and SIGABRT (test 10 times)

Bug: 35623669
Change-Id: I4eef8ffd8ff399793648e861ca4c1a2bdcc7ec50

7 years agoMerge "Removed build time variable ENABLE_CPUSETS."
Isaac Chen [Tue, 21 Feb 2017 02:05:22 +0000 (02:05 +0000)]
Merge "Removed build time variable ENABLE_CPUSETS."

7 years agoRemoved build time variable ENABLE_CPUSETS.
Isaac Chen [Thu, 16 Feb 2017 03:51:51 +0000 (11:51 +0800)]
Removed build time variable ENABLE_CPUSETS.

Use runtime check, cpuset_enabled(), instead of build time varianble
usually set in BoardConfog.mk.

Bug: 34726944

Test: Tested on Sailfish
      without cpuset mounted
      with cpuset mounted, but without schedtune
      with cpuset mounted and with schedtune

Change-Id: I00153628db62abfbaa0ba75d571ba1bda0611ff3

7 years agoMerge "Fix lshal cannot be run without root"
Treehugger Robot [Sat, 18 Feb 2017 01:03:15 +0000 (01:03 +0000)]
Merge "Fix lshal cannot be run without root"

7 years agoFix lshal cannot be run without root
Yifan Hong [Fri, 17 Feb 2017 21:38:47 +0000 (13:38 -0800)]
Fix lshal cannot be run without root

Root cause is invoking copy constructor on a Return<T> object
implicitly, while the old object contains a failed status and
gets destroyed. Use the move constructor instead to fix this.

Test: adb unroot && adb shell lshal
Change-Id: I44710166cc5d7da30bf54b10d1860be1b91dc98a

7 years agoMerge "atrace: Don't output service lookup/notification errors."
Treehugger Robot [Fri, 17 Feb 2017 18:38:53 +0000 (18:38 +0000)]
Merge "atrace: Don't output service lookup/notification errors."

7 years agoatrace: Don't output service lookup/notification errors.
Martijn Coenen [Fri, 17 Feb 2017 13:57:38 +0000 (14:57 +0100)]
atrace: Don't output service lookup/notification errors.

Bug: 34933232
Test: android.atrace.cts.AtraceHostTests
Change-Id: If981106fb1bf7db24b9fd173c6936a1e189756f0

7 years agoMerge changes from topic 'lshal'
Yifan Hong [Thu, 16 Feb 2017 18:02:51 +0000 (18:02 +0000)]
Merge changes from topic 'lshal'

* changes:
  lshal: Add option to print cmd lines instead of pids.
  lshal: Add timeout for IPC calls.
  lshal: Allow selecting columns and sorting by column.
  lshal: Refactor lshal to use an Lshal class; combined instance column with interface column

7 years agolshal: Add option to print cmd lines instead of pids.
Yifan Hong [Wed, 15 Feb 2017 01:33:50 +0000 (17:33 -0800)]
lshal: Add option to print cmd lines instead of pids.

Add -m to arguments of lshal. When this flag is set,
/proc/{pid}/cmdline is printed instead of a plain PID.
If the file doesn't exist, it will be striped out from
the PID column as well (the process is considered died
and won't hold a reference to the binder object.)

Test: lshal -icm

Bug: 35160832

Change-Id: I4345bf06112a1f87ce91bec6f6f787703e46cd17

7 years agolshal: Add timeout for IPC calls.
Yifan Hong [Tue, 14 Feb 2017 23:43:31 +0000 (15:43 -0800)]
lshal: Add timeout for IPC calls.

IPC calls into interfaces should be done fault-torelently.
Add a timeout for each IPC call made so that lshal won't be
indefinitely blocked even if the interface don't reply
promptly.

Bug: 35317039

Test: lshal

Change-Id: Icb8157716ad68bddb5b33304b9063aa6f233985d

7 years agolshal: Allow selecting columns and sorting by column.
Yifan Hong [Tue, 14 Feb 2017 01:51:59 +0000 (17:51 -0800)]
lshal: Allow selecting columns and sorting by column.

Examples: see tests below.

Test: lshal
Test: lshal -intpac
Test: lshal --sort=i
Test: lshal --sort=p

Bug: 34984175

Change-Id: Ia09823776a206868a5d58a2ede153a4538147756

7 years agolshal: Refactor lshal to use an Lshal class; combined instance column with interface...
Yifan Hong [Sat, 11 Feb 2017 01:49:58 +0000 (17:49 -0800)]
lshal: Refactor lshal to use an Lshal class; combined instance column with interface column

We need to be able to select columns, sort columns,
and do IPC calls fault-tolerently.
Refactoring lshal.cpp into an Lshal class for more
objective-oriented programming, so that global variables
can be avoided and less parameters will need
to be passed around.

Test: lshal outputs identical output as without this CL, except
with the column merged.

Change-Id: I9668c998da692222aef96ae67bbab8066172543d

7 years agoMerge "Revert "dumpsys: add option to list hardware services.""
Treehugger Robot [Tue, 14 Feb 2017 03:44:52 +0000 (03:44 +0000)]
Merge "Revert "dumpsys: add option to list hardware services.""

7 years agoRevert "dumpsys: add option to list hardware services."
Steven Moreland [Mon, 13 Feb 2017 23:44:17 +0000 (23:44 +0000)]
Revert "dumpsys: add option to list hardware services."

This reverts commit 6270dd1bf7f4a6eaa0e36b2cbb0f9bdd4790b5d8.

Reason for revert: obsolete, removed in favor of lshal
Test: dumpsys_test

Change-Id: I06e256a5bd0995727a3d6f3f88f79a623b1474f3