Commit graph

10880 commits

Author SHA1 Message Date
sqian
898d05a713 resolve merge conflicts of dfa79a6292 to oreo-mr1-vts-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I10919718b841fdb33ab0e873d1b4bbd787fafcd2
2018-07-16 08:36:50 -07:00
Treehugger Robot
dfa79a6292 Merge "Add NONE for LceService" into oreo-vts-dev 2018-07-16 15:19:43 +00:00
Nirav Atre
6a8d93f34e Updated HALs to test structs/safe_unions containing interfaces
Bug: 111019943
Test: Ran the hidl_test suite (C++ and Java)
Change-Id: I93e8fb9611327e263a02af8fccef1fc878746e02
2018-07-13 22:37:45 -07:00
Chih-Hung Hsieh
820868b72e Merge "Fix unnecessary copy initialization warnings"
am: f110ea4893

Change-Id: If17584a8ed6fc53f3681a6ac298730dfbbaf4623
2018-07-13 15:59:07 -07:00
Treehugger Robot
f110ea4893 Merge "Fix unnecessary copy initialization warnings" 2018-07-13 20:32:41 +00:00
Nirav Atre
bb18da12bc Merge "Make safeunion@1.0 test HAL Java-compatible"
am: 314f9503a9

Change-Id: Ieaad7392eb81605d1ae0b626db5c1f336eb6d10b
2018-07-13 12:49:56 -07:00
Treehugger Robot
314f9503a9 Merge "Make safeunion@1.0 test HAL Java-compatible" 2018-07-13 19:41:21 +00:00
Chih-Hung Hsieh
091880882c Fix unnecessary copy initialization warnings
Bug: 30413862
Test: build with WITH_TIDY=1
Change-Id: I5de56c163d26e7522141ca06020321c481eea233
2018-07-13 11:48:16 -07:00
sqian
70805cffdd Add NONE for LceService
"Allow startLceService to succeed even in the
SIM_ABSENT case. The original RIL documentation
states that SUCCESS is valid for all LCE
operations, and there is no logical reason why
one of these operations must fail in a no-SIM
case (though a vendor may choose not to support
that configuration). Thus, a call to
startLceService should permit NONE when requested
in the no-SIM case for 1.0 VTS.

In addition, a successful call to startLceService
should also permit a successful call to
pullLceData, so also allow RadioError::NONE for
the pull operation. Ideally the tests would only
allow NONE for pull if startLceService also
returns NONE, but that's out of scope for now."

Bug: 110181475
Bug: 72075328
Test: confirmed in the discussion; compilation
2018-07-13 18:12:08 +00:00
Pawin Vongmasa
c0243f2ff8 resolve merge conflicts of b92f1d2e1b to oreo-mr1-vts-dev
Test: make vts -j123 && vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--skip-preconditions -m VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 70933963
Change-Id: I38f6309b638e604403dba15fa1fe1022b298c5b2
2018-07-11 23:29:14 -07:00
Pawin Vongmasa
b92f1d2e1b Disable tests for secure audio decoders
Test: make vts -j123 && vts-tradefed run commandAndExit vts \
--skip-all-system-status-check \
--skip-preconditions -m VtsHalMediaOmxV1_0Host \
-l INFO

Bug: 70933963
Change-Id: Iaaf3b7d382e7df4374dd7e03e5cc7b2ae6861fad
2018-07-11 18:05:25 -07:00
Kevin Rocard
70d13c2ad3 [automerger skipped] Audio VTS: run tear-down hooks in LIFO instead of FIFO
am: 01ead7c96b  -s ours

Change-Id: I827c0bd5011129a704d35cdcd2df9f9bbe7eadfe
2018-07-11 17:56:31 -07:00
Hsin-Yi Chen
bf03ebe580 Merge "Fix IUsb version number in vts test"
am: a85e213544

Change-Id: If12009a78905e1e0639767a8b01acdabda17e715
2018-07-09 19:47:57 -07:00
Hsin-Yi Chen
a85e213544 Merge "Fix IUsb version number in vts test" 2018-07-10 02:35:41 +00:00
Nirav Atre
0534690fa6 Make safeunion@1.0 test HAL Java-compatible
This change removes Java-incompatible types (memory, handle) from the
safeunion@1.0 test HAL. Moving forward, the idea is to keep this HAL
Java & C++-friendly, and create another version (likely safeunion@2.0)
to regress on C++-only types; tracked by b/110269925.

