Home
last modified time | relevance | path

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

123456

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DWindowManagerPermissionTests.java47 fail("IWindowManager.pauseKeyDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
52 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
57 fail("IWindowManager.resumeKeyDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
62 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
67 fail("IWindowManager.setEventDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
72 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
77 fail("IWindowManager.addWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
82 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
87 fail("IWindowManager.removeWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
92 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
[all …]
DActivityManagerPermissionTests.java43 fail("IActivityManager.moveTaskToFront did not throw SecurityException as" in testREORDER_TASKS()
48 fail("Unexpected remote exception"); in testREORDER_TASKS()
53 fail("IActivityManager.moveTaskToBack did not throw SecurityException as" in testREORDER_TASKS()
58 fail("Unexpected remote exception"); in testREORDER_TASKS()
63 fail("IActivityManager.moveTaskToFront did not throw SecurityException as" in testREORDER_TASKS()
68 fail("Unexpected remote exception"); in testREORDER_TASKS()
76 fail("IActivityManager.updateConfiguration did not throw SecurityException as" in testCHANGE_CONFIGURATION()
81 fail("Unexpected remote exception"); in testCHANGE_CONFIGURATION()
89 fail("IActivityManager.setDebugApp did not throw SecurityException as" in testSET_DEBUG_APP()
94 fail("Unexpected remote exception"); in testSET_DEBUG_APP()
[all …]
DPmPermissionsTests.java45 fail("PackageManager.getPackageSizeInfo" + in testGetPackageSize()
60 fail("PackageManager.deleteApplicationCacheFiles" + in testDeleteApplicationCacheFiles()
75 fail("PackageManager.installPackage" + in testInstallPackage()
90 fail("PackageManager.freeStorage " + in testFreeStorage1()
105 fail("PackageManager.freeStorageAndNotify" + in testFreeStorage2()
120 fail("PackageManager.clearApplicationUserData" + in testClearApplicationUserData()
135 fail("PackageManager.deletePackage" + in testDeletePackage()
DVibratorServicePermissionTest.java50 fail("vibrate did not throw SecurityException as expected"); in testVibrate()
66 fail("vibratePattern did not throw SecurityException as expected"); in testVibratePattern()
81 fail("cancelVibrate did not throw SecurityException as expected"); in testCancelVibrate()
DServiceManagerPermissionTests.java41 fail("ServiceManager.addService did not throw SecurityException as" in testAddService()
58 fail("IServiceManager.setPermissionController did not throw SecurityException as" in testSetPermissionController()
63 fail("Unexpected remote exception"); in testSetPermissionController()
DSmsManagerPermissionTest.java45 fail("SmsManager.sendTextMessage did not throw SecurityException as expected"); in testSendTextMessage()
61 fail("SmsManager.sendDataMessage did not throw SecurityException as expected"); in testSendDataMessage()
80 fail("SmsManager.sendMultipartTextMessage did not throw SecurityException as expected"); in testSendMultipartMessage()
/frameworks/base/tests/CoreTests/android/core/
DParseIntTest.java39 fail(); in testParseInt()
46 fail(); in testParseInt()
54 fail(); in testParseInt()
61 fail(); in testParseInt()
68 fail(); in testParseInt()
75 fail(); in testParseInt()
82 fail(); in testParseInt()
89 fail(); in testParseInt()
96 fail(); in testParseInt()
103 fail(); in testParseInt()
DNIOTest.java76 fail("expected exception not thrown"); in byteBufferTest()
83 fail("expected exception not thrown"); in byteBufferTest()
93 fail("expected exception not thrown"); in byteBufferTest()
103 fail("expected exception not thrown"); in byteBufferTest()
113 fail("expected exception not thrown"); in byteBufferTest()
125 fail("expected exception not thrown"); in byteBufferTest()
134 fail("expected exception not thrown"); in byteBufferTest()
140 fail("expected exception not thrown"); in byteBufferTest()
161 fail("expected exception not thrown"); in byteBufferTest()
182 fail("expected exception not thrown"); in byteBufferTest()
[all …]
DReflectArrayTest.java42 fail("store should have failed"); in testSingleInt()
52 fail("cast should have failed"); in testSingleInt()
89 fail("store should have failed"); in testMultiInt()
108 fail("store should have failed"); in testMulti()
115 fail("expecting bad cast"); in testMulti()
129 fail("store should have failed"); in testMulti()
DRequestAPITest.java78 fail("expected exception not thrown"); in verifyFailure()
208 fail("expectPassed was false " + testEventHandler.getFailureMessage()); in testGet()
248 fail(); in testReuse()
280 fail("expectPassed was false " + testEventHandler.getFailureMessage()); in testHead()
307 fail("expectPassed was false " + testEventHandler.getFailureMessage()); in testChunked()
340 fail("expectPassed was false " + testEventHandler.getFailureMessage()); in verifyRedirect()
359 fail("expectPassed was false " + testEventHandler.getFailureMessage()); in verifyRedirect()
412 fail(); in testGetAndHead()
442 fail("expectPassed was false " + testEventHandler.getFailureMessage()); in testPost()
480 fail("expectPassed was false " + testEventHandler.getFailureMessage()); in testPostWithData()
DInetAddrTest.java65 fail("expected ex"); in testInetAddr()
72 fail("expected ex"); in testInetAddr()
79 fail("expected ex"); in testInetAddr()
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
DVCardVerifier.java112 AndroidTestCase.fail("Already initialized"); in initForImportTest()
127 AndroidTestCase.fail("Already initialized"); in initForExportTest()
143 AndroidTestCase.fail("Wrong resId: " + resId); in setInputResourceId()
150 AndroidTestCase.fail("addInputEntry() is called."); in setInputStream()
152 AndroidTestCase.fail("InputStream is already set"); in setInputStream()
159 AndroidTestCase.fail("Not initialized"); in addInputEntry()
162 AndroidTestCase.fail("setInputStream is called"); in addInputEntry()
169 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithoutVersion()
196 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithEmptyName()
212 AndroidTestCase.fail("Not initialized"); in addLineVerifierElem()
[all …]
DLineVerifierElem.java57 TestCase.fail("Multiple \"BEGIN:VCARD\" line found"); in verify()
64 TestCase.fail("Multiple \"END:VCARD\" line found"); in verify()
73 TestCase.fail("Multiple VERSION line + found"); in verify()
81 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify()
83 TestCase.fail("Property other than END came after END property: " + line); in verify()
90 TestCase.fail("Unexpected line: " + line); in verify()
101 TestCase.fail("Expected line(s) not found:" + buffer.toString()); in verify()
DImportTestProvider.java82 TestCase.fail(String.format( in addExpectedContentValues()
96 TestCase.fail("There is no operation."); in applyBatch()
122 TestCase.fail(String.format( in applyBatch()
154 TestCase.fail("ContentValues for MimeType " + mimeType in applyBatch()
181 TestCase.fail(builder.toString()); in applyBatch()
184 TestCase.fail("Unexpected Uri has come: " + uri); in applyBatch()
203 TestCase.fail(failMsg); in verify()
/frameworks/base/core/tests/coretests/src/android/net/
DLocalSocketTest.java88 fail("expected exception"); in testBasic()
95 fail("expected exception"); in testBasic()
102 fail("expected exception"); in testBasic()
109 fail("expected exception"); in testBasic()
116 fail("expected exception"); in testBasic()
123 fail("expected exception"); in testBasic()
142 fail("expected exception"); in testBasic()
151 fail("expected exception"); in testBasic()
160 fail("expected exception"); in testBasic()
/frameworks/base/core/tests/coretests/src/android/bluetooth/
DBluetoothTestUtils.java418 fail("enable() invalid state: state=" + state); in enable()
441 fail(String.format("enable() timeout: state=%d (expected %d), flags=0x%x (expected 0x%x)", in enable()
468 fail("disable() invalid state: state=" + state); in disable()
491 fail(String.format("disable() timeout: state=%d (expected %d), flags=0x%x (expected 0x%x)", in disable()
500 fail("discoverable() bluetooth not enabled"); in discoverable()
529 fail(String.format("discoverable() timeout: scanMode=%d (expected %d), flags=0x%x " in discoverable()
539 fail("undiscoverable() bluetooth not enabled"); in undiscoverable()
568 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d), flags=0x%x " in undiscoverable()
578 fail("startScan() bluetooth not enabled"); in startScan()
600 fail(String.format("startScan() timeout: isDiscovering=%b, flags=0x%x (expected 0x%x)", in startScan()
[all …]
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
DATResponseParserTest.java33 fail("exception expected"); in testBasic()
55 fail("exception expected"); in testBasic()
69 fail("exception expected"); in testBasic()
80 fail("exception expected"); in testBasic()
105 fail("expected ex"); in testBasic()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaRecorderStateUnitTestTemplate.java89fail("setMediaRecorderToInitialStateAfterReset: Exception " + e.getClass().getName() + " was throw… in setMediaRecorderToInitialStateAfterReset()
111fail("setMediaRecorderToInitialStateAfterReset: Exception " + e.getClass().getName() + " was throw… in setMediaRecorderToInitialStateAfterStop()
122fail("setMediaRecorderToInitializedState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToInitializedState()
135fail("setMediaRecorderToPreparedState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToPreparedState()
149fail("setMediaRecorderToRecordingState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToRecordingState()
171fail("setMediaRecorderToDataSourceConfiguredState: Exception " + e.getClass().getName() + " was th… in setMediaRecorderToDataSourceConfiguredState()
204fail("setMediaRecorderToErrorState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToErrorState()
/frameworks/base/core/tests/coretests/src/android/database/
DMatrixCursorTest.java82 fail(); in testAddArray()
95 fail(); in testAddIterable()
100 fail(); in testAddIterable()
114 fail(); in testAddArrayList()
120 fail(); in testAddArrayList()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java64 fail(errMsg); in failStr()
191 fail("Timed out waiting for packageInstalled callback"); in invokeInstallPackage()
208 fail("Timed out waiting for PACKAGE_ADDED notification"); in invokeInstallPackage()
234 fail("Timed out waiting for packageInstalled callback"); in invokeInstallPackageFail()
392 fail("Can't read " + nativeLibDir.getPath()); in assertInstall()
418 fail("Can't read " + nativeLibSymLink.getPath()); in assertInstall()
422 fail("Install should have failed"); in assertInstall()
433 fail(pkgName + " shouldnt be installed"); in assertNotInstalled()
501 fail("Permission not found: " + cmd); in assertPermissions()
520 fail("Permission still exists: " + cmd); in assertPermissions()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DBinderThreadPriorityTest.java52 public int getThreadPriority() { fail(); return -999; } in getThreadPriority()
53 public String getThreadSchedulerGroup() { fail(); return null; } in getThreadSchedulerGroup()
54 public void setPriorityAndCallBack(int p, IBinderThreadPriorityService cb) { fail(); } in setPriorityAndCallBack()
55 public void callBack(IBinderThreadPriorityService cb) { fail(); } in callBack()
56 private static void fail() { throw new RuntimeException("unimplemented"); } in fail() method in BinderThreadPriorityTest.ServiceStub
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/error/
DFailingTest.java24 fail("Expected"); in testFailOne()
28 fail("Expected"); in testFailTwo()
/frameworks/base/core/java/com/android/internal/os/storage/
DExternalStorageFormatter.java127 void fail(int msg) { in fail() method in ExternalStorageFormatter
191 fail(R.string.media_bad_removal); in updateProgressState()
193 fail(R.string.media_checking); in updateProgressState()
195 fail(R.string.media_removed); in updateProgressState()
197 fail(R.string.media_shared); in updateProgressState()
199 fail(R.string.media_unknown_state); in updateProgressState()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java126 fail("Failed to close file on OBB due to error: " + e.toString()); in run()
335 fail("Timed out waiting for OBB state to change!"); in doWaitForObbStateChange()
474 fail("Unexpected value read in OBB file"); in doValidateIntContents()
482 fail("File " + inFile + " not found: " + e.toString()); in doValidateIntContents()
484 fail("IOError with file " + inFile + ":" + e.toString()); in doValidateIntContents()
508 fail("File " + filename + " in OBB " + path + " does not match expected value"); in doValidateTextContents()
515 fail("IOError with file " + inFile + ":" + e.toString()); in doValidateTextContents()
541 fail("Unexpected value read in OBB file" + filename); in doValidateZeroLongFile()
551 fail("IOError with file " + inFile + ":" + e.toString()); in doValidateZeroLongFile()
571 fail("Timed out waiting to get path of OBB file " + filePath); in doWaitForPath()
/frameworks/base/core/tests/coretests/src/android/pim/vcard/
DVCardTestUtilsTests.java50 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtPropertyNodeVerification()
71 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtContentValueVerification()
94 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtLineVerification()

123456