Commit graph

7727 commits

Author SHA1 Message Date
Hans Chen
58d52f70b3 Modified ITestMsgQ hal service interface
Test: make vts -j; fmq_test
Changes:
* Modified method that configures the synchronized queue. Now this method takes in a descriptor of an existing queue and creates a queue on the HAL server side.

Change-Id: I395d6311f3580af6a87556849b3e921fa9eaf097
2018-07-17 10:56:03 -07:00
Treehugger Robot
76b383d5c2 Merge "Updated HALs to test structs/safe_unions containing interfaces" 2018-07-16 23:23:55 +00:00
Amit Mahajan
8b833740b2 Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN.
Test: run vts -m VtsHalRadioV1_2Target
Bug: 110716988
Change-Id: I9a5f014d498db00d818870cbd73e119f66562ef1
(cherry picked from commit c7896501db)
2018-07-16 12:29:47 -07: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
Treehugger Robot
f110ea4893 Merge "Fix unnecessary copy initialization warnings" 2018-07-13 20:32:41 +00: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
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
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
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
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
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
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
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
Treehugger Robot
a086c5c3a9 Merge "Add setIndicationFilter response notification in 1.2 VTS" 2018-06-25 22:46:51 +00: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
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
Nathan Harold
de56860a9b Something fishy in 1.1
Change-Id: I39efa4355cf37b45f3d1068821ec25bc387c37d7
2018-06-21 19:34:21 +00: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
David Gross
485c5cd192 Merge "Document unspecified dimensions." 2018-06-15 22:46:17 +00:00
David Gross
baaf9ab2d2 Document unspecified dimensions.
Test: mm

Bug: 77234888
Bug: 109687058
Change-Id: Ia8928e494d8c712bc9cfb592d67476fde9753f45
(cherry picked from commit 8939b5df12)
Merged-In: Ia8928e494d8c712bc9cfb592d67476fde9753f45
2018-06-15 13:58:12 -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
Amit Mahajan
2c36d90716 Allow general errors for getImsiForApp().
This is to match it with other 1.0 tests where general errors are
allowed. For newer tests we have decided to not allow these errors,
but a failure for this old test is reported when run with SIM
present.

Test: run vts -m VtsHalRadioV1_0Target
Bug: 109889468
Change-Id: If36083b7832706a50805932e8ba08e4eb397f3fe
2018-06-14 17:18:38 +00: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
Zhuoyao Zhang
23802f8200 Merge "Include libhidl-gen-utils to HAL tests" 2018-06-13 00:05:50 +00:00
Treehugger Robot
c70978d890 Merge "Do not install assembled framework matrix to device." 2018-06-12 19:26:14 +00:00
Yifan Hong
774c2bfcca Do not install assembled framework matrix to device.
Test: `m` dist
Test: make system matrix incompatible, `m` dist fails
Test: `m` and /system/etc/vintf files are installed
Bug: 110056937
Change-Id: If0bf2023f48ef31fffaf8636b3893cbfb40270ee
2018-06-11 19:28:15 -07:00
Zhuoyao Zhang
cecb0e7789 Include libhidl-gen-utils to HAL tests
Bug: 109880878
Test: make vts
Change-Id: Ic5a639559602688b40296a3de28abdd58b8b7e65
2018-06-08 10:57:30 -07:00
Treehugger Robot
636650bd84 Merge "Fix bug in VTS attestation cert verification." 2018-06-08 13:00:19 +00:00
Treehugger Robot
b92f078d13 Merge "secure_element: vts: Fix openBasicChannel and transmit test case" 2018-06-07 21:52:27 +00:00
Ruchi Kandoi
0845d32131 secure_element: vts: Fix openBasicChannel and transmit test case
Status Response for basic channel can be only 2 bytes as well.
Update the test to test for 2 or more bytes.
Basic Channel if opened successfully should be closed.

Transmit test case should specify the channel number in the command.

Test: atest VtsHalSecureElementV1_0TargetTest
Bug: 109833790
Change-Id: I91c943b4297067f6ae6872efb038f1295f92f5c8
Merged-In: I91c943b4297067f6ae6872efb038f1295f92f5c8
2018-06-07 21:51:50 +00: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
Steven Moreland
913c071391 Update comments for doc comments.
Doc comments look like "/** ... */" and they
can only be in certain places.

Bug: 79865343
Test: m
Change-Id: Ic15c08ff7dc6e4f9827c1dbe7f7236c11a572ec1
Merged-In: Ic15c08ff7dc6e4f9827c1dbe7f7236c11a572ec1
2018-05-21 14:36:29 -07:00
Treehugger Robot
867726a9cb Merge "Audio HAL HIDL wrapper: Fix incorrect conversion of TTY Mode" 2018-05-17 19:51:35 +00:00
Mika Raento
d534d32892 Update namespace to match framework/ml/nn
Bug: 72448000
Test: make vts
Change-Id: I3543913561b33e4d1e9d960ec1f81624fb0a1e6b
Merged-In: I3543913561b33e4d1e9d960ec1f81624fb0a1e6b
(cherry picked from commit de16694a60)
2018-05-09 17:53:20 +01:00
Michael Butler
89300b2553 NNAPI: sync NDK and HAL documentation
Bug: 72650109
Test: mma
Merged-In: I3e0a3680b89d80be500d8975f587f2d7c33fea10
Change-Id: I3e0a3680b89d80be500d8975f587f2d7c33fea10
(cherry picked from commit e98352806b)
2018-05-09 17:53:16 +01:00
Mika Raento
c5c7bfe156 Update neuralnetworks/*/types.hal to match impl
Updates hardware/interfaces/neuralnetworks/1.(0|1)/types.hal to match
the NeuralNetworks.h header in framework/ml/nn. Only comments have
changed.

Updated using framework/ml/nn/tools/sync_enums_to_hal.py.

Change-Id: I0754868ad8acf6e2e0c5b83661d04682febec9b0
Merged-In: I0754868ad8acf6e2e0c5b83661d04682febec9b0
Bug: 77604249
Test: checked changes with git diff
Test: mm in $ANDROID_BUILD_TOP
(cherry picked from commit 7e64e7f924)
2018-05-09 17:52:00 +01: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
android-build-prod (mdb)
5c2a8265c6 Merge changes from topic "lazy-dumpstate"
* changes:
  Make dumpstate HAL lazy.
  dumpstate: add interface into rc file
2018-05-07 18:07:21 +00:00
Steven Moreland
521d15c537 Make dumpstate HAL lazy.
Bug: 78509314
Test: HAL isn't running
Test: adb bugreport HAL runs
Test: HAL isn't running after bugreport finishes
Test: manually inspect state using `lshal` and logs
    using `adb logcat | grep android.hardware.dump`

(cherry picked from commit 711b806727c85d91cf805db4f78b4a9609e2bf43)

Change-Id: Ic97516a4297e7933430fb4fa3fd0109f8c1b1d0a
2018-05-07 09:35:11 -07:00
Wei Wang
af3006428d dumpstate: add interface into rc file
Bug: 7748994
Test: Build
Change-Id: I5e86b0e63928f42ea7b247bd0de0719daf80a10d
Merged-In: I5e86b0e63928f42ea7b247bd0de0719daf80a10d
2018-05-07 09:27:02 -07:00