Commit Graph

7360 Commits

Author SHA1 Message Date
Steven Thomas
cacc07d56c Guard against racy ComposerClient reconnection am: bc67a6a8fb
am: 38d3da23d7

Change-Id: I79fab8d654129de6966a2a71920e444996405ac9
2017-11-07 18:18:10 +00:00
Steven Thomas
38d3da23d7 Guard against racy ComposerClient reconnection
am: bc67a6a8fb

Change-Id: I9eb651ead1cfeef8a1f1d485134890fbc075cd12
2017-11-07 18:13:29 +00:00
Steven Thomas
bc67a6a8fb Guard against racy ComposerClient reconnection
The hardware composer service has a rule that only one client can be
connected at a time. The surface flinger process, when transitioning
composer ownership from surface flinger to vr flinger, will destroy the
current client on one thread and create a new client on another
thread. Although surface flinger ensures that these events happen in the
expected sequence (delete then create), the requests sometimes land in
the hardware composer service in inverted order, causing the creation
request to fail with an error.

Instead of failing with an error, block for a brief period (1 second)
until the existing client is removed, then proceed to initialize the new
client. This gives us enough time to ensure an inverted
creation/destruction order doesn't cause client creation to fail, while
avoiding a deadlock if the existing client is never destroyed.

Bug: 62925812

Test: - Transitioned to/from vr flinger hundreds of times, and confirmed
I no longer see sporadic composer client creation failure due to an
already existing client.

- Ran the vts graphics composer tests and confirmed they all pass.

Change-Id: I40be1fb0cb3d42ddb5a9fc159188886e9f5b6267
2017-11-06 15:08:07 -08:00
Steven Moreland
d292895d0d Merge "dumpstate mk -> bp" am: b1088c6de1
am: 9251e71740

Change-Id: I4cdfb67a299ca6ab601306e1ef83d099eabbd8f8
2017-11-06 18:10:11 +00:00
Steven Moreland
9251e71740 Merge "dumpstate mk -> bp"
am: b1088c6de1

Change-Id: I87ce7729e0a8775f7859eab6de48803209aa5941
2017-11-06 18:05:38 +00:00
Treehugger Robot
b1088c6de1 Merge "dumpstate mk -> bp" 2017-11-06 17:56:38 +00:00
Edwin Wong
d29bc78ec9 Add tests to validate key length for clearkey plugin. am: cc77a50e96 am: 01802815eb
am: 36c9c34bdb

Change-Id: Ibb92aa618ceec88721ed807819d31516ab70595c
2017-11-03 05:44:56 +00:00
Edwin Wong
36c9c34bdb Add tests to validate key length for clearkey plugin. am: cc77a50e96
am: 01802815eb

Change-Id: I298891316951cc6ba5f000b796fb60c0b4f76290
2017-11-03 05:42:54 +00:00
Edwin Wong
01802815eb Add tests to validate key length for clearkey plugin.
am: cc77a50e96

Change-Id: Id61b8d76ef30a6c66edd10cd48b4ecdad795165d
2017-11-03 05:40:23 +00:00
Sooraj Sasindran
20ad34f084 Merge "vts test for 1.2" am: 55e7774568
am: b0034bf5b9

Change-Id: Ic9e887d9a021f7e2dc32b8e7d1c12e733e38f456
2017-11-03 00:37:33 +00:00
Sooraj Sasindran
b0034bf5b9 Merge "vts test for 1.2"
am: 55e7774568

Change-Id: I1c45e47a0fc14bb9f15f3f998c5a3419f5be69fb
2017-11-03 00:36:04 +00:00
Sooraj Sasindran
55e7774568 Merge "vts test for 1.2" 2017-11-03 00:32:21 +00:00
Steven Moreland
71f26bf5cc dumpstate mk -> bp
Test: compilation finds dependencies
Bug: 37512442
Change-Id: Ib207c2163a07dea03c096283d10b00af966a1728
2017-11-02 15:25:59 -07:00
Edwin Wong
cc77a50e96 Add tests to validate key length for clearkey plugin.
AesCtrDecryptor::decrypt() doesn't check whether the size of "key"  is
equal to 16 bytes,  which may lead to an OOB read problem in the context
of mediadrmserver. The fix is in clearkey plugin. Add tests to validate
the fix.

Test: VTS test
  adb shell /data/nativetest/VtsHalDrmV1_0TargetTest/VtsHalDrmV1_0TargetTest

bug: 63982768

Merged-In: Ife2da17e7f39d8031bc36b83c3b27ba5e9d83eb7
Change-Id: Ife2da17e7f39d8031bc36b83c3b27ba5e9d83eb7
2017-11-02 14:46:43 -07:00
Sooraj Sasindran
4547419e6c vts test for 1.2
Add VTS test for 1.2 interface

Test: verfied the test with a dummy radio service

