Home
last modified time | relevance | path

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

12345678910>>...39

/frameworks/av/services/mediaresourcemanager/test/
DServiceLog_test.cpp41 EXPECT_TRUE(logString.contains("log1")); in TEST_F()
46 EXPECT_TRUE(logString.contains(kTestLogPrefix)); in TEST_F()
47 EXPECT_TRUE(logString.contains("log1")); in TEST_F()
52 EXPECT_TRUE(logString.contains("log1")); in TEST_F()
53 EXPECT_TRUE(logString.contains("log2")); in TEST_F()
58 EXPECT_TRUE(logString.contains("log1")); in TEST_F()
59 EXPECT_TRUE(logString.contains("log2")); in TEST_F()
60 EXPECT_TRUE(logString.contains("log3")); in TEST_F()
65 EXPECT_FALSE(logString.contains("log1")); in TEST_F()
66 EXPECT_TRUE(logString.contains("log2")); in TEST_F()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DArrayUtilsTest.java49 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
58 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
59 assertTrue(collection.contains(b)); in testUnstableRemoveIf()
64 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
69 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
78 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
79 assertTrue(collection.contains(b)); in testUnstableRemoveIf()
80 assertTrue(collection.contains(c)); in testUnstableRemoveIf()
85 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
86 assertTrue(collection.contains(b)); in testUnstableRemoveIf()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java34 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A)); in testContains()
35 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B)); in testContains()
36 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C)); in testContains()
37 assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null)); in testContains()
39 assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null)); in testContains()
40 assertFalse(ArrayUtils.contains(new Object[] { }, null)); in testContains()
41 assertFalse(ArrayUtils.contains(new Object[] { null }, A)); in testContains()
85 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 1)); in testContainsInt()
86 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 2)); in testContainsInt()
87 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 3)); in testContainsInt()
[all …]
/frameworks/base/tools/aapt2/util/
DStringPiece_test.cpp71 EXPECT_TRUE(text.contains(startNeedle)); in TEST()
72 EXPECT_TRUE(text.contains(endNeedle)); in TEST()
73 EXPECT_TRUE(text.contains(middleNeedle)); in TEST()
74 EXPECT_TRUE(text.contains(emptyNeedle)); in TEST()
75 EXPECT_FALSE(text.contains(missingNeedle)); in TEST()
76 EXPECT_FALSE(text.contains(longNeedle)); in TEST()
86 EXPECT_TRUE(text16.contains(startNeedle16)); in TEST()
87 EXPECT_TRUE(text16.contains(endNeedle16)); in TEST()
88 EXPECT_TRUE(text16.contains(middleNeedle16)); in TEST()
89 EXPECT_TRUE(text16.contains(emptyNeedle16)); in TEST()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DHPRecommendationPlugin.java58 if (modelToUpper.contains(TAG_DESIGNJET)) { in isPrintSupported()
61 …!(modelToUpper.contains(TAG_LATEX) || modelToUpper.contains(TAG_SCITEX)) && !(modelToUpper.contain… in isPrintSupported()
74 if (modelToUpper.contains(supportedPrinter)) { in isSupportedDesignjet()
95 && (pdls.contains(PDL__PCL) in matchesCriteria()
96 || pdls.contains(PDL__PDF) in matchesCriteria()
97 || pdls.contains(PDL__PCLM) in matchesCriteria()
98 || pdls.contains(PDL__PWG_RASTER))); in matchesCriteria()
/frameworks/base/keystore/tests/src/android/security/
DKeyStoreTest.java166 assertFalse(mKeyStore.contains(TEST_KEYNAME)); in testPut()
174 assertFalse(mKeyStore.contains(TEST_KEYNAME, Process.WIFI_UID)); in testPut_grantedUid_Wifi()
177 assertFalse(mKeyStore.contains(TEST_KEYNAME, Process.WIFI_UID)); in testPut_grantedUid_Wifi()
181 assertTrue(mKeyStore.contains(TEST_KEYNAME, Process.WIFI_UID)); in testPut_grantedUid_Wifi()
185 assertFalse(mKeyStore.contains(TEST_KEYNAME, Process.BLUETOOTH_UID)); in testPut_ungrantedUid_Bluetooth()
188 assertFalse(mKeyStore.contains(TEST_KEYNAME, Process.BLUETOOTH_UID)); in testPut_ungrantedUid_Bluetooth()
192 assertFalse(mKeyStore.contains(TEST_KEYNAME, Process.BLUETOOTH_UID)); in testPut_ungrantedUid_Bluetooth()
198 assertFalse(mKeyStore.contains(TEST_I18N_KEY)); in testI18n()
202 assertTrue(mKeyStore.contains(TEST_I18N_KEY)); in testI18n()
224 assertTrue(mKeyStore.contains(TEST_KEYNAME, Process.WIFI_UID)); in testDelete_grantedUid_Wifi()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DIpPrefixTest.java218 assertTrue(p.contains(Address("2001:db8:f00::ace:d00c"))); in testContains()
219 assertTrue(p.contains(Address("2001:db8:f00::ace:d00d"))); in testContains()
220 assertFalse(p.contains(Address("2001:db8:f00::ace:d00e"))); in testContains()
221 assertFalse(p.contains(Address("2001:db8:f00::bad:d00d"))); in testContains()
222 assertFalse(p.contains(Address("2001:4868:4860::8888"))); in testContains()
223 assertFalse(p.contains(null)); in testContains()
224 assertFalse(p.contains(Address("8.8.8.8"))); in testContains()
227 assertTrue(p.contains(Address("192.0.2.43"))); in testContains()
228 assertTrue(p.contains(Address("192.0.3.21"))); in testContains()
229 assertFalse(p.contains(Address("192.0.0.21"))); in testContains()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNativeTest.java285 assertTrue(verboseFateString.contains("Frame direction: TX")); in testTxFateReportToVerboseStringWithPiiAllowed()
286 assertTrue(verboseFateString.contains("Frame timestamp: 12345")); in testTxFateReportToVerboseStringWithPiiAllowed()
287 assertTrue(verboseFateString.contains("Frame fate: sent")); in testTxFateReportToVerboseStringWithPiiAllowed()
288 assertTrue(verboseFateString.contains("Frame type: data")); in testTxFateReportToVerboseStringWithPiiAllowed()
289 assertTrue(verboseFateString.contains("Frame protocol: Ethernet")); in testTxFateReportToVerboseStringWithPiiAllowed()
290 assertTrue(verboseFateString.contains("Frame protocol type: N/A")); in testTxFateReportToVerboseStringWithPiiAllowed()
291 assertTrue(verboseFateString.contains("Frame length: 16")); in testTxFateReportToVerboseStringWithPiiAllowed()
292 assertTrue(verboseFateString.contains( in testTxFateReportToVerboseStringWithPiiAllowed()
305 assertTrue(verboseFateString.contains("Frame type: " in testTxFateReportToVerboseStringWithPiiAllowed()
317 assertTrue(verboseFateString.contains("Frame fate: " + fateMapping.mExpectedText)); in testTxFateReportToVerboseStringWithPiiAllowed()
[all …]
DWifiLoggerTest.java324 assertTrue(fateDumpString.contains("Last failed")); in dumpSucceedsWhenNoFatesHaveNotBeenFetched()
326 assertTrue(fateDumpString.contains( in dumpSucceedsWhenNoFatesHaveNotBeenFetched()
347 assertTrue(fateDumpString.contains("Last failed")); in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty()
349 assertTrue(fateDumpString.contains( in dumpSucceedsWhenFatesHaveBeenFetchedButAreEmpty()
398 assertTrue(dumpString.contains(WifiNative.FateReport.getTableHeader())); in dumpShowsTxAndRxFates()
403 assertFalse(dumpString.contains("VERBOSE PACKET FATE DUMP")); in dumpShowsTxAndRxFates()
404 assertFalse(dumpString.contains("Frame bytes")); in dumpShowsTxAndRxFates()
415 assertTrue(dumpString.contains(WifiNative.FateReport.getTableHeader())); in dumpShowsTxAndRxFatesVerbose()
420 assertTrue(dumpString.contains("VERBOSE PACKET FATE DUMP")); in dumpShowsTxAndRxFatesVerbose()
421 assertTrue(dumpString.contains("Frame bytes")); in dumpShowsTxAndRxFatesVerbose()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewAnimationsTest.java148 MatcherAssert.assertThat(animator.contains(vh, animator.mAnimateDisappearanceList), in changeAndDisappearTest()
150 MatcherAssert.assertThat(animator.contains(vh, animator.mAnimateChangeList), in changeAndDisappearTest()
152 MatcherAssert.assertThat(animator.contains(updatedVH[0], animator.mAnimateChangeList), in changeAndDisappearTest()
154 MatcherAssert.assertThat(animator.contains(updatedVH[0], in changeAndDisappearTest()
159 MatcherAssert.assertThat(mRecycled.contains(vh), CoreMatchers.is(true)); in changeAndDisappearTest()
161 MatcherAssert.assertThat(mRecyclerView.mRecycler.mCachedViews.contains(vh), in changeAndDisappearTest()
166 MatcherAssert.assertThat(mRecycled.contains(updatedVH[0]), CoreMatchers.is(false)); in changeAndDisappearTest()
167 MatcherAssert.assertThat(mRecyclerView.mRecycler.mCachedViews.contains(updatedVH[0]), in changeAndDisappearTest()
198 .contains("Two different ViewHolders have the same stable ID.")); in detectStableIdError()
247 assertFalse(itemAnimator.contains(target, itemAnimator.mAnimatePersistenceList)); in dontLayoutReusedViewWithoutPredictive()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java515 return antiBandingModes.contains(CameraMetadata.CONTROL_AE_ANTIBANDING_MODE_OFF); in isAntiBandingOffModeSupported()
542 Arrays.asList(boxedModes).contains(expectValue)); in getAvailableTestPatternModesChecked()
558 checkTrueForKey(key, "size should contain (0, 0)", sizeList.contains(new Size(0, 0))); in getAvailableThumbnailSizesChecked()
633 modeList.contains(CameraMetadata.HOT_PIXEL_MODE_FAST)); in getAvailableHotPixelModesChecked()
668 modeList.contains(CameraMetadata.STATISTICS_FACE_DETECT_MODE_OFF)); in getAvailableFaceDetectModesChecked()
691 if (faceDetectModes.contains(CameraMetadata.STATISTICS_FACE_DETECT_MODE_OFF) && in getMaxFaceCountChecked()
725 modeList.contains(CameraMetadata.TONEMAP_MODE_FAST)); in getAvailableToneMapModesChecked()
757 modeList.contains(CameraMetadata.TONEMAP_MODE_CONTRAST_CURVE) || in getMaxTonemapCurvePointChecked()
758 modeList.contains(CameraMetadata.TONEMAP_MODE_GAMMA_VALUE) || in getMaxTonemapCurvePointChecked()
759 modeList.contains(CameraMetadata.TONEMAP_MODE_PRESET_CURVE); in getMaxTonemapCurvePointChecked()
[all …]
DAssertHelpers.java187 boolean contains = false; in assertCollectionContainsAnyOf()
190 contains = actual.contains(check); in assertCollectionContainsAnyOf()
191 if (contains) { in assertCollectionContainsAnyOf()
197 if (!contains) { in assertCollectionContainsAnyOf()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java83 + " framework.", Settings.System.PUBLIC_SETTINGS.contains(testKey)); in testRowNameContentUriForSystem()
222 .contains("test1")); in testParseProviderList()
227 .contains("test1")); in testParseProviderList()
229 .contains("test2")); in testParseProviderList()
234 .contains("test1")); in testParseProviderList()
236 .contains("test2")); in testParseProviderList()
238 .contains("test3")); in testParseProviderList()
243 .contains("test1")); in testParseProviderList()
248 .contains("test2")); in testParseProviderList()
250 .contains("test3")); in testParseProviderList()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DBakedOpStateTests.cpp106 EXPECT_TRUE(state.clippedBounds.contains(49.5f, 49.5f, 150.5f, 150.5f)); in __anon460eaaef0202()
107 EXPECT_TRUE(Rect(49, 49, 151, 151).contains(state.clippedBounds)); in __anon460eaaef0202()
125 EXPECT_TRUE(state.clippedBounds.contains(149.5f, 149.5f, 200, 200)); in __anon460eaaef0502()
126 EXPECT_TRUE(Rect(149, 149, 200, 200).contains(state.clippedBounds)); in __anon460eaaef0502()
131 EXPECT_TRUE(state.clippedBounds.contains(120, 120, 200, 200)); in __anon460eaaef0602()
132 EXPECT_TRUE(Rect(119, 119, 200, 200).contains(state.clippedBounds)); in __anon460eaaef0602()
144 EXPECT_TRUE(state.clippedBounds.contains(24.5f, 24.5f, 75.5f, 75.5f)); in __anon460eaaef0802()
145 EXPECT_TRUE(Rect(24, 24, 76, 76).contains(state.clippedBounds)); in __anon460eaaef0802()
150 EXPECT_TRUE(state.clippedBounds.contains(19.5f, 19.5f, 80.5f, 80.5f)); in __anon460eaaef0902()
151 EXPECT_TRUE(Rect(19, 19, 81, 81).contains(state.clippedBounds)); in __anon460eaaef0902()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
DSortedListTest.java124 assertTrue(mAdditions.contains(new Pair(0, 1))); in testAdd()
129 assertTrue(mAdditions.contains(new Pair(1, 1))); in testAdd()
135 assertTrue(mAdditions.contains(new Pair(0, 1))); in testAdd()
158 assertTrue(mRemovals.contains(new Pair(0, 1))); in testRemove()
192 assertTrue(mAdditions.contains(new Pair(0, 5))); in testBatch()
251 assertTrue(copy.contains(mList.get(index))); in testRandom()
346 assertTrue(mAdditions.contains(new Pair(0, 5))); in testAddAllMerge()
356 assertTrue(mAdditions.contains(new Pair(5, 5))); in testAddAllMerge()
362 assertTrue(mAdditions.contains(new Pair(10, 5))); in testAddAllMerge()
370 assertTrue(mAdditions.contains(new Pair(i, 1))); in testAddAllMerge()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java78 if (packageNames.contains(packageName)) { in setDefaultDialerApplication()
124 if (packageNames.contains(defaultPackageName)) { in getDefaultDialerApplication()
136 if (packageNames.contains(systemDialerPackageName)) { in getDefaultDialerApplication()
166 if (activityInfo != null && !packageNames.contains(activityInfo.packageName)) { in getInstalledDialerApplications()
221 if (info != null && packageNames.contains(info.packageName) in filterByIntent()
222 && !result.contains(info.packageName)) { in filterByIntent()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java123 assertTrue(FileUtils.contains(new File("/"), new File("/moo.txt"))); in testContains()
124 assertTrue(FileUtils.contains(new File("/"), new File("/"))); in testContains()
126 assertTrue(FileUtils.contains(new File("/sdcard"), new File("/sdcard"))); in testContains()
127 assertTrue(FileUtils.contains(new File("/sdcard/"), new File("/sdcard/"))); in testContains()
129 assertTrue(FileUtils.contains(new File("/sdcard"), new File("/sdcard/moo.txt"))); in testContains()
130 assertTrue(FileUtils.contains(new File("/sdcard/"), new File("/sdcard/moo.txt"))); in testContains()
132 assertFalse(FileUtils.contains(new File("/sdcard"), new File("/moo.txt"))); in testContains()
133 assertFalse(FileUtils.contains(new File("/sdcard/"), new File("/moo.txt"))); in testContains()
135 assertFalse(FileUtils.contains(new File("/sdcard"), new File("/sdcard.txt"))); in testContains()
136 assertFalse(FileUtils.contains(new File("/sdcard/"), new File("/sdcard.txt"))); in testContains()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DRoundRectangle.java143 public boolean contains(double x, double y) { in contains() method in RoundRectangle
238 if ((close.contains(x0class) && far.contains(x1class)) || (close.contains(y0class) && in intersects()
239 far.contains(y1class))) { in intersects()
274 public boolean contains(double x, double y, double w, double h) { in contains() method in RoundRectangle
278 return (contains(x, y) && in contains()
279 contains(x + w, y) && in contains()
280 contains(x, y + h) && in contains()
281 contains(x + w, y + h)); in contains()
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetActivityTest.java81 assertTrue(children.contains(a1)); in testGetChildAnimations()
82 assertTrue(children.contains(a2)); in testGetChildAnimations()
83 assertTrue(children.contains(a3)); in testGetChildAnimations()
89 assertTrue(children.contains(a1)); in testGetChildAnimations()
90 assertTrue(children.contains(a2)); in testGetChildAnimations()
91 assertTrue(children.contains(a3)); in testGetChildAnimations()
98 assertTrue(s3Children.contains(a1)); in testGetChildAnimations()
99 assertTrue(s3Children.contains(a2)); in testGetChildAnimations()
100 assertTrue(s3Children.contains(a3)); in testGetChildAnimations()
101 assertTrue(s3Children.contains(s1)); in testGetChildAnimations()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteService.java272 if (mProviderList.contains(provider)) { in openInputBridge()
283 if (mProviderList.contains(provider)) { in closeInputBridge()
294 if (mProviderList.contains(provider)) { in clearInputBridge()
303 if (mProviderList.contains(provider)) { in sendTimeStamp()
315 if (mProviderList.contains(provider)) { in sendKeyDown()
327 if (mProviderList.contains(provider)) { in sendKeyUp()
340 if (mProviderList.contains(provider)) { in sendPointerDown()
352 if (mProviderList.contains(provider)) { in sendPointerUp()
362 if (mProviderList.contains(provider)) { in sendPointerSync()
/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java177 public static <T> boolean contains(@Nullable T[] array, T value) { in contains() method in ArrayUtils
199 if (!contains(array, checkItem)) { in containsAll()
212 if (contains(array, checkItem)) { in containsAny()
219 public static boolean contains(@Nullable int[] array, int value) { in contains() method in ArrayUtils
229 public static boolean contains(@Nullable long[] array, long value) { in contains() method in ArrayUtils
266 if (contains(array, element)) return array; in appendElement()
284 if (!contains(array, element)) return array; in removeElement()
438 public static <T> boolean contains(@Nullable ArraySet<T> cur, T val) { in contains() method in ArrayUtils
439 return (cur != null) ? cur.contains(val) : false; in contains()
462 public static <T> boolean contains(@Nullable Collection<T> cur, T val) { in contains() method in ArrayUtils
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DObservableArrayMapTest.java121 assertTrue(mNotifications.contains("Hello")); in testPutAll()
122 assertTrue(mNotifications.contains("Goodbye")); in testPutAll()
137 assertTrue(mNotifications.contains("Hello")); in testPutAllSimpleArrayMap()
138 assertTrue(mNotifications.contains("Goodbye")); in testPutAllSimpleArrayMap()
165 assertTrue(mNotifications.contains("Hello")); in testRemoveAll()
166 assertTrue(mNotifications.contains("Goodbye")); in testRemoveAll()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardSourceDetector.java127 if (WINDOWS_MOBILE_PHONE_SIGNS.contains(propertyName)) { in onPropertyCreated()
129 } else if (FOMA_SIGNS.contains(propertyName)) { in onPropertyCreated()
131 } else if (JAPANESE_MOBILE_PHONE_SIGNS.contains(propertyName)) { in onPropertyCreated()
133 } else if (APPLE_SIGNS.contains(propertyName)) { in onPropertyCreated()
/frameworks/base/core/java/android/hardware/camera2/utils/
DListUtils.java34 return list.contains(needle); in listContains()
47 return (list.size() == 1 && list.contains(single)); in listElementsEqualTo()
93 if (list.contains(choice)) { in listSelectFirstFrom()
/frameworks/base/core/tests/coretests/src/android/net/http/
DCookiesTest.java66 assertTrue(log, log.contains("password")); in testCookiesAreNotLogged()
67 assertTrue(log, log.contains("fake.domain")); in testCookiesAreNotLogged()
68 assertFalse(log, log.contains("secret")); in testCookiesAreNotLogged()
106 assertTrue(headers.toString(), headers.contains(header)); in assertContains()

12345678910>>...39