Bug: n/a
Test: Ran the existing hidl_test suite
Change-Id: Ic7458c3f5b571e77e5f894a9854a2b201f53fe18
2018-07-07 19:31:21 -07:00
Nirav Atre
807848693d Merge "Adding HIDL interface type to safeunion test HAL"
am: 5f64ae9872

Change-Id: I232939e4bf2e846f44b948d540c27e0a42fc11a2
2018-07-06 13:08:29 -07:00
Treehugger Robot
5f64ae9872 Merge "Adding HIDL interface type to safeunion test HAL" 2018-07-06 20:03:36 +00:00
Hsin-Yi Chen
b4193b855c Fix IUsb version number in vts test
Bug: 110913709
Test: vts-tradefed run vts -m VtsHalUsbV1_1Target
Change-Id: I9ae6add2fe8ff7138e07797c3a191b6dfe611948
2018-07-04 11:19:38 +08:00
Ruchi Kandoi
35292108e7 Merge "Secure_element: vts: Modify openBasicChannel as per OMAPI standard"
am: 919dca6794

Change-Id: Ie11b42fbabc3bde32dbdd5a31abd0f5e4f07c663
2018-07-03 07:47:20 -07:00
Treehugger Robot
919dca6794 Merge "Secure_element: vts: Modify openBasicChannel as per OMAPI standard" 2018-07-03 14:38:41 +00:00
Nirav Atre
894556cebd Adding HIDL interface type to safeunion test HAL
This change adds a new HIDL safe union, InterfaceTypeSafeUnion
(containing an interface+array) to the safeunion test HAL.

Bug: 79878527
Bug: 110269925
Test: Existing hidl_test suite passes successfully. Added more test-
cases to hidl_test_client.cpp to exercise InterfaceTypeSafeUnion
(included in a separate CL).

Change-Id: I04ffeeeabccc1dc2651aac9371569c36d37f4f87
2018-07-02 16:21:30 -07:00
Ruchi Kandoi
44174ecbd0 Secure_element: vts: Modify openBasicChannel as per OMAPI standard
CHANNEL_NOT_AVAILABLE should be returned when opening basic channel
is not permitted on the secure element

Test: Test with SIM1 HAL
Bug: 110945797
Change-Id: I2dd4eafaf4c534b49a37690a9baadcc5ac93190c
2018-07-02 21:35:34 +00:00
Kevin Rocard
01ead7c96b Audio VTS: run tear-down hooks in LIFO instead of FIFO
The audio tests use a static cache of some HAL objects for
performance reasons (speed up by 10x on Pixel).
Those object are destroy during the test environment tear-down.

This tear-down was destroying the objects in a FIFO instead of LIFO
order. Thus the DeficesFactory was destroyed before the Device it
created.

Bug: 79889318
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
      check that the device destructor is called before the
      devicesFactory one.
Change-Id: I1b4345158139ba14a8779a9508f7ebdc41129d1d
Merged-In: I1b4345158139ba14a8779a9508f7ebdc41129d1d
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-06-29 13:37:42 -07:00
Kevin Rocard
cfab8dac2b Audio VTS: run tear-down hooks in LIFO instead of FIFO
The audio tests use a static cache of some HAL objects for
performance reasons (speed up by 10x on Pixel).
Those object are destroy during the test environment tear-down.

This tear-down was destroying the objects in a FIFO instead of LIFO
order. Thus the DeficesFactory was destroyed before the Device it
created.

Bug: 79889318
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
      check that the device destructor is called before the
      devicesFactory one.
Change-Id: I1b4345158139ba14a8779a9508f7ebdc41129d1d
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-06-29 20:09:50 +00:00
sqian
abf6bdfa55 Fix missed refactor of serial
am: 0c3572e2f3

