Home
last modified time | relevance | path

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

12345678910>>...23

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DWindowManagerPermissionTests.java50 fail("IWindowManager.setEventDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
55 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
60 fail("IWindowManager.addWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
65 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
70 fail("IWindowManager.prepareAppTransition did not throw SecurityException as" in testMANAGE_APP_TOKENS()
75 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
80 fail("IWindowManager.executeAppTransition did not throw SecurityException as" in testMANAGE_APP_TOKENS()
85 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
94 fail("IWindowManager.disableKeyguard did not throw SecurityException as" in testDISABLE_KEYGUARD()
99 fail("Unexpected remote exception"); in testDISABLE_KEYGUARD()
[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/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamIncompleteValueTest.java53 fail("Should have thrown a ProtoParseException"); in testIncompleteVarint()
56 fail("Unexpected field id " + pi.getFieldNumber()); in testIncompleteVarint()
65 fail("Test should not have reached this point..."); in testIncompleteVarint()
91 fail("Should have thrown a ProtoParseException"); in testIncompleteFixed64()
94 fail("Unexpected field id " + pi.getFieldNumber()); in testIncompleteFixed64()
103 fail("Test should not have reached this point..."); in testIncompleteFixed64()
129 fail("Should have thrown a ProtoParseException"); in testIncompleteLengthDelimited()
132 fail("Unexpected field id " + pi.getFieldNumber()); in testIncompleteLengthDelimited()
141 fail("Test should not have reached this point..."); in testIncompleteLengthDelimited()
166 fail("Should have thrown a ProtoParseException"); in testIncompleteFixed32()
[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 thrown IllegalArgumentException"); in testBadReadType()
406 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
415 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
424 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
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 thrown IllegalArgumentException"); in testBadReadType()
399 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
408 fail("Should have thrown 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 thrown IllegalArgumentException"); in testBadReadType()
302 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
311 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
320 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
329 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
338 fail("Should have thrown 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 thrown IllegalArgumentException"); in testBadReadType()
469 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
478 fail("Should have thrown 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 thrown IllegalArgumentException"); in testBadReadType()
321 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
330 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
339 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
348 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
357 fail("Should have thrown 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 thrown IllegalArgumentException"); in testBadReadType()
446 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
455 fail("Should have thrown 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 thrown IllegalArgumentException"); in testBadReadType()
446 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
455 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
DProtoInputStreamUInt32Test.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()
231 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeated()
280 fail("Unexpected field id " + pi.getFieldNumber()); in testRepeatedCompat()
377 fail("Unexpected field id " + pi.getFieldNumber()); in testPacked()
426 fail("Unexpected field id " + pi.getFieldNumber()); in testPackedCompat()
454 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
463 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
472 fail("Should have thrown 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 thrown IllegalArgumentException"); in testBadReadType()
446 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
455 fail("Should have thrown IllegalArgumentException"); in testBadReadType()
[all …]
/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.java118 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
126 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
139 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
147 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
161 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
169 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
202 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
210 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
223 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
231 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/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"

12345678910>>...23