Bug:67750232
Change-Id: Ieac680a303c79a9d4c8b314112121303b3aebcce
2017-11-02 14:44:57 -07:00
Steven Moreland
726af41e68 resolve merge conflicts of dd5206c57 to oc-mr1-dev-plus-aosp
This version of configstore was removed internally.

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I589addff6aec7bb7a8a7938d75c51dcc56116a42
2017-11-02 20:59:39 +00:00
Steven Moreland
dd5206c57c Merge "Update makefiles after AOSP push."
am: 9d4c21f9af

Change-Id: I00acd9f3e8bdb7894268f1e7a405e449e27d0085
2017-11-02 20:45:16 +00:00
Treehugger Robot
9d4c21f9af Merge "Update makefiles after AOSP push." 2017-11-02 20:39:30 +00:00
Steven Moreland
0d6bbbcc1e Merge "Remove unnecessary Android.mk" am: 7052f3d45d
am: 6993933fc6

Change-Id: Id4f1fcb632a25a7a44b04c44eacd3f089cd1e8ca
2017-11-02 04:24:48 +00:00
Steven Moreland
6993933fc6 Merge "Remove unnecessary Android.mk"
am: 7052f3d45d

Change-Id: I0acf1c73d3b8ad5d949ba96d11e65fcf703b8423
2017-11-02 04:23:18 +00:00
Treehugger Robot
7052f3d45d Merge "Remove unnecessary Android.mk" 2017-11-02 04:18:28 +00:00
Steven Moreland
7b0fd9228f Add missing hash. am: f4c0e837eb
am: c6141a9932

Change-Id: If3204adcb61147d4c46ace6850d261b0bfe6a4ed
2017-11-02 02:04:05 +00:00
Steven Moreland
c6141a9932 Add missing hash.
am: f4c0e837eb

Change-Id: I560964a00c241bf64231769df06ee069c2f94a3e
2017-11-02 02:02:03 +00:00
Steven Moreland
822c2e1809 Remove unnecessary Android.mk
Doesn't do anything. Just when I thought I get rid of them all.

Test: none
Change-Id: Iac559e41ea5557e99490fa439af9d720e2d9075a
2017-11-01 16:44:44 -07:00
Steven Moreland
c5bc4c7cbb Update makefiles after AOSP push.
Test: none
Change-Id: If3ce74f4d2250d33820cbd864ff56bba6f9e6b67
2017-11-01 16:42:15 -07:00
Cassie
1195c9b627 Merge "Added CellIdentity struct in types.hal" am: 94a12051a3
am: c5f398daed

Change-Id: I2140211e496d233018d64179203e25bbe6332fc5
2017-11-01 23:23:29 +00:00
Cassie
c5f398daed Merge "Added CellIdentity struct in types.hal"
am: 94a12051a3

Change-Id: I1f94fd4c02ce9225dfd222ae4da92bf32165d76f
2017-11-01 23:21:33 +00:00
Treehugger Robot
94a12051a3 Merge "Added CellIdentity struct in types.hal" 2017-11-01 22:30:33 +00:00
Cassie
8c3011e5c7 Added CellIdentity struct in types.hal
This change was made because the new scan API needs to include the human
readable operator name other than PLMN in the scan results.
In order to let teh operator name used by other structures and APIS, we added
the operator name alphaLong and alphaShort, which were actually included
in the OperatorInfo, into the CellIdentity.

Bug: 63984327
Test: Basic telephony sanity
Change-Id: I498b7f190b739c92975fe797e1c74e96d90ee823
2017-11-01 10:25:36 -07:00
Andreas Huber
149ecdb239 Adds test cases to stress marshaling of primitive array types and am: aaa67596df
am: 6445699dde

Change-Id: Id4d405af8ac5efee1ca62504ea700b96937020cd
2017-11-01 00:03:43 +00:00
Andreas Huber
6445699dde Adds test cases to stress marshaling of primitive array types and
am: aaa67596df

Change-Id: If91d4217996c70559f75f09d814d644580881010
2017-10-31 23:05:58 +00:00
Andreas Huber
aaa67596df Adds test cases to stress marshaling of primitive array types and
vectors of thereof.

Bug: 68654583
Test: hidl_test_java
Change-Id: Id498fe9b1e153512be294c39aff783f7d0600219
2017-10-31 13:03:56 -07:00
Jae Shin
bf5f2a9f81 Fix cpp style cast and variable name am: 6a70875ba8
am: 59c43578c6

Change-Id: Iff97f1c0b3c2e42bbf8a0344c68c98e2bc38daf7
2017-10-30 03:42:48 +00:00
Jiyong Park
e575777109 Load libRS_internal.so from the rs namespace am: 0f70905b7d
am: 8c613c4279  -s ours

Change-Id: I99cf6263f5b085b6c95bcf78890155a83b8f9f75
2017-10-30 03:42:42 +00:00
Jae Shin
59c43578c6 Fix cpp style cast and variable name
am: 6a70875ba8

Change-Id: Ib0e80bfa95dbe390db5b7c66d7cf9eba204b30d1
2017-10-30 03:29:11 +00:00
Jiyong Park
8c613c4279 Load libRS_internal.so from the rs namespace
am: 0f70905b7d

