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

1234567891011>>

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
H A DWindowManagerPermissionTests.java46 fail("IWindowManager.pauseKeyDispatching did not throw SecurityException as"
51 fail("Unexpected remote exception");
56 fail("IWindowManager.resumeKeyDispatching did not throw SecurityException as"
61 fail("Unexpected remote exception");
66 fail("IWindowManager.setEventDispatching did not throw SecurityException as"
71 fail("Unexpected remote exception");
76 fail("IWindowManager.addWindowToken did not throw SecurityException as"
81 fail("Unexpected remote exception");
86 fail("IWindowManager.removeWindowToken did not throw SecurityException as"
91 fail("Unexpecte
[all...]
H A DActivityManagerPermissionTests.java43 fail("IActivityManager.moveTaskToFront did not throw SecurityException as"
48 fail("Unexpected remote exception");
53 fail("IActivityManager.moveTaskToFront did not throw SecurityException as"
58 fail("Unexpected remote exception");
66 fail("IActivityManager.updateConfiguration did not throw SecurityException as"
71 fail("Unexpected remote exception");
79 fail("IActivityManager.setDebugApp did not throw SecurityException as"
84 fail("Unexpected remote exception");
92 fail("IActivityManager.setProcessLimit did not throw SecurityException as"
97 fail("Unexpecte
[all...]
H A DPmPermissionsTests.java45 fail("PackageManager.getPackageSizeInfo" +
60 fail("PackageManager.deleteApplicationCacheFiles" +
79 fail("PackageManager.installPackage" +
94 fail("PackageManager.freeStorage " +
109 fail("PackageManager.freeStorageAndNotify" +
124 fail("PackageManager.clearApplicationUserData" +
139 fail("PackageManager.deletePackage" +
H A DServiceManagerPermissionTests.java41 fail("ServiceManager.addService did not throw SecurityException as"
68 fail("IServiceManager.setPermissionController did not throw SecurityException as"
73 fail("Unexpected remote exception");
H A DSmsManagerPermissionTest.java45 fail("SmsManager.sendTextMessage did not throw SecurityException as expected");
61 fail("SmsManager.sendDataMessage did not throw SecurityException as expected");
80 fail("SmsManager.sendMultipartTextMessage did not throw SecurityException as expected");
H A DVibratorServicePermissionTest.java53 fail("vibrate did not throw SecurityException as expected");
70 fail("vibratePattern did not throw SecurityException as expected");
85 fail("cancelVibrate did not throw SecurityException as expected");
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/error/
H A DFailingTest.java24 fail("Expected");
28 fail("Expected");
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneFactoryTest.java23 import static org.junit.Assert.fail;
31 fail("Expecting IllegalStateException");
37 fail("Expecting IllegalStateException");
43 fail("Expecting IllegalStateException");
H A DPhoneSwitcherTest.java49 fail(str + "\n" + SubscriptionMonitorTest.stack());
220 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed initially");
221 if (phoneSwitcher.isPhoneActive(0)) fail("phone active initially");
226 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed after request");
227 if (phoneSwitcher.isPhoneActive(0)) fail("phone active after request");
237 fail("pretest of ActivePhoneSwitchCount");
247 if (threw == false) fail("register with bad phoneId didn't throw");
255 fail("post register of ActivePhoneSwitchCount not 1!");
262 fail("after set of default to 0, ActivePhoneSwitchCount not 1!");
264 if (commandsInterfaces[0].isDataAllowed()) fail("dat
[all...]
H A DATResponseParserTest.java33 fail("exception expected");
55 fail("exception expected");
69 fail("exception expected");
80 fail("exception expected");
105 fail("expected ex");
H A DSubscriptionMonitorTest.java44 fail(str + "\n" + SubscriptionMonitorTest.stack());
195 fail("pretest of SubscriptionChangedCount");
198 fail("pretest of DefaultSubscriptionChangedCount");
206 fail("test1 of SubscriptionChangedCount");
209 fail("test1 of DefaultSubscriptionChangedCount");
217 fail("test2 of SubscriptionChangedCount");
220 fail("test2 of DefaultSubscriptionChangedCount");
227 fail("test3 of SubscriptionChangedCount, " +
231 fail("test3 of DefaultSubscriptionChangedCount, " +
239 fail("test
[all...]
H A DSms7BitEncodingTranslatorTest.java29 import static org.junit.Assert.fail;
66 fail(e.toString());
79 fail(e.toString());
95 fail(e.toString());
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/constructor/
H A DProtectedConstructorTest.java30 fail("method in ProtectedConstructorTest run unexpectedly");
H A DNoPublicConstructorTest.java33 fail("method in NoPublicConstructorTest run unexpectedly");
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DListChangeRegistryTest.java55 fail("onItemRangeChanged should not be called");
60 fail("onItemRangeInserted should not be called");
65 fail("onItemRangeMoved should not be called");
70 fail("onItemRangeRemoved should not be called");
87 fail("onChanged should not be called");
99 fail("onItemRangeInserted should not be called");
104 fail("onItemRangeMoved should not be called");
109 fail("onItemRangeRemoved should not be called");
126 fail("onChanged should not be called");
131 fail("onItemRangeChange
[all...]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
H A DTestJobListener.java20 import static org.junit.Assert.fail;
56 fail("Job didn't start. onStart never called.");
62 fail("Job didn't finish. onFinish never called.");
68 fail("Job didn't fail. onFailed never called.");
74 fail("Can't test failed documetns. Job didn't fail.");
85 fail("Can't test failed documetns. Job didn't fail.");
93 fail("Could
[all...]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DLineVerifierElem.java58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found");
65 TestCase.fail("Multiple \"END:VCARD\" line found");
74 TestCase.fail("Multiple VERSION line + found");
82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line);
84 TestCase.fail("Property other than END came after END property: " + line);
91 TestCase.fail("Unexpected line: " + line);
102 TestCase.fail("Expected line(s) not found:" + buffer.toString());
H A DVCardVerifier.java108 AndroidTestCase.fail("Already initialized");
123 AndroidTestCase.fail("Already initialized");
140 AndroidTestCase.fail("Wrong resId: " + resId);
147 AndroidTestCase.fail("addInputEntry() is called.");
149 AndroidTestCase.fail("InputStream is already set");
156 AndroidTestCase.fail("Not initialized");
159 AndroidTestCase.fail("setInputStream is called");
166 AndroidTestCase.fail("Not initialized");
193 AndroidTestCase.fail("Not initialized");
209 AndroidTestCase.fail("No
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DLocalSocketTest.java88 fail("expected exception");
95 fail("expected exception");
102 fail("expected exception");
109 fail("expected exception");
116 fail("expected exception");
123 fail("expected exception");
142 fail("expected exception");
151 fail("expected exception");
160 fail("expected exception");
H A DIpPrefixTest.java50 fail("Expected NullPointerException: null byte array");
55 fail("Expected NullPointerException: null InetAddress");
60 fail("Expected NullPointerException: null String");
67 fail("Expected IllegalArgumentException: invalid array length");
72 fail("Expected IllegalArgumentException: no prefix length");
77 fail("Expected IllegalArgumentException: empty prefix length");
82 fail("Expected IllegalArgumentException: invalid address");
87 fail("Expected IllegalArgumentException: deprecated IPv4 format");
92 fail("Expected IllegalArgumentException: invalid IPv4 address");
97 fail("Expecte
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
H A DScanSettingsTest.java39 fail("should have thrown IllegalArgumentException!");
48 fail("should have thrown IllegalArgumentException!");
58 fail("should have thrown IllegalArgumentException!");
/frameworks/base/core/tests/utiltests/src/android/util/
H A DMemoryIntArrayTest.java23 import static org.junit.Assert.fail;
127 fail("Cannot interact with a closed instance");
134 fail("Cannot interact with a closed instance");
141 fail("Cannot interact with a closed instance");
148 fail("Cannot interact with a closed instance");
167 fail("Cannot interact out of array bounds");
174 fail("Cannot interact out of array bounds");
181 fail("Cannot interact out of array bounds");
188 fail("Cannot interact out of array bounds");
202 fail("Canno
[all...]
/frameworks/base/keystore/tests/src/android/security/
H A DKeyPairGeneratorSpecTest.java94 fail("Should throw IllegalArgumentException when context is null");
103 fail("Should throw IllegalArgumentException when keystoreAlias is null");
112 fail("Should throw IllegalArgumentException when subjectDN is null");
121 fail("Should throw IllegalArgumentException when startDate is null");
130 fail("Should throw IllegalArgumentException when startDate is null");
139 fail("Should throw IllegalArgumentException when keystoreAlias is null");
148 fail("Should throw IllegalArgumentException when end is before start");
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DTelephonyNetworkFactoryTest.java155 fail("pretest of LiveRequests != 0");
161 fail("post-active test of LiveRequests != 1");
167 fail("post-second-request test of LiveRequests != 2");
173 fail("post-inactive test of LiveRequests != 0");
179 fail("post-mms-add test of LiveRequests != 0");
185 fail("post-active-mms-add test of LiveRequests != 3");
191 fail("post-remove-default test of LiveRequests != 2");
197 fail("test 8, LiveRequests != 0");
203 fail("test 9, LiveRequests != 0");
209 fail("tes
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraUtilsUncheckedThrowTest.java35 Assert.fail("unreachable");

Completed in 514 milliseconds

1234567891011>>