Commit graph

5225 commits

Author SHA1 Message Date
Martijn Coenen
14adc6ebc0 Make camera/drm helper classes available to system.
As VTS tests are considered system and link against these.

Bug: 38302533
Bug: 62523241
Test: builds
Change-Id: Iac5c872c58ec9646d6d6974aacceb930daad7e5e
2017-06-20 08:57:46 -07:00
Wyatt Riley
7ab2da1243 Merge "Clear notification count to handle different flows" into oc-dev
am: fae2852b2b

Change-Id: I5b621ce7b89e8853dbb9abd2e14ec1020176936b
2017-06-20 11:03:18 +00:00
TreeHugger Robot
fae2852b2b Merge "Clear notification count to handle different flows" into oc-dev 2017-06-20 10:59:02 +00:00
TreeHugger Robot
e599e41a1e Merge "Move CameraParameters class to android.hardware.camera.common@1.0-helper" into oc-dr1-dev 2017-06-20 07:17:47 +00:00
Wyatt Riley
5d190b774e Clear notification count to handle different flows
Notifiation count now cleared in Setup (and
discarded messages warned about in Teardown.)

Fixes: 62645164
Test: passes on device
Change-Id: I7e88da7251464f281d7c98140d7a9b5a73d79542
(cherry picked from commit 6ec696b7fe)
2017-06-20 11:33:09 +08:00
Jiyong Park
07770c78e1 Remove dependency to libmediadrm from drm HAL
drm HAL has been using libmediadrm for android::SharedLibrary class and
android::PluginLoader class. This is a Treble violation since
libmediadrm is a framework-only library that is not available to
vendors.

To solve the problem, the two classes are copied into this directory
to form a small static library android.hardware.drm@1.0-helper.a.

Bug: 38302533
Test: mm under /hardware/interfaces/drm/1.0/default and
/hardware/interfaces/drm/1.0/vts/functional

Change-Id: I7b4e5cdb3bc815e971e0c3b7ec99ea86042e13eb
2017-06-20 12:32:28 +09:00
TreeHugger Robot
b0f192f654 Merge "Clear notification count to handle different flows" into oc-dr1-dev 2017-06-20 00:26:34 +00:00
TreeHugger Robot
ae87d7ddd0 Merge "Use libstagefright_foundation_vendor" into oc-dr1-dev 2017-06-20 00:16:01 +00:00
Peng Xu
967de22a44 Zero uninitialized field in conversion and fix vts bug
am: 36665b1b3d

Change-Id: I9c3aa0350b90f52abb12b4c88f10ab43e82ab65b
2017-06-20 00:08:44 +00:00
Wyatt Riley
6ec696b7fe Clear notification count to handle different flows
Notifiation count now cleared in Setup (and
discarded messages warned about in Teardown.)

Fixes: 62645164
Test: passes on device
Change-Id: I7e88da7251464f281d7c98140d7a9b5a73d79542
2017-06-19 15:03:06 -07:00
TreeHugger Robot
c127be33b9 Merge "Cleaner VTS for wider use" into oc-dr1-dev 2017-06-19 21:01:39 +00:00
Peng Xu
36665b1b3d Zero uninitialized field in conversion and fix vts bug
Zero uninitialized sensor event field to zero to avoid undefined
value being passed to framework.

Correct sensor report type check bug in vts.

Bug: 37793558
Bug: 37710268
Test: sensor vts passes
Change-Id: I5042975fea8fe28ae130367ba083a4e4f4e5657e
2017-06-19 20:39:48 +00:00
Jiyong Park
eb845dab6e Use libstagefright_foundation_vendor
DRM HAL is a library in vendor. When BOARD_VNDK_VERSION is turned
on, any lib in vendor partition can only link against to other vendor
libs or libs marked as vendor_available:true. This lib is using
libstagefright_foundation and the lib is not available to vendors.
Instead, libstagefright_foundation_vendor is provided as a
vendor-variant of the foundation library. Thus switching to the vendor
variant.

Bug: 37462569
Test: m android.hardware.drm@1.0-impl
Change-Id: Iaee9886f9ba3643e1c19928690bad13c26ac29d7
2017-06-19 19:14:46 +00:00
Jesse Hall
5efa773cc1 Revert "Load the gralloc module at library load"
This reverts commit 33c08a53ac. Some
gralloc implementations apparently have library initializers (executed
on dlopen) which create anonymous sockets, open device nodes, etc.
which Zygote and some other non-Zygote-child processes that use libui
don't have permissions to do. When the library initializer fails, it
crashes the process.

Reverting this until this initialization code can be made lazy (on
first use of gralloc).

Bug: 62732270
Test: boot fugu to launcher
2017-06-19 11:48:09 -07:00
TreeHugger Robot
8dc55df186 Merge "Update makefiles (vibrator open)." into oc-dr1-dev 2017-06-19 17:45:20 +00:00
Ruchi Kandoi
ec553ff9a7 Merge "Nfc: Vts: modify WriteInvalidAndThenValidCommand" into oc-dev
am: 55f3ddf53b

