Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DWindowManagerPermissionTests.java47 fail("IWindowManager.setEventDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
52 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
57 fail("IWindowManager.addWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
62 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
67 fail("IWindowManager.removeWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
72 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
77 fail("IWindowManager.prepareAppTransition did not throw SecurityException as" in testMANAGE_APP_TOKENS()
82 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
87 fail("IWindowManager.executeAppTransition did not throw SecurityException as" in testMANAGE_APP_TOKENS()
92 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
[all …]
DActivityManagerPermissionTests.java44 fail("IActivityManager.moveTaskToFront did not throw SecurityException as" in testREORDER_TASKS()
49 fail("Unexpected remote exception"); in testREORDER_TASKS()
57 fail("IActivityManager.updateConfiguration did not throw SecurityException as" in testCHANGE_CONFIGURATION()
62 fail("Unexpected remote exception"); in testCHANGE_CONFIGURATION()
70 fail("IActivityManager.setDebugApp did not throw SecurityException as" in testSET_DEBUG_APP()
75 fail("Unexpected remote exception"); in testSET_DEBUG_APP()
83 fail("IActivityManager.setProcessLimit did not throw SecurityException as" in testSET_PROCESS_LIMIT()
88 fail("Unexpected remote exception"); in testSET_PROCESS_LIMIT()
96 fail("IActivityManager.setAlwaysFinish did not throw SecurityException as" in testALWAYS_FINISH()
101 fail("Unexpected remote exception"); in testALWAYS_FINISH()
[all …]
DPmPermissionsTests.java45 fail("PackageManager.getPackageSizeInfo" + in testGetPackageSize()
60 fail("PackageManager.deleteApplicationCacheFiles" + in testDeleteApplicationCacheFiles()
82 fail("PackageManager.freeStorage " + in testFreeStorage1()
97 fail("PackageManager.freeStorageAndNotify" + in testFreeStorage2()
112 fail("PackageManager.clearApplicationUserData" + in testClearApplicationUserData()
127 fail("PackageManager.deletePackage" + in testDeletePackage()
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pConfigTest.java20 import static org.junit.Assert.fail;
46 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidNetworkName()
53 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidNetworkName()
60 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidNetworkName()
66 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
72 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
78 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
85 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
91 fail("expected IllegalArgumentException"); in testBuilderInvalidNetworkName()
106 fail("Unexpected IllegalArgumentException"); in testBuilderInvalidPassphrase()
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java108 AndroidTestCase.fail("Already initialized"); in initForImportTest()
123 AndroidTestCase.fail("Already initialized"); in initForExportTest()
140 AndroidTestCase.fail("Wrong resId: " + resId); in setInputResourceId()
147 AndroidTestCase.fail("addInputEntry() is called."); in setInputStream()
149 AndroidTestCase.fail("InputStream is already set"); in setInputStream()
156 AndroidTestCase.fail("Not initialized"); in addInputEntry()
159 AndroidTestCase.fail("setInputStream is called"); in addInputEntry()
166 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithoutVersion()
193 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithEmptyName()
209 AndroidTestCase.fail("Not initialized"); in addLineVerifierElem()
[all …]
DLineVerifierElem.java58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found"); in verify()
65 TestCase.fail("Multiple \"END:VCARD\" line found"); in verify()
74 TestCase.fail("Multiple VERSION line + found"); in verify()
82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify()
84 TestCase.fail("Property other than END came after END property: " + line); in verify()
91 TestCase.fail("Unexpected line: " + line); in verify()
102 TestCase.fail("Expected line(s) not found:" + buffer.toString()); in verify()
/frameworks/base/core/tests/coretests/src/android/net/
DLocalSocketTest.java42 fail("Expected NullPointerException"); in testBasic()
49 fail("Expected NullPointerException"); in testBasic()
100 fail("expected exception"); in testBasic()
107 fail("expected exception"); in testBasic()
114 fail("expected exception"); in testBasic()
121 fail("expected exception"); in testBasic()
128 fail("expected exception"); in testBasic()
135 fail("expected exception"); in testBasic()
154 fail("expected exception"); in testBasic()
163 fail("expected exception"); in testBasic()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java113 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
121 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
133 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
141 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
154 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
162 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
194 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
202 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
214 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
222 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
[all …]
DPhoneFactoryTest.java19 import static org.junit.Assert.fail;
31 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
37 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
43 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
49 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
/frameworks/base/core/tests/utiltests/src/android/util/
DMemoryIntArrayTest.java23 import static org.junit.Assert.fail;
140 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
147 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
154 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
161 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
180 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
187 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
194 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
201 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
215 fail("Cannot use over max size"); in testOverMaxSize()
[all …]
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamBoolTest.java70 fail("Should never reach this"); in testRead()
79 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
118 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
196 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
241 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
317 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
362 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
390 fail("Should have throw IllegalArgumentException"); in testBadReadType()
399 fail("Should have throw IllegalArgumentException"); in testBadReadType()
408 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamStringTest.java90 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
132 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
217 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
264 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
293 fail("Should have throw IllegalArgumentException"); in testBadReadType()
302 fail("Should have throw IllegalArgumentException"); in testBadReadType()
311 fail("Should have throw IllegalArgumentException"); in testBadReadType()
320 fail("Should have throw IllegalArgumentException"); in testBadReadType()
329 fail("Should have throw IllegalArgumentException"); in testBadReadType()
338 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamObjectTest.java68 fail("Unexpected field id " + pi.getFieldNumber()); in parseProto()
118 fail("Unexpected field id " + pi.getFieldNumber()); in testObjectOneChar()
172 fail("Unexpected field id " + pi.getFieldNumber()); in testObjectOneLargeChar()
234 fail("Unexpected field id " + pi.getFieldNumber()); in testObjectAndTwoChars()
304 fail("Unexpected field id " + pi.getFieldNumber()); in testComplexObject()
365 fail("Unexpected field id " + pi.getFieldNumber()); in testDeepObjects()
397 fail("Should have throw IllegalArgumentException"); in testBadReadType()
406 fail("Should have throw IllegalArgumentException"); in testBadReadType()
415 fail("Should have throw IllegalArgumentException"); in testBadReadType()
424 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamBytesTest.java94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
142 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
228 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
280 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
312 fail("Should have throw IllegalArgumentException"); in testBadReadType()
321 fail("Should have throw IllegalArgumentException"); in testBadReadType()
330 fail("Should have throw IllegalArgumentException"); in testBadReadType()
339 fail("Should have throw IllegalArgumentException"); in testBadReadType()
348 fail("Should have throw IllegalArgumentException"); in testBadReadType()
357 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamInt32Test.java78 fail("Should never reach this"); in testRead()
96 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
141 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
232 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
281 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
378 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
427 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
455 fail("Should have throw IllegalArgumentException"); in testBadReadType()
464 fail("Should have throw IllegalArgumentException"); in testBadReadType()
473 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamEnumTest.java78 fail("Should never reach this"); in testRead()
96 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
140 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
232 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
281 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
379 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
431 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
460 fail("Should have throw IllegalArgumentException"); in testBadReadType()
469 fail("Should have throw IllegalArgumentException"); in testBadReadType()
478 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamFixed32Test.java76 fail("Should never reach this"); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
139 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
226 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
275 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
360 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
409 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
437 fail("Should have throw IllegalArgumentException"); in testBadReadType()
446 fail("Should have throw IllegalArgumentException"); in testBadReadType()
455 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamSInt32Test.java76 fail("Should never reach this"); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
139 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
226 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
275 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
360 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
409 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
437 fail("Should have throw IllegalArgumentException"); in testBadReadType()
446 fail("Should have throw IllegalArgumentException"); in testBadReadType()
455 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamSFixed32Test.java76 fail("Should never reach this"); in testRead()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testRead()
139 fail("Unexpected field id " + pi.getFieldNumber()); in testReadCompat()
226 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
275 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
360 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
409 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
437 fail("Should have throw IllegalArgumentException"); in testBadReadType()
446 fail("Should have throw IllegalArgumentException"); in testBadReadType()
455 fail("Should have throw IllegalArgumentException"); in testBadReadType()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DLogNullabilityTest.java20 import static org.junit.Assert.fail;
62 fail(); in nullMessage()
67 fail(); in nullMessage()
72 fail(); in nullMessage()
78 fail(); in nullMessage()
83 fail(); in nullMessage()
94 fail(); in nullMessage()
112 fail(); in nullMessageWithThrowable()
136 fail(); in nullThrowable()
154 fail(); in nullMessageWithNullThrowable()
DLongArrayQueueTest.java21 import static org.junit.Assert.fail;
50 fail("removeFirst() succeeded on an empty queue!"); in removeFirstOnEmptyQueue()
57 fail("removeFirst() succeeded on an empty queue!"); in removeFirstOnEmptyQueue()
83 fail("peekFirst() succeeded on an empty queue!"); in peekFirstOnEmptyQueue()
90 fail("peekFirst() succeeded on an empty queue!"); in peekFirstOnEmptyQueue()
113 fail("peekLast() succeeded on an empty queue!"); in peekLastOnEmptyQueue()
120 fail("peekLast() succeeded on an empty queue!"); in peekLastOnEmptyQueue()
196 fail("get(0) succeeded on an empty queue!"); in getInvalidPositions()
208 fail("get(-3) succeeded"); in getInvalidPositions()
214 fail("get(" + n + ") succeeded on a queue with " + n + " elements"); in getInvalidPositions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/
DSignedConfigTest.java21 import static org.junit.Assert.fail;
81 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNoMinSdk()
92 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNoMaxSdk()
103 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNoValues()
114 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigSdkNullMinSdk()
125 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigSdkNullMaxSdk()
136 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigNullValues()
188 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigSingleKeyNotAllowed()
210 fail("Expected InvalidConfigException"); in testParsePerSdkConfigSingleKeyWithMapInvalidValue()
253 fail("Expected InvalidConfigException or JSONException"); in testParsePerSdkConfigValuesInvalid()
[all …]
/frameworks/base/tests/net/common/java/android/net/
DIpPrefixTest.java29 import static org.junit.Assert.fail;
62 fail("Expected NullPointerException: null byte array"); in testConstructor()
67 fail("Expected NullPointerException: null InetAddress"); in testConstructor()
72 fail("Expected NullPointerException: null String"); in testConstructor()
79 fail("Expected IllegalArgumentException: invalid array length"); in testConstructor()
84 fail("Expected IllegalArgumentException: no prefix length"); in testConstructor()
89 fail("Expected IllegalArgumentException: empty prefix length"); in testConstructor()
94 fail("Expected IllegalArgumentException: invalid address"); in testConstructor()
99 fail("Expected IllegalArgumentException: deprecated IPv4 format"); in testConstructor()
104 fail("Expected IllegalArgumentException: invalid IPv4 address"); in testConstructor()
[all …]
/frameworks/base/core/jni/
Druntime_native_boot-flags-test.sh42 function fail { function
58 fail "Device did not finish booting before timeout (~$niters seconds)"
73 || fail "Device configuration flag \`$flag\` set to \`$flag_value\` (expected \`$value\`)"
87 || fail "Device configuration flag \`$flag\` set to \`$flag_value\` (expected `null`)"
115 || fail "System property \`$prop\` set to \`$prop_value\` (expected \`$value\`)"
129 || fail "System property \`$prop\` set to \`$prop_value\` (expected unset property)"
154 || fail "Found no \`$runtime_option\` among runtime options passed to \`$zygote\`"
169 && fail "Found \`$runtime_option\` among runtime options passed to \`$zygote\`"
183 || fail "Found no message \"$message\" generated by AndroidRuntime"
196 || fail "Found message \"$message\" generated by AndroidRuntime"
/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java67 Assert.fail("Null namespace should have resulted in an NPE."); in getProperty_nullNamespace()
77 Assert.fail("Null name should have resulted in an NPE."); in getProperty_nullName()
110 Assert.fail("Null namespace should have resulted in an NPE."); in getString_nullNamespace()
120 Assert.fail("Null name should have resulted in an NPE."); in getString_nullName()
157 Assert.fail("Null namespace should have resulted in an NPE."); in getBoolean_nullNamespace()
167 Assert.fail("Null name should have resulted in an NPE."); in getBoolean_nullName()
204 Assert.fail("Null namespace should have resulted in an NPE."); in getInt_nullNamespace()
214 Assert.fail("Null name should have resulted in an NPE."); in getInt_nullName()
251 Assert.fail("Null namespace should have resulted in an NPE."); in getLong_nullNamespace()
261 Assert.fail("Null name should have resulted in an NPE."); in getLong_nullName()
[all …]

12345678910>>...22