Home
last modified time | relevance | path

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

12345678910>>...48

/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/cmds/statsd/tests/
Dindexed_priority_queue_test.cpp130 EXPECT_TRUE(ipq.contains(aa4_a)); in TEST()
131 EXPECT_FALSE(ipq.contains(aa4_b)); in TEST()
135 EXPECT_TRUE(ipq.contains(aa4_a)); in TEST()
136 EXPECT_FALSE(ipq.contains(aa4_b)); in TEST()
140 EXPECT_TRUE(ipq.contains(aa4_a)); in TEST()
141 EXPECT_TRUE(ipq.contains(aa4_b)); in TEST()
154 EXPECT_TRUE(ipq.contains(aa4)); in TEST()
155 EXPECT_FALSE(ipq.contains(aa5)); in TEST()
168 EXPECT_TRUE(ipq.contains(aa4_a)); in TEST()
169 EXPECT_TRUE(ipq.contains(aa4_b)); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DArrayUtilsTest.java51 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
60 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
61 assertTrue(collection.contains(b)); in testUnstableRemoveIf()
66 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
71 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
80 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
81 assertTrue(collection.contains(b)); in testUnstableRemoveIf()
82 assertTrue(collection.contains(c)); in testUnstableRemoveIf()
87 assertTrue(collection.contains(a)); in testUnstableRemoveIf()
88 assertTrue(collection.contains(b)); in testUnstableRemoveIf()
[all …]
/frameworks/base/libs/androidfw/tests/
DStringPiece_test.cpp72 EXPECT_TRUE(text.contains(start_needle)); in TEST()
73 EXPECT_TRUE(text.contains(end_needle)); in TEST()
74 EXPECT_TRUE(text.contains(middle_needle)); in TEST()
75 EXPECT_TRUE(text.contains(empty_needle)); in TEST()
76 EXPECT_FALSE(text.contains(missing_needle)); in TEST()
77 EXPECT_FALSE(text.contains(long_needle)); in TEST()
87 EXPECT_TRUE(text16.contains(start_needle16)); in TEST()
88 EXPECT_TRUE(text16.contains(end_needle16)); in TEST()
89 EXPECT_TRUE(text16.contains(middle_needle16)); in TEST()
90 EXPECT_TRUE(text16.contains(empty_needle16)); in TEST()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCbGeoUtilsTest.java129 assertThat(polygon.contains(new LatLng(0, 0))).isTrue(); in testPointInPolygon()
131 assertThat(polygon.contains(new LatLng(0.5, 0.5))).isTrue(); in testPointInPolygon()
133 assertThat(polygon.contains(new LatLng(-2, -1))).isFalse(); in testPointInPolygon()
135 assertThat(polygon.contains(new LatLng(1.0001, 1.0001))).isFalse(); in testPointInPolygon()
152 assertThat(polygon.contains(new LatLng(68.65294, 177.16205))).isTrue(); in testPointInPolygon_crossing180thMeridian()
153 assertThat(polygon.contains(new LatLng(68.60522, 178.83294))).isTrue(); in testPointInPolygon_crossing180thMeridian()
154 assertThat(polygon.contains(new LatLng(68.63098, -179.90943))).isTrue(); in testPointInPolygon_crossing180thMeridian()
155 assertThat(polygon.contains(new LatLng(67.51219, -179.74427))).isTrue(); in testPointInPolygon_crossing180thMeridian()
156 assertThat(polygon.contains(new LatLng(67.91933, 179.46802))).isTrue(); in testPointInPolygon_crossing180thMeridian()
159 assertThat(polygon.contains(new LatLng(67.50498, -179.48277))).isFalse(); in testPointInPolygon_crossing180thMeridian()
[all …]
DPhoneSubInfoControllerTest.java116 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
124 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
136 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
144 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
157 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
165 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
197 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
205 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
217 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
225 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java35 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A)); in testContains()
36 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B)); in testContains()
37 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C)); in testContains()
38 assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null)); in testContains()
40 assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null)); in testContains()
41 assertFalse(ArrayUtils.contains(new Object[] { }, null)); in testContains()
42 assertFalse(ArrayUtils.contains(new Object[] { null }, A)); in testContains()
86 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 1)); in testContainsInt()
87 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 2)); in testContainsInt()
88 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 3)); in testContainsInt()
[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/services/tests/wmtests/src/com/android/server/wm/
DWindowTraceBufferTest.java98 mBuffer.contains(toWrite1Bytes)); in test_addItemMustOverwriteOne()
103 mBuffer.contains(toWrite1Bytes)); in test_addItemMustOverwriteOne()
105 mBuffer.contains(toWrite2Bytes)); in test_addItemMustOverwriteOne()
110 !mBuffer.contains(toWrite1Bytes)); in test_addItemMustOverwriteOne()
112 mBuffer.contains(toWrite2Bytes)); in test_addItemMustOverwriteOne()
114 mBuffer.contains(toWrite3Bytes)); in test_addItemMustOverwriteOne()
138 mBuffer.contains(toWriteSmall1Bytes)); in test_addItemMustOverwriteMultiple()
143 mBuffer.contains(toWriteSmall1Bytes)); in test_addItemMustOverwriteMultiple()
145 mBuffer.contains(toWriteSmall2Bytes)); in test_addItemMustOverwriteMultiple()
150 !mBuffer.contains(toWriteSmall1Bytes)); in test_addItemMustOverwriteMultiple()
[all …]
DWindowProcessControllerMapTests.java92 assertTrue(uid1processes.contains(pid1uid1)); in testAdditionsAndRemovals()
93 assertTrue(uid1processes.contains(pid2uid1)); in testAdditionsAndRemovals()
99 assertTrue(uid1processes.contains(pid1uid1)); in testAdditionsAndRemovals()
100 assertFalse(uid1processes.contains(pid2uid1)); in testAdditionsAndRemovals()
101 assertTrue(uid1processes.contains(pid3uid1)); in testAdditionsAndRemovals()
106 assertTrue(uid2processes.contains(pid4uid2)); in testAdditionsAndRemovals()
120 assertTrue(uid1processes.contains(pid1uid1)); in testReplacement()
126 assertTrue(uid2processes.contains(pid1uid2)); in testReplacement()
DRecentTasksTest.java146 assertThat(mCallbacksRecorder.mAdded).contains(mTasks.get(0)); in testCallbacks()
147 assertThat(mCallbacksRecorder.mAdded).contains(mTasks.get(1)); in testCallbacks()
157 assertThat(mCallbacksRecorder.mRemoved).contains(mTasks.get(0)); in testCallbacks()
158 assertThat(mCallbacksRecorder.mRemoved).contains(mTasks.get(1)); in testCallbacks()
178 assertThat(mCallbacksRecorder.mAdded).contains(documentTask1); in testAddTasksNoMultiple_expectNoTrim()
179 assertThat(mCallbacksRecorder.mAdded).contains(documentTask2); in testAddTasksNoMultiple_expectNoTrim()
181 assertThat(mCallbacksRecorder.mRemoved).contains(documentTask1); in testAddTasksNoMultiple_expectNoTrim()
194 assertThat(mCallbacksRecorder.mAdded).contains(documentTask1); in testAddTasksMaxTaskRecents_expectNoTrim()
195 assertThat(mCallbacksRecorder.mAdded).contains(documentTask2); in testAddTasksMaxTaskRecents_expectNoTrim()
197 assertThat(mCallbacksRecorder.mRemoved).contains(documentTask1); in testAddTasksMaxTaskRecents_expectNoTrim()
[all …]
/frameworks/base/core/java/android/database/
DTranslatingCursor.java77 if (ArrayUtils.contains(config.translateColumns, columnName)) { in TranslatingCursor()
106 || ArrayUtils.contains(projectionIn, config.auxiliaryColumn); in query()
148 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getDouble()
157 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getFloat()
166 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getInt()
175 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getLong()
184 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getShort()
193 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getString()
203 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in copyStringToBuffer()
212 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getBlob()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManager.java133 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles()
139 if (mA2dpSinkProfile == null && supportedList.contains(BluetoothProfile.A2DP_SINK)) { in updateLocalProfiles()
145 if (mHeadsetProfile == null && supportedList.contains(BluetoothProfile.HEADSET)) { in updateLocalProfiles()
153 if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) { in updateLocalProfiles()
161 if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) { in updateLocalProfiles()
167 if (mMapProfile == null && supportedList.contains(BluetoothProfile.MAP)) { in updateLocalProfiles()
172 if (mOppProfile == null && supportedList.contains(BluetoothProfile.OPP)) { in updateLocalProfiles()
178 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles()
185 if (mHidProfile == null && supportedList.contains(BluetoothProfile.HID_HOST)) { in updateLocalProfiles()
191 if (mHidDeviceProfile == null && supportedList.contains(BluetoothProfile.HID_DEVICE)) { in updateLocalProfiles()
[all …]
/frameworks/base/tests/net/common/java/android/net/
DIpPrefixTest.java221 assertTrue(p.contains(address("2001:db8:f00::ace:d00c"))); in testContainsInetAddress()
222 assertTrue(p.contains(address("2001:db8:f00::ace:d00d"))); in testContainsInetAddress()
223 assertFalse(p.contains(address("2001:db8:f00::ace:d00e"))); in testContainsInetAddress()
224 assertFalse(p.contains(address("2001:db8:f00::bad:d00d"))); in testContainsInetAddress()
225 assertFalse(p.contains(address("2001:4868:4860::8888"))); in testContainsInetAddress()
226 assertFalse(p.contains(address("8.8.8.8"))); in testContainsInetAddress()
229 assertTrue(p.contains(address("192.0.2.43"))); in testContainsInetAddress()
230 assertTrue(p.contains(address("192.0.3.21"))); in testContainsInetAddress()
231 assertFalse(p.contains(address("192.0.0.21"))); in testContainsInetAddress()
232 assertFalse(p.contains(address("8.8.8.8"))); in testContainsInetAddress()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DLastMileLoggerTest.java22 import static org.mockito.Matchers.contains;
83 verify(mLog).warn(contains("Failed to open free_buffer")); in connectionEventStartedDoesNotCrashIfReleaseFileIsMissing()
179 assertTrue(getDumpString().contains("--- Last failed")); in dumpShowsFailureTrace()
180 assertTrue(getDumpString().contains("rdev_connect")); in dumpShowsFailureTrace()
188 assertTrue(getDumpString().contains("No last mile log for \"Last failed")); in dumpShowsPendingConnectionTrace()
189 assertTrue(getDumpString().contains("--- Latest")); in dumpShowsPendingConnectionTrace()
190 assertTrue(getDumpString().contains("rdev_connect")); in dumpShowsPendingConnectionTrace()
202 assertTrue(dumpString.contains("rdev_connect try #1")); in dumpShowsLastFailureTraceAndPendingConnectionTrace()
203 assertTrue(dumpString.contains("rdev_connect try #2")); in dumpShowsLastFailureTraceAndPendingConnectionTrace()
216 assertTrue(dumpString.contains("rdev_connect try #1")); in dumpShowsLastFailureTraceAndCurrentConnectionTrace()
[all …]
DWifiNativeTest.java354 assertTrue(verboseFateString.contains("Frame direction: TX")); in testTxFateReportToVerboseStringWithPiiAllowed()
355 assertTrue(verboseFateString.contains("Frame timestamp: 12345")); in testTxFateReportToVerboseStringWithPiiAllowed()
356 assertTrue(verboseFateString.contains("Frame fate: sent")); in testTxFateReportToVerboseStringWithPiiAllowed()
357 assertTrue(verboseFateString.contains("Frame type: data")); in testTxFateReportToVerboseStringWithPiiAllowed()
358 assertTrue(verboseFateString.contains("Frame protocol: Ethernet")); in testTxFateReportToVerboseStringWithPiiAllowed()
359 assertTrue(verboseFateString.contains("Frame protocol type: N/A")); in testTxFateReportToVerboseStringWithPiiAllowed()
360 assertTrue(verboseFateString.contains("Frame length: 16")); in testTxFateReportToVerboseStringWithPiiAllowed()
361 assertTrue(verboseFateString.contains( in testTxFateReportToVerboseStringWithPiiAllowed()
374 assertTrue(verboseFateString.contains("Frame type: " in testTxFateReportToVerboseStringWithPiiAllowed()
386 assertTrue(verboseFateString.contains("Frame fate: " + fateMapping.mExpectedText)); in testTxFateReportToVerboseStringWithPiiAllowed()
[all …]
DWifiCountryCodeTest.java217 assertTrue(dumpCountryCodeStr.contains("mDriverCountryCode")); in dumpDoesNotFail()
218 assertTrue(dumpCountryCodeStr.contains("mTelephonyCountryCode")); in dumpDoesNotFail()
219 assertTrue(dumpCountryCodeStr.contains("mDefaultCountryCode")); in dumpDoesNotFail()
220 assertTrue(dumpCountryCodeStr.contains("mTelephonyCountryTimestamp")); in dumpDoesNotFail()
221 assertTrue(dumpCountryCodeStr.contains("mDriverCountryTimestamp")); in dumpDoesNotFail()
222 assertTrue(dumpCountryCodeStr.contains("mReadyTimestamp")); in dumpDoesNotFail()
223 assertTrue(dumpCountryCodeStr.contains("mReady")); in dumpDoesNotFail()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java54 return scanResult.capabilities.contains("PSK"); in isScanResultForPskNetwork()
62 return scanResult.capabilities.contains("EAP"); in isScanResultForEapNetwork()
70 return scanResult.capabilities.contains("SUITE-B-192"); in isScanResultForEapSuiteBNetwork()
78 return scanResult.capabilities.contains("WEP"); in isScanResultForWepNetwork()
86 return scanResult.capabilities.contains("OWE"); in isScanResultForOweNetwork()
94 return scanResult.capabilities.contains("OWE_TRANSITION"); in isScanResultForOweTransitionNetwork()
102 return scanResult.capabilities.contains("SAE"); in isScanResultForSaeNetwork()
110 return scanResult.capabilities.contains("PSK") && scanResult.capabilities.contains("SAE"); in isScanResultForPskSaeTransitionNetwork()
/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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt50 listeners.filterForEach({ this.listeners.contains(it) }) { in notifyThemeChanged()
59 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged()
68 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged()
78 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged()
89 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged()
95 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged()
/frameworks/base/core/java/android/provider/
DSettingsStringUtil.java93 if (set.contains(element)) { in add()
103 if (!set.contains(element)) { in remove()
110 public static boolean contains(String delimitedElements, String element) { in contains() method in SettingsStringUtil.ColonDelimitedSet.OfStrings
134 if (set.contains(element)) { in add()
143 if (!set.contains(element)) { in remove()
150 public static boolean contains(String delimitedElements, ComponentName element) { in contains() method in SettingsStringUtil.ComponentNameSet
151 return ColonDelimitedSet.OfStrings.contains( in contains()
/frameworks/base/telephony/common/com/android/internal/telephony/util/
DArrayUtils.java60 if (!allowDuplicates && contains(array, element)) return array; in appendElement()
133 public static boolean contains(@Nullable char[] array, char value) { in contains() method in ArrayUtils
146 public static <T> boolean contains(@Nullable Collection<T> cur, T val) { in contains() method in ArrayUtils
147 return (cur != null) ? cur.contains(val) : false; in contains()
153 public static boolean contains(@Nullable int[] array, int value) { in contains() method in ArrayUtils
166 public static boolean contains(@Nullable long[] array, long value) { in contains() method in ArrayUtils
179 public static <T> boolean contains(@Nullable T[] array, T value) { in contains() method in ArrayUtils
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DHarmfulDigestsTests.java58 assertTrue(harmfulDigests.contains(TEST_DIGEST_1)); in testHarmfulDigests_setAndContains()
59 assertFalse(harmfulDigests.contains(TEST_DIGEST_2)); in testHarmfulDigests_setAndContains()
60 assertFalse(harmfulDigests.contains(TEST_DIGEST_3)); in testHarmfulDigests_setAndContains()
61 assertFalse(harmfulDigests.contains(TEST_DIGEST_4)); in testHarmfulDigests_setAndContains()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DSigXmlTest.java74 assertThat(expected.getMessage()).contains("signature is invalid"); in parseAndVerifyFileSignature_throwsIfInvalidSignature()
103 assertThat(expected.getMessage()).contains("exactly one"); in parse_throwsIfNoSignerCert()
115 assertThat(expected.getMessage()).contains("exactly one"); in parse_throwsIfTwoSignerCerts()
127 assertThat(expected.getMessage()).contains("exactly one"); in parse_throwsIfNoSignatureValue()
139 assertThat(expected.getMessage()).contains("exactly one"); in parse_throwsIfTwoSignatureValues()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DLifecycleTest.java56 assertTrue(mDispatchedObjects.contains(mObj1)); in addObserver_addsObserver()
66 assertFalse(mDispatchedObjects.contains(mObj1)); in removeObserver()
76 assertTrue(mDispatchedObjects.contains(mObj1)); in dispatch()
77 assertTrue(mDispatchedObjects.contains(mObj2)); in dispatch()

12345678910>>...48