Change-Id: I4a925e2c92572b20e85b8a6604d3af6e7f8f30ea
2017-06-19 16:39:05 +00:00
Ruchi Kandoi
55f3ddf53b Merge "Nfc: Vts: modify WriteInvalidAndThenValidCommand" into oc-dev 2017-06-19 16:33:35 +00:00
Steven Moreland
1fcaf42057 Update makefiles (vibrator open).
Vibrator was missing default module flags.

Test: none
Change-Id: I77594843a876f9e424f201174e220a6d3b45b271
2017-06-16 19:52:49 -07:00
Jesse Hall
96a81c3347 Merge "Load the gralloc module at library load" into oc-dr1-dev 2017-06-16 22:45:38 +00:00
Wyatt Riley
94c7a049dd Cleaner VTS for wider use
Better start/stop testing

Change-Id: I4f50fd6a9aaecac3455590f100f15117336993c9
Fixes: 35810250
Test: VTS passes on 2 different device variants
2017-06-16 13:06:50 -07:00
Ruchi Kandoi
36193658d2 Nfc: Vts: modify WriteInvalidAndThenValidCommand
Invalid Data packets are ignored by the NFC controller in case there
isn't an active RF Interface. The test expects response for the invalid
data packet without any active RF Interface. This patch modifies the
test to send an invalid command instead which will guarantee a response.

Test: run vts test
Bug: 62400568
Change-Id: I7db1d5209b6ef2240ac248f3aba0e27e0a285018
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit c86df4dcb74224ea7befc2cb610e43d0df6814ae)
2017-06-16 12:53:45 -07:00
Yin-Chia Yeh
8bc10783a9 Merge "Camera: fix camera_metadata address expectation" into oc-dev
am: e812feb56f

Change-Id: Id3e433048cf25e8c50aa20e97dca6e3112f0fb57
2017-06-16 19:37:00 +00:00
TreeHugger Robot
e812feb56f Merge "Camera: fix camera_metadata address expectation" into oc-dev 2017-06-16 19:22:05 +00:00
Jesse Hall
33c08a53ac Load the gralloc module at library load
In the a.h.graphics.mapper default implementation, load the gralloc
module in a static constructor that runs when the library is loaded.
This causes Zygote to load the gralloc module and its dependencies
when it loads a.h.graphics.mapper, so that it doesn't have to be
loaded during each activity launch.

Bug: 62353585
Test: boot to launcher, run calculator, confirm gralloc library is in
      /proc/`pid zygote64`/maps

Change-Id: I56defd76b0ba0fba71dea48e2b0d338511563d1f
2017-06-16 00:48:36 +00:00
TreeHugger Robot
9424e9d541 Merge "[AWARE] Actually shut-down functionality when destroying NAN iface" into oc-dr1-dev 2017-06-16 00:04:36 +00:00
Ruchi Kandoi
ada528db46 Merge "Support NCI 2.0 for NFC VTS" into oc-dev
am: 5ed63181a9

Change-Id: I65cd9c3d9818871130eea5351f02d655bac44988
2017-06-15 23:06:12 +00:00
Ruchi Kandoi
5ed63181a9 Merge "Support NCI 2.0 for NFC VTS" into oc-dev 2017-06-15 22:59:24 +00:00
Yin-Chia Yeh
92d885b558 Camera: fix camera_metadata address expectation
On 32bits architecture, binder driver might allocate
non-8 bytes aligned buffers.

Test: compile (problem not reproducible on 64bit SOCs)
Bug: 62637461
Change-Id: I8ef2b3ecba783a8d189ebe18733082d32cff4899
2017-06-15 14:27:13 -07:00
Etan Cohen
c4d9f87f66 [AWARE] Actually shut-down functionality when destroying NAN iface
Destroying the interface doesn't actually execute any functions on
the legacy HAL - i.e. on the HAL side. This may leave state around -
a problem when next "re-enabling" the interface as well as possibly
a power issue.

Add code to actually disable Aware and to destroy interfaces. There
is no need to check on current status since calls will simply fail
quietly if there's nothing to disable and nothing to destroy.

Bug: 62632805
Test: integration non-concurrence test cases NonConcurrencyTest
Change-Id: I11e5bd6f3ed47f6d709ff360c9f4adf5f40234a5
2017-06-15 08:59:51 -07:00
Janis Danisevskis
eb5a6056bc Merge "Purge unsupported RSA key sizes from VTS tests" into oc-dev
am: bc970b089f

Change-Id: Id5c16a9a8a2ff95e18254da4b8568d68e15e5834
2017-06-14 02:32:40 +00:00
TreeHugger Robot
bc970b089f Merge "Purge unsupported RSA key sizes from VTS tests" into oc-dev 2017-06-14 02:22:15 +00:00
Michael Butler
4294386d9b Merge "Fixed flaky RenderScript VTS Test" into oc-dev
am: d8e99f75cb

Change-Id: Ib8bc975063564100258bef9f805aff6e6832db56
2017-06-14 01:34:05 +00:00
TreeHugger Robot
d8e99f75cb Merge "Fixed flaky RenderScript VTS Test" into oc-dev 2017-06-14 01:26:29 +00:00
Janis Danisevskis
39daaa0f96 Purge unsupported RSA key sizes from VTS tests
Support for 256 bit RSA keys are not mandated by keymaster specs and
must not be used in the VTS tests.