Change-Id: I308c5279fd50402efe6a2c06feaaf034cea4541d
2018-06-27 18:31:08 -07:00
sqian
0c3572e2f3 Fix missed refactor of serial
Bug: 109822806
Test: run vts
Change-Id: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8
Merged-In: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8
(cherry picked from commit c0e2e2b071)
2018-06-27 15:26:38 -07:00
Jack Yu
e79895b34f Fixed VTS failure in no SIM case
am: ac4e6051f9

Change-Id: I96717b5640c85223c5226e4b911e07d504623429
2018-06-27 13:14:54 -07:00
Jack Yu
ac4e6051f9 Fixed VTS failure in no SIM case
Added RadioError::NONE as a possible return value for data call
setup API. The data call could be setup for emergency purposes
when no SIM inserted.

Test: VTS
Bug: 109767888
Merged-In: I4469c371f999b99d35f4078df000f05ee1f3c84d
Change-Id: I4469c371f999b99d35f4078df000f05ee1f3c84d
(cherry picked from commit 431eb118f8)
2018-06-27 18:10:08 +00:00
Nathan Harold
a6b0fe7fdd Merge "Add docs for setSignalStrengthReportingCriteria" into stage-aosp-master 2018-06-27 17:13:05 +00:00
Nathan Harold
563a057bd2 Add docs for setSignalStrengthReportingCriteria
Because setSignalStrengthReportingCriteria only
supports a single measurement quantity, provide
further clarification on the applicability of the
API and how it may be used in various situations.

Bug: 110121199
Test: compilation - docstring-only change
Change-Id: If4236070fbc03368e5a78b0cf502cdc4a529a6ed
2018-06-27 01:22:20 +00:00
Nirav Atre
0e4e94a892 Merge "Test HAL for HIDL safe_union construct"
am: 0ee23b3c1b

Change-Id: I64c8d51228908d996476665efde88f374ddc2d72
2018-06-26 18:06:24 -07:00
Treehugger Robot
0ee23b3c1b Merge "Test HAL for HIDL safe_union construct" 2018-06-27 00:57:51 +00:00
Nirav Atre
b418616ea4 Test HAL for HIDL safe_union construct
This change implements a basic HAL and server-side functionality to test
the HIDL implementation of safe unions.

Bug: 79878527
Test: Ran make, new tests in hidl_test/ pass successfully (included in a
separate CL).

Change-Id: Ia420137bc1dc0a188e04176081c7f5418e74449c
2018-06-26 15:42:54 -07:00
Eric Schwarzenbach
a13b29017c Call notify for voiceReg and dataReg VTS tests
am: 9589ee1c36

Change-Id: Ie20c0329cd19da7ca2f86c7769ba6f7d3a3ca32b
2018-06-26 10:50:35 -07:00
Eric Schwarzenbach
9589ee1c36 Call notify for voiceReg and dataReg VTS tests
Bug: 80554443
Test: vts
Change-Id: I19f7131f7b65323065f3c283a89668ff761815e3
Merged-In: I19f7131f7b65323065f3c283a89668ff761815e3
(cherry picked from commit 2bb626a297)
2018-06-26 10:39:37 -07:00
sqian
fc203c1bc3 Merge "Add setIndicationFilter response notification in 1.2 VTS"
am: a086c5c3a9

Change-Id: I4b869026a0dad435a5ffdc752a1be0ad4ce87dfc
2018-06-25 15:50:52 -07:00
Treehugger Robot
a086c5c3a9 Merge "Add setIndicationFilter response notification in 1.2 VTS" 2018-06-25 22:46:51 +00:00
Amit Mahajan
c847ec0021 Allow REQUEST_NOT_SUPPORTED as an error for startNetworkScan
am: 6a5c36d73f

Change-Id: I6c5daa8b8cd440951e33f094a605a1073b3f64de
2018-06-25 14:17:24 -07:00
sqian
99260ce747 Add setIndicationFilter response notification in 1.2 VTS
Test: run vts
Bug: 109822806
Change-Id: I95102a148a26cab80235cc68ad83143a9bb6eb39
Merged-In: I95102a148a26cab80235cc68ad83143a9bb6eb39
(cherry picked from commit 0ff41b94b3)
2018-06-25 13:08:11 -07:00
Amit Mahajan
6a5c36d73f Allow REQUEST_NOT_SUPPORTED as an error for startNetworkScan
We are trying to tighten the APIs. However for this case since the
documentation was not updated, we are allowing NOT_SUPPORTED for
now and will be cleaned up in a later release.

