Searched refs:fail (Results 1 - 25 of 145) sorted by relevance

123456

/packages/apps/Messaging/src/com/android/messaging/util/
H A DAssert.java84 fail("Expected condition to be true", false);
93 fail("Expected condition to be false", false);
102 fail("Expected condition to be true", true);
108 fail("Expected " + expected + " but got " + actual, false);
114 fail("Expected " + expected + " but got " + actual, false);
121 fail("Expected " + expected + " but got " + actual, false);
131 fail("Expected value to be one of " + Arrays.toString(expected) + " but was " + actual);
137 fail("Expected value in range [" + rangeMinInclusive + ", " +
145 fail("Expected value in range [" + rangeMinInclusive + ", " +
153 fail("Expecte
195 public static void fail(final String message) { method in class:Assert
199 private static void fail(final String message, final boolean crashRelease) { method in class:Assert
[all...]
H A DVersionUtil.java47 Assert.fail("couldn't get package info " + exception);
H A DSafeAsyncTask.java120 Assert.fail(this + " took too long");
130 Assert.fail("Use SafeAsyncTask.executeOnThreadPool");
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DMockMasInstance.java28 Assert.fail("restartObexServerSession() should not occur");
H A DSecurityTest.java40 fail();
44 fail();
/packages/apps/Settings/tests/src/com/android/settings/
H A DDeviceInfoSettingsTest.java27 fail("formatKernelVersion can't cope with this device's /proc/version");
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DBugleMediaCacheManager.java49 Assert.fail("BugleMediaCacheManager: unsupported cache id " + id);
H A DGifImageResource.java47 // Nothing to do if we fail closing the stream
63 Assert.fail("GetBitmap() should never be called on a gif.");
69 Assert.fail("GetBytes() should never be called on a gif.");
88 Assert.fail("GifImageResource should not be used by a media cache");
/packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/
H A DDownloadProviderPermissionsTest.java59 fail("Was able to create and write to " + filePath);
80 fail("write to provider did not throw SecurityException as expected.");
98 fail("starting download service did not throw SecurityException as expected.");
/packages/apps/Email/tests/src/com/android/email/
H A DTestUtils.java68 fail("Expected throwable not thrown.");
73 fail("Cought unexpected throwable " + th.getClass().getName());
84 fail();
95 fail();
128 fail(message + ": Timeout");
132 // Shouldn't fail.
141 // Condition never meets, should fail.
153 * send key events will fail.
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DCollectionUtilsTests.java45 fail("Failed to catch start < 0");
52 fail("Failed to catch start > end");
59 fail("Failed to catch end > array.length");
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationActivityUiState.java136 Assert.fail("Invalid contact picking mode for ConversationActivity!");
158 Assert.fail("Invalid conversation activity state: can't create conversation!");
189 Assert.fail("Invalid conversation activity state: can't add more participants!");
248 Assert.fail("Unbalanced Ui updates!");
293 Assert.fail("ConversationActivityUiState: failed to clone(). Is there a mutable " +
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
H A DBlockingHttpClientTests.java63 fail("Expecting an HttpException");
78 fail("Expecting an HttpException");
94 fail("Expecting an HttpException");
134 fail("Expected an error but received success");
163 fail("IOException in onSuccess");
H A DHttpUrlConnectionBuilderTests.java46 fail("Expected a MalformedURLException.");
56 fail("Expected an IllegalArgumentException.");
74 fail("Expected an IllegalArgumentException.");
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
H A DParserTest.java119 fail("Expected EasParserException for unsupported tag 0xC2");
131 fail("Expected EasParserException for unknown code page 64");
162 fail("Expected EasParserException for trying to read opaque data as text");
186 fail("Expected EasParserException for nonnumeric char 'D'");
216 fail("Expected EasParserException for improperly escaped text data");
227 fail("Expected EasParserException for improperly encoded integer");
239 fail("Expected EasParserException for tag with attributes 0xDF");
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DEvenMoreAsserts.java47 // Cannot invoke Assert.fail() here because it will be caught by the try/catch below
52 Assert.fail(appendUserMessage("Exception " + exception + " expected but " +
57 Assert.fail(appendUserMessage(
95 // Length or hashCode is different. We'll fail, but put the dimensions in the message.
96 Assert.fail(failReason + ", expected dimentions=" + getImageDimensions(expected) +
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
H A DCarrierConfigTest.java62 fail("Unknown attribute '" + attribute
105 fail("unexpected tag: '" + parser.getName()
119 * {@link #check} should {@link #fail} if the test does not pass.
156 fail(e.toString());
170 fail("non-static key in CarrierConfigManager: " + f.toString());
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DMediaPickerData.java70 Assert.fail("Unknown loader id for gallery picker!");
93 Assert.fail("Unknown loader id for gallery picker!");
115 Assert.fail("Unknown loader id for media picker!");
135 Assert.fail("Unsupported loader id for media picker!");
H A DContactPickerData.java81 Assert.fail("Unknown loader id for contact picker!");
109 Assert.fail("Unknown loader id for contact picker!");
148 Assert.fail("Unknown loader id for contact picker!");
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
H A DImgSrcReplacementTest.java140 } catch (ComparisonFailure fail) {
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DDatabaseAsserts.java34 Assert.fail("delete operation should have failed with UnsupportedOperationException on"
45 Assert.fail("insert operation should have failed with UnsupportedOperationException on"
/packages/apps/Camera/tests/src/com/android/camera/stress/
H A DCameraStartUp.java62 fail("Fails to get the output file");
86 fail("Fails to launch video output file");
111 fail("Camera write output to file");
/packages/apps/Camera2/tests/src/com/android/camera/stress/
H A DCameraStartUp.java62 fail("Fails to get the output file");
86 fail("Fails to launch video output file");
111 fail("Camera write output to file");
/packages/apps/Camera2/tests_camera/src/com/android/camera/stress/
H A DCameraStartUp.java62 fail("Fails to get the output file");
86 fail("Fails to launch video output file");
111 fail("Camera write output to file");
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
H A DCameraStartUp.java62 fail("Fails to get the output file");
86 fail("Fails to launch video output file");
111 fail("Camera write output to file");

Completed in 1198 milliseconds

123456