• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2012 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 
17 package com.android.cts.util;
18 
19 /**
20  * Enum for representing the unit of performance results.
21  *
22  */
23 public enum ResultUnit {
24     /** for value with no unit */
25     NONE,
26     /** milli-seconds */
27     MS,
28     /** frames per second */
29     FPS,
30     /** operations per second */
31     OPS,
32     /** kilo-bytes-per-second, not bits-per-second */
33     KBPS,
34     /** mega-bytes-per-second */
35     MBPS,
36     /** amount of data, bytes */
37     BYTE,
38     /** tell how many times it did happen. */
39     COUNT,
40     /** unit for benchmarking with generic score. */
41     SCORE;
42 
43     /**
44      * Return string used in CTS XML report
45      */
getXmlString()46     public String getXmlString() {
47         return name().toLowerCase();
48     }
49 }
50 
51