14f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang/* 24f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * Copyright (C) 2009 The Android Open Source Project 34f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * 44f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * Licensed under the Apache License, Version 2.0 (the "License"); 54f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * you may not use this file except in compliance with the License. 64f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * You may obtain a copy of the License at 74f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * 84f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * http://www.apache.org/licenses/LICENSE-2.0 94f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * 104f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * Unless required by applicable law or agreed to in writing, software 114f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * distributed under the License is distributed on an "AS IS" BASIS, 124f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * See the License for the specific language governing permissions and 144f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * limitations under the License. 154f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang */ 164f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang 174f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wangpackage android.test; 184f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang 194f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wangimport android.os.PerformanceCollector; 204f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wangimport android.os.PerformanceCollector.PerformanceResultsWriter; 214f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang 224f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang/** 234f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * A simple interface for passing in a PerformanceResultsWriter instance to be used with 244f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * PerformanceCollector. 254f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * <p/> 264f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * A one line implementation of {@link #setPerformanceResultsWriter(PerformanceResultsWriter)} 274f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * is sufficient in most cases: 284f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * <p/> 294f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * <code>mPerfCollector.setPerformanceResultsWriter(writer);</code> 304f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * 314f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang * {@hide} Not needed for SDK. 324f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang */ 334f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wangpublic interface PerformanceCollectorTestCase { 344f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang public PerformanceCollector mPerfCollector = new PerformanceCollector(); 354f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang 364f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang public void setPerformanceResultsWriter(PerformanceResultsWriter writer); 374f414bd7a76fc7ff063db70d1cdd09303c28cbe5Jack Wang} 38