From 43ca3cfa8760ba945bb3dce3d7c1a23428b751d9 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Mon, 5 Mar 2012 18:03:32 -0800 Subject: First draft of the sample function implementation. Change-Id: I51bb999419b5b424a8549461a6d91f48f3fc9298 --- tests/RenderScriptTests/SampleTest/Android.mk | 26 ++++ .../SampleTest/AndroidManifest.xml | 34 +++++ .../SampleTest/res/drawable-nodpi/twobytwo.png | Bin 0 -> 2796 bytes .../RenderScriptTests/SampleTest/res/layout/rs.xml | 52 ++++++++ .../SampleTest/res/values/strings.xml | 24 ++++ .../com/android/rs/sample/SampleRSActivity.java | 140 ++++++++++++++++++++ .../SampleTest/src/com/android/rs/sample/sample.rs | 145 +++++++++++++++++++++ 7 files changed, 421 insertions(+) create mode 100644 tests/RenderScriptTests/SampleTest/Android.mk create mode 100644 tests/RenderScriptTests/SampleTest/AndroidManifest.xml create mode 100644 tests/RenderScriptTests/SampleTest/res/drawable-nodpi/twobytwo.png create mode 100644 tests/RenderScriptTests/SampleTest/res/layout/rs.xml create mode 100644 tests/RenderScriptTests/SampleTest/res/values/strings.xml create mode 100644 tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/SampleRSActivity.java create mode 100644 tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/sample.rs (limited to 'tests/RenderScriptTests') diff --git a/tests/RenderScriptTests/SampleTest/Android.mk b/tests/RenderScriptTests/SampleTest/Android.mk new file mode 100644 index 0000000..7d74c55 --- /dev/null +++ b/tests/RenderScriptTests/SampleTest/Android.mk @@ -0,0 +1,26 @@ +# +# Copyright (C) 2012 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) + +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-renderscript-files-under, src) + +LOCAL_PACKAGE_NAME := SampleRS + +include $(BUILD_PACKAGE) diff --git a/tests/RenderScriptTests/SampleTest/AndroidManifest.xml b/tests/RenderScriptTests/SampleTest/AndroidManifest.xml new file mode 100644 index 0000000..ec115f7 --- /dev/null +++ b/tests/RenderScriptTests/SampleTest/AndroidManifest.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + diff --git a/tests/RenderScriptTests/SampleTest/res/drawable-nodpi/twobytwo.png b/tests/RenderScriptTests/SampleTest/res/drawable-nodpi/twobytwo.png new file mode 100644 index 0000000..98cf963 Binary files /dev/null and b/tests/RenderScriptTests/SampleTest/res/drawable-nodpi/twobytwo.png differ diff --git a/tests/RenderScriptTests/SampleTest/res/layout/rs.xml b/tests/RenderScriptTests/SampleTest/res/layout/rs.xml new file mode 100644 index 0000000..61c339a --- /dev/null +++ b/tests/RenderScriptTests/SampleTest/res/layout/rs.xml @@ -0,0 +1,52 @@ + + + + + + + + +