Home
last modified time | relevance | path

Searched refs:contains (Results 1 – 25 of 198) sorted by relevance

12345678

/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DVerbosityTest.java23 assertTrue(v0.contains("Events injected")); in testVerbosity()
24 assertFalse(v0.contains("Sending Touch")); in testVerbosity()
25 assertFalse(v0.contains("Sending Trackball")); in testVerbosity()
26 assertFalse(v0.contains("Switch")); in testVerbosity()
27 assertFalse(v0.contains("Sleeping")); in testVerbosity()
30 assertTrue(v1.contains("Events injected")); in testVerbosity()
31 assertTrue(v1.contains("Sending Touch")); in testVerbosity()
32 assertTrue(v1.contains("Sending Trackball")); in testVerbosity()
33 assertTrue(v1.contains("Switch")); in testVerbosity()
34 assertFalse(v1.contains("Sleeping")); in testVerbosity()
[all …]
DCategoryTest.java23 assertTrue(out.contains("cmp=com.android.cts.monkey/.MonkeyActivity")); in testDefaultCategories()
24 assertTrue(out.contains("cmp=com.android.cts.monkey/.BaboonActivity")); in testDefaultCategories()
30 assertTrue(out.contains("cmp=com.android.cts.monkey/.MonkeyActivity")); in testSingleCategory()
31 assertFalse(out.contains("cmp=com.android.cts.monkey/.BaboonActivity")); in testSingleCategory()
35 assertFalse(out.contains("cmp=com.android.cts.monkey/.MonkeyActivity")); in testSingleCategory()
36 assertTrue(out.contains("cmp=com.android.cts.monkey/.BaboonActivity")); in testSingleCategory()
43 assertTrue(out.contains("cmp=com.android.cts.monkey/.MonkeyActivity")); in testMultipleCategories()
44 assertTrue(out.contains("cmp=com.android.cts.monkey/.BaboonActivity")); in testMultipleCategories()
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java77 assertTrue(cookie.contains("a=b;")); in testDomain()
78 assertTrue(cookie.contains("c=d")); in testDomain()
88 assertTrue(cookie.contains("a=b")); in testDomain()
89 assertTrue(cookie.contains("c=d")); in testDomain()
90 assertTrue(cookie.contains("e=f")); in testDomain()
93 assertTrue(cookie.contains("c=d")); in testDomain()
94 assertTrue(cookie.contains("e=f")); in testDomain()
115 assertTrue(cookie.contains("a=1")); in testSubDomain()
116 assertTrue(cookie.contains("b=2")); in testSubDomain()
117 assertTrue(cookie.contains("c=3")); in testSubDomain()
[all …]
DCookieManagerTest.java168 return mCookieManager.getCookie(url).contains(cookie); in testSetCookieNullCallback()
204 assertTrue(allCookies.contains(sessionCookie)); in testRemoveCookies()
205 assertTrue(allCookies.contains(longCookie)); in testRemoveCookies()
206 assertTrue(allCookies.contains(quickCookie)); in testRemoveCookies()
210 assertFalse(allCookies.contains(sessionCookie)); in testRemoveCookies()
211 assertTrue(allCookies.contains(longCookie)); in testRemoveCookies()
212 assertTrue(allCookies.contains(quickCookie)); in testRemoveCookies()
217 assertFalse(allCookies.contains(sessionCookie)); in testRemoveCookies()
218 assertTrue(allCookies.contains(longCookie)); in testRemoveCookies()
219 assertFalse(allCookies.contains(quickCookie)); in testRemoveCookies()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DMailToTest.java65 assertTrue(stringUrl.contains("to=infobot%40example.com&")); in testParseMailToURI()
66 assertTrue(stringUrl.contains("subject=current-issue&")); in testParseMailToURI()
78 assertTrue(stringUrl.contains("to=infobot%40example.com&")); in testParseMailToURI()
79 assertTrue(stringUrl.contains("body=send%20current-issue&")); in testParseMailToURI()
91 assertTrue(stringUrl.contains("to=infobot%40example.com&")); in testParseMailToURI()
92 assertTrue(stringUrl.contains("body=send%20current-issue%0D%0Asend%20index&")); in testParseMailToURI()
106 assertTrue(stringUrl.contains("cc=bob%40example.com&")); in testParseMailToURI()
107 assertTrue(stringUrl.contains("body=hello&")); in testParseMailToURI()
108 assertTrue(stringUrl.contains("to=joe%40example.com&")); in testParseMailToURI()
121 assertTrue(stringUrl.contains("cc=bob%40example.com&")); in testParseMailToURI()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionTest.java104 assertTrue(mRegion.contains(area[i][0], area[i][1])); in assertPointsInsideRegion()
110 assertFalse(mRegion.contains(area[i][0], area[i][1])); in assertPointsOutsideRegion()
229 assertTrue(mRegion.contains(6, 6)); in testUnion()
231 assertTrue(mRegion.contains(6, 6)); in testUnion()
235 assertTrue(mRegion.contains(2, 2)); in testUnion()
236 assertTrue(mRegion.contains(6, 6)); in testUnion()
243 assertTrue(mRegion.contains(2, 2)); in testUnion()
244 assertFalse(mRegion.contains(21, 21)); in testUnion()
251 assertTrue(mRegion.contains(2, 2)); in testUnion()
252 assertFalse(mRegion.contains(41, 41)); in testUnion()
[all …]
DRectTest.java287 assertFalse(mRect.contains(0, 0)); in testContains1()
288 assertTrue(mRect.contains(1, 1)); in testContains1()
289 assertTrue(mRect.contains(19, 19)); in testContains1()
290 assertFalse(mRect.contains(20, 20)); in testContains1()
297 assertTrue(mRect.contains(1, 1, 20, 20)); in testContains2()
298 assertTrue(mRect.contains(2, 2, 19, 19)); in testContains2()
299 assertFalse(mRect.contains(21, 21, 22, 22)); in testContains2()
300 assertFalse(mRect.contains(0, 0, 19, 19)); in testContains2()
309 assertTrue(mRect.contains(rect)); in testContains3()
311 assertTrue(mRect.contains(rect)); in testContains3()
[all …]
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureStorageTester.java60 assertTrue(mFixture.getGestureEntries().contains(TEST_GESTURE_NAME)); in testGetGestureEntries()
86 assertFalse(mFixture.getGestures(TEST_GESTURE_NAME).contains(mAnotherGesture)); in testRemoveGesture()
90 assertFalse(mFixture.getGestureEntries().contains(TEST_GESTURE_NAME)); in testRemoveGesture()
100 assertFalse(mFixture.getGestureEntries().contains(TEST_GESTURE_NAME)); in testRemoveEntry()
111 assertTrue(mFixture.getGestures(TEST_GESTURE_NAME).contains(mLineGesture)); in testGetGestures()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DEventOrderingVerificationTest.java67 assertTrue(indices.contains(2)); in testSingleOutofOrder()
84 assertTrue(indices.contains(1)); in testMultipleOutOfOrder()
85 assertTrue(indices.contains(2)); in testMultipleOutOfOrder()
86 assertTrue(indices.contains(3)); in testMultipleOutOfOrder()
87 assertTrue(indices.contains(4)); in testMultipleOutOfOrder()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContentRatingTest.java45 subRatings.contains(SUB_RATING_1)); in testCreateRating()
47 subRatings.contains(SUB_RATING_2)); in testCreateRating()
67 subRatings.contains(SUB_RATING_1)); in testFlattenAndUnflatten()
69 subRatings.contains(SUB_RATING_2)); in testFlattenAndUnflatten()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
DSensorOperationTest.java66 assertTrue(op.getStats().flatten().keySet().contains(SensorStats.ERROR)); in testFakeSensorOperation()
121 assertTrue(statsKeys.contains(String.format("%s_%03d%sexecuted",
154 assertTrue(statsKeys.contains(String.format("%s_%03d%sexecuted",
157 assertTrue(statsKeys.contains(String.format("%s_%03d%s%s",
163 assertTrue(statsKeys.contains(SensorStats.ERROR));
195 assertTrue(statsKeys.contains(String.format("%s_%03d%sexecuted",
222 assertTrue(statsKeys.contains(String.format("%s_%03d%sexecuted",
277 assertTrue(statsKeys.contains(String.format("%s_%03d%sexecuted",
280 assertTrue(statsKeys.contains(String.format("%s_%03d%s%s",
283 assertTrue(statsKeys.contains(SensorStats.ERROR));
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DConferenceTest.java72 if (!(conf.getChildren().contains(mCall1) && conf.getChildren().contains(mCall2))) { in testConferenceCreate()
75 assertTrue(mConferenceObject.getConnections().contains(mConnection1)); in testConferenceCreate()
89 if (!(mCall1.getParent() == conf) && (conf.getChildren().contains(mCall1))) { in testConferenceSplit()
92 assertTrue(mConferenceObject.getConnections().contains(mConnection1)); in testConferenceSplit()
96 if ((mCall1.getParent() == conf) || (conf.getChildren().contains(mCall1))) { in testConferenceSplit()
99 assertFalse(mConferenceObject.getConnections().contains(mConnection1)); in testConferenceSplit()
167 assertFalse(conf.getConferenceableCalls().contains(newCall)); in testConferenceSetters()
184 assertFalse(conf.getChildren().contains(newCall)); in testConferenceSetters()
188 assertTrue(conf.getChildren().contains(newCall)); in testConferenceSetters()
232 assertFalse(conf.getChildren().contains(newCall)); in testConferenceAddAndRemoveConnection()
[all …]
DConnectionServiceTest.java72 assertTrue(connections.contains(connection1)); in testGetAllConnections()
85 assertTrue(connections.contains(connection2)); in testGetAllConnections()
92 assertTrue(connections.contains(connection3)); in testGetAllConnections()
/cts/tools/signature-tools/test/signature/converter/
DConvertEnumTest.java71 assertTrue(constantNames.contains("ONE")); in testEnum1()
72 assertTrue(constantNames.contains("TWO")); in testEnum1()
73 assertTrue(constantNames.contains("THREE")); in testEnum1()
143 assertTrue(c.getModifiers().contains(Modifier.PUBLIC)); in testEnum3()
144 assertFalse(c.getModifiers().contains(Modifier.STATIC)); in testEnum3()
145 assertTrue(c.getModifiers().contains(Modifier.FINAL)); in testEnum3()
186 assertTrue(c.getModifiers().contains(Modifier.PUBLIC)); in testEnum4()
187 assertFalse(c.getModifiers().contains(Modifier.STATIC)); in testEnum4()
188 assertFalse(c.getModifiers().contains(Modifier.FINAL)); in testEnum4()
DConvertClassTest.java74 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassClassTest()
85 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassInterfaceTest()
96 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassEnumTest()
107 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertClassAnnotationTest()
118 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertAnnotationTest()
137 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertAnnotationOnFieldTest()
154 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertGenericClass0()
173 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertGenericClass00()
192 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertGenericClass1()
218 assertTrue(sigClass.getModifiers().contains(Modifier.PUBLIC)); in convertGenericClass2()
[all …]
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DCtsXmlResultReporterTest.java129 expectedTestOutput, actualOutput), actualOutput.contains(expectedTestOutput)); in testEmptyGeneration()
131 expectedTestOutput, actualOutput), actualOutput.contains(expectedSummaryOutput)); in testEmptyGeneration()
153 assertTrue(output.contains( in testSinglePass()
155 assertTrue(output.contains("<TestPackage name=\"\" appPackageName=\"run\" abi=\"" + in testSinglePass()
157 assertTrue(output.contains("<TestCase name=\"FooTest\" priority=\"\">")); in testSinglePass()
161 assertTrue(output.contains(testCaseTag)); in testSinglePass()
184 assertTrue(output.contains( in testSingleFail()
189 assertTrue(output.contains(failureTag)); in testSingleFail()
193 assertFalse(output, output.contains(testLogTag)); in testSingleFail()
222 assertTrue(output, output.contains(testLogTag)); in testIncludeTestLogTags()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DBuildTest.java61 assertTrue(abiList.contains(abi)); in testCpuAbiCommon()
67 assertTrue(abiList.contains(abi)); in testCpuAbiCommon()
72 assertTrue(abiList.contains(Build.CPU_ABI)); in testCpuAbiCommon()
74 assertTrue(abiList.contains(Build.CPU_ABI2)); in testCpuAbiCommon()
80 assertTrue(abi32.contains(Build.CPU_ABI)); in testCpuAbi32()
83 assertTrue(abi32.contains(Build.CPU_ABI2)); in testCpuAbi32()
89 assertTrue(abi64.contains(Build.CPU_ABI)); in testCpuAbi64()
92 assertTrue(abi64.contains(Build.CPU_ABI2)); in testCpuAbi64()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWipeDataTest.java49 assertTrue(mUserManager.getUserProfiles().contains(currentUser)); in testWipeData()
58 if (!mUserManager.getUserProfiles().contains(currentUser)) { in testWipeData()
65 assertFalse(mUserManager.getUserProfiles().contains(currentUser)); in testWipeData()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java512 return antiBandingModes.contains(CameraMetadata.CONTROL_AE_ANTIBANDING_MODE_OFF); in isAntiBandingOffModeSupported()
539 Arrays.asList(boxedModes).contains(expectValue)); in getAvailableTestPatternModesChecked()
555 checkTrueForKey(key, "size should contain (0, 0)", sizeList.contains(new Size(0, 0))); in getAvailableThumbnailSizesChecked()
630 modeList.contains(CameraMetadata.HOT_PIXEL_MODE_FAST)); in getAvailableHotPixelModesChecked()
665 modeList.contains(CameraMetadata.STATISTICS_FACE_DETECT_MODE_OFF)); in getAvailableFaceDetectModesChecked()
688 if (faceDetectModes.contains(CameraMetadata.STATISTICS_FACE_DETECT_MODE_OFF) && in getMaxFaceCountChecked()
722 modeList.contains(CameraMetadata.TONEMAP_MODE_FAST)); in getAvailableToneMapModesChecked()
754 modeList.contains(CameraMetadata.TONEMAP_MODE_CONTRAST_CURVE) || in getMaxTonemapCurvePointChecked()
755 modeList.contains(CameraMetadata.TONEMAP_MODE_GAMMA_VALUE) || in getMaxTonemapCurvePointChecked()
756 modeList.contains(CameraMetadata.TONEMAP_MODE_PRESET_CURVE); in getMaxTonemapCurvePointChecked()
[all …]
DAssertHelpers.java181 boolean contains = false; in assertCollectionContainsAnyOf()
184 contains = actual.contains(check); in assertCollectionContainsAnyOf()
185 if (contains) { in assertCollectionContainsAnyOf()
191 if (!contains) { in assertCollectionContainsAnyOf()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteFtsTest.java68 assertTrue(cursor.getString(0).contains(">TECHnology<")); in testFts3Porter()
70 assertTrue(cursor.getString(0).contains(">technologies<")); in testFts3Porter()
84 assertTrue(cursor.getString(0).contains(">TECHnology<")); in testFts3Simple()
98 assertTrue(cursor.getString(0).contains(">TECHnology<")); in testFts4Simple()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DStubTextToSpeechService.java57 if (supportedCountries.contains(new Locale(lang, country))) { in onIsLanguageAvailable()
60 if (supportedLanguages.contains(new Locale(lang))) { in onIsLanguageAvailable()
105 if (supportedCountries.contains(locale)) { in onGetDefaultVoiceNameFor()
109 if (GBFallbacks.contains(new Locale(lang, country))) { in onGetDefaultVoiceNameFor()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DTestFilter.java150 if (mExcludedClasses.contains(test.getClassName())) { in filter()
154 if (mExcludedTests.contains(test)) { in filter()
159 && !(mIncludedClasses.contains(test.getClassName()) in filter()
160 || mIncludedTests.contains(test))) { in filter()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DSamplerTest.java55 boolean contains(Sampler.Value[] array, Sampler.Value val) { in contains() method in SamplerTest
74 boolean validMin = contains(mMinValues, minV); in testSamplerBuilder()
75 boolean validMag = contains(mMagValues, magV); in testSamplerBuilder()
76 boolean validS = contains(mWrapValues, wrapSV); in testSamplerBuilder()
77 boolean validT = contains(mWrapValues, wrapTV); in testSamplerBuilder()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DStaticMetadataTest.java78 availableCaps.contains(REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE) || in testHwSupportedLevel()
79 availableCaps.contains(REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT) ); in testHwSupportedLevel()
84 availableCaps.contains(REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR)); in testHwSupportedLevel()
86 availableCaps.contains( in testHwSupportedLevel()
89 availableCaps.contains(REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE)); in testHwSupportedLevel()
98 availableCaps.contains(REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE)); in testHwSupportedLevel()
101 if (availableCaps.contains(REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR)) { in testHwSupportedLevel()
104 … availableCaps.contains(REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS)); in testHwSupportedLevel()
158 boolean isCapabilityAvailable = availableCaps.contains(capability); in testCapabilities()
337 modeList.contains(CameraMetadata.TONEMAP_MODE_CONTRAST_CURVE); in validateCapability()
[all …]

12345678