1185268942b946028b65f5cff9b335af97f9aeab8Romain Guy/* 2185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * Copyright (C) 2011 The Android Open Source Project 3185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * 4185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * Licensed under the Apache License, Version 2.0 (the "License"); 5185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * you may not use this file except in compliance with the License. 6185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * You may obtain a copy of the License at 7185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * 8185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * http://www.apache.org/licenses/LICENSE-2.0 9185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * 10185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * Unless required by applicable law or agreed to in writing, software 11185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * distributed under the License is distributed on an "AS IS" BASIS, 12185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * See the License for the specific language governing permissions and 14185268942b946028b65f5cff9b335af97f9aeab8Romain Guy * limitations under the License. 15185268942b946028b65f5cff9b335af97f9aeab8Romain Guy */ 16185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 17185268942b946028b65f5cff9b335af97f9aeab8Romain Guypackage com.android.shaderstest; 18185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 19185268942b946028b65f5cff9b335af97f9aeab8Romain Guyimport android.app.Activity; 20185268942b946028b65f5cff9b335af97f9aeab8Romain Guyimport android.os.Bundle; 21185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 22185268942b946028b65f5cff9b335af97f9aeab8Romain Guy@SuppressWarnings({"UnusedDeclaration"}) 23185268942b946028b65f5cff9b335af97f9aeab8Romain Guypublic class ShadersTest extends Activity { 24185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 25185268942b946028b65f5cff9b335af97f9aeab8Romain Guy private ShadersTestView mView; 26185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 27185268942b946028b65f5cff9b335af97f9aeab8Romain Guy @Override 28185268942b946028b65f5cff9b335af97f9aeab8Romain Guy public void onCreate(Bundle icicle) { 29185268942b946028b65f5cff9b335af97f9aeab8Romain Guy super.onCreate(icicle); 30185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 31185268942b946028b65f5cff9b335af97f9aeab8Romain Guy mView = new ShadersTestView(this); 32185268942b946028b65f5cff9b335af97f9aeab8Romain Guy setContentView(mView); 33185268942b946028b65f5cff9b335af97f9aeab8Romain Guy } 34185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 35185268942b946028b65f5cff9b335af97f9aeab8Romain Guy @Override 36185268942b946028b65f5cff9b335af97f9aeab8Romain Guy protected void onResume() { 37185268942b946028b65f5cff9b335af97f9aeab8Romain Guy super.onResume(); 38185268942b946028b65f5cff9b335af97f9aeab8Romain Guy mView.resume(); 39185268942b946028b65f5cff9b335af97f9aeab8Romain Guy } 40185268942b946028b65f5cff9b335af97f9aeab8Romain Guy 41185268942b946028b65f5cff9b335af97f9aeab8Romain Guy @Override 42185268942b946028b65f5cff9b335af97f9aeab8Romain Guy protected void onPause() { 43185268942b946028b65f5cff9b335af97f9aeab8Romain Guy super.onPause(); 44185268942b946028b65f5cff9b335af97f9aeab8Romain Guy mView.pause(); 45185268942b946028b65f5cff9b335af97f9aeab8Romain Guy } 46185268942b946028b65f5cff9b335af97f9aeab8Romain Guy} 47