Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DWindowManagerPermissionTests.java46 fail("IWindowManager.pauseKeyDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
51 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
56 fail("IWindowManager.resumeKeyDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
61 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
66 fail("IWindowManager.setEventDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS()
71 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
76 fail("IWindowManager.addWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
81 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS()
86 fail("IWindowManager.removeWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS()
91 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.moveTaskToFront did not throw SecurityException as" in testREORDER_TASKS()
58 fail("Unexpected remote exception"); in testREORDER_TASKS()
66 fail("IActivityManager.updateConfiguration did not throw SecurityException as" in testCHANGE_CONFIGURATION()
71 fail("Unexpected remote exception"); in testCHANGE_CONFIGURATION()
79 fail("IActivityManager.setDebugApp did not throw SecurityException as" in testSET_DEBUG_APP()
84 fail("Unexpected remote exception"); in testSET_DEBUG_APP()
92 fail("IActivityManager.setProcessLimit did not throw SecurityException as" in testSET_PROCESS_LIMIT()
97 fail("Unexpected remote exception"); in testSET_PROCESS_LIMIT()
[all …]
DPmPermissionsTests.java45 fail("PackageManager.getPackageSizeInfo" + in testGetPackageSize()
60 fail("PackageManager.deleteApplicationCacheFiles" + in testDeleteApplicationCacheFiles()
79 fail("PackageManager.installPackage" + in testInstallPackage()
94 fail("PackageManager.freeStorage " + in testFreeStorage1()
109 fail("PackageManager.freeStorageAndNotify" + in testFreeStorage2()
124 fail("PackageManager.clearApplicationUserData" + in testClearApplicationUserData()
139 fail("PackageManager.deletePackage" + in testDeletePackage()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java49 fail(str + "\n" + SubscriptionMonitorTest.stack()); in failAndStack()
220 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed initially"); in testRegister()
221 if (phoneSwitcher.isPhoneActive(0)) fail("phone active initially"); in testRegister()
226 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed after request"); in testRegister()
227 if (phoneSwitcher.isPhoneActive(0)) fail("phone active after request"); in testRegister()
237 fail("pretest of ActivePhoneSwitchCount"); in testRegister()
247 if (threw == false) fail("register with bad phoneId didn't throw"); in testRegister()
255 fail("post register of ActivePhoneSwitchCount not 1!"); in testRegister()
262 fail("after set of default to 0, ActivePhoneSwitchCount not 1!"); in testRegister()
264 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed"); in testRegister()
[all …]
DSubscriptionMonitorTest.java44 fail(str + "\n" + SubscriptionMonitorTest.stack()); in failAndStack()
195 fail("pretest of SubscriptionChangedCount"); in testRegister()
198 fail("pretest of DefaultSubscriptionChangedCount"); in testRegister()
206 fail("test1 of SubscriptionChangedCount"); in testRegister()
209 fail("test1 of DefaultSubscriptionChangedCount"); in testRegister()
217 fail("test2 of SubscriptionChangedCount"); in testRegister()
220 fail("test2 of DefaultSubscriptionChangedCount"); in testRegister()
227 fail("test3 of SubscriptionChangedCount, " + in testRegister()
231 fail("test3 of DefaultSubscriptionChangedCount, " + in testRegister()
239 fail("test4 of SubscriptionChangedCount"); in testRegister()
[all …]
DPhoneFactoryTest.java23 import static org.junit.Assert.fail;
31 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
37 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
43 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
DPhoneSubInfoControllerTest.java92 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
100 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission()
142 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
150 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission()
192 Assert.fail("expected Security Exception Thrown"); in testGetImeiWithOutPermission()
200 Assert.fail("expected Security Exception Thrown"); in testGetImeiWithOutPermission()
242 Assert.fail("expected Security Exception Thrown"); in testGetDeviceSvnWithOutPermission()
250 Assert.fail("expected Security Exception Thrown"); in testGetDeviceSvnWithOutPermission()
295 Assert.fail("expected Security Exception Thrown"); in testGetSubscriberIdWithOutPermission()
303 Assert.fail("expected Security Exception Thrown"); in testGetSubscriberIdWithOutPermission()
[all …]
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/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DListChangeRegistryTest.java55 fail("onItemRangeChanged should not be called"); in testNotifyChangedAll()
60 fail("onItemRangeInserted should not be called"); in testNotifyChangedAll()
65 fail("onItemRangeMoved should not be called"); in testNotifyChangedAll()
70 fail("onItemRangeRemoved should not be called"); in testNotifyChangedAll()
87 fail("onChanged should not be called"); in testNotifyChanged()
99 fail("onItemRangeInserted should not be called"); in testNotifyChanged()
104 fail("onItemRangeMoved should not be called"); in testNotifyChanged()
109 fail("onItemRangeRemoved should not be called"); in testNotifyChanged()
126 fail("onChanged should not be called"); in testNotifyInserted()
131 fail("onItemRangeChanged should not be called"); in testNotifyInserted()
[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/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DTestJobListener.java20 import static org.junit.Assert.fail;
56 fail("Job didn't start. onStart never called."); in assertStarted()
62 fail("Job didn't finish. onFinish never called."); in assertFinished()
68 fail("Job didn't fail. onFailed never called."); in assertFailed()
74 fail("Can't test failed documetns. Job didn't fail."); in assertFilesFailed()
85 fail("Can't test failed documetns. Job didn't fail."); in assertFileFailed()
93 fail("Couldn't find failed file: " + name); in assertFileFailed()
98 fail("Can't determine if job was canceled. Job didn't finish."); in assertCanceled()
101 fail("Job wasn't canceled. Job#isCanceled returned false."); in assertCanceled()
107 fail("Job made no progress. onProgress never called."); in assertMadeProgress()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/phone/
DDozeParametersTests.java79 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failEmpty()
88 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failNull()
97 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failEmptyClause()
106 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failDuplicate()
115 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failDuplicateDefault()
124 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failMalformedNot()
133 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failText()
142 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failContradiction()
151 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failContradictionDefault()
160 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failMissingDefault()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java157 fail("pretest of LiveRequests != 0"); in testActive()
163 fail("post-active test of LiveRequests != 1"); in testActive()
169 fail("post-second-request test of LiveRequests != 2"); in testActive()
175 fail("post-inactive test of LiveRequests != 0"); in testActive()
181 fail("post-mms-add test of LiveRequests != 0"); in testActive()
187 fail("post-active-mms-add test of LiveRequests != 3"); in testActive()
193 fail("post-remove-default test of LiveRequests != 2"); in testActive()
199 fail("test 8, LiveRequests != 0"); in testActive()
205 fail("test 9, LiveRequests != 0"); in testActive()
211 fail("test 10, LiveRequests != 1," + ts.dcTrackerMock.getNumberOfLiveRequests()); in testActive()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DIpPrefixTest.java50 fail("Expected NullPointerException: null byte array"); in testConstructor()
55 fail("Expected NullPointerException: null InetAddress"); in testConstructor()
60 fail("Expected NullPointerException: null String"); in testConstructor()
67 fail("Expected IllegalArgumentException: invalid array length"); in testConstructor()
72 fail("Expected IllegalArgumentException: no prefix length"); in testConstructor()
77 fail("Expected IllegalArgumentException: empty prefix length"); in testConstructor()
82 fail("Expected IllegalArgumentException: invalid address"); in testConstructor()
87 fail("Expected IllegalArgumentException: deprecated IPv4 format"); in testConstructor()
92 fail("Expected IllegalArgumentException: invalid IPv4 address"); in testConstructor()
97 fail("Expected IllegalArgumentException: non-address"); in testConstructor()
[all …]
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/utiltests/src/android/util/
DMemoryIntArrayTest.java23 import static org.junit.Assert.fail;
135 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
142 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
149 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
156 fail("Cannot interact with a closed instance"); in testInteractOnceClosed()
175 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
182 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
189 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
196 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds()
210 fail("Cannot use over max size"); in testOverMaxSize()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java33 fail("setCharSequence with invalid start and end values should throw " in testSetCharSequence()
39 fail("setCharSequence with invalid start and end values should throw " in testSetCharSequence()
56 fail("preceding with invalid offset should throw IllegalArgumentException."); in testPreceding()
61 fail("preceding with invalid offset should throw IllegalArgumentException."); in testPreceding()
82 fail("following with invalid offset should throw IllegalArgumentException."); in testFollowing()
87 fail("following with invalid offset should throw IllegalArgumentException."); in testFollowing()
108 fail("isBoundary with invalid offset should throw IllegalArgumentException."); in testIsBoundary()
113 fail("isBoundary with invalid offset should throw IllegalArgumentException."); in testIsBoundary()
135 fail("nextBoundary with invalid offset should throw IllegalArgumentException."); in testNextBoundary()
140 fail("nextBoundary with invalid offset should throw IllegalArgumentException."); in testNextBoundary()
[all …]
/frameworks/support/compat/tests/java/android/support/v4/content/
DModernAsyncTaskTest.java19 import static org.junit.Assert.fail;
73 fail("Test failure: doInBackground did not run in time."); in testCancellationWithException()
78 fail("onCancelled not called!"); in testCancellationWithException()
103 fail("onPostExecute should not be called"); in testException()
119 fail("Exception not thrown"); in testException()
127 fail("onCancelled not called"); in testException()
/frameworks/base/keystore/tests/src/android/security/
DKeyPairGeneratorSpecTest.java94 fail("Should throw IllegalArgumentException when context is null"); in testConstructor_NullContext_Failure()
103 fail("Should throw IllegalArgumentException when keystoreAlias is null"); in testConstructor_NullKeystoreAlias_Failure()
112 fail("Should throw IllegalArgumentException when subjectDN is null"); in testConstructor_NullSubjectDN_Failure()
121 fail("Should throw IllegalArgumentException when startDate is null"); in testConstructor_NullSerial_Failure()
130 fail("Should throw IllegalArgumentException when startDate is null"); in testConstructor_NullStartDate_Failure()
139 fail("Should throw IllegalArgumentException when keystoreAlias is null"); in testConstructor_NullEndDate_Failure()
148 fail("Should throw IllegalArgumentException when end is before start"); in testConstructor_EndBeforeStart_Failure()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java459 fail(String.format("enable() timeout: state=%d (expected %d)", btState, in enable()
502 fail(String.format("disable() timeout: state=%d (expected %d)", btState, in disable()
515 fail("discoverable() bluetooth not enabled"); in discoverable()
552 fail(String.format("discoverable() timeout: scanMode=%d (expected %d)", scanMode, in discoverable()
565 fail("undiscoverable() bluetooth not enabled"); in undiscoverable()
602 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d)", scanMode, in undiscoverable()
617 fail("startScan() bluetooth not enabled"); in startScan()
641 fail(String.format("startScan() timeout: isDiscovering=%b, flags=0x%x (expected 0x%x)", in startScan()
655 fail("stopScan() bluetooth not enabled"); in stopScan()
679 fail(String.format("stopScan() timeout: isDiscovering=%b, flags=0x%x (expected 0x%x)", in stopScan()
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DPaintTest.java100 fail("Should throw an IllegalArgumentException."); in testGetTextRunAdvances_invalid()
106 fail("Should throw an IllegalArgumentException."); in testGetTextRunAdvances_invalid()
112 fail("Should throw an IllegalArgumentException."); in testGetTextRunAdvances_invalid()
119 fail("Should throw an IndexOutOfBoundsException."); in testGetTextRunAdvances_invalid()
126 fail("Should throw an IndexOutOfBoundsException."); in testGetTextRunAdvances_invalid()
133 fail("Should throw an IndexOutOfBoundsException."); in testGetTextRunAdvances_invalid()
140 fail("Should throw an IndexOutOfBoundsException."); in testGetTextRunAdvances_invalid()
147 fail("Should throw an IndexOutOfBoundsException."); in testGetTextRunAdvances_invalid()
154 fail("Should throw an IndexOutOfBoundsException."); in testGetTextRunAdvances_invalid()
161 fail("Should throw an IndexOutOfBoundsException."); in testGetTextRunAdvances_invalid()
/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java86 fail("Failed to start the looper."); in setUp()
109 fail("Failed to stop the looper."); in tearDown()
131 fail("Failed to run the command on the looper."); in runOnLooper()
137 fail(String.format("Camera error, code: %d", error)); in onError()
143 fail(String.format("Media recorder error, code: %d\textra: %d", what, extra)); in onError()
154 fail("stressRecordAndPlayback"); in validateRecordedVideo()
158 fail("stressRecordAndPlayback"); in validateRecordedVideo()
269 fail("Record and playback"); in recordVideoAndPlayback()
374 fail("Camera time lapse stress test IllegalStateException"); in testStressTimeLapse()
377 fail("Camera time lapse stress test IOException"); in testStressTimeLapse()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
DCameraFunctionalTest.java74 fail("Failed to start the looper."); in setUp()
91 fail("Failed to stop the looper."); in tearDown()
111 fail("Failed to run the command on the looper."); in runOnLooper()
147 fail("Camera exposure compensation test Exception"); in testFunctionalCameraExposureCompensation()
178 fail("Camera flash mode test Exception"); in testFunctionalCameraFlashModes()
209 fail("Camera focus modes test Exception"); in testFunctionalCameraFocusModes()
240 fail("Camera focus modes test Exception"); in testFunctionalCameraWhiteBalance()

12345678910>>...15