Home
last modified time | relevance | path

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

12345678910>>...47

/cts/tests/tests/telephony4/src/android/telephony4/cts/
DSimRestrictedApisTest.java21 import static org.junit.Assert.fail;
53 fail("Expected SecurityException. App doesn't have carrier privileges."); in testInjectSmsPdu()
69 fail("Expected SecurityException. App doesn't have carrier privileges."); in testSetLine1NumberForDisplay()
86 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccOpenLogicalChannel()
103 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccOpenLogicalChannelBySlot()
119 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccCloseLogicalChannel()
135 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccCloseLogicalChannelBySlot()
151 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduBasicChannel()
167 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduBasicChannelBySlot()
183 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduLogicalChannel()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DNoWifiStatePermissionTest.java51 fail("WifiManager.getWifiState didn't throw SecurityException as expected"); in testGetWifiState()
65 fail("WifiManager.getConfiguredNetworks didn't throw SecurityException as expected"); in testGetConfiguredNetworks()
79 fail("WifiManager.getConnectionInfo didn't throw SecurityException as expected"); in testGetConnectionInfo()
93 fail("WifiManager.getScanResults didn't throw SecurityException as expected"); in testGetScanResults()
107 fail("WifiManager.getDhcpInfo didn't throw SecurityException as expected"); in testGetDhcpInfo()
121 fail("WifiManager.disconnect didn't throw SecurityException as expected"); in testDisconnect()
135 fail("WifiManager.reconnect didn't throw SecurityException as expected"); in testReconnect()
149 fail("WifiManager.reassociate didn't throw SecurityException as expected"); in testReassociate()
163 fail("WifiManager.addNetwork didn't throw SecurityException as expected"); in testAddNetwork()
179 fail("WifiManager.updateNetwork didn't throw SecurityException as expected"); in testUpdateNetwork()
[all …]
DNoWallpaperPermissionsTest.java57 fail("WallpaperManager.setResource(id) did not enforce SET_WALLPAPER"); in testSetResource()
62 fail("WallpaperManager.setResource(id, which) did not enforce SET_WALLPAPER"); in testSetResource()
79 fail("setBitmap(b) did not enforce SET_WALLPAPER"); in testSetBitmap()
84 fail("setBitmap(b, crop, allowBackup) did not enforce SET_WALLPAPER"); in testSetBitmap()
89 fail("setBitmap(b, crop, allowBackup, which) did not enforce SET_WALLPAPER"); in testSetBitmap()
106 fail("setStream(stream) did not enforce SET_WALLPAPER"); in testSetStream()
111 fail("setStream(stream, crop, allowBackup) did not enforce SET_WALLPAPER"); in testSetStream()
116 fail("setStream(stream, crop, allowBackup, which) did not enforce SET_WALLPAPER"); in testSetStream()
131 fail("clear() did not enforce SET_WALLPAPER"); in testClearWallpaper()
136 fail("clear(which) did not enforce SET_WALLPAPER"); in testClearWallpaper()
[all …]
DNoSystemFunctionPermissionTest.java54 fail("ActivityManager.restartPackage() didn't throw SecurityException as expected."); in testRestartPackage()
74 fail("AlarmManager.setTimeZone() did not throw SecurityException as expected."); in testSetTimeZone()
97 fail("Context.setWallpaper(BitMap) did not throw SecurityException as expected."); in testSetWallpaper()
104 fail("Context.setWallpaper(InputStream) did not throw SecurityException as expected."); in testSetWallpaper()
111 fail("Context.clearWallpaper() did not throw SecurityException as expected."); in testSetWallpaper()
128 fail("Vibrator.cancel() did not throw SecurityException as expected."); in testVibrator()
135 fail("Vibrator.vibrate(long) did not throw SecurityException as expected."); in testVibrator()
144 fail("Vibrator.vibrate(long[], int) not throw SecurityException as expected."); in testVibrator()
165 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()
DNfcPermissionTest.java19 import static org.junit.Assert.fail;
62 fail("mNfcAdapter.isControllerAlwaysOnSupported() did not throw SecurityException" in testIsControllerAlwaysOnSupported()
79 fail("mNfcAdapter.isControllerAlwaysOn() did not throw SecurityException" in testIsControllerAlwaysOn()
96 fail("mNfcAdapter.setControllerAlwaysOn(true) did not throw SecurityException" in testSetControllerAlwaysOnTrue()
113 fail("mNfcAdapter.setControllerAlwaysOn(true) did not throw SecurityException" in testSetControllerAlwaysOnFalse()
131 fail("mNfcAdapter.registerControllerAlwaysOnListener did not throw" in testRegisterControllerAlwaysOnListener()
148 fail("mNfcAdapter.unregisterControllerAlwaysOnListener did not throw" in testUnregisterControllerAlwaysOnListener()
/cts/tests/tests/media/src/android/media/cts/
DParamsTest.java51 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
52 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
53 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
54 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
62 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults()
75 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {}
76 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {}
77 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {}
90 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {}
92 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {}
[all …]
DAudioCommunicationDeviceTest.java56 fail("getCommunicationDevice failed with exception: " + e); in testSetValidCommunicationDevice()
59 fail("setCommunicationDevice failed, expected device: " in testSetValidCommunicationDevice()
65 fail("setCommunicationDevice failed with exception: " + e); in testSetValidCommunicationDevice()
72 fail("clearCommunicationDevice failed with exception: " + e); in testSetValidCommunicationDevice()
77 fail("getCommunicationDevice failed with exception: " + e); in testSetValidCommunicationDevice()
80 fail("platform has no default communication device"); in testSetValidCommunicationDevice()
96 fail("setCommunicationDevice should fail for device: " + device.getType()); in testSetInvalidCommunicationDevice()
159 fail("addOnCommunicationDeviceChangedListener should fail with null executor"); in testCommunicationDeviceListener()
166 fail("addOnCommunicationDeviceChangedListener should fail with null listener"); in testCommunicationDeviceListener()
172 fail("removeOnCommunicationDeviceChangedListener should fail with null listener"); in testCommunicationDeviceListener()
[all …]
DAudioEffectTest.java113 fail("AudioRecord invalid parameter"); in getAudioRecord()
144 fail("getEnabled() processed after release()"); in test1_3GetEnabledAfterRelease()
149 fail("AudioEffect not found"); in test1_3GetEnabledAfterRelease()
151 fail("Effect library not loaded"); in test1_3GetEnabledAfterRelease()
167 fail("AudioEffect not initialized"); in test1_4InsertOnMediaPlayer()
197 fail("Attach effect: wait was interrupted."); in test1_5AuxiliaryOnMediaPlayer()
201 fail("attach aux effect failed"); in test1_5AuxiliaryOnMediaPlayer()
230 fail("attach aux effect failed"); in test1_6AuxiliaryOnMediaPlayerFailure()
264 fail("could not attach aux effect"); in test1_7AuxiliaryOnAudioTrack()
268 fail("could not set send level"); in test1_7AuxiliaryOnAudioTrack()
[all …]
DEnvReverbTest.java61 fail("EnvironmentalReverb not initialized"); in test0_0ConstructorAndRelease()
64 fail("EnvironmentalReverb not found"); in test0_0ConstructorAndRelease()
66 fail("Effect library not loaded"); in test0_0ConstructorAndRelease()
103 fail("Bad parameter value"); in test1_0Room()
105 fail("get parameter() rejected"); in test1_0Room()
107 fail("get parameter() called in wrong state"); in test1_0Room()
136 fail("Bad parameter value"); in test1_1Decay()
138 fail("get parameter() rejected"); in test1_1Decay()
140 fail("get parameter() called in wrong state"); in test1_1Decay()
173 fail("Bad parameter value"); in test1_2Reverb()
[all …]
DVirtualizerTest.java66 fail("Virtualizer not initialized"); in test0_0ConstructorAndRelease()
69 fail("Virtualizer not found"); in test0_0ConstructorAndRelease()
71 fail("Effect library not loaded"); in test0_0ConstructorAndRelease()
106 fail("Bad parameter value"); in test1_0Strength()
108 fail("get parameter() rejected"); in test1_0Strength()
110 fail("get parameter() called in wrong state"); in test1_0Strength()
143 fail("Bad parameter value"); in test1_1Properties()
145 fail("get parameter() rejected"); in test1_1Properties()
147 fail("get parameter() called in wrong state"); in test1_1Properties()
187 fail("setEnabled() in wrong state"); in test2_0SetEnabledGetEnabled()
[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/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/
DTelephonyManagerReadPhoneStatePermissionTest.java20 import static org.junit.Assert.fail;
118 fail("TelephonyManager#getCallState and TelephonyManager#getCallStateForSubscription " in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
130 fail("getNetworkType() must not throw a SecurityException with READ_PHONE_STATE" + e); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
136 fail("getDeviceSoftwareVersion() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
143 fail("getCarrierConfig() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
150 fail("getDataNetworkType() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
157 fail("getVoiceNetworkType() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
164 fail("getGroupIdLevel1() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
171 fail("getLine1AlphaTag() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
178 fail("getVoiceMailNumber() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
/cts/tests/tests/permission/telephony/src/android/permission/cts/telephony/
DTelephonyManagerPermissionTest.java22 import static org.junit.Assert.fail;
75 fail("Got device ID: " + id); in testGetDeviceId()
81 fail("Got device ID: " + id); in testGetDeviceId()
101 fail("Got line 1 number: " + nmbr); in testGetLine1Number()
121 fail("Got SIM serial number: " + nmbr); in testGetSimSerialNumber()
141 fail("Got subscriber id: " + sid); in testGetSubscriberId()
161 fail("Got voicemail number: " + vmnum); in testVoiceMailNumber()
195 fail("Expected SecurityException. App does not have carrier privileges."); in testIsManualNetworkSelectionAllowedWithoutPermission()
211 fail("Expected SecurityException. App does not have carrier privileges."); in testGetManualNetworkSelectionPlmnWithoutPermission()
227 fail("SecurityException expected!"); in testProtectedBroadcasts()
[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/location/location_fine/src/android/location/cts/fine/
DGeocoderTest.java22 import static org.junit.Assert.fail;
60 fail("should throw NullPointerException."); in testConstructor()
96 fail("Failed to geocode location " + MAX_NUM_RETRIES + " times."); in testGetFromLocation()
103 fail("should throw IllegalArgumentException"); in testGetFromLocation()
111 fail("should throw IllegalArgumentException"); in testGetFromLocation()
119 fail("should throw IllegalArgumentException"); in testGetFromLocation()
127 fail("should throw IllegalArgumentException"); in testGetFromLocation()
154 fail("Failed to geocode location name " + MAX_NUM_RETRIES + " times."); in testGetFromLocationName()
159 fail("should throw IllegalArgumentException"); in testGetFromLocationName()
166 fail("should throw IllegalArgumentException"); in testGetFromLocationName()
[all …]
/cts/tests/media/src/android/mediav2/cts/
DMuxerUnitTest.java44 import static org.junit.Assert.fail;
96 fail("null destination path accepted by constructor"); in testIfNullPathIsRejected()
100 fail(e.getMessage()); in testIfNullPathIsRejected()
112 fail("null fd accepted by constructor"); in testIfNullFdIsRejected()
116 fail(e.getMessage()); in testIfNullFdIsRejected()
128 fail("Invalid fd accepted by constructor"); in testIfInvalidFdIsRejected()
132 fail(e.getMessage()); in testIfInvalidFdIsRejected()
143 fail("fd with read-only attribute accepted by constructor"); in testIfReadOnlyFdIsRejected()
147 fail(e.getMessage()); in testIfReadOnlyFdIsRejected()
159 fail("fd with write only attribute accepted by constructor"); in testIfWriteOnlyFdIsRejected()
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_read_write.py123 for fail in e_failed:
125 fail['format'], fail['e_write'], fail['e_read'],
128 fail['s_write'], fail['s_read'], RTOL_EXP_GAIN)
131 for fail in s_failed:
133 fail['format'], fail['s_write'], fail['s_read'],
136 fail['e_write'], fail['e_read'], RTOL_EXP_GAIN)
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java169 fail("did not throw expected SecurityException"); in testRequestRemoteBugreport_failIfNotDeviceOwner()
183 fail("did not throw expected SecurityException"); in testSetSecurityLoggingEnabled_failIfNotOrganizationOwnedProfileOwner()
197 fail("did not throw expected SecurityException"); in testIsSecurityLoggingEnabled_failIfNotOrganizationOwnedProfileOwner()
210 fail("did not throw expected SecurityException"); in testRetrieveSecurityLogs_failIfNotOrganizationOwnedProfileOwner()
224 fail("did not throw expected SecurityException"); in testRetrievePreRebootSecurityLogs_failIfNotOrganizationOwnedProfileOwner()
237 fail("did not throw expected SecurityException"); in testSetNetworkLoggingEnabled_failIfNotDeviceOwner()
250 fail("did not throw expected SecurityException"); in testIsNetworkLoggingEnabled_failIfNotDeviceOwner()
263 fail("did not throw expected SecurityException"); in testRetrieveNetworkLogs_failIfNotDeviceOwner()
275 fail("did not throw expected SecurityException"); in testRemoveUser_failIfNotDeviceOwner()
288 fail("did not throw expected SecurityException"); in testSetApplicationHidden_failIfNotDeviceOrProfileOwner()
[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/tests/tests/provider/src/android/provider/cts/settings/
DSettings_SecureTest.java22 import static org.junit.Assert.fail;
66 fail("Shouldn't be able to parse this setting's value for later tests."); in assertSettingsForTests()
84 fail("SecurityException should have been thrown!"); in testGetPutInt()
90 fail("SettingNotFoundException should have been thrown!"); in testGetPutInt()
96 fail("SettingNotFoundException should have been thrown!"); in testGetPutInt()
107 fail("SecurityException should have been thrown!"); in testGetPutFloat()
113 fail("SettingNotFoundException should have been thrown!"); in testGetPutFloat()
119 fail("SettingNotFoundException should have been thrown!"); in testGetPutFloat()
130 fail("SecurityException should have been thrown!"); in testGetPutLong()
136 fail("SettingNotFoundException should have been thrown!"); in testGetPutLong()
[all …]
/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/tests/os/src/android/os/image/cts/
DDynamicSystemClientTest.java20 import static org.junit.Assert.fail;
69 fail(); in testDynamicSystemClient()
83 fail(); in testDynamicSystemClient()
88 fail(); in testDynamicSystemClient()
94 fail(); in testDynamicSystemClient()
104 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener()
117 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener()
122 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener()
127 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener()
/cts/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java28 fail("Expected error of type " + expectedErrorClass, null); in checkError()
30 fail("Unexpected error " + thrown, thrown); in checkError()
34 fail("Expected invocation target exception, but got " + thrown, thrown); in checkError()
39 fail("Expected error of type " + expectedErrorClass + ", but got " + in checkError()
56 fail("Could not load class " + className, t); in load()
82 fail("Could not find method 'run'", null); in loadAndRun()
90 fail("Could not instantiate " + className, exc); in loadAndRun()
162 static public void fail(String message) { in fail() method in DxAbstractMain
163 fail(message, null); in fail()
166 static public void fail(String message, Throwable cause) { in fail() method in DxAbstractMain

12345678910>>...47