Bug: 62581389
Change-Id: If315088db2752ac2efe31fdb95db7ca13c3ce225
2017-06-13 13:30:15 -07:00
Chia-I Wu
1029762eef Merge "graphics: fix gralloc1 usage flags in default impl" into oc-dr1-dev 2017-06-13 16:21:12 +00:00
Michael Butler
64ac76b226 Fixed flaky RenderScript VTS Test
Added missing synchronization before context destroy

Bug: 62535730
Bug: 38385848
Test: make vts, does not fail with multiple tests
Change-Id: Ib0d038969e9a1d6f5ea555ccb60fed55b69e05dc
(cherry picked from commit 076f69aa2b)
2017-06-12 19:45:20 -07:00
Ruchi Kandoi
d695ccfa5d Support NCI 2.0 for NFC VTS
Bug: 62322170
Test: Run vts test
Change-Id: I7ed331dac9d5918675c091620f099b6250e20700
(cherry picked from commit ff8068d160)
2017-06-12 17:10:55 -07:00
Myles Watson
76f5c505bf Merge "Bluetooth: Call vendor cleanup() in Close()" into oc-dev
am: 32ee110269

Change-Id: I6e361c5cb186730ff25ff17d0418c9f01b944359
2017-06-12 22:59:29 +00:00
TreeHugger Robot
32ee110269 Merge "Bluetooth: Call vendor cleanup() in Close()" into oc-dev 2017-06-12 22:50:34 +00:00
Chia-I Wu
2d02d91f7f graphics: fix gralloc1 usage flags in default impl
BufferUsage::SENSOR_DIRECT_DATA should be filtered out for consumer
usage.  BufferUsage::GPU_DATA_BUFFER should be filtered out for
producer usage and be translated to
GRALLOC1_CONSUMER_USAGE_GPU_DATA_BUFFER for consumer usage.

Bug: 62491483
Test: boots
Change-Id: I171712adf45ae80dadeed7997fb9872ff176fa1a
2017-06-12 15:19:42 -07:00
Jiyong Park
b9b59bdca4 Move CameraParameters class to android.hardware.camera.common@1.0-helper
The CameraParamters class is widely used by many of the camera-related
vendor libs. However, they have been using the class from the
libcamera_client.so which is not a VNDK library.

By moving the class to the common@1.0-helper, which is available to
vendors, we can eliminate the dependency to libcamera_client.so from the
vendor libs.

Bug: 62523241
Test: 2016/2017 Pixel devices build and boots. Camera functionalities
work.

Change-Id: I3f69f1591663390c050d1e75ac2957d3ecc38ba7
2017-06-12 22:45:10 +09:00
Shuo Qian
7a5dad06bf Merge "Fix vts tests:" into oc-dev
am: 14b34e19d6  -s ours

Change-Id: I20b62dd5c93feb863ddfcb042aa55ff7020dccf0
2017-06-12 04:48:26 +00:00
Shuo Qian
14b34e19d6 Merge "Fix vts tests:" into oc-dev 2017-06-12 04:44:16 +00:00
Shuo Qian
8ee9a9f01e Merge "Fix vts tests:" into oc-dr1-dev 2017-06-12 03:41:01 +00:00
Ram Mohan M
9fe2d4c99d Increase Timeout for dequeue message
am: 4e39ff9235

Change-Id: Ia6fc966e66668b944c4a484ea413f0bc0982082f
2017-06-10 05:19:54 +00:00
Ram Mohan M
4e39ff9235 Increase Timeout for dequeue message
In vp9 encoder component, the callback responses are being recevied
after timeout. This is seen only in vp9. Even when no buffer processing
is done, Flush test, state transitions test fail due to slow responses.
This behavior is not seen in other components. This requires deeper
understanding of what is main culprit. But for now increase the timeout

Test: VtsHalMediaOmxV1_0Host
Bug: 37501531
Change-Id: I08abfefcf0cb38d312a4a2dc10908e24f88c54fd
2017-06-09 20:08:13 -07:00
Ram Mohan M
0eb102a18b Merge "bug fix: fix encoder input port configuration issues" into oc-dev
am: 7d1592a732

Change-Id: I697e916574fc20e1bb9cad79d1e948854078f6bf
2017-06-10 01:28:44 +00:00
Ram Mohan M
4dc4fa7340 Merge "bug fix: configure input port format before setInputSurface" into oc-dev
am: bd5b6f8535

Change-Id: If5ee86d7d1203019b565743057c77baf1ffb96a8
2017-06-10 01:28:40 +00:00
Ram Mohan M
0113be3ac3 choose input color format between 420p, 420sp
am: 1d273b3bcf

Change-Id: I95ff1be5ec0e0f2b99a5fc21329b45b87a0f0077
2017-06-10 01:28:36 +00:00
TreeHugger Robot
7d1592a732 Merge "bug fix: fix encoder input port configuration issues" into oc-dev 2017-06-10 01:23:30 +00:00