Commit graph

222 commits

Author SHA1 Message Date
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Sundong Ahn
e64a228861 Remove configstore 1.2
the configstore functionality was added in Q. But The configstore will
be deleted. So additional function is deleted.

Bug: 124531214
Test: build & boot
Test: adb shell lshal | grep configstore & check configstore 1.2
Change-Id: Idbb00b972bc082bd75bba94dbff9cee19df48b89
2019-02-27 12:22:54 +09:00
Peiyong Lin
36e11ac4c7 Merge "[ConfigStore] Slient log spam." am: 925f06e87b am: 30e7ab464d
am: 0525e64e7a

Change-Id: I68717d4526035119a03ded21ac1cc83942cdec31
2019-02-06 14:57:53 -08:00
Peiyong Lin
09dbd3df37 [ConfigStore] Slient log spam.
Previously ConfigStore keeps logging info of each function, this patch moves it
to verbose to avoid log spam.

BUG: 123312783
Test: Build, flash and boot. Verify with adb logcat
Change-Id: I8dce745122ca05d18cd899c536342521432f5325
2019-02-06 11:05:14 -08:00
Kevin DuBois
1ec0b52d17 graphics.common: add HSV format definition to 1.2
Adds HSV format used in some color sampling engines to the list
of pixel formats. Rev the sampling engine in composer to reference
the new format revision.

Test: built image, with new format reported in vendor code.
Test: VtsHalGraphicsComposerV2_3TargetTest
Fixes: 122943743

Roll-forward of build-breaking topic commit. No changes were
needed in this patch. see bug 123404649 for breakage details.
This reverts commit e2f69f2228.

Change-Id: I38ac5cafeb6a07e683352c8d297892a681e24702
2019-01-25 20:54:03 +00:00
Kevin DuBois
e2f69f2228 Revert "graphics.common: add HSV format definition to 1.2"
This reverts commit 97e1a932ec.

Reason for revert: broke build 

Change-Id: Ib264957e9a1de83c37e4129471b3c75522e21d08
2019-01-25 17:06:01 +00:00
Kevin DuBois
97e1a932ec graphics.common: add HSV format definition to 1.2
Adds HSV format used in some color sampling engines to the list
of pixel formats. Rev the sampling engine in composer to reference
the new format revision.

Test: built image, with new format reported in vendor code.
Test: VtsHalGraphicsComposerV2_3TargetTest
Fixes: 122943743

Change-Id: I1b454a86f464f38e3c2cbeef5379a187ff38ab06
2019-01-24 10:05:28 -08:00
linpeter
5a12cd7376 [ConfigStore] Add get display primary interface
Implement get display native primaries and vts

Bug: 118515855

Test: run vts-hal -m  VtsHalConfigstoreV1_2Target
                  -t ConfigstoreHidlTest.TestGetDisplayNativePrimaries
Change-Id: I8391fe2eaf32a2aa6dfe6eb741baa97629f00f55
2019-01-16 19:53:06 +08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Keun Soo YIM
ff84c37bc1 pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-11-27 16:11:41 -08:00
Peiyong Lin
f16e843b69 [ConfigStore] Add VTS
BUG: 113800257
Test: run VtsHalConfigstoreV1_2TargetTest/VtsHalConfigstoreV1_2TargetTest
Change-Id: I1444a4d1fe54fbcdce68aa3a1c39dbf541cfab66
2018-11-06 15:33:55 -08:00
TreeHugger Robot
c2623f0046 Merge "[ConfigStore] Return data space and pixel format for wide color gamut." 2018-11-02 00:26:19 +00:00
Peiyong Lin
d45f46989b [ConfigStore] Return data space and pixel format for wide color gamut.
To proceed down to the route where default composition preference and wide
color gamut composition preference are different, we want to return the
configuration for wide color gamut composition preference. This patch extends
the previous composition preference API to return wide color gamut composition
preference.

