Home
last modified time | relevance | path

Searched refs:fail (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java84 fail("Expected condition to be true", false); in isTrue()
93 fail("Expected condition to be false", false); in isFalse()
102 fail("Expected condition to be true", true); in isTrueReleaseCheck()
108 fail("Expected " + expected + " but got " + actual, false); in equals()
114 fail("Expected " + expected + " but got " + actual, false); in equals()
121 fail("Expected " + expected + " but got " + actual, false); in equals()
131 fail("Expected value to be one of " + Arrays.toString(expected) + " but was " + actual); in oneOf()
137 fail("Expected value in range [" + rangeMinInclusive + ", " + in inRange()
145 fail("Expected value in range [" + rangeMinInclusive + ", " + in inRange()
153 fail("Expected to run on main thread", false); in isMainThread()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestJobListener.java20 import static org.junit.Assert.fail;
52 fail("Job didn't start. onStart never called."); in assertStarted()
58 fail("Job didn't finish. onFinish never called."); in assertFinished()
64 fail("Job didn't fail. onFailed never called."); in assertFailed()
70 fail("Can't test failed documetns. Job didn't fail."); in assertFilesFailed()
81 fail("Can't test failed documetns. Job didn't fail."); in assertFileFailed()
89 fail("Couldn't find failed file: " + name); in assertFileFailed()
94 fail("Can't test failed documetns. Job didn't fail."); in assertUrisFailed()
105 fail("Can't test failed documetns. Job didn't fail."); in assertUriFailed()
113 fail("Couldn't find failed uri: " + uri); in assertUriFailed()
[all …]
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java104 Assert.fail("Unsupported type: " + value.getClass().getSimpleName()); in cv()
182 fail(e.toString()); in testChangesNotified()
203 fail(); in insertExpectingFailure()
227 fail(); in testDelete()
243 fail(); in testDelete()
256 fail(); in testUpdate()
426 fail("SecurityException expected"); in testRegularAppCannotAccessApis()
432 fail("SecurityException expected"); in testRegularAppCannotAccessApis()
438 fail("SecurityException expected"); in testRegularAppCannotAccessApis()
444 fail("SecurityException expected"); in testRegularAppCannotAccessApis()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionParamsTest.java44 import static org.junit.Assert.fail;
240 fail("Expected to fail due to invalid ikeOption"); in testAddInvalidIkeOption()
249 fail("Expected to fail due to invalid ikeOption"); in testRemoveInvalidIkeOption()
263 fail("Expected to fail due to invalid ikeOption"); in testCheckInvalidIkeOption()
296 fail("Expected to fail due to invalid DPD delay"); in testBuildWithInvalidDpdDelay()
328 fail("Expected to fail due to invalid retransmission timeout"); in testBuildWithInvalidRetransmissionTimeout()
341 fail("Expected to fail due to invalid max retransmission times"); in testBuildWithInvalidMaxRetransmissionAttempts()
423 fail("Expected to fail because DSA is not supported"); in testBuildWithDsaDigitalSignatureAuth()
491 fail("Expected to fail due to absence of SA proposal."); in testBuildWithoutSaProposal()
505 fail("Expected to fail because local identification is not set."); in testBuildWithoutLocalId()
[all …]
DIkeTrafficSelectorTest.java24 import static org.junit.Assert.fail;
186 fail("Expected to fail due to invalid Traffic Selector Type."); in testDecodeIkeTrafficSelectorWithInvalidTsType()
200 fail("Expected to fail due to invalid IP Protocol ID."); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()
213 fail("Expected to fail due to unexpected trailing characters."); in testDecodeIkeTrafficSelectorWithExpectedTrailing()
230 fail("Expected to fail due to invalid Traffic Selector length."); in testDecodeIkeTrafficSelectorWithInvalidTsLength()
243 fail("Expected to fail when start port is larger than end port."); in testDecodeIkeTrafficSelectorWithInvalidPortRange()
256 fail("Expected to fail when starting address is larger than ending address."); in testDecodeIkeTrafficSelectorWithInvalidAddressRange()
272 fail("Expected to fail due to unrecognized Traffic Selector type."); in testBuildIkeTrafficSelectorWithInvalidTsType()
288 fail("Expected to fail due to invalid port range."); in testBuildIkeTrafficSelectorWithInvalidPortRange()
305 fail("Expected to fail due to mismatched address format."); in testBuildIkeTrafficSelectorWithMismatchedAddressType()
[all …]
DSaProposalTest.java33 import static org.junit.Assert.fail;
159 fail("Expected to fail when no encryption algorithm is proposed."); in testBuildEncryptAlgosWithNoAlgorithm()
169 fail("Expected to fail when unrecognized encryption algorithm is proposed."); in testBuildEncryptAlgosWithUnrecognizedAlgorithm()
182 fail( in testBuildEncryptAlgosWithTwoModes()
196 fail("Expected to fail when PRF is not provided in IKE SA proposal."); in testBuildIkeProposalWithoutPrf()
214 fail("Expected to fail when not-none integrity algorithm is proposed with AEAD"); in testBuildAeadWithIntegrityAlgo()
230 fail( in testBuildIkeProposalNormalCipherWithoutIntegrityAlgo()
250 fail( in testBuildIkeProposalNormalCipherWithNoneValueIntegrityAlgo()
267 fail("Expected to fail when no DH Group is proposed in IKE SA proposal."); in testBuildIkeProposalWithoutDhGroup()
284 fail("Expected to fail when none-value DH Group is proposed in IKE SA proposal."); in testBuildIkeProposalWithNoneValueDhGroup()
DTunnelModeChildSessionParamsTest.java37 import static org.junit.Assert.fail;
206 fail("Expected to fail because DHCP6 is not supported."); in testBuildChildSessionParamsWithDhcp6SeverReq()
219 fail("Expected to fail due to invalid address family value"); in testBuildChildSessionParamsWithInvalidDhcpReq()
231 fail("Expected failure because hard lifetime is too long"); in testSetHardLifetimeTooLong()
242 fail("Expected failure because hard lifetime is too short"); in testSetHardLifetimeTooShort()
253 fail("Expected failure because soft lifetime is too long"); in testSetSoftLifetimeTooLong()
263 fail("Expected failure because soft lifetime is too short"); in testSetSoftLifetimeTooShort()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiQrCodeTest.java22 import static org.junit.Assert.fail;
181 fail("Null QR code"); in parseEmptyQrCode_shouldThrowIllegalArgumentException()
188 fail("Empty string QR code"); in parseEmptyQrCode_shouldThrowIllegalArgumentException()
195 fail("Empty content WIFI DPP QR code"); in parseEmptyQrCode_shouldThrowIllegalArgumentException()
202 fail("Empty content ZXing WIFI QR code"); in parseEmptyQrCode_shouldThrowIllegalArgumentException()
212 fail("Invalid scheme"); in parseInvalidSchemeQrCode_shouldThrowIllegalArgumentException()
222 fail("No public key case 1"); in parseInvalidWifiDppQrCode_noPublicKey_shouldThrowIllegalArgumentException()
229 fail("No public key case 2"); in parseInvalidWifiDppQrCode_noPublicKey_shouldThrowIllegalArgumentException()
239 fail("No password"); in parseInvalidZxingWifiQrCode_noPassword_shouldThrowIllegalArgumentException()
249 fail("No SSID"); in parseInvalidZxingWifiQrCode_noSsid_shouldThrowIllegalArgumentException()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DWriteableArchiveTest.java95 fail("Creating should fail, as the document already exists."); in testCreateDocument()
103 fail("Creating should fail, as the document name is invalid."); in testCreateDocument()
111 fail("Creating should fail, as the document name is invalid."); in testCreateDocument()
119 fail("Creating should fail, as the document name is invalid."); in testCreateDocument()
127 fail("Creating should fail, as the document name is invalid."); in testCreateDocument()
135 fail("Creating should fail, as the document name is invalid."); in testCreateDocument()
143 fail("Creating should fail, as the document name is invalid."); in testCreateDocument()
218 fail("Should fail when opened for reading!"); in testAddFile()
231 fail("Should fail when opened for the second time!"); in testAddFile()
DArchiveHandleTest.java20 import static org.junit.Assert.fail;
155 fail("It should not be here!"); in buildArchiveHandle_withoutFileDescriptor_shouldBeIllegal()
168 fail("It should not be here!"); in buildArchiveHandle_withWrongMimeType_shouldBeIllegal()
195 fail("It should not be here!"); in buildArchiveHandle_zipWithWrongMimeType_shouldBeNull()
395 fail("It should not be here."); in getInputStream_zipFileNotExistEntry_shouldFail()
411 fail("It should not be here."); in getInputStream_directoryEntry_shouldFail()
428 fail("It should not be here."); in getInputStream_zeroSizeEntry_shouldFail()
446 fail("It should not be here."); in getInputStream_emptyStringEntry_shouldFail()
503 fail("It should not here"); in getInputStream_tarGzFileNullEntry_getNullInputStream()
525 fail("It should not here"); in getInputStream_tarGzFileInvalidEntry_getNullInputStream()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSessionTest.java19 import static junit.framework.Assert.fail;
72 fail("Exception: " + e.getMessage()); in testRecursion_printFullSessionTree()
103 fail("Exception: " + e.getMessage()); in testRecursion_getFullMethodPath()
134 fail("Exception: " + e.getMessage()); in testRecursion_getFullMethodPathTruncated()
166 fail("Exception: " + e.getMessage()); in testRecursion_toString()
197 fail("Exception: " + e.getMessage()); in testRecursion_getInfo()
234 fail("Exception: " + e.getMessage()); in testRecursion()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java187 fail(e.toString()); in LauncherInstrumentation()
205 fail(e.toString()); in LauncherInstrumentation()
236 fail("Can't detect navigation mode"); in getNavigationModel()
238 fail(e.toString()); in getNavigationModel()
332 private void fail(String message) { in fail() method
353 Assert.fail(message); in fail()
362 fail(message); in assertTrue()
371 fail(message + ". " + "Actual: " + actual); in failEquals()
376 fail(message + " expected: " + expected + " but was: " + actual); in assertEquals()
382 fail(message + " expected: '" + expected + "' but was: '" + actual + "'"); in assertEquals()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2TypeDataTest.java35 import static org.junit.Assert.fail;
61 fail("ExpectedEapMsChapV2ParsingException for invalid OpCode"); in testEapMsChapV2TypeDataConstructor()
77 fail("ExpectedEapMsChapV2ParsingException for invalid OpCode"); in testEapMsChapV2VariableTypeDataConstructor()
117 fail("Expected EapMsChapV2ParsingException for extra '='s in message"); in testGetMessageMappingsInvalidFormat()
126 fail("Expected EapMsChapV2ParsingException for duplicate key in message"); in testGetMessageMappingDuplicateKey()
141 fail("Expected EapMsChapV2ParsingException for invalid hex string length"); in testHexStringToByteArrayInvalidLength()
150 fail("Expected NumberFormatException for invalid hex chars"); in testHexStringToByteArrayInvalidChars()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapMessageTest.java45 import static org.junit.Assert.fail;
62 fail("Expected EapInvalidPacketLengthException for an EAP-Request without Type value"); in testConstructorRequestWithoutType()
88 fail("Expected InvalidEapCodeException"); in testDecodeInvalidCode()
97 fail("Expected EapInvalidPacketLengthException"); in testDecodeIncompleteHeader()
106 fail("Expected EapInvalidPacketLengthException"); in testDecodeShortPacket()
115 fail("Expected EapInvalidPacketLengthException"); in testDecodeSuccessIncorrectLength()
124 fail("Expected EapInvalidPacketLengthException"); in testDecodeMissingTypeData()
133 fail("Expected UnsupportedEapDataTypeException"); in testDecodeUnsupportedEapType()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DBlockingHttpClientTests.java21 import static org.junit.Assert.fail;
70 fail("Expecting an HttpException"); in testError_badGateway()
86 fail("Expecting an HttpException"); in testError_clientTimeout()
103 fail("Expecting an HttpException"); in testError_forbiddenWithRequest()
145 fail("Expected an error but received success"); in onSuccess()
174 fail("IOException in onSuccess"); in onSuccess()
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java93 fail("Unknown attribute '" + attribute in testFilterValidAttributes()
149 fail("Unknown attribute '" + attribute in testCarrierConfigFileNaming()
160 fail("unexpected carrier_config_mccmnc.xml with matching carrier id: " in testCarrierConfigFileNaming()
208 fail("unexpected tag: '" + parser.getName() in testVariableNames()
264 fail(e.toString()); in forEachConfigXml()
291 fail("non-static key in " + clazz.getName() + ":" + f.toString()); in getCarrierConfigXmlNames()
345 fail("Should be able to access APIs protected by a permission apps cannot get"); in getCarrierId()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java21 import static junit.framework.Assert.fail;
114 fail("Remote exception while injecting events."); in injectEvent()
132 fail("Remote exception while injecting errors."); in injectError()
232 fail("Unexpected onPropertySet call"); in onPropertySet()
237 fail("Unexpected onPropertyGet call"); in onPropertyGet()
243 fail("Unexpected onPropertySubscribe call"); in onPropertySubscribe()
248 fail("Unexpected onPropertyUnsubscribe call"); in onPropertyUnsubscribe()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java519 Assert.fail("Unexpected query: Actual:" in query()
534 Assert.fail("Incorrect query. Expected one of: " + mExpectedQueries + ". Actual: " + in query()
542 Assert.fail("Unexpected getType query: " + uri); in getType()
550 Assert.fail("Unknown mime type for: " + uri); in getType()
557 Assert.fail("Unexpected insert. Actual: " + insertToString(uri, values)); in insert()
570 Assert.fail("Incorrect insert. Expected one of: " + mExpectedInserts + ". Actual: " in insert()
585 Assert.fail("Unexpected update. Actual: " in update()
599 Assert.fail("Incorrect update. Expected one of: " + mExpectedUpdates + ". Actual: " in update()
615 Assert.fail("Unexpected delete. Actual: " + deleteToString(uri, selection, in delete()
628 Assert.fail("Incorrect delete. Expected one of: " + mExpectedDeletes + ". Actual: " in delete()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationActivityUiState.java136 Assert.fail("Invalid contact picking mode for ConversationActivity!"); in getDesiredContactPickingMode()
158 Assert.fail("Invalid conversation activity state: can't create conversation!"); in onGetOrCreateConversation()
189 Assert.fail("Invalid conversation activity state: can't add more participants!"); in onAddMoreParticipants()
248 Assert.fail("Unbalanced Ui updates!"); in endUiUpdate()
293 Assert.fail("ConversationActivityUiState: failed to clone(). Is there a mutable " + in clone()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java169 Assert.fail("Cannot add Intent to the queue"); in onReceive()
180 Assert.fail("Cannot obtain an Intent from the queue"); in waitForIntent()
203 Assert.fail("Cannot obtain a callback from the queue"); in verifyCallback()
216 Assert.fail("Cannot add Intent to the queue"); in onAppStatusChanged()
228 Assert.fail("Cannot add Intent to the queue"); in onGetReport()
236 Assert.fail("Cannot add Intent to the queue"); in onSetReport()
244 Assert.fail("Cannot add Intent to the queue"); in onSetProtocol()
252 Assert.fail("Cannot add Intent to the queue"); in onInterruptData()
260 Assert.fail("Cannot add Intent to the queue"); in onVirtualCableUnplug()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java275 fail("No conversations in database"); in testWriteAndReadDraft()
349 fail("Cannot open output file"); in testBugleDatabaseDraftOperations()
351 fail("Cannot write output file"); in testBugleDatabaseDraftOperations()
383 fail("Cannot open input file"); in testBugleDatabaseDraftOperations()
385 fail("Cannot read input file"); in testBugleDatabaseDraftOperations()
395 fail("Cannot open output file"); in testBugleDatabaseDraftOperations()
397 fail("Cannot write output file"); in testBugleDatabaseDraftOperations()
435 fail("Cannot open input file"); in testBugleDatabaseDraftOperations()
437 fail("Cannot read input file"); in testBugleDatabaseDraftOperations()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayloadTest.java28 import static org.junit.Assert.fail;
316 fail("Expected InvalidSyntaxException for invalid key length."); in testDecodeEncryptionTransformWithInvalidKeyLength()
335 fail("Expected IllegalArgumentException for unsupported Transform ID"); in testConstructEncryptionTransformWithUnsupportedId()
344 fail("Expected IllegalArgumentException for invalid key length."); in testConstructEncryptionTransformWithInvalidKeyLength()
379 fail("Expected IllegalArgumentException for unsupported Transform ID"); in testConstructPrfTransformWithUnsupportedId()
430 fail("Expected IllegalArgumentException for unsupported Transform ID"); in testConstructIntegrityTransformWithUnsupportedId()
465 fail("Expected IllegalArgumentException for unsupported Transform ID"); in testConstructDhGroupTransformWithUnsupportedId()
557 fail("Expected InvalidSyntaxException for repeated Attribute Type Key Length."); in testDecodeTransformWithRepeatedAttribute()
689 fail("Expected to fail due to more than one proposal in response SA payload.");
883 fail("Expected to fail because negotiated proposal has unrecognized Transform.");
[all …]
DIkeDeletePayloadTest.java27 import static org.junit.Assert.fail;
101 fail("Expected to fail due to unrecognized protocol ID."); in testDecodeWithInvalidProtocol()
116 fail("Expected to fail due to invalid SPI size in Delete IKE Payload."); in testDecodeWithInvalidSpiSize()
131 fail("Expected to fail because number of SPI is not zero in Delete IKE Payload."); in testDecodeWithInvalidNumSpi()
147 fail("Expected to fail due to invalid SPI size in Delete IKE Payload."); in testDecodeWithInvalidNumSpiAndSpiSize()
189 fail("Expected exception for invalid SPI list"); in testOutboundConstructorWithNoChildSas()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DParametersTest.java109 fail("Query:{Uri=" + channelsUri + "} should throw exception"); in verifyChannelQuery()
113 fail("Query failed due to:" + e); in verifyChannelQuery()
123 fail("Update:{Uri=" + channelsUri + "} should throw exception"); in verifyChannelUpdate()
128 fail("Update failed due to:" + e); in verifyChannelUpdate()
138 fail("Delete:{Uri=" + channelsUri + "} should throw exception"); in verifyChannelDelete()
143 fail("Delete failed due to:" + e); in verifyChannelDelete()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java124 fail(); in testBuilderValidation_NonMovingStateHasOneRestriction()
142 fail(); in testBuilderValidation_PassengerModeNoSpeedRangeOverlap()
171 fail(); in testBuilderValidation_MultipleSpeedRange_NonZeroStart()
184 fail(); in testBuilderValidation_SpeedRange_NonZeroStart()
200 fail(); in testBuilderValidation_SpeedRange_Overlap()
216 fail(); in testBuilderValidation_SpeedRange_Gap()
228 fail(); in testBuilderValidation_NonMovingStateCannotUseSpeedRange()
245 fail(); in testBuilderValidation_MultipleMovingRestrictionsShouldAllContainSpeedRange()
806 fail(); in verifyConfigThroughJsonSerialization()
816 fail(); in verifyConfigThroughJsonSerialization()

12345678910>>...16