Test: run vts -m VtsHalRadioV1_2Target
Bug: 110118713
Change-Id: Id9dd3d7bac99bed36ceb9c906189f1fea78d5a2c
(cherry picked from commit a7587b5a7f)
2018-06-25 11:39:04 -07:00
sqian
43f2c3e588 Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp
am: 617c98b537

Change-Id: I97e2ac6534ae7354fc66a5bcd6f1833fe0b20498
2018-06-22 19:43:22 -07:00
sqian
617c98b537 Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp
Bug: 110037298
Test: run vts -m VtsHalRadioV1_0Target
Change-Id: Iaba800814c5a6950d086a2f105714d01fdaa14a4
Merged-In: Iaba800814c5a6950d086a2f105714d01fdaa14a4
(cherry picked from commit 7470cbd04d)
2018-06-22 16:32:07 -07:00
Daniel Solomon
a6f6fd7400 Revert "graphics: restart HWC when SurfaceFlinger stops"
This reverts commit 399a5b8d60dd845b86c43cf4de55dda4d47384c6; this
change is no longer needed and is causing instability on some devices.

Bug: 74199279
Change-Id: Ia8ee7ae0958df029beac9eb1d343995c54fa8798
2018-06-22 17:57:45 +00:00
Nathan Harold
9f2cfa83f0 Something fishy in 1.1
am: de56860a9b

Change-Id: Ia4c28870eaa23ec3241c11f4a68566ce6906dad5
2018-06-21 14:57:21 -07:00
Nathan Harold
de56860a9b Something fishy in 1.1
Change-Id: I39efa4355cf37b45f3d1068821ec25bc387c37d7
2018-06-21 19:34:21 +00:00
David Gross
c6625a71e4 resolve merge conflicts of ad2db12b3a to stage-aosp-master
BUG: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I11175cd1624734e50adc30e63cb32f652c8f1380
2018-06-19 11:49:35 -07:00
David Gross
f839bbedd7 resolve merge conflicts of 2a970cb851 to stage-aosp-master
BUG: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I587517c463d2d334f1f16eb614923d06d2dcaaaf
2018-06-19 10:00:21 -07:00
David Gross
ad2db12b3a Documentation improvements.
Document that every model must have at least one input and one output.

Document graph constraints.

Elaborate a bit on "execution order".

Indicate how operands of different lifetimes are defined (or not).

Fix ANEURALNETWORKS_L2_NORMALIZATION documentation for output shape.

ANEURALNETWORKS_SPACE_TO_DEPTH has inconsistent names for dimensions.

ANEURALNETWORKS_PAD documentation doesn't clearly describe rank or
dimensions of output tensor.

Bug: 66478689
Bug: 67601776
Bug: 69631404
Bug: 79482779
Bug: 79539157
Bug: 79539928

Test: mma at tree root

Change-Id: I6227bea2a486d4b45022d590915e10a124d323d4
Merged-In: I6227bea2a486d4b45022d590915e10a124d323d4
2018-06-19 00:09:07 +00:00
David Gross
2a970cb851 Documentation improvements.
Fix Model::pools documentation.

Specify that an output cannot overlap with an output/input/constant.

Document circumstances under which a prepared model should be expected to execute correctly.

Bug: 87805381
Bug: 79888238
Bug: 77237715

Test: mma at tree root

Change-Id: Ibf3daacad79f1d7e6127acf3887bd98b7c6bdf4e
Merged-In: Ibf3daacad79f1d7e6127acf3887bd98b7c6bdf4e
2018-06-19 00:08:17 +00:00
sqian
d1e489c94c [automerger skipped] Fix setBandMode.
am: ab2b8bf919  -s ours

Change-Id: Ibbdfad48f943c35419a91ccf8b3d4651bfab88f1
2018-06-18 14:10:59 -07:00