summaryrefslogtreecommitdiff
path: root/java/tests/RsTest/src/com/android/rs/test/UT_rsdebug.java
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-03-19 12:41:48 -0700
committerJason Sams <jsams@google.com>2013-03-19 12:41:48 -0700
commit572a5031a5d8602db0bec0b253428a034bd4dd59 (patch)
tree44db981d697afe061f45a575a06c0384993e6b13 /java/tests/RsTest/src/com/android/rs/test/UT_rsdebug.java
parent110f181b7966212a36ef18016f9b81c7322d0a2f (diff)
downloadrs-572a5031a5d8602db0bec0b253428a034bd4dd59.tar.gz
Move compute tests from frameworks/base to frameworks/rs
Change-Id: I844c9f5e58f500164fec419569c68c7f854c5571
Diffstat (limited to 'java/tests/RsTest/src/com/android/rs/test/UT_rsdebug.java')
-rw-r--r--java/tests/RsTest/src/com/android/rs/test/UT_rsdebug.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/java/tests/RsTest/src/com/android/rs/test/UT_rsdebug.java b/java/tests/RsTest/src/com/android/rs/test/UT_rsdebug.java
new file mode 100644
index 00000000..548288b4
--- /dev/null
+++ b/java/tests/RsTest/src/com/android/rs/test/UT_rsdebug.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2010 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.
+ */
+
+package com.android.rs.test;
+
+import android.content.Context;
+import android.content.res.Resources;
+import android.renderscript.*;
+
+public class UT_rsdebug extends UnitTest {
+ private Resources mRes;
+
+ protected UT_rsdebug(RSTestCore rstc, Resources res, Context ctx) {
+ super(rstc, "rsDebug", ctx);
+ mRes = res;
+ }
+
+ public void run() {
+ RenderScript pRS = RenderScript.create(mCtx);
+ ScriptC_rsdebug s = new ScriptC_rsdebug(pRS);
+ pRS.setMessageHandler(mRsMessage);
+ s.invoke_test_rsdebug(0, 0);
+ pRS.finish();
+ waitForMessage();
+ pRS.destroy();
+ }
+}