diff options
| author | Keun Soo Yim <yim@google.com> | 2017-02-03 13:50:29 -0800 |
|---|---|---|
| committer | Keun Soo Yim <yim@google.com> | 2017-02-03 18:42:56 -0800 |
| commit | 09c92950a2e843ac935229fb939764d31de7db1a (patch) | |
| tree | f315d76561c388765648881f591316c324673cd0 | |
| parent | 325602cd8b16c40424a7d070769b93c3b5ca7c2c (diff) | |
| download | android_hardware_interfaces-09c92950a2e843ac935229fb939764d31de7db1a.tar.gz android_hardware_interfaces-09c92950a2e843ac935229fb939764d31de7db1a.tar.bz2 android_hardware_interfaces-09c92950a2e843ac935229fb939764d31de7db1a.zip | |
move VTS stub files and non-functional tests (aosp)
Test: mma
Bug: 34976004
Change-Id: Id9c88a9778fba49f0841a474aa067d271f14e207
38 files changed, 0 insertions, 791 deletions
diff --git a/bluetooth/1.0/vts/Android.mk b/bluetooth/1.0/vts/Android.mk deleted file mode 100644 index 85e0c3803..000000000 --- a/bluetooth/1.0/vts/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(LOCAL_PATH)/functional/vts/testcases/hal/bluetooth/hidl/Android.mk diff --git a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/Android.mk b/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target/Android.mk b/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target/Android.mk deleted file mode 100644 index 98bb686cf..000000000 --- a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := HalBluetoothHidlTargetBasicTest -VTS_CONFIG_SRC_DIR := testcases/hal/bluetooth/hidl/target -include test/vts/tools/build/Android.host_config.mk diff --git a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target/AndroidTest.xml b/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target/AndroidTest.xml deleted file mode 100644 index 54fb89b44..000000000 --- a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target/AndroidTest.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS Bluetooth HIDL HAL's basic target-side test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="HalBluetoothHidlTargetBasicTest" /> - <option name="binary-test-sources" value=" - _64bit::DATA/nativetest64/bluetooth_hidl_hal_test/bluetooth_hidl_hal_test, - "/> - <option name="binary-test-type" value="gtest" /> - <option name="test-timeout" value="1m" /> - </test> -</configuration> diff --git a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target_profiling/Android.mk b/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target_profiling/Android.mk deleted file mode 100644 index 81a2db9f5..000000000 --- a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target_profiling/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -## Copyright (C) 2016 The Android Open Source Project -# -## Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# # You may obtain a copy of the License at -# # -# # http://www.apache.org/licenses/LICENSE-2.0 -# # -# # Unless required by applicable law or agreed to in writing, software -# # distributed under the License is distributed on an "AS IS" BASIS, -# # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# # See the License for the specific language governing permissions and -# # limitations under the License. -# # - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := BluetoothHidlTargetProfilingTest -VTS_CONFIG_SRC_DIR := testcases/hal/bluetooth/hidl/target_profiling -include test/vts/tools/build/Android.host_config.mk diff --git a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target_profiling/AndroidTest.xml b/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target_profiling/AndroidTest.xml deleted file mode 100644 index 8052b3c75..000000000 --- a/bluetooth/1.0/vts/functional/vts/testcases/hal/bluetooth/hidl/target_profiling/AndroidTest.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS Bluetooth HIDL HAL's target-side profiling test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="BluetoothHidlTargetProfilingTest" /> - <option name="binary-test-sources" value=" - _64bit::DATA/nativetest64/bluetooth_hidl_hal_test/bluetooth_hidl_hal_test, - "/> - <option name="binary-test-type" value="gtest" /> - <option name="test-timeout" value="1m" /> - <option name="enable-profiling" value="true" /> - </test> -</configuration> diff --git a/ir/1.0/vts/Android.mk b/ir/1.0/vts/Android.mk deleted file mode 100644 index 90c50c899..000000000 --- a/ir/1.0/vts/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(LOCAL_PATH)/functional/vts/testcases/hal/ir/hidl/target/Android.mk diff --git a/ir/1.0/vts/functional/vts/testcases/hal/ir/hidl/target/Android.mk b/ir/1.0/vts/functional/vts/testcases/hal/ir/hidl/target/Android.mk deleted file mode 100644 index a69fd0827..000000000 --- a/ir/1.0/vts/functional/vts/testcases/hal/ir/hidl/target/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := HalIrHidlTargetTest -VTS_CONFIG_SRC_DIR := testcases/hal/ir/hidl/target -include test/vts/tools/build/Android.host_config.mk diff --git a/ir/1.0/vts/functional/vts/testcases/hal/ir/hidl/target/AndroidTest.xml b/ir/1.0/vts/functional/vts/testcases/hal/ir/hidl/target/AndroidTest.xml deleted file mode 100644 index bf3d2369a..000000000 --- a/ir/1.0/vts/functional/vts/testcases/hal/ir/hidl/target/AndroidTest.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS IR HIDL HAL's target-side test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="HalIrHidlTargetTest"/> - <option name="binary-test-sources" value=" - _32bit::DATA/nativetest/ir_hidl_hal_test/ir_hidl_hal_test, - _64bit::DATA/nativetest64/ir_hidl_hal_test/ir_hidl_hal_test, - "/> - <option name="binary-test-type" value="hal_hidl_gtest" /> - <option name="precondition-hwbinder-service" value="android.hardware.ir" /> - <option name="test-timeout" value="1m" /> - </test> -</configuration> diff --git a/nfc/1.0/vts/functional/Android.mk b/nfc/1.0/vts/functional/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/nfc/1.0/vts/functional/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/nfc/1.0/vts/functional/vts/Android.mk b/nfc/1.0/vts/functional/vts/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/nfc/1.0/vts/functional/vts/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/nfc/1.0/vts/functional/vts/testcases/Android.mk b/nfc/1.0/vts/functional/vts/testcases/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/__init__.py b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/__init__.py deleted file mode 100644 index e69de29bb..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/__init__.py +++ /dev/null diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/__init__.py b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/__init__.py deleted file mode 100644 index e69de29bb..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/__init__.py +++ /dev/null diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/NfcHidlBasicTest.py b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/NfcHidlBasicTest.py deleted file mode 100644 index cb4093137..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/NfcHidlBasicTest.py +++ /dev/null @@ -1,110 +0,0 @@ -#!/usr/bin/env python3.4 -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -import logging -import time - -from vts.runners.host import asserts -from vts.runners.host import base_test_with_webdb -from vts.runners.host import test_runner -from vts.utils.python.controllers import android_device -from vts.utils.python.coverage import coverage_utils - -PASSTHROUGH_MODE_KEY = "passthrough_mode" - - -class NfcHidlBasicTest(base_test_with_webdb.BaseTestWithWebDbClass): - """A simple testcase for the NFC HIDL HAL.""" - - def setUpClass(self): - """Creates a mirror and turns on the framework-layer NFC service.""" - self.dut = self.registerController(android_device)[0] - - self.getUserParams(opt_param_names=[PASSTHROUGH_MODE_KEY]) - - self.dut.shell.InvokeTerminal("one") - self.dut.shell.one.Execute("setenforce 0") # SELinux permissive mode - self.dut.shell.one.Execute("svc nfc disable") # Turn off - time.sleep(5) - - if getattr(self, PASSTHROUGH_MODE_KEY, True): - self.dut.shell.one.Execute( - "setprop vts.hal.vts.hidl.get_stub true") - else: - self.dut.shell.one.Execute( - "setprop vts.hal.vts.hidl.get_stub false") - - self.dut.hal.InitHidlHal( - target_type="nfc", - target_basepaths=self.dut.libPaths, - target_version=1.0, - target_package="android.hardware.nfc", - target_component_name="INfc", - bits=64 if self.dut.is64Bit else 32) - - def tearDownClass(self): - """Turns off the framework-layer NFC service.""" - # Ideally, we would want to store the nfc service's state before - # turning that off in setUpClass and restore the original state. - self.dut.shell.one.Execute("svc nfc disable") # make sure it's off - - def testBase(self): - """A simple test case which just calls each registered function.""" - # TODO: extend to make realistic testcases - # For example, call after CORE_INIT_RSP is received. - # result = self.dut.hal.nfc.coreInitialized([1]) - # logging.info("coreInitialized result: %s", result) - - def send_event(NfcEvent, NfcStatus): - logging.info("callback send_event") - logging.info("arg0 %s", NfcEvent) - logging.info("arg1 %s", NfcStatus) - - def send_data(NfcData): - logging.info("callback send_data") - logging.info("arg0 %s", NfcData) - - client_callback = self.dut.hal.nfc.GetHidlCallbackInterface( - "INfcClientCallback", - sendEvent=send_event, - sendData=send_data) - - result = self.dut.hal.nfc.open(client_callback) - logging.info("open result: %s", result) - - result = self.dut.hal.nfc.prediscover() - logging.info("prediscover result: %s", result) - - result = self.dut.hal.nfc.controlGranted() - logging.info("controlGranted result: %s", result) - - result = self.dut.hal.nfc.powerCycle() - logging.info("powerCycle result: %s", result) - - nfc_types = self.dut.hal.nfc.GetHidlTypeInterface("types") - logging.info("nfc_types: %s", nfc_types) - - result = self.dut.hal.nfc.write([0, 1, 2, 3, 4, 5]) - logging.info("write result: %s", result) - - result = self.dut.hal.nfc.close() - logging.info("close result: %s", result) - - self.SetCoverageData(coverage_utils.GetGcdaDict(self.dut)) - -if __name__ == "__main__": - test_runner.main() diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/__init__.py b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/__init__.py deleted file mode 100644 index e69de29bb..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/__init__.py +++ /dev/null diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/Android.mk deleted file mode 100644 index cd58d323a..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := NfcHidlBinderizeBasicTest -VTS_CONFIG_SRC_DIR := testcases/hal/nfc/hidl/host/binderize -include test/vts/tools/build/Android.host_config.mk diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/AndroidTest.xml b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/AndroidTest.xml deleted file mode 100644 index 967197768..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/AndroidTest.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS HAL NFC (Binder Mode) test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - <option name="cleanup" value="true" /> - <option name="push" value="spec/hardware/interfaces/nfc/1.0/vts/Nfc.vts->/data/local/tmp/spec/Nfc.vts" /> - <option name="push" value="spec/hardware/interfaces/nfc/1.0/vts/NfcClientCallback.vts->/data/local/tmp/spec/NfcClientCallback.vts" /> - <option name="push" value="spec/hardware/interfaces/nfc/1.0/vts/types.vts->/data/local/tmp/spec/types.vts" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="NfcHidlBinderizeBasicTest" /> - <option name="test-case-path" value="vts/testcases/hal/nfc/hidl/host/NfcHidlBasicTest" /> - <option name="test-config-path" value="vts/testcases/hal/nfc/hidl/host/binderize/NfcHidlBinderizeBasicTest.config" /> - </test> -</configuration> diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/NfcHidlBinderizeBasicTest.config b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/NfcHidlBinderizeBasicTest.config deleted file mode 100644 index 5a94c6fa4..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/NfcHidlBinderizeBasicTest.config +++ /dev/null @@ -1,3 +0,0 @@ -{ - "passthrough_mode": False -} diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/__init__.py b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/__init__.py deleted file mode 100644 index e69de29bb..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/binderize/__init__.py +++ /dev/null diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/Android.mk deleted file mode 100644 index e274107d4..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := NfcHidlPassthroughBasicTest -VTS_CONFIG_SRC_DIR := testcases/hal/nfc/hidl/host/passthrough -include test/vts/tools/build/Android.host_config.mk diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/AndroidTest.xml b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/AndroidTest.xml deleted file mode 100644 index 2f5fdfac8..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/AndroidTest.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS HAL NFC (Passthrough) test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - <option name="cleanup" value="true" /> - <option name="push" value="spec/hardware/interfaces/nfc/1.0/vts/Nfc.vts->/data/local/tmp/spec/Nfc.vts" /> - <option name="push" value="spec/hardware/interfaces/nfc/1.0/vts/NfcClientCallback.vts->/data/local/tmp/spec/NfcClientCallback.vts" /> - <option name="push" value="spec/hardware/interfaces/nfc/1.0/vts/types.vts->/data/local/tmp/spec/types.vts" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="NfcHidlPassthroughBasicTest" /> - <option name="test-case-path" value="vts/testcases/hal/nfc/hidl/host/NfcHidlBasicTest" /> - <option name="test-config-path" value="vts/testcases/hal/nfc/hidl/host/passthrough/NfcHidlPassthroughBasicTest.config" /> - </test> -</configuration> diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/NfcHidlPassthroughBasicTest.config b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/NfcHidlPassthroughBasicTest.config deleted file mode 100644 index 9173e1960..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/host/passthrough/NfcHidlPassthroughBasicTest.config +++ /dev/null @@ -1,3 +0,0 @@ -{ - "passthrough_mode": true -} diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target/Android.mk deleted file mode 100644 index da9b6af8e..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target/Android.mk +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) - -include $(CLEAR_VARS) - -LOCAL_MODULE := HalNfcHidlTargetBasicTest -VTS_CONFIG_SRC_DIR := testcases/hal/nfc/hidl/target -include test/vts/tools/build/Android.host_config.mk diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target/AndroidTest.xml b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target/AndroidTest.xml deleted file mode 100644 index 9576183e2..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target/AndroidTest.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS NFC HIDL HAL's basic target-side test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="HalNfcHidlTargetBasicTest" /> - <option name="binary-test-sources" value=" - _32bit::DATA/nativetest/nfc_hidl_hal_test/nfc_hidl_hal_test, - _64bit::DATA/nativetest64/nfc_hidl_hal_test/nfc_hidl_hal_test, - "/> - <option name="binary-test-type" value="gtest" /> - <option name="test-timeout" value="10m" /> - </test> -</configuration> diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target_profiling/Android.mk b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target_profiling/Android.mk deleted file mode 100644 index c7bf8533f..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target_profiling/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -## Copyright (C) 2016 The Android Open Source Project -# -## Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# # You may obtain a copy of the License at -# # -# # http://www.apache.org/licenses/LICENSE-2.0 -# # -# # Unless required by applicable law or agreed to in writing, software -# # distributed under the License is distributed on an "AS IS" BASIS, -# # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# # See the License for the specific language governing permissions and -# # limitations under the License. -# # - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := NfcHidlTargetProfilingTest -VTS_CONFIG_SRC_DIR := testcases/hal/nfc/hidl/target_profiling -include test/vts/tools/build/Android.host_config.mk diff --git a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target_profiling/AndroidTest.xml b/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target_profiling/AndroidTest.xml deleted file mode 100644 index 3b570f984..000000000 --- a/nfc/1.0/vts/functional/vts/testcases/hal/nfc/hidl/target_profiling/AndroidTest.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS NFC HIDL HAL's target-side profiling test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="NfcHidlTargetProfilingTest" /> - <option name="binary-test-sources" value=" - _32bit::DATA/nativetest/nfc_hidl_hal_test/nfc_hidl_hal_test, - _64bit::DATA/nativetest64/nfc_hidl_hal_test/nfc_hidl_hal_test, - "/> - <option name="binary-test-type" value="gtest" /> - <option name="test-timeout" value="25m" /> - <option name="enable-profiling" value="true" /> - </test> -</configuration> diff --git a/wifi/1.0/vts/Android.mk b/wifi/1.0/vts/Android.mk deleted file mode 100644 index d3471363c..000000000 --- a/wifi/1.0/vts/Android.mk +++ /dev/null @@ -1,20 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -# include hidl test makefiles -include $(LOCAL_PATH)/functional/vts/testcases/hal/wifi/hidl/Android.mk diff --git a/wifi/1.0/vts/functional/Android.mk b/wifi/1.0/vts/functional/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/wifi/1.0/vts/functional/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/__init__.py b/wifi/1.0/vts/functional/vts/testcases/hal/wifi/__init__.py deleted file mode 100644 index e69de29bb..000000000 --- a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/__init__.py +++ /dev/null diff --git a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/Android.mk b/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/Android.mk deleted file mode 100644 index f9e32763f..000000000 --- a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(call all-subdir-makefiles) diff --git a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/__init__.py b/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/__init__.py deleted file mode 100644 index e69de29bb..000000000 --- a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/__init__.py +++ /dev/null diff --git a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/target/Android.mk b/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/target/Android.mk deleted file mode 100644 index 40f154efc..000000000 --- a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/target/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := HalWifiHidlTargetTest -VTS_CONFIG_SRC_DIR := testcases/hal/wifi/hidl/target -include test/vts/tools/build/Android.host_config.mk diff --git a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/target/AndroidTest.xml b/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/target/AndroidTest.xml deleted file mode 100644 index 1099a5a6e..000000000 --- a/wifi/1.0/vts/functional/vts/testcases/hal/wifi/hidl/target/AndroidTest.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<configuration description="Config for VTS WiFi HIDL HAL's basic target-side test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="HalWifiHidlTargetTest" /> - <option name="binary-test-sources" value=" - _32bit::DATA/nativetest/wifi_hidl_test/wifi_hidl_test, - _64bit::DATA/nativetest64/wifi_hidl_test/wifi_hidl_test, - "/> - <option name="binary-test-type" value="gtest" /> - <option name="test-timeout" value="10m" /> - </test> -</configuration> |
