1 # Copyright (C) 2008 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH:= $(call my-dir) 16 17 # Reusable Sensor test classes and helpers 18 19 include $(CLEAR_VARS) 20 21 LOCAL_MODULE := cts-sensors-tests 22 LOCAL_MODULE_TAGS := tests 23 24 LOCAL_SDK_VERSION := current 25 26 # TODO: sensors need to be refactored out into their own namespace: android.hardware.sensors.cts 27 LOCAL_SRC_FILES := $(call all-java-files-under, src/android/hardware/cts/helpers) 28 LOCAL_SRC_FILES += \ 29 src/android/hardware/cts/SensorTestCase.java \ 30 src/android/hardware/cts/SingleSensorTests.java \ 31 src/android/hardware/cts/SensorIntegrationTests.java \ 32 src/android/hardware/cts/SensorBatchingTests.java \ 33 src/android/hardware/cts/SensorTest.java \ 34 35 LOCAL_STATIC_JAVA_LIBRARIES := ctsdeviceutil 36 37 include $(BUILD_STATIC_JAVA_LIBRARY) 38 39 40 # CtsHardwareTestCases package 41 42 include $(CLEAR_VARS) 43 44 LOCAL_MODULE_TAGS := tests 45 46 LOCAL_STATIC_JAVA_LIBRARIES := ctsdeviceutil ctstestrunner mockito-target android-ex-camera2 47 48 LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src) 49 50 LOCAL_PACKAGE_NAME := CtsHardwareTestCases 51 52 # uncomment when b/13281332 is fixed 53 # please also uncomment the equivalent code in 54 # cts/apps/CtsVerifiers/Android.mk 55 # 56 # LOCAL_SDK_VERSION := current 57 LOCAL_JAVA_LIBRARIES := android.test.runner 58 59 include $(BUILD_CTS_PACKAGE) 60