summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--services/tests/notification/Android.mk56
-rw-r--r--services/tests/notification/AndroidManifest.xml31
-rw-r--r--services/tests/notification/src/com/android/server/notification/BuzzBeepBlinkTest.java (renamed from services/tests/servicestests/src/com/android/server/notification/BuzzBeepBlinkTest.java)0
-rw-r--r--services/tests/notification/src/com/android/server/notification/GroupHelperTest.java (renamed from services/tests/servicestests/src/com/android/server/notification/GroupHelperTest.java)0
-rw-r--r--services/tests/notification/src/com/android/server/notification/ImportanceExtractorTest.java (renamed from services/tests/servicestests/src/com/android/server/notification/ImportanceExtractorTest.java)0
-rw-r--r--services/tests/notification/src/com/android/server/notification/RankingHelperTest.java (renamed from services/tests/servicestests/src/com/android/server/notification/RankingHelperTest.java)0
-rw-r--r--services/tests/notification/src/com/android/server/notification/RateEstimatorTest.java (renamed from services/tests/servicestests/src/com/android/server/notification/RateEstimatorTest.java)0
-rw-r--r--services/tests/notification/src/com/android/server/notification/SnoozeHelperTest.java (renamed from services/tests/servicestests/src/com/android/server/notification/SnoozeHelperTest.java)0
-rw-r--r--services/tests/notification/src/com/android/server/notification/ValidateNotificationPeopleTest.java (renamed from services/tests/servicestests/src/com/android/server/notification/ValidateNotificationPeopleTest.java)0
9 files changed, 87 insertions, 0 deletions
diff --git a/services/tests/notification/Android.mk b/services/tests/notification/Android.mk
new file mode 100644
index 000000000000..8aded6010a84
--- /dev/null
+++ b/services/tests/notification/Android.mk
@@ -0,0 +1,56 @@
+#########################################################################
+# 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)
diff --git a/services/tests/notification/AndroidManifest.xml b/services/tests/notification/AndroidManifest.xml
new file mode 100644
index 000000000000..087806eeba96
--- /dev/null
+++ b/services/tests/notification/AndroidManifest.xml
@@ -0,0 +1,31 @@
+<?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>
diff --git a/services/tests/servicestests/src/com/android/server/notification/BuzzBeepBlinkTest.java b/services/tests/notification/src/com/android/server/notification/BuzzBeepBlinkTest.java
index 4570a4b432a8..4570a4b432a8 100644
--- a/services/tests/servicestests/src/com/android/server/notification/BuzzBeepBlinkTest.java
+++ b/services/tests/notification/src/com/android/server/notification/BuzzBeepBlinkTest.java
diff --git a/services/tests/servicestests/src/com/android/server/notification/GroupHelperTest.java b/services/tests/notification/src/com/android/server/notification/GroupHelperTest.java
index 22b674b93b09..22b674b93b09 100644
--- a/services/tests/servicestests/src/com/android/server/notification/GroupHelperTest.java
+++ b/services/tests/notification/src/com/android/server/notification/GroupHelperTest.java
diff --git a/services/tests/servicestests/src/com/android/server/notification/ImportanceExtractorTest.java b/services/tests/notification/src/com/android/server/notification/ImportanceExtractorTest.java
index 305b5e0acd84..305b5e0acd84 100644
--- a/services/tests/servicestests/src/com/android/server/notification/ImportanceExtractorTest.java
+++ b/services/tests/notification/src/com/android/server/notification/ImportanceExtractorTest.java
diff --git a/services/tests/servicestests/src/com/android/server/notification/RankingHelperTest.java b/services/tests/notification/src/com/android/server/notification/RankingHelperTest.java
index ad432d1ad18c..ad432d1ad18c 100644
--- a/services/tests/servicestests/src/com/android/server/notification/RankingHelperTest.java
+++ b/services/tests/notification/src/com/android/server/notification/RankingHelperTest.java
diff --git a/services/tests/servicestests/src/com/android/server/notification/RateEstimatorTest.java b/services/tests/notification/src/com/android/server/notification/RateEstimatorTest.java
index 07f3162a7100..07f3162a7100 100644
--- a/services/tests/servicestests/src/com/android/server/notification/RateEstimatorTest.java
+++ b/services/tests/notification/src/com/android/server/notification/RateEstimatorTest.java
diff --git a/services/tests/servicestests/src/com/android/server/notification/SnoozeHelperTest.java b/services/tests/notification/src/com/android/server/notification/SnoozeHelperTest.java
index ffc45ea96e91..ffc45ea96e91 100644
--- a/services/tests/servicestests/src/com/android/server/notification/SnoozeHelperTest.java
+++ b/services/tests/notification/src/com/android/server/notification/SnoozeHelperTest.java
diff --git a/services/tests/servicestests/src/com/android/server/notification/ValidateNotificationPeopleTest.java b/services/tests/notification/src/com/android/server/notification/ValidateNotificationPeopleTest.java
index d09b858733e7..d09b858733e7 100644
--- a/services/tests/servicestests/src/com/android/server/notification/ValidateNotificationPeopleTest.java
+++ b/services/tests/notification/src/com/android/server/notification/ValidateNotificationPeopleTest.java