Change-Id: I93ca1cc807eeb71473bcc3838e6f61d40c3ebc6b
2017-10-30 03:29:06 +00:00
Jae Shin
6a70875ba8 Fix cpp style cast and variable name
Test: run vts -m VtsHalRenderscriptV1_0TargetTest
Change-Id: I0c902aea13da7d4af2357ec42d8f712fda7269d4
2017-10-26 05:22:06 +00:00
Jiyong Park
0f70905b7d Load libRS_internal.so from the rs namespace
Bug: 64747884
Test: VtsHalRenderscriptV1_0TargetTest successful on the device built
with BOARD_VNDK_VERSION=current and [system] namespace config is applied
to /data/nativetest[64]/* processes.

Merged-In: I9e967c80ac2dba718cd47e1f378bcbf18abe9ad2
Change-Id: I9e967c80ac2dba718cd47e1f378bcbf18abe9ad2
(cherry picked from commit a7ef697a0a)
2017-10-26 05:21:57 +00:00
Chih-Hung Hsieh
a639b431ea Use -Werror in hardware/interfaces am: cd76985909
am: 401b0b9ed6

Change-Id: Idbe41efd290e956ff0fd71b6fe392951edf21582
2017-10-26 03:23:38 +00:00
Chih-Hung Hsieh
401b0b9ed6 Use -Werror in hardware/interfaces
am: cd76985909

Change-Id: I01fb02abdc79d9d75565ed694b7f8ea9fdf389df
2017-10-26 03:21:02 +00:00
Chih-Hung Hsieh
cd76985909 Use -Werror in hardware/interfaces
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I2b8572a3480434f9dad2ae4f8a608ed82281cc68
2017-10-25 16:20:45 -07:00
Lorenzo Colitti
5b6e28f456 Don't expect stopOffload to succeed if interface doesn't exist.
am: 3189d9de81

Change-Id: I4c1a5cdf6694288c81497862faabe34a147ecbcc
2017-10-25 11:05:00 +00:00
Lorenzo Colitti
3189d9de81 Don't expect stopOffload to succeed if interface doesn't exist.
The AdditionalStopsWithInitReturnFalse test inits offload and
then checks that stopOffload returns true. However, the HAL is
allowed to return false to stopOffload if no upstream was ever
successfully programmed.

To ensure this test doesn't fail in the common case that the
interface is not up, don't expect stopOffload to return true in
this case.

Bug: 67439856
Test: VtsHalTetheroffloadControlV1_0TargetTest passes with and without mobile data connection
Change-Id: I245f9e3e4376a7799572a3b3967e2bf6c52b5e4d
2017-10-25 11:51:13 +09:00
Steven Moreland
f4c0e837eb Add missing hash.
This hash was added in O, but was given automerger flags
which made it disappear in subsequent releases. Adding it back
so that O vendor images can pass VTS with VTS in subsequent
releases.

Fixes: 68061860
Test: hash added to list of allowed hashes

Change-Id: Idfc9a4832a163e5786443fe743f67dae263b3dbd
2017-10-23 02:52:31 +00:00
Erik Kline
7bfd0f1f8a Fixup netlink socket creation to make corresponding fix in JNI
am: d97f8714f0

Change-Id: I864ab25fc8669205a93930ee80462bc40e9f11a4
2017-10-22 19:48:07 +00:00
Erik Kline
d97f8714f0 Fixup netlink socket creation to make corresponding fix in JNI
Corresponding JNI fix is:

    aosp/516339
    oc-mr1-dev:3102743

Test: as follows
    - built
    - flashed
    - booted
    - make vts -j30 BUILD_GOOGLE_VTS=true && \
      vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalTetherOffloadControlV1_0Target -l DEBUG

      10-20 17:48:28 I/ResultReporter: Invocation finished in 5m 32s. PASSED: 38, FAILED: 0, MODULES: 1 of 1

Bug: 68018148

Change-Id: I5aa019d708abaff61387b83a857e9e8226709842
2017-10-20 18:33:40 +09:00
Sanket Padawe
1a06284b24 Fix VTS test which turns off radio. am: 536818d17a am: 340619c703
am: 428b080d5f  -s ours

Change-Id: Ibccde5277facf7e5b9c876caaeb3d23da37fe1b8
2017-10-19 00:02:14 +00:00
Sanket Padawe
4d0ac4b2eb Fix VTS test which turns off radio. am: 536818d17a am: 340619c703 -s ours
am: a555e04f8c  -s ours

Change-Id: Ib58936dee762d071bd18518bda62c816da7b0dd5
2017-10-19 00:00:13 +00:00
Sanket Padawe
a555e04f8c Fix VTS test which turns off radio. am: 536818d17a
am: 340619c703  -s ours

Change-Id: I4d4c0998ac28fabef207dfb0ce8fae8f08c0afd4
2017-10-18 23:57:54 +00:00
Sanket Padawe
428b080d5f Fix VTS test which turns off radio. am: 536818d17a
am: 340619c703

Change-Id: Ib19b23bd5d01a26a9196675c83a1062e3dbe343c
2017-10-18 23:57:48 +00:00