• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2011 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 package com.android.cts.tradefed.result;
17 
18 import java.io.File;
19 import java.util.List;
20 
21 /**
22  * Repository for CTS results.
23  */
24 public interface ITestResultRepo {
25 
26     /**
27      * @return the list of {@link ITestSummary}s. The index of the {@link ITestSummary} in the
28      * list is its session id
29      */
getSummaries()30     public List<ITestSummary> getSummaries();
31 
32     /**
33      * Get the {@link TestResults} for given session id.
34      *
35      * @param sessionId the session id
36      * @return the {@link TestResults} or <code>null</null> if the result with that session id
37      * cannot be retrieved
38      */
getResult(int sessionId)39     public TestResults getResult(int sessionId);
40 
41     /**
42      * Get the report directory for given result
43      * @param sessionId
44      * @return A {@link File} representing the report directory for the given sessionId
45      */
getReportDir(int sessionId)46     public File getReportDir(int sessionId);
47 
48 }
49