1d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich/* 2d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * Copyright (C) 2007 The Android Open Source Project 3d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * 4d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * Licensed under the Apache License, Version 2.0 (the "License"); 5d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * you may not use this file except in compliance with the License. 6d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * You may obtain a copy of the License at 7d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * 8d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * http://www.apache.org/licenses/LICENSE-2.0 9d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * 10d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * Unless required by applicable law or agreed to in writing, software 11d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * distributed under the License is distributed on an "AS IS" BASIS, 12d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * See the License for the specific language governing permissions and 14d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich * limitations under the License. 15d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich */ 16d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 17d7a4f91401d869dad63e1a461240f4800a969312Jack Palevichpackage com.android.testlatency; 18d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 19d7a4f91401d869dad63e1a461240f4800a969312Jack Palevichimport android.app.Activity; 20d7a4f91401d869dad63e1a461240f4800a969312Jack Palevichimport android.os.Bundle; 21d7a4f91401d869dad63e1a461240f4800a969312Jack Palevichimport android.util.Log; 22d7a4f91401d869dad63e1a461240f4800a969312Jack Palevichimport android.view.WindowManager; 23d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 24d7a4f91401d869dad63e1a461240f4800a969312Jack Palevichimport java.io.File; 25d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 26d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 27d7a4f91401d869dad63e1a461240f4800a969312Jack Palevichpublic class TestLatencyActivity extends Activity { 28d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 29d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich TestLatencyView mView; 30d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 31d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich @Override protected void onCreate(Bundle icicle) { 32d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich super.onCreate(icicle); 33d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich mView = new TestLatencyView(getApplication()); 34d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich setContentView(mView); 35d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich mView.setFocusableInTouchMode(true); 36d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich } 37d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 38d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich @Override protected void onPause() { 39d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich super.onPause(); 40d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich mView.onPause(); 41d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich } 42d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich 43d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich @Override protected void onResume() { 44d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich super.onResume(); 45d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich mView.onResume(); 46d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich } 47d7a4f91401d869dad63e1a461240f4800a969312Jack Palevich} 48