/cts/tests/tests/media/src/android/media/cts/ |
D | ParamsTest.java | 51 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 …]
|
D | AudioEffectTest.java | 113 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 …]
|
D | EnvReverbTest.java | 61 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 …]
|
D | VirtualizerTest.java | 66 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 …]
|
D | MediaMetadataRetrieverTest.java | 94 fail("Unable to open file"); in setDataSourceFd() 105 fail("Unable to open file"); in setDataSourceCallback() 121 fail("Unable to open file"); in getFaultyDataSource() 206 fail("Expected IllegalArgumentException."); in testSetDataSourceNullPath() 215 fail("Expected IllegalArgumentException."); in testNullMediaDataSourceIsRejected() 232 fail("Failed to throw exceptions"); in testRetrieveFailsIfMediaDataSourceThrows() 242 fail("Failed to throw exceptions"); in testRetrieveFailsIfMediaDataSourceReturnsAnError() 263 fail("Unable to open file"); in testThumbnail() 440 fail("Unable to close file"); in testGetFrameAt() 467 fail("Unable to close file"); in testGetFrameAtEditList() [all …]
|
/cts/tests/tests/telephony4/src/android/telephony4/cts/ |
D | SimRestrictedApisTest.java | 21 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/ |
D | NoWifiStatePermissionTest.java | 51 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 …]
|
D | NoWallpaperPermissionsTest.java | 61 fail("WallpaperManager.setResource(id) did not enforce SET_WALLPAPER"); in testSetResource() 66 fail("WallpaperManager.setResource(id, which) did not enforce SET_WALLPAPER"); in testSetResource() 83 fail("setBitmap(b) did not enforce SET_WALLPAPER"); in testSetBitmap() 88 fail("setBitmap(b, crop, allowBackup) did not enforce SET_WALLPAPER"); in testSetBitmap() 93 fail("setBitmap(b, crop, allowBackup, which) did not enforce SET_WALLPAPER"); in testSetBitmap() 110 fail("setStream(stream) did not enforce SET_WALLPAPER"); in testSetStream() 115 fail("setStream(stream, crop, allowBackup) did not enforce SET_WALLPAPER"); in testSetStream() 120 fail("setStream(stream, crop, allowBackup, which) did not enforce SET_WALLPAPER"); in testSetStream() 135 fail("clear() did not enforce SET_WALLPAPER"); in testClearWallpaper() 140 fail("clear(which) did not enforce SET_WALLPAPER"); in testClearWallpaper() [all …]
|
D | NoSystemFunctionPermissionTest.java | 54 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()
|
/cts/tests/admin/src/android/admin/cts/ |
D | DevicePolicyManagerTest.java | 142 fail("did not throw expected SecurityException"); in testRequestRemoteBugreport_failIfNotDeviceOwner() 155 fail("did not throw expected SecurityException"); in testSetSecurityLoggingEnabled_failIfNotDeviceOwner() 168 fail("did not throw expected SecurityException"); in testIsSecurityLoggingEnabled_failIfNotDeviceOwner() 181 fail("did not throw expected SecurityException"); in testRetrieveSecurityLogs_failIfNotDeviceOwner() 194 fail("did not throw expected SecurityException"); in testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner() 207 fail("did not throw expected SecurityException"); in testSetNetworkLoggingEnabled_failIfNotDeviceOwner() 220 fail("did not throw expected SecurityException"); in testIsNetworkLoggingEnabled_failIfNotDeviceOwner() 233 fail("did not throw expected SecurityException"); in testRetrieveNetworkLogs_failIfNotDeviceOwner() 245 fail("did not throw expected SecurityException"); in testRemoveUser_failIfNotDeviceOwner() 258 fail("did not throw expected SecurityException"); in testSetApplicationHidden_failIfNotDeviceOrProfileOwner() [all …]
|
/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/permission/telephony/src/android/permission/cts/telephony/ |
D | TelephonyManagerPermissionTest.java | 22 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() 197 fail("Able to set data enabled"); in testSetDataEnabled() 214 fail("SecurityException expected!"); in testProtectedBroadcasts() 219 fail("SecurityException expected!"); in testProtectedBroadcasts() [all …]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerUnitTest.java | 44 import static org.junit.Assert.fail; 95 fail("null destination path accepted by constructor"); in testIfNullPathIsRejected() 99 fail(e.getMessage()); in testIfNullPathIsRejected() 111 fail("null fd accepted by constructor"); in testIfNullFdIsRejected() 115 fail(e.getMessage()); in testIfNullFdIsRejected() 127 fail("Invalid fd accepted by constructor"); in testIfInvalidFdIsRejected() 131 fail(e.getMessage()); in testIfInvalidFdIsRejected() 142 fail("fd with read-only attribute accepted by constructor"); in testIfReadOnlyFdIsRejected() 146 fail(e.getMessage()); in testIfReadOnlyFdIsRejected() 158 fail("fd with write only attribute accepted by constructor"); in testIfWriteOnlyFdIsRejected() [all …]
|
D | ExtractorUnitTest.java | 40 import static org.junit.Assert.fail; 72 fail("getTrackCount succeeds after release"); in testGetTrackCountAfterRelease() 83 fail("selectTrack succeeds before setDataSource"); in testSelectTrackBeforeSetDataSource() 98 fail("selectTrack succeeds for track index: -1"); in testSelectTrackForInvalidIndex() 104 fail("selectTrack succeeds for out of bounds track index: " + in testSelectTrackForInvalidIndex() 122 fail("multiple selection of same track has failed"); in testIdempotentSelectTrack() 134 fail("selectTrack succeeds after release"); in testSelectTrackAfterRelease() 145 fail("unselectTrack succeeds before setDataSource"); in testUnselectTrackBeforeSetDataSource() 160 fail("unselectTrack succeeds for track index: -1"); in testUnselectTrackForInvalidIndex() 166 fail("unselectTrack succeeds for out of bounds track index: " + in testUnselectTrackForInvalidIndex() [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/location/src/android/location/cts/ |
D | GeocoderTest.java | 41 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/apps/CameraITS/tests/scene0/ |
D | test_read_write.py | 108 for fail in e_failed: 110 fail['format'], fail['e_write'], fail['e_read'], 113 fail['s_write'], fail['s_read'], RTOL_EXP_GAIN) 116 for fail in s_failed: 118 fail['format'], fail['s_write'], fail['s_read'], 121 fail['e_write'], fail['e_read'], RTOL_EXP_GAIN)
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | Settings_SecureTest.java | 22 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/tests/tests/util/src/android/util/cts/ |
D | JsonReaderTest.java | 22 import static org.junit.Assert.fail; 122 fail("Should not be possible to skip without elements."); in testSkipAfterEndOfDocument() 275 fail(); in testLenientDoubles() 282 fail(); in testLenientDoubles() 318 fail(); in testTruncatedBufferBoundary() 374 fail(); in testLongs() 380 fail(); in testLongs() 448 fail(); in testNonFiniteDouble() 460 fail(); in testNumberWithHexPrefix() 472 fail(); in testNumberWithOctalPrefix() [all …]
|
D | ArrayMapTest.java | 23 import static org.junit.Assert.fail; 167 fail("Bad size: expected " + map.size() + ", got " + array.size()); in compareMaps() 175 fail("Bad value: expected " + expValue + ", got " + gotValue in compareMaps() 185 fail("Bad value: expected " + expValue + ", got " + gotValue in compareMaps() 191 fail("Entry set hash codes differ: map=0x" in compareMaps() 197 fail("Failed calling equals on map entry set against array set"); in compareMaps() 201 fail("Failed calling equals on array entry set against map set"); in compareMaps() 205 fail("Key set hash codes differ: map=0x" in compareMaps() 211 fail("Failed calling equals on map key set against array set"); in compareMaps() 215 fail("Failed calling equals on array key set against map set"); in compareMaps() [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoLocationPermissionTest.java | 85 fail("Test process should not have received CellLocation"); in testListenCellLocation() 99 fail("Test process should not have gotten a nonnull value from getCellLocation."); in testListenCellLocation() 123 fail("Test process should not have received CellInfo"); in testListenCellLocation2() 135 fail("Test process should not have received CellInfo"); in testListenCellLocation2() 160 fail("LocationManager.requestLocationUpdates did not" + in checkRequestLocationUpdates() 168 fail("LocationManager.requestLocationUpdates did not" + in checkRequestLocationUpdates() 209 fail("LocationManager.addProximityAlert did not throw SecurityException as expected"); in testAddProximityAlert() 229 fail("LocationManager.getLastKnownLocation did not" + in checkGetLastKnownLocation() 272 fail("LocationManager.getProvider did not throw SecurityException as expected"); in checkGetProvider() 356 fail("LocationManager.addTestProvider did not throw SecurityException as expected"); in testAddTestProvider() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | BlockCipherTestBase.java | 174 fail(); in testGetOutputSizeInEncryptionMode() 185 fail("getOutputSize(" + expectedOutputSize + ") underestimated output size" in testGetOutputSizeInEncryptionMode() 196 fail("getOutputSize(" + input + ") underestimated output size. min expected: <" in testGetOutputSizeInEncryptionMode() 221 fail("getOutputSize(" + input + ") underestimated output size when buffered == " in testGetOutputSizeInEncryptionMode() 240 fail(); in testGetOutputSizeInDecryptionMode() 250 fail("getOutputSize(" + expectedOutputSize + ") underestimated output size" in testGetOutputSizeInDecryptionMode() 298 fail("getOutputSize(" + input + ") underestimated output size when buffered == " in testGetOutputSizeInDecryptionMode() 321 fail(); in testInitRequiresIvInDecryptMode() 327 fail(); in testInitRequiresIvInDecryptMode() 333 fail(); in testInitRequiresIvInDecryptMode() [all …]
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerUnaffiliatedAuthenticatorTests.java | 72 fail("Expected to just barf if the caller doesn't share a signature."); in testNotifyAccountAuthenticated() 83 fail("Expecting a OperationCanceledException."); in testEditProperties() 95 fail("addAccountExplicitly should just barf if the caller isn't permitted."); in testAddAccountExplicitly() 105 fail("removeAccount should just barf if the caller isn't permitted."); in testRemoveAccount_withBooleanResult() 116 fail("removeAccount should just barf if the caller isn't permitted."); in testRemoveAccount_withBundleResult() 124 fail("removeAccountExplicitly should just barf if the caller isn't permitted."); in testRemoveAccountExplicitly() 132 fail("getPassword should just barf if the caller isn't permitted."); in testGetPassword() 141 fail("setPassword should just barf if the caller isn't permitted."); in testSetPassword() 149 fail("clearPassword should just barf if the caller isn't permitted."); in testClearPassword() 158 fail("getUserData should just barf if the caller isn't permitted."); in testGetUserData() [all …]
|
/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
|
/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()
|