/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/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 | 112 fail("AudioRecord invalid parameter"); in getAudioRecord() 143 fail("getEnabled() processed after release()"); in test1_3GetEnabledAfterRelease() 148 fail("AudioEffect not found"); in test1_3GetEnabledAfterRelease() 150 fail("Effect library not loaded"); in test1_3GetEnabledAfterRelease() 166 fail("AudioEffect not initialized"); in test1_4InsertOnMediaPlayer() 196 fail("Attach effect: wait was interrupted."); in test1_5AuxiliaryOnMediaPlayer() 200 fail("attach aux effect failed"); in test1_5AuxiliaryOnMediaPlayer() 229 fail("attach aux effect failed"); in test1_6AuxiliaryOnMediaPlayerFailure() 263 fail("could not attach aux effect"); in test1_7AuxiliaryOnAudioTrack() 267 fail("could not set send level"); in test1_7AuxiliaryOnAudioTrack() [all …]
|
D | EnvReverbTest.java | 60 fail("EnvironmentalReverb not initialized"); in test0_0ConstructorAndRelease() 63 fail("EnvironmentalReverb not found"); in test0_0ConstructorAndRelease() 65 fail("Effect library not loaded"); in test0_0ConstructorAndRelease() 102 fail("Bad parameter value"); in test1_0Room() 104 fail("get parameter() rejected"); in test1_0Room() 106 fail("get parameter() called in wrong state"); in test1_0Room() 135 fail("Bad parameter value"); in test1_1Decay() 137 fail("get parameter() rejected"); in test1_1Decay() 139 fail("get parameter() called in wrong state"); in test1_1Decay() 172 fail("Bad parameter value"); in test1_2Reverb() [all …]
|
D | VirtualizerTest.java | 65 fail("Virtualizer not initialized"); in test0_0ConstructorAndRelease() 68 fail("Virtualizer not found"); in test0_0ConstructorAndRelease() 70 fail("Effect library not loaded"); in test0_0ConstructorAndRelease() 105 fail("Bad parameter value"); in test1_0Strength() 107 fail("get parameter() rejected"); in test1_0Strength() 109 fail("get parameter() called in wrong state"); in test1_0Strength() 142 fail("Bad parameter value"); in test1_1Properties() 144 fail("get parameter() rejected"); in test1_1Properties() 146 fail("get parameter() called in wrong state"); in test1_1Properties() 186 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/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()
|
D | ContactsProviderTest.java | 40 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()
|
/cts/tests/tests/permission/telephony/src/android/permission/cts/telephony/ |
D | TelephonyManagerPermissionTest.java | 21 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 …]
|
/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/admin/src/android/admin/cts/ |
D | DevicePolicyManagerTest.java | 143 fail("did not throw expected SecurityException"); in testRequestRemoteBugreport_failIfNotDeviceOwner() 156 fail("did not throw expected SecurityException"); in testSetSecurityLoggingEnabled_failIfNotDeviceOwner() 169 fail("did not throw expected SecurityException"); in testIsSecurityLoggingEnabled_failIfNotDeviceOwner() 182 fail("did not throw expected SecurityException"); in testRetrieveSecurityLogs_failIfNotDeviceOwner() 195 fail("did not throw expected SecurityException"); in testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner() 208 fail("did not throw expected SecurityException"); in testSetNetworkLoggingEnabled_failIfNotDeviceOwner() 221 fail("did not throw expected SecurityException"); in testIsNetworkLoggingEnabled_failIfNotDeviceOwner() 234 fail("did not throw expected SecurityException"); in testRetrieveNetworkLogs_failIfNotDeviceOwner() 246 fail("did not throw expected SecurityException"); in testRemoveUser_failIfNotDeviceOwner() 259 fail("did not throw expected SecurityException"); in testSetApplicationHidden_failIfNotDeviceOrProfileOwner() [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/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/database/src/android/database/cts/ |
D | ObservableTest.java | 29 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/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/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/tests/tests/net/src/android/net/cts/ |
D | MacAddressTest.java | 23 import static org.junit.Assert.fail; 89 fail(String.format("expected OUI string %s, got %s", in testMacAddress() 94 fail(String.format("expected %s to be %s, got %s", mac, in testMacAddress() 100 fail(String.format("expected %s address type to be %s, got %s", mac, in testMacAddress() 105 fail(String.format("expected toString() to return %s, got %s", in testMacAddress() 111 fail(String.format("expected mac address from bytes %s to be %s, got %s", in testMacAddress() 132 fail("MacAddress.fromString(" + s + ") should have failed, but returned " + mac); in testConstructorInputValidation() 139 fail("MacAddress.fromString(null) should have failed, but returned " + mac); in testConstructorInputValidation() 152 fail("MacAddress.fromBytes(" + Arrays.toString(b) in testConstructorInputValidation() 160 fail("MacAddress.fromBytes(null) should have failed, but returned " + mac); in testConstructorInputValidation()
|
/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/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 …]
|