Home
last modified time | relevance | path

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

12345678910>>...55

/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.java121 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
129 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
142 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
150 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
164 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
172 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission()
205 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
213 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
226 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
234 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission()
[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/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/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java53 return scanResult.capabilities.contains("PSK"); in isScanResultForPskNetwork()
61 return scanResult.capabilities.contains("WAPI-PSK"); in isScanResultForWapiPskNetwork()
70 return scanResult.capabilities.contains("WAPI-CERT"); in isScanResultForWapiCertNetwork()
78 return scanResult.capabilities.contains("EAP"); in isScanResultForEapNetwork()
86 return scanResult.capabilities.contains("SUITE-B-192"); in isScanResultForEapSuiteBNetwork()
94 return scanResult.capabilities.contains("WEP"); in isScanResultForWepNetwork()
102 return scanResult.capabilities.contains("OWE"); in isScanResultForOweNetwork()
110 return scanResult.capabilities.contains("OWE_TRANSITION"); in isScanResultForOweTransitionNetwork()
118 return scanResult.capabilities.contains("SAE"); in isScanResultForSaeNetwork()
126 return scanResult.capabilities.contains("PSK") && scanResult.capabilities.contains("SAE"); in isScanResultForPskSaeTransitionNetwork()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DTraceBufferTest.java99 mBuffer.contains(toWrite1Bytes)); in test_addItemMustOverwriteOne()
104 mBuffer.contains(toWrite1Bytes)); in test_addItemMustOverwriteOne()
106 mBuffer.contains(toWrite2Bytes)); in test_addItemMustOverwriteOne()
111 !mBuffer.contains(toWrite1Bytes)); in test_addItemMustOverwriteOne()
113 mBuffer.contains(toWrite2Bytes)); in test_addItemMustOverwriteOne()
115 mBuffer.contains(toWrite3Bytes)); in test_addItemMustOverwriteOne()
139 mBuffer.contains(toWriteSmall1Bytes)); in test_addItemMustOverwriteMultiple()
144 mBuffer.contains(toWriteSmall1Bytes)); in test_addItemMustOverwriteMultiple()
146 mBuffer.contains(toWriteSmall2Bytes)); in test_addItemMustOverwriteMultiple()
151 !mBuffer.contains(toWriteSmall1Bytes)); in test_addItemMustOverwriteMultiple()
[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.java134 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles()
140 if (mA2dpSinkProfile == null && supportedList.contains(BluetoothProfile.A2DP_SINK)) { in updateLocalProfiles()
146 if (mHeadsetProfile == null && supportedList.contains(BluetoothProfile.HEADSET)) { in updateLocalProfiles()
154 if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) { in updateLocalProfiles()
162 if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) { in updateLocalProfiles()
168 if (mMapProfile == null && supportedList.contains(BluetoothProfile.MAP)) { in updateLocalProfiles()
173 if (mOppProfile == null && supportedList.contains(BluetoothProfile.OPP)) { in updateLocalProfiles()
179 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles()
186 if (mHidProfile == null && supportedList.contains(BluetoothProfile.HID_HOST)) { in updateLocalProfiles()
192 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 …]
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsPersistenceTest.java59 if (!(ArrayUtils.contains(USAGESTATS_PERSISTED_FIELDS, field.getName()) in testUsageStatsFields()
60 || ArrayUtils.contains(USAGESTATS_IGNORED_FIELDS, field.getName()))) { in testUsageStatsFields()
97 if (!(ArrayUtils.contains(USAGEEVENTS_PERSISTED_FIELDS, name) in testUsageEventsFields()
98 || ArrayUtils.contains(USAGEEVENTS_IGNORED_FIELDS, name) in testUsageEventsFields()
99 || ArrayUtils.contains(EVENT_TYPES, name))) { in testUsageEventsFields()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
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()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java107 } else if (scan.capabilities.contains("PSK") && scan.capabilities.contains("SAE")) { in getSecurityTypesFromScanResult()
110 } else if (scan.capabilities.contains("OWE_TRANSITION")) { in getSecurityTypesFromScanResult()
113 } else if (scan.capabilities.contains("OWE")) { in getSecurityTypesFromScanResult()
115 } else if (scan.capabilities.contains("WEP")) { in getSecurityTypesFromScanResult()
117 } else if (scan.capabilities.contains("SAE")) { in getSecurityTypesFromScanResult()
119 } else if (scan.capabilities.contains("PSK")) { in getSecurityTypesFromScanResult()
121 } else if (scan.capabilities.contains("EAP_SUITE_B_192")) { in getSecurityTypesFromScanResult()
123 } else if (scan.capabilities.contains("EAP")) { in getSecurityTypesFromScanResult()
200 if (securityTypes.contains(SECURITY_PSK)) { in mapScanResultsToKey()
203 if (securityTypes.contains(SECURITY_SAE)) { in mapScanResultsToKey()
[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 …]
/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/services/tests/servicestests/src/com/android/server/net/watchlist/
DHarmfulCrcsTests.java55 assertTrue(harmfulCrcs.contains(0xaabbccdd)); in testHarmfulCrcs_setAndContains()
56 assertFalse(harmfulCrcs.contains(0xbbbbbbbb)); in testHarmfulCrcs_setAndContains()
57 assertFalse(harmfulCrcs.contains(0x01020304)); in testHarmfulCrcs_setAndContains()
58 assertFalse(harmfulCrcs.contains(0xddccbbaa)); in testHarmfulCrcs_setAndContains()
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/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/packages/SystemUI/src/com/android/systemui/util/
DSparseArrayUtils.kt100 override fun contains(element: Map.Entry<Int, T>): Boolean = in asMap() method in com.android.systemui.util.SparseArrayMapWrapper
104 elements.all { contains(it) } in asMap()
117 override fun contains(element: Int): Boolean = containsKey(element) in asMap() method in com.android.systemui.util.SparseArrayMapWrapper
120 elements.all { contains(it) } in asMap()
135 override fun contains(element: T): Boolean = containsValue(element) in asMap() method in com.android.systemui.util.SparseArrayMapWrapper
138 elements.all { contains(it) } in asMap()
145 override fun containsKey(key: Int): Boolean = sparseArray.contains(key) in asMap()
/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/wifi/tests/assets/hsr1/
DREADME.txt1 HSR1ProfileWithCACert.conf - unencoded installation file that contains a Passpoint profile and a CA…
3 HSR1ProfileWithNonBase64Part.base64 - base64 encoded installation file that contains a part of non-…
5 HSR1ProfileWithInvalidContentType.base64 - base64 encoded installation file with that contains a MI…
6 HSR1ProfileWithUpdateIdentifier.base64 - base64 encoded installation file with that contains an R2 …

12345678910>>...55