BUG: 111436479
Test: Build, flash and run tests.
Change-Id: I88b22c01d9d9ec75f4bb7f4ef477d3eae0e0db87
2018-10-31 15:02:41 -07:00
Valerie Hau
802539f8f5 Update Android.bp to reflect graphics.common@1.2
Bug: 115335239
Test: ./libsurfaceflinger_unittest
Change-Id: I0a89bbbc078ef60a9c4247b7600366aff688d805
2018-10-31 14:41:13 -07:00
Valerie Hau
ec98306549 Adding Dataspace BT2020_SRGB and ColorMode BT2020_SRGB
BT2020_SRGB is BT2020 with SRGB transfer function.  Adding to types V1.2
and upgrading methods that utilize Dataspace and ColorMode

Bug: 115335239
Test: ./libsurfaceflinger_unittest --gtest_filter=GetBestColorMode.*
Change-Id: Ic807183ae2bd0212cd8c5d7a24c93db0a1bc28fb
2018-10-22 11:19:52 -07:00
Steven Moreland
1a6fd42e03 configstore: make consistent with AOSP
'rd' -> 'RD' to avoid having a different hash/merge conflicts.

Bug: N/A
Test: hidl-gen -Lcheck android.hardware.configstore@1.0
Test: manually check the hash is the same on AOSP
Change-Id: Id57f21d25bc905859c43f229b9d5b66c0c9d2cfc
2018-09-25 14:44:15 -07:00
Peiyong Lin
bfbaf8400e [ConfigStore] Add getCompositionPreference.
In order to tell renderer to render into the best color space with the right
pixel format. We need to expose it as a composition preference. This patch adds
ConfigStore API to query such preference.

Typically, this API will return the default data space of a color space that
the panel is calibrated to, with the default pixel format that hardware
composer can composite to efficiently. However, devices can make tradeoff
between data space and pixel format.

BUG: 113530681
Test: Build, flash, boot

Change-Id: I0ea09e21e70843b50157ec617c87a42bb4ff7332
2018-09-06 12:24:21 -07:00
Peiyong Lin
52a7c69abf [ConfigStore] Clarify hasHDRDisplay spec.
BUG: 111505327
Test: Build, flash and boot

Change-Id: Ie22d4c7b069a918f039a60317a213dc6a7efb205
Merged-In: Ie22d4c7b069a918f039a60317a213dc6a7efb205
2018-08-22 18:20:58 -07:00
Peiyong Lin
bd02fcd6f3 Merge "[ConfigStore] Add useColorManagement method." 2018-08-22 16:15:09 +00:00
Peiyong Lin
2b3f82672a [ConfigStore] Add useColorManagement method.
Previously we couple wide color gamut display and color management together,
which is because we only do color management when we have wide color gamut
display. However, we would also want display that doesn't support wide color
gamut but is calibrated and is capable of managing sRGB gamut to have color
management. This means we will decouple wide color gamut display from color
management, a device can indicate that it's color managed without having wide
color gamut display and only manage color within sRGB gamut.

BUG: 111505327
Test: BUild, flash and check Natural/Boosted mode.
Change-Id: If1241ce040a6f691609d8f8d72a2d6f3141557cf
2018-08-21 15:21:54 -07:00
Peiyong Lin
3ebd7eef79 [ConfigStore] Clarify hasHDRDisplay spec.
BUG: 111505327
Test: Build, flash and boot

Change-Id: Ie22d4c7b069a918f039a60317a213dc6a7efb205
2018-08-21 12:46:46 -07:00
Jeffrey Vander Stoep
1850703a5e Merge "Revert "configstore: include crash_dump seccomp policy""
am: aeb792be28

Change-Id: I636f1db4864b0c20a113f7a82e4ecda5ee253f40
2018-06-15 10:02:44 -07:00
Treehugger Robot
aeb792be28 Merge "Revert "configstore: include crash_dump seccomp policy"" 2018-06-15 16:55:17 +00:00
Jeffrey Vander Stoep
a057fd15a3 Revert "configstore: include crash_dump seccomp policy"
This reverts commit 1ca0e947a4.

Reason for revert: This change caused a configstore crash on Hikey

Change-Id: Ied327b331ac084349bf4d10c34f5702b4da7aab0
2018-06-15 14:21:11 +00:00
Jeff Vander Stoep
ca8d5c9250 Merge "configstore: include crash_dump seccomp policy"
am: 25080b1fff

