Home
last modified time | relevance | path

Searched refs:testType (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DPositionTesterContextMenuListener.java32 private int testType; // as returned by getPackedPositionType field in PositionTesterContextMenuListener
39 testType = ExpandableListView.PACKED_POSITION_TYPE_GROUP; in expectGroupContextMenu()
45 testType = ExpandableListView.PACKED_POSITION_TYPE_CHILD; in expectChildContextMenu()
50 testType = ADAPTER_TYPE; in expectAdapterContextMenu()
55 if (testType == ADAPTER_TYPE) { in onCreateContextMenu()
74 if (!areEqual("Wrong packed position type", testType, packedPositionType)) { in onCreateContextMenu()
83 if (testType == ExpandableListView.PACKED_POSITION_TYPE_CHILD) { in onCreateContextMenu()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiClass.java214 private static boolean compareType(String apiType, String testType) { in compareType() argument
215 return apiType.equals(testType) || in compareType()
216 isGenericType(apiType) && !testType.equals(VOID) || in compareType()
217 isGenericArrayType(apiType) && isArrayType(testType) || in compareType()
218 isVarArg(apiType) && isArrayType(testType) && in compareType()
219 apiType.startsWith(testType.substring(0, testType.indexOf("["))); in compareType()
/cts/tests/tests/media/src/android/media/cts/
DAudioAttributesTest.java73 for (int testType : new int[] { AudioManager.STREAM_ALARM, AudioManager.STREAM_MUSIC, in testGetVolumeControlStreamVsLegacyStream()
76 final AudioAttributes aa = new AudioAttributes.Builder().setLegacyStreamType(testType) in testGetVolumeControlStreamVsLegacyStream()
79 assertEquals("Volume control from attributes, stream doesn't match", testType, stream); in testGetVolumeControlStreamVsLegacyStream()
DMediaPlayerDrmTest.java183 private void stream(Uri uri, Resolution res, ModularDrmTestType testType) throws Exception { in stream() argument
184 playModularDrmVideo(uri, res.width, res.height, testType); in stream()
187 private void download(Uri remote, Uri local, Resolution res, ModularDrmTestType testType) in download() argument
189 playModularDrmVideoDownload(remote, local, res.width, res.height, testType); in download()
DMediaPlayerDrmTestBase.java176 ModularDrmTestType testType) throws Exception { in playModularDrmVideoDownload() argument
187 playModularDrmVideo(file, width, height, testType); in playModularDrmVideoDownload()
194 ModularDrmTestType testType) throws Exception { in playModularDrmVideo() argument
198 playModularDrmVideoWithRetries(uri, width, height, PLAY_TIME_MS, testType); in playModularDrmVideo()
202 int playTime, ModularDrmTestType testType) throws Exception { in playModularDrmVideoWithRetries() argument
208 Log.v(TAG, "playVideoWithRetries(" + testType + ") try " + i); in playModularDrmVideoWithRetries()
209 playLoadedModularDrmVideo(file, width, height, playTime, testType); in playModularDrmVideoWithRetries()
215 Log.w(TAG, "playVideoWithRetries(" + testType + ") failed on try " + i + in playModularDrmVideoWithRetries()
236 final Integer height, int playTime, ModularDrmTestType testType) throws Exception { in playLoadedModularDrmVideo() argument
238 switch (testType) { in playLoadedModularDrmVideo()
[all …]
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DUtils.java72 String testType = bundle.getString(TESTCASE_TYPE); in toBundleString() local
73 if (testType != null) { in toBundleString()
74 buf.append("testcase type = " + testType); in toBundleString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java202 private String getKeyName(int testType) { in getKeyName() argument
203 return testType == LOCKSCREEN ? LOCKSCREEN_KEY_NAME : FINGERPRINT_KEY_NAME; in getKeyName()
209 private void createKey(int testType) { in createKey() argument
216 builder = new KeyGenParameterSpec.Builder(getKeyName(testType), in createKey()
221 if (testType == LOCKSCREEN) { in createKey()
237 private SecretKey loadSecretKey(int testType) { in loadSecretKey() argument
241 return (SecretKey) keyStore.getKey(getKeyName(testType), null); in loadSecretKey()
/cts/tests/tests/assist/common/src/android/assist/common/
DUtils.java234 String testType = bundle.getString(TESTCASE_TYPE); in toBundleString() local
235 if (testType != null) { in toBundleString()
236 buf.append("testcase type = " + testType); in toBundleString()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java253 Utils.TestCaseType testType; field in MainInteractionSession.AsyncTaskArg
255 AsyncTaskArg setTestType(Utils.TestCaseType t) {testType = t; return this;} in setTestType()
273 arg.testType.toString()); in doInBackground()
274 switch (arg.testType) { in doInBackground()
318 Log.i(TAG, "Doing nothing for the testcase type: " + arg.testType); in doInBackground()
/cts/tools/utils/
DCollectAllTests.java111 final TestType testType = TestType.getTestType(androidMakeFile); in main() local
148 if (testType.type == TestType.HOST_SIDE_ONLY) { in main()
150 setAttribute(testPackageElem, ATTRIBUTE_JAR_PATH, testType.jarPath); in main()
153 if (testType.type == TestType.VM_HOST_TEST) { in main()
155 setAttribute(testPackageElem, ATTRIBUTE_JAR_PATH, testType.jarPath); in main()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseCursorTest.java74 public void setupTestType(int testType) { in setupTestType() argument
75 mTestType = testType; in setupTestType()