/frameworks/base/core/tests/coretests/src/android/os/ |
D | PackageTagsListTest.java | 48 assertTrue(list.contains(builder.build())); in testPackageTagsList() 49 assertTrue(list.contains("package1", "attr1")); in testPackageTagsList() 50 assertTrue(list.contains("package1", "attr2")); in testPackageTagsList() 51 assertTrue(list.contains("package2", "attr1")); in testPackageTagsList() 52 assertTrue(list.contains("package2", "attr2")); in testPackageTagsList() 53 assertTrue(list.contains("package2", "attr3")); in testPackageTagsList() 54 assertTrue(list.contains("package4", "attr1")); in testPackageTagsList() 55 assertTrue(list.contains("package4", "attr2")); in testPackageTagsList() 59 assertFalse(list.contains("package1", "attr3")); in testPackageTagsList() 60 assertFalse(list.contains("package4", "attr3")); in testPackageTagsList() [all …]
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ServiceLog_test.cpp | 41 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | RadioConfigResponseTest.java | 49 caps.contains(TelephonyManager.CAPABILITY_SECONDARY_LINK_BANDWIDTH_VISIBLE)); in testVersion_1_5() 51 caps.contains(TelephonyManager.CAPABILITY_USES_ALLOWED_NETWORK_TYPES_BITMASK)); in testVersion_1_5() 53 caps.contains( in testVersion_1_5() 56 caps.contains(TelephonyManager.CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING)); in testVersion_1_5() 58 caps.contains(TelephonyManager.CAPABILITY_SLICING_CONFIG_SUPPORTED)); in testVersion_1_5() 65 caps.contains(TelephonyManager.CAPABILITY_SECONDARY_LINK_BANDWIDTH_VISIBLE)); in testReducedFeatureSet() 67 caps.contains(TelephonyManager.CAPABILITY_USES_ALLOWED_NETWORK_TYPES_BITMASK)); in testReducedFeatureSet() 69 caps.contains( in testReducedFeatureSet() 72 caps.contains(TelephonyManager.CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING)); in testReducedFeatureSet() 74 caps.contains(TelephonyManager.CAPABILITY_SLICING_CONFIG_SUPPORTED)); in testReducedFeatureSet() [all …]
|
D | CbGeoUtilsTest.java | 129 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 …]
|
D | PhoneSubInfoControllerTest.java | 126 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission() 134 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission() 147 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission() 155 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission() 169 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission() 177 assertTrue(ex.getMessage().contains("getDeviceId")); in testGetDeviceIdWithOutPermission() 210 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission() 218 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission() 231 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission() 239 assertTrue(ex.getMessage().contains("getNai")); in testGetNaiWithOutPermission() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | StringPiece_test.cpp | 72 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/base/core/tests/coretests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 51 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/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/ |
D | HPRecommendationPlugin.java | 58 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/ |
D | ArrayUtilsTest.java | 35 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/services/core/java/com/android/server/biometrics/sensors/ |
D | PerformanceTracker.java | 35 if (!sTrackers.contains(sensorId)) { in getInstanceForSensorId() 63 if (!mAllUsersInfo.contains(userId)) { in createUserEntryIfNecessary() 120 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAccept : 0; in getAcceptForUser() 124 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mReject : 0; in getRejectForUser() 128 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAcquire : 0; in getAcquireForUser() 132 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAcceptCrypto : 0; in getAcceptCryptoForUser() 136 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mRejectCrypto : 0; in getRejectCryptoForUser() 140 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mAcquireCrypto : 0; in getAcquireCryptoForUser() 144 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mTimedLockout : 0; in getTimedLockoutForUser() 148 return mAllUsersInfo.contains(userId) ? mAllUsersInfo.get(userId).mPermanentLockout : 0; in getPermanentLockoutForUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
D | TraceBufferTest.java | 99 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/ |
D | TranslatingCursor.java | 77 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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/apppairs/ |
D | AppPairTests.java | 86 assertThat(pair.contains(task1.taskId)).isTrue(); in testContains() 87 assertThat(pair.contains(task2.taskId)).isTrue(); in testContains() 90 assertThat(pair.contains(task1.taskId)).isFalse(); in testContains() 91 assertThat(pair.contains(task2.taskId)).isFalse(); in testContains() 101 assertThat(pair.contains(task1.taskId)).isTrue(); in testVanishUnpairs() 102 assertThat(pair.contains(task2.taskId)).isTrue(); in testVanishUnpairs() 105 assertThat(pair.contains(task1.taskId)).isFalse(); in testVanishUnpairs() 106 assertThat(pair.contains(task2.taskId)).isFalse(); in testVanishUnpairs() 116 assertThat(pair.contains(task1.taskId)).isTrue(); in testOnTaskInfoChanged_notSupportsMultiWindow() 117 assertThat(pair.contains(task2.taskId)).isTrue(); in testOnTaskInfoChanged_notSupportsMultiWindow()
|
D | AppPairsControllerTests.java | 79 assertThat(pair.contains(task1.taskId)).isTrue(); in testPairUnpair() 80 assertThat(pair.contains(task2.taskId)).isTrue(); in testPairUnpair() 84 assertThat(pair.contains(task1.taskId)).isFalse(); in testPairUnpair() 85 assertThat(pair.contains(task2.taskId)).isFalse(); in testPairUnpair() 96 assertThat(pair.contains(task1.taskId)).isTrue(); in testUnpair_DontReleaseToPool() 97 assertThat(pair.contains(task2.taskId)).isTrue(); in testUnpair_DontReleaseToPool() 100 assertThat(pair.contains(task1.taskId)).isFalse(); in testUnpair_DontReleaseToPool() 101 assertThat(pair.contains(task2.taskId)).isFalse(); in testUnpair_DontReleaseToPool()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 134 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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ |
D | ShellTaskOrganizerTests.java | 173 assertTrue(listener.appeared.contains(task1)); in testRegisterWithExistingTasks() 174 assertTrue(listener.appeared.contains(task2)); in testRegisterWithExistingTasks() 183 assertTrue(listener.appeared.contains(taskInfo)); in testAppearedVanished() 186 assertTrue(listener.vanished.contains(taskInfo)); in testAppearedVanished() 196 assertTrue(listener.appeared.contains(taskInfo)); in testAddListenerExistingTasks() 207 assertTrue(mwListener.appeared.contains(taskInfo)); in testWindowingModeChange() 212 assertTrue(mwListener.vanished.contains(taskInfo)); in testWindowingModeChange() 213 assertTrue(pipListener.appeared.contains(taskInfo)); in testWindowingModeChange() 223 assertTrue(mwListener.appeared.contains(task1)); in testAddListenerForTaskId_afterTypeListener() 227 assertTrue(mwListener.vanished.contains(task1)); in testAddListenerForTaskId_afterTypeListener() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | OneTouchPlayActionTest.java | 186 assertThat(mNativeWrapper.getResultMessages()).contains(textViewOn); in succeedWithUnknownTvDevice() 187 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in succeedWithUnknownTvDevice() 188 assertThat(mNativeWrapper.getResultMessages()).contains(giveDevicePowerStatus); in succeedWithUnknownTvDevice() 197 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in succeedWithUnknownTvDevice() 229 assertThat(mNativeWrapper.getResultMessages()).contains(textViewOn); in succeedAfterGettingPowerStatusOn_Cec14b() 230 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in succeedAfterGettingPowerStatusOn_Cec14b() 231 assertThat(mNativeWrapper.getResultMessages()).contains(giveDevicePowerStatus); in succeedAfterGettingPowerStatusOn_Cec14b() 240 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in succeedAfterGettingPowerStatusOn_Cec14b() 272 assertThat(mNativeWrapper.getResultMessages()).contains(textViewOn); in succeedAfterGettingTransientPowerStatus_Cec14b() 273 assertThat(mNativeWrapper.getResultMessages()).contains(activeSource); in succeedAfterGettingTransientPowerStatus_Cec14b() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 55 listeners.filterForEach({ this.listeners.contains(it) }) { in notifyThemeChanged() 64 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged() 73 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged() 83 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged() 91 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged() 102 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged() 109 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged() 115 listeners.filterForEach({ this.listeners.contains(it) }) { in onConfigurationChanged()
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsPersistenceTest.java | 60 if (!(ArrayUtils.contains(USAGESTATS_PERSISTED_FIELDS, field.getName()) in testUsageStatsFields() 61 || ArrayUtils.contains(USAGESTATS_IGNORED_FIELDS, field.getName()))) { in testUsageStatsFields() 98 if (!(ArrayUtils.contains(USAGEEVENTS_PERSISTED_FIELDS, name) in testUsageEventsFields() 99 || ArrayUtils.contains(USAGEEVENTS_IGNORED_FIELDS, name) in testUsageEventsFields() 100 || ArrayUtils.contains(EVENT_TYPES, name))) { in testUsageEventsFields()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | Utils.java | 227 if (securityTypes.contains(WifiInfo.SECURITY_TYPE_OPEN)) { in getSingleSecurityTypeFromMultipleSecurityTypes() 230 if (securityTypes.contains(WifiInfo.SECURITY_TYPE_PSK)) { in getSingleSecurityTypeFromMultipleSecurityTypes() 233 if (securityTypes.contains(WifiInfo.SECURITY_TYPE_EAP)) { in getSingleSecurityTypeFromMultipleSecurityTypes() 831 return scanResult.capabilities.contains("PSK"); in isScanResultForPskNetwork() 840 return scanResult.capabilities.contains("WAPI-PSK"); in isScanResultForWapiPskNetwork() 850 return scanResult.capabilities.contains("WAPI-CERT"); in isScanResultForWapiCertNetwork() 862 return (scanResult.capabilities.contains("EAP/SHA1") in isScanResultForEapNetwork() 863 || scanResult.capabilities.contains("EAP/SHA256") in isScanResultForEapNetwork() 864 || scanResult.capabilities.contains("FT/EAP") in isScanResultForEapNetwork() 865 || scanResult.capabilities.contains("EAP-FILS")) in isScanResultForEapNetwork() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowProcessControllerMapTests.java | 94 assertTrue(uid1processes.contains(pid1uid1)); in testAdditionsAndRemovals() 95 assertTrue(uid1processes.contains(pid2uid1)); in testAdditionsAndRemovals() 101 assertTrue(uid1processes.contains(pid1uid1)); in testAdditionsAndRemovals() 102 assertFalse(uid1processes.contains(pid2uid1)); in testAdditionsAndRemovals() 103 assertTrue(uid1processes.contains(pid3uid1)); in testAdditionsAndRemovals() 108 assertTrue(uid2processes.contains(pid4uid2)); in testAdditionsAndRemovals() 122 assertTrue(uid1processes.contains(pid1uid1)); in testReplacement() 128 assertTrue(uid2processes.contains(pid1uid2)); in testReplacement()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | StaticMetadata.java | 515 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/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | HarmfulCrcsTests.java | 55 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()
|
/frameworks/base/core/java/android/provider/ |
D | SettingsStringUtil.java | 93 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/ |
D | ArrayUtils.java | 60 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
|