/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Assert.java | 84 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/ |
D | TestJobListener.java | 20 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/ |
D | BlockedNumberProviderTest.java | 104 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/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/ |
D | WifiQrCodeTest.java | 22 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/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LauncherInstrumentation.java | 169 fail(e.toString()); in LauncherInstrumentation() 186 fail(e.toString()); in LauncherInstrumentation() 217 fail("Can't detect navigation mode"); in getNavigationModel() 219 fail(e.toString()); in getNavigationModel() 266 private void fail(String message) { in fail() method 269 Assert.fail("http://go/tapl : " + getContextDescription() + message); in fail() 278 fail(message); in assertTrue() 287 fail(message + ". " + "Actual: " + actual); in failEquals() 292 fail(message + " expected: " + expected + " but was: " + actual); in assertEquals() 298 fail(message + " expected: '" + expected + "' but was: '" + actual + "'"); in assertEquals() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
D | WriteableArchiveTest.java | 95 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()
|
D | ArchiveHandleTest.java | 20 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | BlockingHttpClientTests.java | 21 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()
|
D | HttpUrlConnectionBuilderTests.java | 26 import static org.junit.Assert.fail; 49 fail("Expected a MalformedURLException."); in testSetUrl_malformed() 60 fail("Expected an IllegalArgumentException."); in testSetConnectTimeout_invalid() 80 fail("Expected an IllegalArgumentException."); in testSetReadTimeout_invalid()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | Pop3StoreUnitTests.java | 219 fail("MessagingException was expected due to UIDL unsupported."); in testCheckSettings() 241 fail("Should have thrown exception"); in testCheckSettingsCapabilities() 311 fail("Exception not thrown by copyMessages()"); in testSmallFolderFunctions() 403 fail("Broken stream should cause getMessages() to throw."); in testCatchClosed1a() 445 fail("Bad UIDL should cause getMessages() to throw."); in testCatchClosed1b() 488 fail("Bad UIDL should cause getMessages() to throw."); in testCatchClosed1c() 539 fail("Broken stream should cause fetch() to throw."); in testCatchClosed2() 587 fail("Broken stream should cause fetch() to throw."); in testCatchClosed2a() 645 fail("Broken stream should cause fetch() to throw."); in testCatchClosed3() 692 fail("Broken stream should cause fetch() to throw."); in testCatchClosed4() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 519 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/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 118 fail(); in testBuilderValidation_NonMovingStateHasOneRestriction() 136 fail(); in testBuilderValidation_PassengerModeNoSpeedRangeOverlap() 165 fail(); in testBuilderValidation_MultipleSpeedRange_NonZeroStart() 178 fail(); in testBuilderValidation_SpeedRange_NonZeroStart() 194 fail(); in testBuilderValidation_SpeedRange_Overlap() 210 fail(); in testBuilderValidation_SpeedRange_Gap() 222 fail(); in testBuilderValidation_NonMovingStateCannotUseSpeedRange() 239 fail(); in testBuilderValidation_MultipleMovingRestrictionsShouldAllContainSpeedRange() 697 fail(); in verifyConfigThroughJsonSerialization() 707 fail(); in verifyConfigThroughJsonSerialization()
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/ |
D | MockedVehicleHal.java | 21 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/CarrierConfig/tests/src/com/android/carrierconfig/ |
D | CarrierConfigTest.java | 75 fail("Unknown attribute '" + attribute in testFilterValidAttributes() 131 fail("Unknown attribute '" + attribute in testCarrierConfigFileNaming() 142 fail("unexpected carrier_config_mccmnc.xml with matching carrier id: " in testCarrierConfigFileNaming() 190 fail("unexpected tag: '" + parser.getName() in testVariableNames() 246 fail(e.toString()); in forEachConfigXml() 273 fail("non-static key in " + clazz.getName() + ":" + f.toString()); in getCarrierConfigXmlNames() 327 fail("Should be able to access APIs protected by a permission apps cannot get"); in getCarrierId()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | TestUtils.java | 68 fail("Expected throwable not thrown."); in expectThrowable() 73 fail("Cought unexpected throwable " + th.getClass().getName()); in expectThrowable() 84 fail(); in testExpectThrowable() 95 fail(); in testExpectThrowable() 128 fail(message + ": Timeout"); in waitUntil()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationActivityUiState.java | 136 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/ |
D | HidDeviceTest.java | 166 Assert.fail("Cannot add Intent to the queue"); in onReceive() 177 Assert.fail("Cannot obtain an Intent from the queue"); in waitForIntent() 200 Assert.fail("Cannot obtain a callback from the queue"); in verifyCallback() 213 Assert.fail("Cannot add Intent to the queue"); in onAppStatusChanged() 225 Assert.fail("Cannot add Intent to the queue"); in onGetReport() 233 Assert.fail("Cannot add Intent to the queue"); in onSetReport() 241 Assert.fail("Cannot add Intent to the queue"); in onSetProtocol() 249 Assert.fail("Cannot add Intent to the queue"); in onInterruptData() 257 Assert.fail("Cannot add Intent to the queue"); in onVirtualCableUnplug()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | ParametersTest.java | 109 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/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 276 fail("No conversations in database"); in testWriteAndReadDraft() 350 fail("Cannot open output file"); in testBugleDatabaseDraftOperations() 352 fail("Cannot write output file"); in testBugleDatabaseDraftOperations() 384 fail("Cannot open input file"); in testBugleDatabaseDraftOperations() 386 fail("Cannot read input file"); in testBugleDatabaseDraftOperations() 396 fail("Cannot open output file"); in testBugleDatabaseDraftOperations() 398 fail("Cannot write output file"); in testBugleDatabaseDraftOperations() 436 fail("Cannot open input file"); in testBugleDatabaseDraftOperations() 438 fail("Cannot read input file"); in testBugleDatabaseDraftOperations()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | CollectionUtilsTests.java | 22 import static org.junit.Assert.fail; 55 fail("Failed to catch start < 0"); in testArrayAsListFailure() 62 fail("Failed to catch start > end"); in testArrayAsListFailure() 69 fail("Failed to catch end > array.length"); in testArrayAsListFailure()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 44 import static org.junit.Assert.fail; 220 fail("Invalid packet parsed successfully: " + offerPacket); in assertLeaseTimeParses() 409 fail("Dhcp packet parsing should have failed"); in testBadIpPacket() 428 fail("Dhcp packet parsing should have failed"); in testBadDhcpPacket() 457 fail("Dhcp packet parsing should have failed"); in testBadTruncatedOffer() 488 fail("Dhcp packet parsing should have failed"); in testBadOfferWithoutACookie() 520 fail("Dhcp packet parsing should have failed"); in testOfferWithBadCookie() 555 fail(String.format("bad truncated packet of length %d", len)); in testTruncatedOfferPackets() 572 fail("bad packet: " + HexDump.toHexString(packet)); in testRandomPackets() 885 fail("Packet with invalid dst port did not throw ParseException"); in testUdpInvalidDstPort()
|
/packages/apps/KeyChain/robotests/src/com/android/keychain/ |
D | KeyChainServiceRoboTest.java | 22 import static org.junit.Assert.fail; 144 fail("didn't propagate the exception"); in testCaInstallFailedLogging() 192 fail("didn't propagate the exception"); in testNoLoggingWhenDisabled() 211 fail("didn't throw the exception"); in testBadPackagesNotAllowedToInstallCaCerts() 220 fail("didn't throw the exception"); in testNonSystemPackagesNotAllowedToInstallCaCerts()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | ResizableIntArrayTests.java | 24 import static org.junit.Assert.fail; 98 fail("get(0) shouldn't succeed"); in testGet() 104 fail("get(DEFAULT_CAPACITY) shouldn't succeed"); in testGet() 117 fail("get(length) shouldn't succeed"); in testGet() 304 fail("fill from -1 shouldn't succeed"); in testFill() 310 fail("fill negative length shouldn't succeed"); in testFill() 373 fail(message + ": insufficient length: expecteds=" + Arrays.toString(expecteds) in assertIntArrayEquals()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MediaPickerData.java | 70 Assert.fail("Unknown loader id for gallery picker!"); in onCreateLoader() 93 Assert.fail("Unknown loader id for gallery picker!"); in onLoadFinished() 115 Assert.fail("Unknown loader id for media picker!"); in onLoaderReset() 135 Assert.fail("Unsupported loader id for media picker!"); in startLoader()
|
/packages/services/Telephony/src/com/android/phone/ |
D | Assert.java | 51 public static void fail() { in fail() method in Assert 52 fail("Fail"); in fail() 55 public static void fail(String reason) { in fail() method in Assert
|