initial directory setup for CTS system app test

- Actual test should be added later.
- There are other work to be done to make this work.
  For now, this is just a placeholder.
- Added test can be run like normal android test, but it will not be
  added to CTS zip yet. But until dummy app is added there to system image,
  the APK should be pused to system/priv-app using adb push or adb sync.
- Build should be done with mmm as there is no Android.mk under tests/systemAppTest intentionally.
- The test should be complete by itself, and should not use external
  package for instrumentation (instrumentation should be only done to this
  package itself) as that external package may not have system permission.

bug: 10360298

Change-Id: I8f292c41738fab3830ff0c4ab99a47444a86d154
diff --git a/tests/systemAppTest/prebuilts/readme.txt b/tests/systemAppTest/prebuilts/readme.txt
new file mode 100644
index 0000000..f9ba205
--- /dev/null
+++ b/tests/systemAppTest/prebuilts/readme.txt
@@ -0,0 +1 @@
+This directory will contain signed CtsSystemAppTestCases.apk.
diff --git a/tests/systemAppTest/test/Android.mk b/tests/systemAppTest/test/Android.mk
new file mode 100644
index 0000000..b24e3b3
--- /dev/null
+++ b/tests/systemAppTest/test/Android.mk
@@ -0,0 +1,37 @@
+# Copyright (C) 2013 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.
+
+# This module will not be built in normal CTS build
+# TODO: add xml generation for test build
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_PRIVILEGED_MODULE := true
+
+LOCAL_MODULE_PATH := $(TARGET_OUT_APPS_PRIVILEGED)
+
+LOCAL_JAVA_LIBRARIES := android.test.runner
+
+LOCAL_STATIC_JAVA_LIBRARIES := ctstestrunner ctsutil
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := CtsSystemAppTestCases
+
+LOCAL_SDK_VERSION := current
+
+include $(BUILD_PACKAGE)
diff --git a/tests/systemAppTest/test/AndroidManifest.xml b/tests/systemAppTest/test/AndroidManifest.xml
new file mode 100644
index 0000000..dbcaf9e
--- /dev/null
+++ b/tests/systemAppTest/test/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.cts.systemapptest"
+    android:versionCode="1"
+    android:versionName="1.0" >
+</manifest>