Change-Id: I54535004faf8beebef7222989d025fa0b999f9a6
2018-06-13 11:16:58 -07:00
Treehugger Robot
25080b1fff Merge "configstore: include crash_dump seccomp policy" 2018-06-13 18:06:36 +00:00
Jeff Vander Stoep
1ca0e947a4 configstore: include crash_dump seccomp policy
Change-Id: I37ebd0da5747c7c475e9d2d63dc5f9fdc511f8e7
Fixes: 78776142
Test: Crash configstore, verify useful crash info in the logs.
2018-06-13 07:01:58 -07:00
Steven Moreland
f157c2c418 Add explicit README for configstore future goals. am: 31f5143c23
am: 3542341bbb

Change-Id: Icc3df703fc7ca9c79551ed7fc9ea47e40d3f0991
2018-06-07 08:22:46 -07:00
Steven Moreland
31f5143c23 Add explicit README for configstore future goals.
Previously, supposedly, each individual client of configstore
was supposed to add the add_hwservice attribute itself to get
ahold of the specific sub-interface of configstore relevant to
it. However, there is only one configstore interface,
ISurfaceFlingerConfigs.

From this point onward, the configstore hal is to be thought of
as specifically relating to surface flinger. Other properties
may be added as other attributes/packages.

For instance, if we want a configstore entry for 'IFooConfig',
then we would add the configuration to one of the following
packages:
- android.hardware.foo@X.Y (to the interface itself)
- android.hardware.foo.config@X.Y (to a configuration of the interface)
- android.hardware.configstore.foo@X.Y (as a sub-interface of configstore)

and then it could be associated with the sepolicy attributes
(respectively):
- hal_foo
- hal_foo_config (or just hal_foo if they are 1-1)
- hal_configstore_foo

