• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2016 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 #ifndef _GTS_NANOAPPS_GENERAL_TEST_TEST_NAMES_H_
18 #define _GTS_NANOAPPS_GENERAL_TEST_TEST_NAMES_H_
19 
20 #include <cstdint>
21 
22 /**
23  * NOTE: These values are manually synced in the GTS Java's
24  *     ContextHubTestConstants.java.  If you make a change here, be sure
25  *     to update ContextHubTestContants.java as well.
26  */
27 
28 namespace general_test {
29 
30 /**
31  * Names of the tests we support.
32  */
33 enum class TestNames : uint32_t {
34   /**
35    * Value which should never be used.
36    *
37    * This starts at CONTEXT_HUB_TYPE_PRIVATE_MSG_BASE.
38    */
39   kInvalidTest = 0x0400,
40 
41   /**
42    * Test: HelloWorldTest
43    */
44   kHelloWorld = 0x0401,
45 
46   /**
47    * Test: SimpleHeapAllocTest
48    */
49   kSimpleHeapAlloc = 0x0402,
50 
51   /**
52    * Test: HeapAllocStressTest
53    */
54   kHeapAllocStress = 0x0403,
55 
56   /**
57    * Test: GetTimeTest
58    */
59   kGetTime = 0x0404,
60 
61   /**
62    * Test: EventBetweenApps0
63    */
64   kEventBetweenApps0 = 0x0405,
65 
66   /**
67    * Test: EventBetweenApps1
68    */
69   kEventBetweenApps1 = 0x0406,
70 
71   /**
72    * Test: SendEventTest
73    */
74   kSendEvent = 0x0407,
75 
76   /**
77    * Test: BasicAccelerometerTest
78    */
79   kBasicAccelerometer = 0x0408,
80 
81   /**
82    * Test: BasicInstantMotionDetectTest
83    */
84   kBasicInstantMotionDetect = 0x0409,
85 
86   /**
87    * Test: BasicStationaryDetectTest
88    */
89   kBasicStationaryDetect = 0x040A,
90 
91   /**
92    * Test: BasicGyroscopeTest
93    */
94   kBasicGyroscope = 0x040B,
95 
96   /**
97    * Test: BasicMagnetometerTest
98    */
99   kBasicMagnetometer = 0x040C,
100 
101   /**
102    * Test: BasicBarometerTest
103    */
104   kBasicBarometer = 0x040D,
105 
106   /**
107    * Test: BasicLightSensorTest
108    */
109   kBasicLightSensor = 0x040E,
110 
111   /**
112    * Test: BasicProximityTest
113    */
114   kBasicProximity = 0x040F,
115 
116   /**
117    * Test: VersionConsistencyTest
118    */
119   kVersionConsistency = 0x0410,
120 
121   /**
122    * Test: LoggingConsistencyTest
123    */
124   kLoggingConsistency = 0x0411,
125 
126   /**
127    * Test: SendMessageToHostTest
128    */
129   kSendMessageToHost = 0x0412,
130 
131   /**
132    * Test: TimerSetTest
133    */
134   kTimerSet = 0x0413,
135 
136   /**
137    * Test: TimerCancelTest
138    */
139   kTimerCancel = 0x0414,
140 
141   /**
142    * Test: TimerStressTest
143    */
144   kTimerStress = 0x0415,
145 
146   /**
147    * Test: SendEventStressTest
148    */
149   kSendEventStress = 0x0416,
150 
151   /**
152    * Test: HeapExhaustionStabilityTest
153    */
154   kHeapExhaustionStability = 0x0417,
155 
156   /**
157    * Test: GnssCapabilitiesTest
158    */
159   kGnssCapabilities = 0x0418,
160 
161   /**
162    * Test: WifiCapablitiesTest
163    */
164   kWifiCapabilities = 0x0419,
165 
166   /**
167    * Test: WwanCapabilitiesTest
168    */
169   kWwanCapabilities = 0x041A,
170 
171   /**
172    * Test: SensorInfoTest
173    */
174   kSensorInfo = 0x041B,
175 
176   /**
177    * Test: WwanCellInfoTest
178    */
179   kWwanCellInfoTest = 0x041C,
180 
181   /**
182    * Test: EstimatedHostTimeTest
183    */
184   kEstimatedHostTime = 0x041D,
185 
186   /**
187    * Test: NanoappInfoByAppId
188    */
189   kNanoappInfoByAppId = 0x041E,
190 
191   /**
192    * Test: NanoappInfoByInstanceId
193    */
194   kNanoappInfoByInstanceId = 0x041F,
195 
196   /**
197    * Test: NanoAppInfoEventsTest
198    */
199   kNanoAppInfoEventsPerformer = 0x0420,
200 
201   /**
202    * Test: NanoAppInfoEventsTest
203    */
204   kNanoAppInfoEventsObserver = 0x0421,
205 
206   /**
207    * Test: BasicAudioTest
208    */
209   kBasicAudioTest = 0x0422,
210 
211   /**
212    * Test: HostAwakeSuspendTest
213    */
214   kHostAwakeSuspend = 0x0423,
215 
216   /**
217    * Test: BasicGnssTest
218    */
219   kBasicGnssTest = 0x0424,
220 
221   /**
222    * Test: BasicWifiTest
223    */
224   kBasicWifiTest = 0x0425,
225 
226   /**
227    * Test: SensorFlushAsyncTest
228    */
229   kBasicSensorFlushAsyncTest = 0x0426,
230 };
231 
232 }  // namespace general_test
233 
234 #endif  // _GTS_NANOAPPS_GENERAL_TEST_TEST_NAMES_H_
235