/cts/tests/tests/telephony4/src/android/telephony4/cts/ |
D | SimRestrictedApisTest.java | 21 import static org.junit.Assert.fail; 63 fail("Expected SecurityException. App doesn't have carrier privileges."); in testInjectSmsPdu() 79 fail("Expected SecurityException. App doesn't have carrier privileges."); in testSetLine1NumberForDisplay() 96 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccOpenLogicalChannel() 113 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccOpenLogicalChannelBySlot() 129 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccCloseLogicalChannel() 145 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccCloseLogicalChannelBySlot() 161 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduBasicChannel() 177 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduBasicChannelBySlot() 193 fail("Expected SecurityException. App doesn't have carrier privileges."); in testIccTransmitApduLogicalChannel() [all …]
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | ParamsTest.java | 49 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 50 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 51 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 52 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 60 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 73 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {} 74 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {} 75 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} 88 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {} 90 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {} [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/ |
D | Test_f1.java | 31 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() 135 … fail("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/telephony2/src/android/telephony2/cts/ |
D | TelephonyManagerReadPhoneStatePermissionTest.java | 20 import static org.junit.Assert.fail; 121 fail("TelephonyManager#getCallState and TelephonyManager#getCallStateForSubscription " in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 133 fail("getDeviceSoftwareVersion() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 140 fail("getCarrierConfig() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 147 fail("getGroupIdLevel1() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 154 fail("getLine1AlphaTag() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 161 fail("getForbiddenPlmns() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 170 fail("getSubscriptionId(phoneAccountHandle) must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 178 fail("isModemEnabledForSlot(slotIndex) must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() 185 fail("isMultiSimSupported() must not throw a SecurityException" in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions() [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_request_capture_match.py | 133 for fail in e_failed: 135 fail['format'], fail['e_req'], fail['e_cap'], 138 fail['s_req'], fail['s_cap'], _RTOL_EXP_GAIN) 141 for fail in s_failed: 143 fail['format'], fail['s_req'], fail['s_cap'], 146 fail['e_req'], fail['e_cap'], _RTOL_EXP_GAIN) 149 for fail in r_failed: 151 fail['format'], fail['s_req'], fail['s_cap'], 154 fail['e_req'], fail['e_cap'], _RTOL_EXP_GAIN)
|
/cts/tests/app/app/src/android/app/stubs/ |
D | LocalActivityManagerTestHelper.java | 97 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/database/src/android/database/cts/ |
D | ObservableTest.java | 19 import static org.junit.Assert.fail; 37 fail("registerObserver should throw a IllegalArgumentException here."); in testRegisterUnRegisterObserver() 45 fail("unregisterObserver should throw a IllegalStateException here."); in testRegisterUnRegisterObserver() 52 fail("unregisterObserver should throw a IllegalArgumentException here."); in testRegisterUnRegisterObserver() 62 fail("registerObserver should throw a IllegalStateException here."); in testRegisterUnRegisterObserver() 72 fail("unregisterObserver should throw a IllegalStateException here."); in testRegisterUnRegisterObserver() 90 fail("registerObserver should throw a IllegalStateException here."); in testUnregisterAll() 95 fail("registerObserver should throw a IllegalStateException here."); in testUnregisterAll()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsRcsManagerTest.java | 19 import static org.junit.Assert.fail; 66 fail("This test requires that there is a SIM in the device!"); in beforeTest() 102 fail("registerImsStateCallback requires READ_PRECISE_PHONE_STATE, " in testMethodPermissions() 108 fail("registerImsStateCallback requires READ_PRECISE_PHONE_STATE, " in testMethodPermissions() 118 fail("registerImsStateCallback requires READ_PRECISE_PHONE_STATE permission."); in testMethodPermissions() 126 fail("uregisterImsStateCallback requires no permission."); in testMethodPermissions() 134 fail("registerImsStateCallback requires " in testMethodPermissions() 144 fail("uregisterImsStateCallback requires no permission."); in testMethodPermissions() 152 fail("registerImsStateCallback requires READ_PRIVILEGED_PHONE_STATE permission."); in testMethodPermissions() 161 fail("uregisterImsStateCallback requires no permission."); in testMethodPermissions()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerUnitTest.java | 22 import static org.junit.Assert.fail; 102 fail("null destination path accepted by constructor"); in testIfNullPathIsRejected() 106 fail(e.getMessage()); in testIfNullPathIsRejected() 119 fail("null fd accepted by constructor"); in testIfNullFdIsRejected() 123 fail(e.getMessage()); in testIfNullFdIsRejected() 136 fail("Invalid fd accepted by constructor"); in testIfInvalidFdIsRejected() 140 fail(e.getMessage()); in testIfInvalidFdIsRejected() 152 fail("fd with read-only attribute accepted by constructor"); in testIfReadOnlyFdIsRejected() 156 fail(e.getMessage()); in testIfReadOnlyFdIsRejected() 169 fail("pipe, a non-seekable fd accepted by constructor"); in testIfNonSeekableFdIsRejected() [all …]
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | EnvReverbTest.java | 23 import static org.junit.Assert.fail; 74 fail("EnvironmentalReverb not initialized"); in test0_0ConstructorAndRelease() 77 fail("EnvironmentalReverb not found"); in test0_0ConstructorAndRelease() 79 fail("Effect library not loaded"); in test0_0ConstructorAndRelease() 117 fail("Bad parameter value"); in test1_0Room() 119 fail("get parameter() rejected"); in test1_0Room() 121 fail("get parameter() called in wrong state"); in test1_0Room() 151 fail("Bad parameter value"); in test1_1Decay() 153 fail("get parameter() rejected"); in test1_1Decay() 155 fail("get parameter() called in wrong state"); in test1_1Decay() [all …]
|
D | AudioEffectTest.java | 23 import static org.junit.Assert.fail; 125 fail("AudioRecord invalid parameter"); in getAudioRecord() 157 fail("getEnabled() processed after release()"); in test1_3GetEnabledAfterRelease() 162 fail("AudioEffect not found"); in test1_3GetEnabledAfterRelease() 164 fail("Effect library not loaded"); in test1_3GetEnabledAfterRelease() 184 fail("AudioEffect not initialized"); in test1_4InsertOnMediaPlayer() 218 fail("Attach effect: wait was interrupted."); in test1_5AuxiliaryOnMediaPlayer() 222 fail("attach aux effect failed"); in test1_5AuxiliaryOnMediaPlayer() 252 fail("attach aux effect failed"); in test1_6AuxiliaryOnMediaPlayerFailure() 287 fail("could not attach aux effect"); in test1_7AuxiliaryOnAudioTrack() [all …]
|
D | CallAudioInterceptionTest.java | 98 fail("isPstnCallAudioInterceptable() exception: " + e); in testIsIsPstnCallAudioInterceptable() 112 fail("getCallUplinkInjectionAudioTrack should throw NullPointerException"); in testGetCallUplinkInjectionAudioTrackFail() 121 fail("getCallUplinkInjectionAudioTrack should throw IllegalStateException " in testGetCallUplinkInjectionAudioTrackFail() 130 fail("getCallUplinkInjectionAudioTrack should throw" in testGetCallUplinkInjectionAudioTrackFail() 135 fail("getCallUplinkInjectionAudioTrack should not throw" in testGetCallUplinkInjectionAudioTrackFail() 149 fail("getCallUplinkInjectionAudioTrack should throw" in testGetCallUplinkInjectionAudioTrackFail() 155 fail("getCallUplinkInjectionAudioTrack should throw" in testGetCallUplinkInjectionAudioTrackFail() 161 fail("getCallUplinkInjectionAudioTrack should throw" in testGetCallUplinkInjectionAudioTrackFail() 195 fail("getCallUplinkInjectionAudioTrack should not throw " + e); in testGetCallUplinkInjectionAudioTrackSuccess() 214 fail("getCallDownlinkExtractionAudioRecord should throw NullPointerException"); in testGetCallDownlinkExtractionAudioRecordFail() [all …]
|
D | VirtualizerTest.java | 23 import static org.junit.Assert.fail; 77 fail("Virtualizer not initialized"); in test0_0ConstructorAndRelease() 80 fail("Virtualizer not found"); in test0_0ConstructorAndRelease() 82 fail("Effect library not loaded"); in test0_0ConstructorAndRelease() 118 fail("Bad parameter value"); in test1_0Strength() 120 fail("get parameter() rejected"); in test1_0Strength() 122 fail("get parameter() called in wrong state"); in test1_0Strength() 156 fail("Bad parameter value"); in test1_1Properties() 158 fail("get parameter() rejected"); in test1_1Properties() 160 fail("get parameter() called in wrong state"); in test1_1Properties() [all …]
|
D | HapticGeneratorTest.java | 21 import static org.junit.Assert.fail; 91 fail("setEnabled() in wrong state"); in test1_0SetEnabledGetEnabled() 103 fail("HapticGenerator not initialized"); in createHapticGenerator() 107 fail("HapticGenerator not found"); in createHapticGenerator() 109 fail("Effect library not loaded"); in createHapticGenerator() 111 fail("Unexpected run time error: " + e); in createHapticGenerator()
|
D | EqualizerTest.java | 23 import static org.junit.Assert.fail; 73 fail("Equalizer not initialized"); in test0_0ConstructorAndRelease() 76 fail("Equalizer not found"); in test0_0ConstructorAndRelease() 78 fail("Effect library not loaded"); in test0_0ConstructorAndRelease() 111 fail("Bad parameter value"); in test1_0BandLevel() 113 fail("get parameter() rejected"); in test1_0BandLevel() 115 fail("get parameter() called in wrong state"); in test1_0BandLevel() 137 fail("Bad parameter value"); in test1_1BandFrequency() 139 fail("get parameter() rejected"); in test1_1BandFrequency() 141 fail("get parameter() called in wrong state"); in test1_1BandFrequency() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/verify/b2/ |
D | Test_b2.java | 31 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/apps/CtsVerifier/src/com/android/cts/verifier/companion/ |
D | CompanionDeviceTestActivity.java | 86 fail(e); in test() 92 fail(error); in test() 98 private void fail(Throwable reason) { in fail() method in CompanionDeviceTestActivity 100 fail(reason.getMessage()); in fail() 103 private void fail(CharSequence reason) { in fail() method in CompanionDeviceTestActivity 114 fail("Activity result code " + resultCode); in onActivityResult() 120 fail("New associations " + newAssociations in onActivityResult() 126 fail("New associations " + newAssociations + " are not 1 item larger from initial " in onActivityResult() 135 fail("Selected device is not present among new associations " + newAssociations); in onActivityResult() 142 fail("Disassociating device " + deviceAddress in onActivityResult()
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | DxAbstractMain.java | 28 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
|
D | DxTestCase.java | 26 fail("Expected error of type " + expectedErrorClass); in checkError() 28 fail("Unexpected error " + thrown); in checkError() 32 fail("Expected invocation target exception, but got " + thrown); in checkError() 37 fail("Expected error of type " + expectedErrorClass + ", but got " + in checkError() 55 fail("Could not load class " + className + ": " + t); in load() 79 fail("Could not find method 'run'"); in loadAndRun() 87 fail("Could not instantiate " + className + ": " + exc.getMessage()); in loadAndRun()
|
/cts/tests/tests/os/src/android/os/image/cts/ |
D | DynamicSystemClientTest.java | 20 import static org.junit.Assert.fail; 71 fail(); in testDynamicSystemClient() 85 fail(); in testDynamicSystemClient() 90 fail(); in testDynamicSystemClient() 96 fail(); in testDynamicSystemClient() 106 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener() 119 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener() 124 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener() 129 fail(); in testDynamicSystemClient_withoutOnStatusChangedListener()
|
/cts/libs/input/src/com/android/cts/input/ |
D | EventVerifier.kt | 24 import org.junit.Assert.fail 33 val event = getInputEvent() ?: fail("Failed to receive input event") in getMotionEvent() 35 event as? MotionEvent ?: fail("Instead of MotionEvent, got: $event") in getMotionEvent() 45 val event = getInputEvent() ?: fail("Failed to receive input event") in getKeyEvent() 47 event as? KeyEvent ?: fail("Instead of KeyEvent, got: $event") in getKeyEvent()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerUnaffiliatedAuthenticatorTests.java | 70 fail("Expected to just barf if the caller doesn't share a signature."); in testNotifyAccountAuthenticated() 81 fail("Expecting a OperationCanceledException."); in testEditProperties() 93 fail("addAccountExplicitly should just barf if the caller isn't permitted."); in testAddAccountExplicitly() 103 fail("removeAccount should just barf if the caller isn't permitted."); in testRemoveAccount_withBooleanResult() 114 fail("removeAccount should just barf if the caller isn't permitted."); in testRemoveAccount_withBundleResult() 122 fail("removeAccountExplicitly should just barf if the caller isn't permitted."); in testRemoveAccountExplicitly() 130 fail("getPassword should just barf if the caller isn't permitted."); in testGetPassword() 139 fail("setPassword should just barf if the caller isn't permitted."); in testSetPassword() 147 fail("clearPassword should just barf if the caller isn't permitted."); in testClearPassword() 156 fail("getUserData should just barf if the caller isn't permitted."); in testGetUserData() [all …]
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | NoLocationPermissionTest.java | 22 import static org.junit.Assert.fail; 60 fail("Should throw SecurityException for provider " + provider); in testRequestLocationUpdates() 67 fail("Should throw SecurityException for provider " + provider); in testRequestLocationUpdates() 75 fail("Should throw SecurityException for provider " + provider); in testRequestLocationUpdates() 86 fail("Should throw SecurityException"); in testAddProximityAlert() 97 fail("Should throw SecurityException for provider " + provider); in testGetLastKnownLocation() 119 fail("Should throw SecurityException for provider " + provider); in testAddTestProvider() 131 fail("Should throw SecurityException for provider " + provider); in testRemoveTestProvider()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | GetCharsTest.java | 20 import static org.junit.Assert.fail; 57 fail("should throw IndexOutOfBoundsException here"); in testGetChars() 63 fail("should throw IndexOutOfBoundsException here"); in testGetChars() 69 fail("should throw IndexOutOfBoundsException here"); in testGetChars() 75 fail("should throw IndexOutOfBoundsException here"); in testGetChars() 81 fail("should throw IndexOutOfBoundsException here"); in testGetChars()
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | Settings_SecureTest.java | 24 import static org.junit.Assert.fail; 73 fail("Shouldn't be able to parse this setting's value for later tests."); in assertSettingsForTests() 91 fail("SecurityException should have been thrown!"); in testGetPutInt() 97 fail("SettingNotFoundException should have been thrown!"); in testGetPutInt() 103 fail("SettingNotFoundException should have been thrown!"); in testGetPutInt() 114 fail("SecurityException should have been thrown!"); in testGetPutFloat() 120 fail("SettingNotFoundException should have been thrown!"); in testGetPutFloat() 127 fail("SettingNotFoundException should have been thrown!"); in testGetPutFloat() 148 fail("SecurityException should have been thrown!"); in testGetPutLong() 154 fail("SettingNotFoundException should have been thrown!"); in testGetPutLong() [all …]
|