The specific pattern to be followed irrelevant to this CL
and subject to future discussion, the point being that we're going
to have a separate sepolicy attribute (and package, although this
isn't strictly necessary) for each separate domain's configuration.

Bug: 109806245
Test: N/A
Change-Id: I837e0bdd11e028265756a905c234e087924c1d6b
2018-06-06 13:03:13 -07:00
Jaesoo Lee
ff866b9b0d Merge "configstore: configstore HAL uprev'ed to 1.1" into pi-dev
am: ce7d394935

Change-Id: I610b46eb5a8d959e7ebacbc2beecb953b9e5383c
2018-05-23 18:20:47 -07:00
Jaesoo Lee
712ee82162 configstore: configstore HAL uprev'ed to 1.1
This change provides a reference implementation of the configstore HAL
v1.1.

Bug: 69691076
Test: tested on walleye-userdebug
Change-Id: I68ee224bcbda64f6fef91e8a0f95adb32d504aad
2018-05-23 15:48:36 -07:00
Steven Moreland
f7c33b81c3 configstore: remove references to board platforms am: 3f221a835b
am: 03464d7674

Change-Id: I61827f9a18337accb46f1f71d91cc29f6451dba9
2018-05-07 17:23:31 -07:00
Steven Moreland
3f221a835b configstore: remove references to board platforms
These platforms should set TARGET_USE_CONTEXT_PRIORITY.

Change-Id: I9cd1984437996405c057246f383d6cf5327667e6
Fixes: 74082983
Test: m only (sanity, these boards aren't in tree for me)
2018-05-07 15:34:23 -07:00
Jiyong Park
216d1f775c Merge "Mark configstore-utils as double_loadable" am: a7b9291b82
am: eba42a4d6b

Change-Id: I02a99829a260941216c7365b350d159ae83fd79d
2018-04-20 21:01:57 -07:00
Jiyong Park
0d257d5f7e Mark configstore-utils as double_loadable
configstore-utils is explicitly marked as double_loadable since it is one of the
(indirect) dependencies of the LLNDK library libvulkan
and at the same time the lib itself is marked as VNDK. Such lib can be
double loaded inside a vendor process.

Note: even without this change, the library is already capable of being
double loaded due to the dependency graph around it. This change is to
make it explicit so that double loading of a library is carefully
tracked and signed-off by the owner of the lib.

Bug: 77155589
Test: m -j
Merged-In: Ibece0476b819e3387836305ee3b1c9dbf614920b
Change-Id: Ibece0476b819e3387836305ee3b1c9dbf614920b
(cherry picked from commit 9fb3c20bc6)
2018-04-18 11:46:52 +09:00
Steven Moreland
80ece2df25 Merge "configstore policy: add dgetdents64" into pi-dev
am: a484609378

Change-Id: Id704b57924206c73cc12103790aba37c8cbc0b90
2018-04-09 11:18:07 -07:00
Steven Moreland
1564ea3fe9 configstore policy: add dgetdents64
Required for libhidltransport to be able to update
process name.

Bug: 77696368
Bug: 77654200
Test: boot device and configstore doesn't crash
Change-Id: I6574cf1c21465c5eae901015da2564b64b6a40d2
2018-04-06 13:16:11 -07:00
Jeff Vander Stoep
da6a30dea3 configstore: whitelist getpid call for arm64 am: 0979cc5dd9
am: e3804803d4

Change-Id: Ic68c63ce824cdb024dde673015f1f23f8b1703cc
2018-03-19 20:36:18 +00:00
Jeff Vander Stoep
0979cc5dd9 configstore: whitelist getpid call for arm64
Addresses:
01-01 00:00:03.416   964   964 E /vendor/bin/hw/android.hardware.configstore@1.0-service:
libminijail[964]: blocked syscall: getpid

Bug: 74394073
Test: weipingliao@ to test
Change-Id: Iaa836d1f0b3595a66dfb6af2dd78fdddb9d7272e
2018-03-19 18:12:21 +00:00
chenhg
f33265ec58 Merge "configstore: allow to USE_CONTEXT_PRIORITY by device." am: cd712b0e8f am: 301951f8a4
am: f6f9837522

Change-Id: I830441c02b1cfba9a3f61f1510d3bca307a2b233
2018-03-02 02:49:24 +00:00
chenhg
f6f9837522 Merge "configstore: allow to USE_CONTEXT_PRIORITY by device." am: cd712b0e8f
am: 301951f8a4

Change-Id: I92ff43ccecfc8e87e670181d45de1ffa2fa279af
2018-03-02 02:39:04 +00:00
chenhg
a491908fe9 configstore: allow to USE_CONTEXT_PRIORITY by device.
Fixes: 72007412
Test: manual

Change-Id: Id6135347ef699b27ab708d387261bc031996a476
2018-03-01 22:51:02 +00:00
Zhuoyao Zhang
22b413bdd8 Merge "Convert configstore hal test to use VtsHalHidlTargetTestEnvBase" am: 42749f8863 am: 8857a90053
am: f28f18c0e7

Change-Id: I2ce9d4ab9273b81c2ab48d2a870cce675568adb6
2018-02-10 19:39:02 +00:00
Zhuoyao Zhang
f28f18c0e7 Merge "Convert configstore hal test to use VtsHalHidlTargetTestEnvBase" am: 42749f8863
am: 8857a90053

Change-Id: Ifa94c66094f72913b13d0d29647f281d53ac9fd1
2018-02-10 19:34:53 +00:00
Zhuoyao Zhang
d198ea4c09 Convert configstore hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalConfigstoreV1_0Target

Change-Id: I4ba993d41e285df790c267e84b484f1564047e1e
2018-02-08 21:31:57 -08:00
Zhuoyao Zhang
ce386b10e9 Disable seccomp policy for configstore hal on coverage builds. am: 207e97c735 am: 23b5ae4553
am: 40ffc6130a

Change-Id: I09d4a2f53156de34f80bb66e0970ebbe4c7e40ec
2018-01-09 21:43:19 +00:00
Zhuoyao Zhang
40ffc6130a Disable seccomp policy for configstore hal on coverage builds. am: 207e97c735
am: 23b5ae4553

Change-Id: Id042a38e3e25fde309f5cf5922f7f1c24923ed9a
2018-01-09 19:59:15 +00:00