Home
last modified time | relevance | path

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

12345678910>>...31

/cts/tests/tests/permission/src/android/permission/cts/
DNoWifiStatePermissionTest.java49 fail("WifiManager.getWifiState didn't throw SecurityException as expected"); in testGetWifiState()
63 fail("WifiManager.getConfiguredNetworks didn't throw SecurityException as expected"); in testGetConfiguredNetworks()
77 fail("WifiManager.getConnectionInfo didn't throw SecurityException as expected"); in testGetConnectionInfo()
91 fail("WifiManager.getScanResults didn't throw SecurityException as expected"); in testGetScanResults()
105 fail("WifiManager.getDhcpInfo didn't throw SecurityException as expected"); in testGetDhcpInfo()
119 fail("WifiManager.disconnect didn't throw SecurityException as expected"); in testDisconnect()
133 fail("WifiManager.reconnect didn't throw SecurityException as expected"); in testReconnect()
147 fail("WifiManager.reassociate didn't throw SecurityException as expected"); in testReassociate()
161 fail("WifiManager.addNetwork didn't throw SecurityException as expected"); in testAddNetwork()
177 fail("WifiManager.updateNetwork didn't throw SecurityException as expected"); in testUpdateNetwork()
[all …]
DTelephonyManagerPermissionTest.java21 import static org.junit.Assert.fail;
71 fail("Got device ID: " + id); in testGetDeviceId()
77 fail("Got device ID: " + id); in testGetDeviceId()
97 fail("Got line 1 number: " + nmbr); in testGetLine1Number()
117 fail("Got SIM serial number: " + nmbr); in testGetSimSerialNumber()
137 fail("Got subscriber id: " + sid); in testGetSubscriberId()
157 fail("Got voicemail number: " + vmnum); in testVoiceMailNumber()
193 fail("Able to set data enabled"); in testSetDataEnabled()
210 fail("SecurityException expected!"); in testProtectedBroadcasts()
215 fail("SecurityException expected!"); in testProtectedBroadcasts()
[all …]
DNoLocationPermissionTest.java82 fail("TelephonyManager.listen(LISTEN_CELL_LOCATION) did not" + in testListenCellLocation()
90 fail("TelephonyManager.getCellLocation did not throw SecurityException as expected"); in testListenCellLocation()
114fail("TelephonyManager.getNeighbouringCellInfo did not throw SecurityException as expected"); in testListenCellLocation2()
121 fail("TelephonyManager.getAllCellInfo did not throw SecurityException as expected"); in testListenCellLocation2()
143 fail("LocationManager.requestLocationUpdates did not" + in checkRequestLocationUpdates()
151 fail("LocationManager.requestLocationUpdates did not" + in checkRequestLocationUpdates()
192 fail("LocationManager.addProximityAlert did not throw SecurityException as expected"); in testAddProximityAlert()
212 fail("LocationManager.getLastKnownLocation did not" + in checkGetLastKnownLocation()
255 fail("LocationManager.getProvider did not throw SecurityException as expected"); in checkGetProvider()
339 fail("LocationManager.addTestProvider did not throw SecurityException as expected"); in testAddTestProvider()
[all …]
DNoSystemFunctionPermissionTest.java53 fail("ActivityManager.restartPackage() didn't throw SecurityException as expected."); in testRestartPackage()
73 fail("AlarmManager.setTimeZone() did not throw SecurityException as expected."); in testSetTimeZone()
95 fail("Context.setWallpaper(BitMap) did not throw SecurityException as expected."); in testSetWallpaper()
102 fail("Context.setWallpaper(InputStream) did not throw SecurityException as expected."); in testSetWallpaper()
109 fail("Context.clearWallpaper() did not throw SecurityException as expected."); in testSetWallpaper()
126 fail("Vibrator.cancel() did not throw SecurityException as expected."); in testVibrator()
133 fail("Vibrator.vibrate(long) did not throw SecurityException as expected."); in testVibrator()
142 fail("Vibrator.vibrate(long[], int) not throw SecurityException as expected."); in testVibrator()
163 fail("SmsManager.sendDataMessage() did not throw SecurityException as expected."); in testSendSms()
DContactsProviderTest.java40 fail("query(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException" in testQueryContacts()
58 fail("insert(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException" in testInsertContacts()
76 fail("query(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException" in testQueryProfile()
96 fail("insert(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException " in testInsertProfile()
114 fail("update(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException" in testUpdateProfile()
133 fail("query(ContactsContract.CommonDataKinds.Phone.ENTERPRISE_CONTENT_URI) did not" in testQueryPhoneEnterprise()
151 fail("query(ContactsContract.RawContactsEntity.CORP_CONTENT_URI) did not throw" in testRawContactsEntityCorp()
DNoBroadcastPackageRemovedPermissionTest.java41 fail("Context.sendStickyBroadcast did not throw SecurityException as expected"); in testSendOrRemoveStickyBroadcast()
48 fail("Context.removeStickyBroadcast did not throw SecurityException as expected"); in testSendOrRemoveStickyBroadcast()
68 fail("Context.sendBroadcast did not throw SecurityException as expected"); in testSendBroadcast()
76 fail("Context.sendBroadcast did not throw SecurityException as expected"); in testSendBroadcast()
84 fail("Context.sendOrderedBroadcast did not throw SecurityException as expected"); in testSendBroadcast()
92 fail("Context.sendOrderedBroadcast did not throw SecurityException as expected"); in testSendBroadcast()
/cts/tests/tests/telephony/src/android/telephony/cts/
DSimRestrictedApisTest.java48 fail("Expected SecurityException. App doesn't have carrier privileges."); in testInjectSmsPdu()
63 fail("Expected SecurityException. App doesn't have carrier privileges."); in testSetLine1NumberForDisplay()
78 fail("Expected SecurityException. App doesn't have carrier privileges."); in testSetLine1NumberForDisplay2()
93 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccOpenLogicalChannel()
108 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccCloseLogicalChannel()
123 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduLogicalChannel()
138 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduBasicChannel()
153 fail("Expected SecurityException. App doesn't have carrier privileges."); in testSendEnvelopeWithStatus()
167 fail("Expected SecurityException. App doesn't have carrier privileges."); in testNvReadItem()
181 fail("Expected SecurityException. App doesn't have carrier privileges."); in testNvWriteItem()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java119 fail("did not throw expected SecurityException"); in testRequestRemoteBugreport_failIfNotDeviceOwner()
132 fail("did not throw expected SecurityException"); in testSetSecurityLoggingEnabled_failIfNotDeviceOwner()
145 fail("did not throw expected SecurityException"); in testIsSecurityLoggingEnabled_failIfNotDeviceOwner()
158 fail("did not throw expected SecurityException"); in testRetrieveSecurityLogs_failIfNotDeviceOwner()
171 fail("did not throw expected SecurityException"); in testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner()
184 fail("did not throw expected SecurityException"); in testSetNetworkLoggingEnabled_failIfNotDeviceOwner()
197 fail("did not throw expected SecurityException"); in testIsNetworkLoggingEnabled_failIfNotDeviceOwner()
210 fail("did not throw expected SecurityException"); in testRetrieveNetworkLogs_failIfNotDeviceOwner()
222 fail("did not throw expected SecurityException"); in testRemoveUser_failIfNotDeviceOwner()
235 fail("did not throw expected SecurityException"); in testSetApplicationHidden_failIfNotDeviceOrProfileOwner()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/
DTest_f1.java31 fail("expected a verification exception"); in testVFE1()
44 fail("expected a verification exception"); in testVFE2()
57 fail("expected a verification exception"); in testVFE3()
70 fail("expected a verification exception"); in testVFE4()
83 fail("expected a verification exception"); in testVFE5()
96 fail("expected a verification exception"); in testVFE6()
109 fail("expected a verification exception"); in testVFE7()
122 fail("expected a verification exception"); in testVFE8()
135fail("expected a verification exception but this test may fail if this check is not enforced"); in testVFE9()
161 fail("expected a verification exception"); in testVFE11()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DLocalActivityManagerTestHelper.java97 fail(); in testRemoveAllActivity()
103 fail(); in testRemoveAllActivity()
110 fail(); in testRemoveAllActivity()
126 fail(); in testDispatchDestroy()
131 fail(); in testDispatchDestroy()
140 fail(); in testDispatchDestroy()
145 fail(); in testDispatchDestroy()
156 fail(); in testSaveInstanceState()
172 fail(); in testSaveInstanceState()
186 fail(); in testDispatchPauseFalse()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DParamsTest.java50 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
51 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
52 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
53 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
61 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
74 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {}
75 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {}
76 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {}
89 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {}
91 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {}
[all …]
DAudioEffectTest.java110 fail("AudioRecord invalid parameter"); in getAudioRecord()
141 fail("getEnabled() processed after release()"); in test1_3GetEnabledAfterRelease()
146 fail("AudioEffect not found"); in test1_3GetEnabledAfterRelease()
148 fail("Effect library not loaded"); in test1_3GetEnabledAfterRelease()
164 fail("AudioEffect not initialized"); in test1_4InsertOnMediaPlayer()
194 fail("Attach effect: wait was interrupted."); in test1_5AuxiliaryOnMediaPlayer()
198 fail("attach aux effect failed"); in test1_5AuxiliaryOnMediaPlayer()
227 fail("attach aux effect failed"); in test1_6AuxiliaryOnMediaPlayerFailure()
261 fail("could not attach aux effect"); in test1_7AuxiliaryOnAudioTrack()
265 fail("could not set send level"); in test1_7AuxiliaryOnAudioTrack()
[all …]
DEnvReverbTest.java58 fail("EnvironmentalReverb not initialized"); in test0_0ConstructorAndRelease()
61 fail("EnvironmentalReverb not found"); in test0_0ConstructorAndRelease()
63 fail("Effect library not loaded"); in test0_0ConstructorAndRelease()
100 fail("Bad parameter value"); in test1_0Room()
102 fail("get parameter() rejected"); in test1_0Room()
104 fail("get parameter() called in wrong state"); in test1_0Room()
133 fail("Bad parameter value"); in test1_1Decay()
135 fail("get parameter() rejected"); in test1_1Decay()
137 fail("get parameter() called in wrong state"); in test1_1Decay()
170 fail("Bad parameter value"); in test1_2Reverb()
[all …]
DVirtualizerTest.java63 fail("Virtualizer not initialized"); in test0_0ConstructorAndRelease()
66 fail("Virtualizer not found"); in test0_0ConstructorAndRelease()
68 fail("Effect library not loaded"); in test0_0ConstructorAndRelease()
103 fail("Bad parameter value"); in test1_0Strength()
105 fail("get parameter() rejected"); in test1_0Strength()
107 fail("get parameter() called in wrong state"); in test1_0Strength()
140 fail("Bad parameter value"); in test1_1Properties()
142 fail("get parameter() rejected"); in test1_1Properties()
144 fail("get parameter() called in wrong state"); in test1_1Properties()
184 fail("setEnabled() in wrong state"); in test2_0SetEnabledGetEnabled()
[all …]
DMediaCasTest.java164 fail("Enumerated " + descriptors[i] + " but is not supported."); in testEnumeratePlugins()
168 fail("Enumerated " + descriptors[i] + " but cannot instantiate MediaCas."); in testEnumeratePlugins()
172fail("Enumerated " + descriptors[i] + " but cannot instantiate MediaDescrambler."); in testEnumeratePlugins()
204 fail("Shouldn't be able to create MediaCas with invalid id " + sInvalidSystemId); in testInvalidSystemIdFails()
211fail("Shouldn't be able to create MediaDescrambler with invalid id " + sInvalidSystemId); in testInvalidSystemIdFails()
232 fail("ClearKey plugin " + String.format("0x%d", sClearKeySystemId) + " is not found"); in testClearKeyPluginInstalled()
253 fail("Can't open session for program"); in testClearKeyApis()
260 fail("Can't open session for stream"); in testClearKeyApis()
328 fail("Can't open session for program"); in testClearKeySessionClosedAfterRelease()
333 fail("Can't open session for stream"); in testClearKeySessionClosedAfterRelease()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DGeocoderTest.java41 fail("should throw NullPointerException."); in testConstructor()
86 fail("Failed to geocode location " + MAX_NUM_RETRIES + " times."); in testGetFromLocation()
93 fail("should throw IllegalArgumentException"); in testGetFromLocation()
100 fail("should throw IllegalArgumentException"); in testGetFromLocation()
107 fail("should throw IllegalArgumentException"); in testGetFromLocation()
114 fail("should throw IllegalArgumentException"); in testGetFromLocation()
139 fail("Failed to geocode location name " + MAX_NUM_RETRIES + " times."); in testGetFromLocationName()
144 fail("should throw IllegalArgumentException"); in testGetFromLocationName()
150 fail("should throw IllegalArgumentException"); in testGetFromLocationName()
156 fail("should throw IllegalArgumentException"); in testGetFromLocationName()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SecureTest.java57 fail("Shouldn't be able to parse this setting's value for later tests."); in assertSettingsForTests()
73 fail("SecurityException should have been thrown!"); in testGetPutInt()
79 fail("SettingNotFoundException should have been thrown!"); in testGetPutInt()
85 fail("SettingNotFoundException should have been thrown!"); in testGetPutInt()
95 fail("SecurityException should have been thrown!"); in testGetPutFloat()
101 fail("SettingNotFoundException should have been thrown!"); in testGetPutFloat()
107 fail("SettingNotFoundException should have been thrown!"); in testGetPutFloat()
117 fail("SecurityException should have been thrown!"); in testGetPutLong()
123 fail("SettingNotFoundException should have been thrown!"); in testGetPutLong()
129 fail("SettingNotFoundException should have been thrown!"); in testGetPutLong()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DObservableTest.java29 fail("registerObserver should throw a IllegalArgumentException here."); in testRegisterUnRegisterObserver()
37 fail("unregisterObserver should throw a IllegalStateException here."); in testRegisterUnRegisterObserver()
44 fail("unregisterObserver should throw a IllegalArgumentException here."); in testRegisterUnRegisterObserver()
54 fail("registerObserver should throw a IllegalStateException here."); in testRegisterUnRegisterObserver()
64 fail("unregisterObserver should throw a IllegalStateException here."); in testRegisterUnRegisterObserver()
81 fail("registerObserver should throw a IllegalStateException here."); in testUnregisterAll()
86 fail("registerObserver should throw a IllegalStateException here."); in testUnregisterAll()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/companion/
DCompanionDeviceTestActivity.java73 fail(e); in test()
79 fail(error); in test()
85 private void fail(Throwable reason) { in fail() method in CompanionDeviceTestActivity
87 fail(reason.getMessage()); in fail()
90 private void fail(CharSequence reason) { in fail() method in CompanionDeviceTestActivity
100 if (resultCode != RESULT_OK) fail("Activity result code " + resultCode); in onActivityResult()
104 fail("New associations " + newAssociations in onActivityResult()
109 fail("New associations " + newAssociations + " are not 1 item larger from initial " in onActivityResult()
117 fail("Selected device is not present among new associations " + newAssociations); in onActivityResult()
123 fail("Disassociating device " + deviceAddress in onActivityResult()
/cts/tests/tests/os/src/android/os/cts/
DVibratorTest.java38 fail("testVibratorCancel failed!"); in testVibratorCancel()
44 fail("testVibratorCancel failed!"); in testVibratorCancel()
53 fail("vibrate failed!"); in testVibratePattern()
57 fail("Should throw ArrayIndexOutOfBoundsException"); in testVibratePattern()
71 fail("MultiThread fail1"); in testVibrateMultiThread()
84 fail("MultiThread fail2"); in testVibrateMultiThread()
/cts/tools/vm-tests-tf/src/dot/junit/verify/b2/
DTest_b2.java31 fail("expected a verification exception"); in testVFE1()
44 fail("expected a verification exception"); in testVFE2()
57 fail("expected a verification exception"); in testVFE3()
70 fail("expected a verification exception"); in testVFE4()
83 fail("expected a verification exception"); in testVFE5()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java40 fail("Missing exception for stroke with no duration."); in testCreateStroke_noDuration_shouldThrow()
48 fail("Missing exception for stroke with negative start time."); in testCreateStroke_negativeStartTime_shouldThrow()
59 fail("Missing exception for stroke with negative start x coord."); in testCreateStroke_negativeStartX_shouldThrow()
70 fail("Missing exception for stroke with negative start y coord."); in testCreateStroke_negativeStartY_shouldThrow()
81 fail("Missing exception for stroke with negative end x coord."); in testCreateStroke_negativeEndX_shouldThrow()
92 fail("Missing exception for stroke with negative end y coord."); in testCreateStroke_negativeEndY_shouldThrow()
101 fail("Missing exception for empty path."); in testCreateStroke_withEmptyPath_shouldThrow()
114 fail("Missing exception for stroke with multi-contour path."); in testCreateStroke_pathWithMultipleContours_shouldThrow()
150 fail("Missing exception for adding too many strokes."); in testAddStroke_allowUpToMaxPaths()
163 fail("Missing exception for adding stroke with duration too long."); in testAddStroke_withDurationTooLong_shouldThrow()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DJsonReaderTest.java22 import static org.junit.Assert.fail;
121 fail("Should not be possible to skip without elements."); in testSkipAfterEndOfDocument()
274 fail(); in testLenientDoubles()
281 fail(); in testLenientDoubles()
317 fail(); in testTruncatedBufferBoundary()
373 fail(); in testLongs()
379 fail(); in testLongs()
447 fail(); in testNonFiniteDouble()
459 fail(); in testNumberWithHexPrefix()
471 fail(); in testNumberWithOctalPrefix()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DGetCharsTest.java20 import static org.junit.Assert.fail;
56 fail("should throw IndexOutOfBoundsException here"); in testGetChars()
62 fail("should throw IndexOutOfBoundsException here"); in testGetChars()
68 fail("should throw IndexOutOfBoundsException here"); in testGetChars()
74 fail("should throw IndexOutOfBoundsException here"); in testGetChars()
80 fail("should throw IndexOutOfBoundsException here"); in testGetChars()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerUnaffiliatedAuthenticatorTests.java88 fail("Expected to just barf if the caller doesn't share a signature."); in testNotifyAccountAuthenticated()
99 fail("Expecting a OperationCanceledException."); in testEditProperties()
111 fail("addAccountExplicitly should just barf if the caller isn't permitted."); in testAddAccountExplicitly()
121 fail("removeAccount should just barf if the caller isn't permitted."); in testRemoveAccount_withBooleanResult()
132 fail("removeAccount should just barf if the caller isn't permitted."); in testRemoveAccount_withBundleResult()
140 fail("removeAccountExplicitly should just barf if the caller isn't permitted."); in testRemoveAccountExplicitly()
148 fail("getPassword should just barf if the caller isn't permitted."); in testGetPassword()
157 fail("setPassword should just barf if the caller isn't permitted."); in testSetPassword()
165 fail("clearPassword should just barf if the caller isn't permitted."); in testClearPassword()
174 fail("getUserData should just barf if the caller isn't permitted."); in testGetUserData()
[all …]

12345678910>>...31