1/* 2 * Copyright (C) 2013 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.rs.test_compat; 18 19import android.support.v8.renderscript.RenderScript; 20 21import android.app.ListActivity; 22import android.content.res.Configuration; 23import android.os.Bundle; 24import android.os.Handler; 25import android.os.Looper; 26import android.os.Message; 27import android.provider.Settings.System; 28import android.util.Log; 29import android.view.Menu; 30import android.view.MenuItem; 31import android.view.View; 32import android.view.Window; 33import android.widget.Button; 34import android.widget.ListView; 35import android.widget.ArrayAdapter; 36 37import java.lang.Runtime; 38 39public class RSTest extends ListActivity { 40 41 private static final String LOG_TAG = "RSTest_Compat"; 42 private static final boolean DEBUG = false; 43 private static final boolean LOG_ENABLED = true; 44 45 private RenderScript mRS; 46 private RSTestCore RSTC; 47 48 String mTestNames[]; 49 50 @Override 51 public void onCreate(Bundle icicle) { 52 super.onCreate(icicle); 53 mRS = RenderScript.create(this); 54 55 RSTC = new RSTestCore(this); 56 RSTC.init(mRS, getResources()); 57 } 58 59 static void log(String message) { 60 if (LOG_ENABLED) { 61 Log.v(LOG_TAG, message); 62 } 63 } 64 65 66} 67