/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccIoResultTest.java | 29 Assert.assertTrue(resultStr != null && (!resultStr.contains("Error"))); in check0x90_ErrorCodeParsing() 37 Assert.assertTrue(resultStr != null && (!resultStr.contains("Error"))); in check0x91_ErrorCodeParsing() 45 Assert.assertTrue(resultStr != null && (!resultStr.contains("Error"))); in check0x9E_ErrorCodeParsing() 53 Assert.assertTrue(resultStr != null && (!resultStr.contains("Error"))); in check0x9F_ErrorCodeParsing() 61 Assert.assertTrue(resultStr != null && (resultStr.contains("no EF selected"))); in check0x94_ErrorCodeParsing() 67 resultStr != null && (resultStr.contains("out f range (invalid address)"))); in check0x94_ErrorCodeParsing() 73 resultStr != null && (resultStr.contains("file ID not found/pattern not found"))); in check0x94_ErrorCodeParsing() 79 resultStr != null && (resultStr.contains("file is inconsistent with the command"))); in check0x94_ErrorCodeParsing() 86 Assert.assertTrue(resultStr != null && (resultStr.contains("unknown"))); in check0x98_ErrorCodeParsing() 90 Assert.assertTrue(resultStr != null && (resultStr.contains("no CHV initialized"))); in check0x98_ErrorCodeParsing() [all …]
|
/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/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerMiddlewareLoggingTest.java | 43 assertThat(stringRep).contains(SERVICE_TYPE.name()); in serviceEventException_getStringContainsInfo() 44 assertThat(stringRep).contains(packageName); in serviceEventException_getStringContainsInfo() 45 assertThat(stringRep).contains(exception.toString()); in serviceEventException_getStringContainsInfo() 46 assertThat(stringRep).contains(param1.toString()); in serviceEventException_getStringContainsInfo() 47 assertThat(stringRep).contains(param2.toString()); in serviceEventException_getStringContainsInfo() 48 assertThat(stringRep).ignoringCase().contains("error"); in serviceEventException_getStringContainsInfo() 57 assertThat(stringRep).contains(SERVICE_TYPE.name()); in serviceEventExceptionNoArgs_getStringContainsInfo() 58 assertThat(stringRep).contains(packageName); in serviceEventExceptionNoArgs_getStringContainsInfo() 59 assertThat(stringRep).contains(exception.toString()); in serviceEventExceptionNoArgs_getStringContainsInfo() 60 assertThat(stringRep).ignoringCase().contains("error"); in serviceEventExceptionNoArgs_getStringContainsInfo() [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 | 37 caps.contains(TelephonyManager.CAPABILITY_SECONDARY_LINK_BANDWIDTH_VISIBLE)); in testVersion_1_5() 39 caps.contains(TelephonyManager.CAPABILITY_USES_ALLOWED_NETWORK_TYPES_BITMASK)); in testVersion_1_5() 41 caps.contains( in testVersion_1_5() 44 caps.contains(TelephonyManager.CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING)); in testVersion_1_5() 46 caps.contains(TelephonyManager.CAPABILITY_SLICING_CONFIG_SUPPORTED)); in testVersion_1_5() 53 caps.contains(TelephonyManager.CAPABILITY_SECONDARY_LINK_BANDWIDTH_VISIBLE)); in testReducedFeatureSet() 55 caps.contains(TelephonyManager.CAPABILITY_USES_ALLOWED_NETWORK_TYPES_BITMASK)); in testReducedFeatureSet() 57 caps.contains( in testReducedFeatureSet() 60 caps.contains(TelephonyManager.CAPABILITY_THERMAL_MITIGATION_DATA_THROTTLING)); in testReducedFeatureSet() 62 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 …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/shared/model/ |
D | WifiNetworkModelTest.kt | 104 assertThat(logger.changes).contains(Pair(COL_NETWORK_TYPE, TYPE_INACTIVE)) in <lambda>() 105 assertThat(logger.changes).contains(Pair(COL_NETWORK_ID, NETWORK_ID_DEFAULT.toString())) in <lambda>() 106 assertThat(logger.changes).contains(Pair(COL_VALIDATED, "false")) in <lambda>() 107 assertThat(logger.changes).contains(Pair(COL_LEVEL, LEVEL_DEFAULT.toString())) in <lambda>() 108 assertThat(logger.changes).contains(Pair(COL_SSID, "null")) in <lambda>() 123 assertThat(logger.changes).contains(Pair(COL_NETWORK_TYPE, TYPE_CARRIER_MERGED)) in <lambda>() 124 assertThat(logger.changes).contains(Pair(COL_NETWORK_ID, "6")) in <lambda>() 125 assertThat(logger.changes).contains(Pair(COL_SUB_ID, "3")) in <lambda>() 126 assertThat(logger.changes).contains(Pair(COL_VALIDATED, "true")) in <lambda>() 127 assertThat(logger.changes).contains(Pair(COL_LEVEL, "2")) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/ |
D | LogBufferTest.kt | 41 assertThat(dumpedString).contains("Some test message") in <lambda>() 52 assertThat(dumpedString).contains("New test message") in <lambda>() 64 assertThat(dumpedString).contains("Extra message") in <lambda>() 65 assertThat(dumpedString).contains("java.lang.RuntimeException: Exception message") in <lambda>() 66 assertThat(dumpedString).contains("at TestClass.TestMethod(TestClass.java:1)") in <lambda>() 67 assertThat(dumpedString).contains("at TestClass.TestMethod(TestClass.java:2)") in <lambda>() 84 assertThat(dumpedString).contains("Caused by: java.lang.RuntimeException: The real cause!") in <lambda>() 85 assertThat(dumpedString).contains("at TestClass.TestMethod(TestClass.java:1)") in <lambda>() 86 assertThat(dumpedString).contains("at TestClass.TestMethod(TestClass.java:2)") in <lambda>() 108 .contains("Suppressed: " + "java.lang.RuntimeException: First suppressed exception") in <lambda>() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest12.java | 90 assertTrue(shortcutIds.contains("s1")); in testSetDynamicShortcuts_PersistsShortcutsToDisk() 91 assertTrue(shortcutIds.contains("s2")); in testSetDynamicShortcuts_PersistsShortcutsToDisk() 92 assertTrue(shortcutIds.contains("s3")); in testSetDynamicShortcuts_PersistsShortcutsToDisk() 118 assertTrue(shortcutIds.contains("s1")); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 119 assertTrue(shortcutIds.contains("s2")); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 120 assertTrue(shortcutIds.contains("s3")); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 121 assertTrue(shortcutIds.contains("s4")); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 122 assertTrue(shortcutIds.contains("s5")); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 142 assertTrue(shortcutIds.contains("s1")); in testPushDynamicShortcuts_PersistsShortcutsToDisk() 143 assertTrue(shortcutIds.contains("s2")); in testPushDynamicShortcuts_PersistsShortcutsToDisk() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/table/ |
D | LogDiffsForTableTest.kt | 100 .contains( in boolean_logsInitialWhenCollected() 135 .contains( in boolean_logsUpdates() 144 .contains( in boolean_logsUpdates() 148 .contains( in boolean_logsUpdates() 152 .contains( in boolean_logsUpdates() 194 assertThat(logs).contains(expected1) in boolean_doesNotLogIfSameValue() 195 assertThat(logs).contains(expected4) in boolean_doesNotLogIfSameValue() 196 assertThat(logs).contains(expected6) in boolean_doesNotLogIfSameValue() 227 .contains( in boolean_worksForStateFlows() 239 .contains( in boolean_worksForStateFlows() [all …]
|
D | TableLogBufferTest.kt | 185 assertThat(dumpedString).contains(expected) in <lambda>() 215 assertThat(dumpedString).contains(expected) in <lambda>() 246 assertThat(dumpedString).contains(expected) in <lambda>() 277 assertThat(dumpedString).contains(expected) in <lambda>() 306 assertThat(dumpedString).contains(expected) in <lambda>() 362 assertThat(dumpedString).contains(expected1) in <lambda>() 363 assertThat(dumpedString).contains(expected2) in <lambda>() 364 assertThat(dumpedString).contains(expected3) in <lambda>() 365 assertThat(dumpedString).contains(expected4) in <lambda>() 388 assertThat(dumpedString).contains(expected1) in <lambda>() [all …]
|
D | TableChangeTest.kt | 136 assertThat(underTest.getName()).contains("fakePrefix") in getName_hasPrefix() 137 assertThat(underTest.getName()).contains("fakeName") in getName_hasPrefix() 144 assertThat(underTest.getName()).contains("fakeName") in getName_noPrefix() 178 assertThat(underTest.getName()).contains("updated") in resetThenSet_hasNewValue() 215 assertThat(underTest.getVal()).contains(IS_INITIAL_PREFIX) in reset_notInitialToInitial_valHasInitial() 227 assertThat(underTest.getName()).contains("newPrefix") in updateTo_emptyToString_isString() 228 assertThat(underTest.getName()).contains("newName") in updateTo_emptyToString_isString() 241 assertThat(underTest.getName()).contains("newPrefix") in updateTo_intToEmpty_isEmpty() 242 assertThat(underTest.getName()).contains("newName") in updateTo_intToEmpty_isEmpty() 256 assertThat(underTest.getName()).contains("newPrefix") in updateTo_stringToBool_isBool() [all …]
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger/ |
D | SoundTriggerEventTest.java | 40 assertThat(stringRep).contains(serviceEventType.name()); in serviceEventNoPackageNoError_getStringContainsType() 49 assertThat(stringRep).contains(serviceEventType.name()); in serviceEventPackageNoError_getStringContainsTypeAndPackage() 50 assertThat(stringRep).contains(packageName); in serviceEventPackageNoError_getStringContainsTypeAndPackage() 60 assertThat(stringRep).contains(serviceEventType.name()); in serviceEventPackageError_getStringContainsTypeAndPackageAndErrorAndMessage() 61 assertThat(stringRep).contains(packageName); in serviceEventPackageError_getStringContainsTypeAndPackageAndErrorAndMessage() 62 assertThat(stringRep).contains(errorString); in serviceEventPackageError_getStringContainsTypeAndPackageAndErrorAndMessage() 63 assertThat(stringRep).ignoringCase().contains("error"); in serviceEventPackageError_getStringContainsTypeAndPackageAndErrorAndMessage() 71 assertThat(stringRep).contains(sessionEventType.name()); in sessionEventUUIDNoError_getStringContainsUUID() 72 assertThat(stringRep).contains(uuid.toString()); in sessionEventUUIDNoError_getStringContainsUUID() 82 assertThat(stringRep).contains(sessionEventType.name()); in sessionEventUUIDError_getStringContainsUUIDAndError() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/data/model/ |
D | DefaultConnectionModelTest.kt | 42 assertThat(messageString).contains("wifi.isDefault=false") in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() 43 assertThat(messageString).contains("mobile.isDefault=true") in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() 44 assertThat(messageString).contains("carrierMerged.isDefault=true") in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() 45 assertThat(messageString).contains("ethernet.isDefault=false") in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() 46 assertThat(messageString).contains("isValidated=false") in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() 64 assertThat(messageString).contains("wifi.isDefault=true") in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo() 65 assertThat(messageString).contains("mobile.isDefault=false") in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo() 66 assertThat(messageString).contains("carrierMerged.isDefault=false") in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo() 67 assertThat(messageString).contains("ethernet.isDefault=false") in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo() 68 assertThat(messageString).contains("isValidated=true") in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/sender/ |
D | MediaTttSenderLoggerTest.kt | 56 assertThat(actualString).contains(stateName) in logStateChange_bufferHasDeviceTypeTagAndParamInfo() 57 assertThat(actualString).contains(id) in logStateChange_bufferHasDeviceTypeTagAndParamInfo() 58 assertThat(actualString).contains(packageName) in logStateChange_bufferHasDeviceTypeTagAndParamInfo() 66 assertThat(actualString).contains("3456") in logStateChangeError_hasState() 76 assertThat(actualString).contains(packageName) in logPackageNotFound_bufferHasPackageName() 87 assertThat(actualString).contains(removalReason) in logRemovalBypass_bufferHasReasons() 88 assertThat(actualString).contains(bypassReason) in logRemovalBypass_bufferHasReasons() 110 assertThat(actualString).contains("123") in logStateMap_bufferHasInfo() 111 assertThat(actualString).contains(ChipStateSender.ALMOST_CLOSE_TO_START_CAST.name) in logStateMap_bufferHasInfo() 112 assertThat(actualString).contains("456") in logStateMap_bufferHasInfo() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 39 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A)); in testContains() 40 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B)); in testContains() 41 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C)); in testContains() 42 assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null)); in testContains() 44 assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null)); in testContains() 45 assertFalse(ArrayUtils.contains(new Object[] { }, null)); in testContains() 46 assertFalse(ArrayUtils.contains(new Object[] { null }, A)); in testContains() 90 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 1)); in testContainsInt() 91 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 2)); in testContainsInt() 92 assertTrue(ArrayUtils.contains(new int[] { 1, 2, 3 }, 3)); in testContainsInt() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/ |
D | RoundedCornerDecorProviderFactoryTest.kt | 71 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>() 72 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_LEFT)) in <lambda>() 76 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>() 77 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_RIGHT)) in <lambda>() 96 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_BOTTOM) in <lambda>() 97 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_LEFT)) in <lambda>() 101 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_BOTTOM) in <lambda>() 102 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_RIGHT)) in <lambda>() 122 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>() 123 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_LEFT)) in <lambda>() [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/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/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/common/ |
D | MediaTttLoggerUtilsTest.kt | 53 assertThat(actualString).contains(TAG) in logStateChange_bufferHasDeviceTypeTagAndParamInfo() 54 assertThat(actualString).contains(stateName) in logStateChange_bufferHasDeviceTypeTagAndParamInfo() 55 assertThat(actualString).contains(id) in logStateChange_bufferHasDeviceTypeTagAndParamInfo() 56 assertThat(actualString).contains(packageName) in logStateChange_bufferHasDeviceTypeTagAndParamInfo() 64 assertThat(actualString).contains(TAG) in logStateChangeError_hasState() 65 assertThat(actualString).contains("3456") in logStateChangeError_hasState() 75 assertThat(actualString).contains(TAG) in logPackageNotFound_bufferHasPackageName() 76 assertThat(actualString).contains(packageName) in logPackageNotFound_bufferHasPackageName()
|
/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/packages/SystemUI/src/com/android/keyguard/ |
D | ActiveUnlockConfig.kt | 160 if (selfChange || uris.contains(wakeUri)) { in onChange() 165 if (selfChange || uris.contains(unlockIntentUri)) { in onChange() 170 if (selfChange || uris.contains(bioFailUri)) { in onChange() 175 if (selfChange || uris.contains(faceErrorsUri)) { in onChange() 183 if (selfChange || uris.contains(faceAcquireInfoUri)) { in onChange() 191 if (selfChange || uris.contains(unlockIntentWhenBiometricEnrolledUri)) { in onChange() 200 if (selfChange || uris.contains(wakeupsConsideredUnlockIntentsUri)) { in onChange() 209 if (selfChange || uris.contains(wakeupsToForceDismissKeyguardUri)) { in onChange() 264 return faceErrorsToTriggerBiometricFailOn.contains(errorCode) in shouldRequestActiveUnlockOnFaceError() 272 return faceAcquireInfoToTriggerBiometricFailOn.contains(acquiredInfo) in shouldRequestActiveUnlockOnFaceAcquireInfo() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 145 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles() 151 if (mA2dpSinkProfile == null && supportedList.contains(BluetoothProfile.A2DP_SINK)) { in updateLocalProfiles() 157 if (mHeadsetProfile == null && supportedList.contains(BluetoothProfile.HEADSET)) { in updateLocalProfiles() 165 if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) { in updateLocalProfiles() 171 if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) { in updateLocalProfiles() 177 if (mMapProfile == null && supportedList.contains(BluetoothProfile.MAP)) { in updateLocalProfiles() 182 if (mOppProfile == null && supportedList.contains(BluetoothProfile.OPP)) { in updateLocalProfiles() 188 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles() 195 if (mHapClientProfile == null && supportedList.contains(BluetoothProfile.HAP_CLIENT)) { in updateLocalProfiles() 201 if (mHidProfile == null && supportedList.contains(BluetoothProfile.HID_HOST)) { in updateLocalProfiles() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | BatteryControllerTest.java | 404 assertTrue(trackedJobs.contains(batteryJob)); in testControllerOnlyTracksPowerJobs() 405 assertTrue(trackedJobs.contains(chargingJob)); in testControllerOnlyTracksPowerJobs() 406 assertTrue(trackedJobs.contains(bothPowerJob)); in testControllerOnlyTracksPowerJobs() 407 assertFalse(trackedJobs.contains(unrelatedJob)); in testControllerOnlyTracksPowerJobs() 408 assertFalse(topStartedJobs.contains(batteryJob)); in testControllerOnlyTracksPowerJobs() 409 assertFalse(topStartedJobs.contains(chargingJob)); in testControllerOnlyTracksPowerJobs() 410 assertFalse(topStartedJobs.contains(bothPowerJob)); in testControllerOnlyTracksPowerJobs() 411 assertFalse(topStartedJobs.contains(unrelatedJob)); in testControllerOnlyTracksPowerJobs() 415 assertTrue(trackedJobs.contains(batteryJob)); in testControllerOnlyTracksPowerJobs() 416 assertTrue(trackedJobs.contains(chargingJob)); in testControllerOnlyTracksPowerJobs() [all …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | CollectionUtilsTest.kt | 86 assertTrue(CollectionUtils.contains(shortArrayOf(10, 20, 30), 10)) in testContains() 87 assertTrue(CollectionUtils.contains(shortArrayOf(10, 20, 30), 30)) in testContains() 88 assertFalse(CollectionUtils.contains(shortArrayOf(10, 20, 30), 40)) in testContains() 89 assertFalse(CollectionUtils.contains(null, 10.toShort())) in testContains() 90 assertTrue(CollectionUtils.contains(intArrayOf(10, 20, 30), 10)) in testContains() 91 assertTrue(CollectionUtils.contains(intArrayOf(10, 20, 30), 30)) in testContains() 92 assertFalse(CollectionUtils.contains(intArrayOf(10, 20, 30), 40)) in testContains() 93 assertFalse(CollectionUtils.contains(null, 10.toInt())) in testContains() 94 assertTrue(CollectionUtils.contains(arrayOf("A", "B", "C"), "A")) in testContains() 95 assertTrue(CollectionUtils.contains(arrayOf("A", "B", "C"), "C")) in testContains() [all …]
|