Loading services/tests/notification/Android.mk 0 → 100644 +56 −0 Original line number Diff line number Diff line ######################################################################### # Build FrameworksNotificationTests package ######################################################################### LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) # We only want this apk build for tests. LOCAL_MODULE_TAGS := tests # Include test java files and source from notifications package. LOCAL_SRC_FILES := $(call all-java-files-under, src) \ $(call all-java-files-under, ../../core/java/com/android/server/notification) LOCAL_STATIC_JAVA_LIBRARIES := \ frameworks-base-testutils \ services.accessibility \ services.core \ services.devicepolicy \ services.net \ services.retaildemo \ services.usage \ guava \ android-support-test \ mockito-target-minus-junit4 \ platform-test-annotations LOCAL_JAVA_LIBRARIES := android.test.runner LOCAL_PACKAGE_NAME := FrameworksNotificationTests LOCAL_CERTIFICATE := platform # These are not normally accessible from apps so they must be explicitly included. LOCAL_JNI_SHARED_LIBRARIES := libservicestestsjni \ libbacktrace \ libbase \ libbinder \ libc++ \ libcutils \ liblog \ liblzma \ libnativehelper \ libnetdaidl \ libui \ libunwind \ libutils LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk # Code coverage puts us over the dex limit, so enable multi-dex for coverage-enabled builds ifeq (true,$(EMMA_INSTRUMENT)) LOCAL_JACK_FLAGS := --multi-dex native endif # EMMA_INSTRUMENT_STATIC include $(BUILD_PACKAGE) services/tests/notification/AndroidManifest.xml 0 → 100644 +31 −0 Original line number Diff line number Diff line <?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. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.frameworks.tests.notification"> <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> <uses-permission android:name="android.permission.MANAGE_USERS" /> <application> <uses-library android:name="android.test.runner" /> </application> <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner" android:targetPackage="com.android.frameworks.tests.notification" android:label="Notification Tests" /> </manifest> services/tests/servicestests/src/com/android/server/notification/BuzzBeepBlinkTest.java→services/tests/notification/src/com/android/server/notification/BuzzBeepBlinkTest.java +0 −0 File moved. View file services/tests/servicestests/src/com/android/server/notification/GroupHelperTest.java→services/tests/notification/src/com/android/server/notification/GroupHelperTest.java +0 −0 File moved. View file services/tests/servicestests/src/com/android/server/notification/ImportanceExtractorTest.java→services/tests/notification/src/com/android/server/notification/ImportanceExtractorTest.java +0 −0 File moved. View file Loading
services/tests/notification/Android.mk 0 → 100644 +56 −0 Original line number Diff line number Diff line ######################################################################### # Build FrameworksNotificationTests package ######################################################################### LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) # We only want this apk build for tests. LOCAL_MODULE_TAGS := tests # Include test java files and source from notifications package. LOCAL_SRC_FILES := $(call all-java-files-under, src) \ $(call all-java-files-under, ../../core/java/com/android/server/notification) LOCAL_STATIC_JAVA_LIBRARIES := \ frameworks-base-testutils \ services.accessibility \ services.core \ services.devicepolicy \ services.net \ services.retaildemo \ services.usage \ guava \ android-support-test \ mockito-target-minus-junit4 \ platform-test-annotations LOCAL_JAVA_LIBRARIES := android.test.runner LOCAL_PACKAGE_NAME := FrameworksNotificationTests LOCAL_CERTIFICATE := platform # These are not normally accessible from apps so they must be explicitly included. LOCAL_JNI_SHARED_LIBRARIES := libservicestestsjni \ libbacktrace \ libbase \ libbinder \ libc++ \ libcutils \ liblog \ liblzma \ libnativehelper \ libnetdaidl \ libui \ libunwind \ libutils LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk # Code coverage puts us over the dex limit, so enable multi-dex for coverage-enabled builds ifeq (true,$(EMMA_INSTRUMENT)) LOCAL_JACK_FLAGS := --multi-dex native endif # EMMA_INSTRUMENT_STATIC include $(BUILD_PACKAGE)
services/tests/notification/AndroidManifest.xml 0 → 100644 +31 −0 Original line number Diff line number Diff line <?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. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.frameworks.tests.notification"> <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> <uses-permission android:name="android.permission.MANAGE_USERS" /> <application> <uses-library android:name="android.test.runner" /> </application> <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner" android:targetPackage="com.android.frameworks.tests.notification" android:label="Notification Tests" /> </manifest>
services/tests/servicestests/src/com/android/server/notification/BuzzBeepBlinkTest.java→services/tests/notification/src/com/android/server/notification/BuzzBeepBlinkTest.java +0 −0 File moved. View file
services/tests/servicestests/src/com/android/server/notification/GroupHelperTest.java→services/tests/notification/src/com/android/server/notification/GroupHelperTest.java +0 −0 File moved. View file
services/tests/servicestests/src/com/android/server/notification/ImportanceExtractorTest.java→services/tests/notification/src/com/android/server/notification/ImportanceExtractorTest.java +0 −0 File moved. View file