Commit graph

229 commits

Author SHA1 Message Date
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Sundong Ahn
775bd7cb9a Add disable_configstore
The disable_configstore is added to disable configstore when API level
is less than or equal to 29.

Bug: 150761042
Test: Add disable_configstore to PRODUCT_PACKAGES && build && check
configstore service

Change-Id: Iac01bb375a5c4080c0e110213c64041ea823ed68
2020-03-18 00:08:59 +00:00
Mitch Phillips
7f3cdad0f1 Add gettid() to SELinux policy in prep for GWP-ASan.
GWP-ASan is a sampled allocator framework that is planned for rollout in
Android R. It instruments the bionic allocator, and requires gettid()
during its initialisation.

Ensure that we can call gettid() from configstore.

Bug: 135634846
Test: N/A

Change-Id: I4a92c989ffde9051831e858e805fc20ae993dc01
2019-11-13 10:45:12 -08:00
nelsonli
9e281efcfc [vts-core] add VtsHalConfigstoreV1_0TargetTest to vts-core
Convert VtsHalConfigstoreV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalConfigstoreV1_0TargetTest
Change-Id: If65ce7afbe23eca95f62c6b231abf78d9ada616e
2019-10-24 07:36:20 +00:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
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