summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2011-05-17 18:49:03 -0700
committerJake Hamby <jhamby@google.com>2011-06-06 15:52:24 -0700
commit50a624a47ce645a7992e346e40a4e7ec5e0df9b7 (patch)
tree6425bdec2c38ae4454144529ba2831acadb1b289 /tests/Android.mk
parentf00da53dd98c2d536126ed9a405633de584fd36d (diff)
downloadandroid_packages_apps_CellBroadcastReceiver-50a624a47ce645a7992e346e40a4e7ec5e0df9b7.tar.gz
android_packages_apps_CellBroadcastReceiver-50a624a47ce645a7992e346e40a4e7ec5e0df9b7.tar.bz2
android_packages_apps_CellBroadcastReceiver-50a624a47ce645a7992e346e40a4e7ec5e0df9b7.zip
Initial checkin of Cell Broadcast display application.
Simple Cell Broadcast application. Supports ETWS and CMAS emergency messages, and can be extended to support other types of PWS (Public Warning System) emergency warnings. User preferences for configuration of each supported national system (ETWS, CMAS, and channel 50 broadcasts for Brazil) are displayed/hidden based on the values in res/values/config.xml. For emergency alerts, a flashing warning icon and special alert sound is played. If there is a text-to-speech engine installed for the language of the broadcast, then the contents of the broadcast message will be spoken after the alert sound is played. The user can disable the text-to-speech feature in settings, as well as adjusting the length of the alert sound and enabling/disabling delivery of several emergency broadcast channels. The CellBroadcastReceiverTests apk includes a launcher activity with buttons for sending each type of test message. This APK must be signed with the system certificate in order to acquire the BROADCAST_SMS permission required to send test broadcasts to the app. Change-Id: If9b61e02c246de5783b3e39cd100ea707ea80084
Diffstat (limited to 'tests/Android.mk')
-rw-r--r--tests/Android.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
new file mode 100644
index 00000000..001c3671
--- /dev/null
+++ b/tests/Android.mk
@@ -0,0 +1,38 @@
+# Copyright 2011, 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)
+
+# We only want this apk build for tests.
+LOCAL_MODULE_TAGS := tests
+
+LOCAL_JAVA_LIBRARIES := android.test.runner
+
+# Include all test java files.
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+# Notice that we don't have to include the src files of Email because, by
+# running the tests using an instrumentation targeting Eamil, we
+# automatically get all of its classes loaded into our environment.
+
+LOCAL_PACKAGE_NAME := CellBroadcastReceiverTests
+
+# Apk must be signed with platform signature in order to send test broadcasts.
+LOCAL_CERTIFICATE := platform
+
+LOCAL_INSTRUMENTATION_FOR := CellBroadcastReceiver
+
+include $(BUILD_PACKAGE)
+