/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | WindowManagerPermissionTests.java | 47 fail("IWindowManager.setEventDispatching did not throw SecurityException as" in testMANAGE_APP_TOKENS() 52 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS() 57 fail("IWindowManager.addWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS() 62 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS() 67 fail("IWindowManager.removeWindowToken did not throw SecurityException as" in testMANAGE_APP_TOKENS() 72 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS() 78 fail("IWindowManager.updateOrientationFromAppTokens did not throw SecurityException as" in testMANAGE_APP_TOKENS() 83 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS() 88 fail("IWindowManager.setFocusedApp did not throw SecurityException as" in testMANAGE_APP_TOKENS() 93 fail("Unexpected remote exception"); in testMANAGE_APP_TOKENS() [all …]
|
D | ActivityManagerPermissionTests.java | 43 fail("IActivityManager.moveTaskToFront did not throw SecurityException as" in testREORDER_TASKS() 48 fail("Unexpected remote exception"); in testREORDER_TASKS() 53 fail("IActivityManager.moveTaskToFront did not throw SecurityException as" in testREORDER_TASKS() 58 fail("Unexpected remote exception"); in testREORDER_TASKS() 66 fail("IActivityManager.updateConfiguration did not throw SecurityException as" in testCHANGE_CONFIGURATION() 71 fail("Unexpected remote exception"); in testCHANGE_CONFIGURATION() 79 fail("IActivityManager.setDebugApp did not throw SecurityException as" in testSET_DEBUG_APP() 84 fail("Unexpected remote exception"); in testSET_DEBUG_APP() 92 fail("IActivityManager.setProcessLimit did not throw SecurityException as" in testSET_PROCESS_LIMIT() 97 fail("Unexpected remote exception"); in testSET_PROCESS_LIMIT() [all …]
|
D | PmPermissionsTests.java | 45 fail("PackageManager.getPackageSizeInfo" + in testGetPackageSize() 60 fail("PackageManager.deleteApplicationCacheFiles" + in testDeleteApplicationCacheFiles() 79 fail("PackageManager.installPackage" + in testInstallPackage() 94 fail("PackageManager.freeStorage " + in testFreeStorage1() 109 fail("PackageManager.freeStorageAndNotify" + in testFreeStorage2() 124 fail("PackageManager.clearApplicationUserData" + in testClearApplicationUserData() 139 fail("PackageManager.deletePackage" + in testDeletePackage()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSwitcherTest.java | 46 fail(str + "\n" + SubscriptionMonitorTest.stack()); in failAndStack() 217 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed initially"); in testRegister() 218 if (phoneSwitcher.isPhoneActive(0)) fail("phone active initially"); in testRegister() 223 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed after request"); in testRegister() 224 if (phoneSwitcher.isPhoneActive(0)) fail("phone active after request"); in testRegister() 234 fail("pretest of ActivePhoneSwitchCount"); in testRegister() 244 if (threw == false) fail("register with bad phoneId didn't throw"); in testRegister() 252 fail("post register of ActivePhoneSwitchCount not 1!"); in testRegister() 259 fail("after set of default to 0, ActivePhoneSwitchCount not 1!"); in testRegister() 261 if (commandsInterfaces[0].isDataAllowed()) fail("data allowed"); in testRegister() [all …]
|
D | SubscriptionMonitorTest.java | 44 fail(str + "\n" + SubscriptionMonitorTest.stack()); in failAndStack() 195 fail("pretest of SubscriptionChangedCount"); in testRegister() 198 fail("pretest of DefaultSubscriptionChangedCount"); in testRegister() 206 fail("test1 of SubscriptionChangedCount"); in testRegister() 209 fail("test1 of DefaultSubscriptionChangedCount"); in testRegister() 217 fail("test2 of SubscriptionChangedCount"); in testRegister() 220 fail("test2 of DefaultSubscriptionChangedCount"); in testRegister() 227 fail("test3 of SubscriptionChangedCount, " + in testRegister() 231 fail("test3 of DefaultSubscriptionChangedCount, " + in testRegister() 239 fail("test4 of SubscriptionChangedCount"); in testRegister() [all …]
|
D | PhoneFactoryTest.java | 23 import static org.junit.Assert.fail; 31 fail("Expecting IllegalStateException"); in testBeforeMakePhone() 37 fail("Expecting IllegalStateException"); in testBeforeMakePhone() 43 fail("Expecting IllegalStateException"); in testBeforeMakePhone()
|
D | PhoneSubInfoControllerTest.java | 92 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission() 100 Assert.fail("expected Security Exception Thrown"); in testGetDeviceIdWithOutPermission() 142 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission() 150 Assert.fail("expected Security Exception Thrown"); in testGetNaiWithOutPermission() 192 Assert.fail("expected Security Exception Thrown"); in testGetImeiWithOutPermission() 200 Assert.fail("expected Security Exception Thrown"); in testGetImeiWithOutPermission() 242 Assert.fail("expected Security Exception Thrown"); in testGetDeviceSvnWithOutPermission() 250 Assert.fail("expected Security Exception Thrown"); in testGetDeviceSvnWithOutPermission() 295 Assert.fail("expected Security Exception Thrown"); in testGetSubscriberIdWithOutPermission() 303 Assert.fail("expected Security Exception Thrown"); in testGetSubscriberIdWithOutPermission() [all …]
|
D | SimActivationTrackerTest.java | 56 fail("Exception in setVoiceActivationState: " + ex); in testSetVoiceActivationState() 66 fail("Expect exception in setVoiceActivationState with wrong state: " in testSetVoiceActivationState() 85 fail("Exception in setDataActivationState: " + ex); in testSetDataActivationState() 95 fail("Exception in setDataActivationState: " + ex); in testSetDataActivationState() 112 static public void fail(String message) { in fail() method in SimActivationTrackerTest
|
D | ATResponseParserTest.java | 33 fail("exception expected"); in testBasic() 55 fail("exception expected"); in testBasic() 69 fail("exception expected"); in testBasic() 80 fail("exception expected"); in testBasic() 105 fail("expected ex"); in testBasic()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | ListChangeRegistryTest.java | 55 fail("onItemRangeChanged should not be called"); in testNotifyChangedAll() 60 fail("onItemRangeInserted should not be called"); in testNotifyChangedAll() 65 fail("onItemRangeMoved should not be called"); in testNotifyChangedAll() 70 fail("onItemRangeRemoved should not be called"); in testNotifyChangedAll() 87 fail("onChanged should not be called"); in testNotifyChanged() 99 fail("onItemRangeInserted should not be called"); in testNotifyChanged() 104 fail("onItemRangeMoved should not be called"); in testNotifyChanged() 109 fail("onItemRangeRemoved should not be called"); in testNotifyChanged() 126 fail("onChanged should not be called"); in testNotifyInserted() 131 fail("onItemRangeChanged should not be called"); in testNotifyInserted() [all …]
|
/frameworks/support/core-utils/tests/java/android/support/v4/content/ |
D | MimeTypeFilterTest.java | 119 Assert.fail("Illegal filter, should throw."); in illegalFilters() 126 Assert.fail("Illegal filter, should throw."); in illegalFilters() 133 Assert.fail("Illegal filter, should throw."); in illegalFilters() 140 Assert.fail("Illegal filter, should throw."); in illegalFilters() 147 Assert.fail("Illegal filter, should throw."); in illegalFilters() 154 Assert.fail("Illegal filter, should throw."); in illegalFilters() 161 Assert.fail("Illegal filter, should throw."); in illegalFilters() 168 Assert.fail("Illegal filter, should throw."); in illegalFilters() 175 Assert.fail("Illegal filter, should throw."); in illegalFilters() 182 Assert.fail("Illegal filter, should throw."); in illegalFilters() [all …]
|
D | ModernAsyncTaskTest.java | 19 import static org.junit.Assert.fail; 73 fail("Test failure: doInBackground did not run in time."); in testCancellationWithException() 78 fail("onCancelled not called!"); in testCancellationWithException() 103 fail("onPostExecute should not be called"); in testException() 119 fail("Exception not thrown"); in testException() 127 fail("onCancelled not called"); in testException()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | VCardVerifier.java | 108 AndroidTestCase.fail("Already initialized"); in initForImportTest() 123 AndroidTestCase.fail("Already initialized"); in initForExportTest() 140 AndroidTestCase.fail("Wrong resId: " + resId); in setInputResourceId() 147 AndroidTestCase.fail("addInputEntry() is called."); in setInputStream() 149 AndroidTestCase.fail("InputStream is already set"); in setInputStream() 156 AndroidTestCase.fail("Not initialized"); in addInputEntry() 159 AndroidTestCase.fail("setInputStream is called"); in addInputEntry() 166 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithoutVersion() 193 AndroidTestCase.fail("Not initialized"); in addPropertyNodesVerifierElemWithEmptyName() 209 AndroidTestCase.fail("Not initialized"); in addLineVerifierElem() [all …]
|
D | LineVerifierElem.java | 58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found"); in verify() 65 TestCase.fail("Multiple \"END:VCARD\" line found"); in verify() 74 TestCase.fail("Multiple VERSION line + found"); in verify() 82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify() 84 TestCase.fail("Property other than END came after END property: " + line); in verify() 91 TestCase.fail("Unexpected line: " + line); in verify() 102 TestCase.fail("Expected line(s) not found:" + buffer.toString()); in verify()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeParametersTest.java | 29 import static junit.framework.Assert.fail; 93 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failEmpty() 103 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failNull() 113 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failEmptyClause() 123 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failDuplicate() 133 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failDuplicateDefault() 143 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failMalformedNot() 153 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failText() 163 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failContradiction() 173 fail("Expected IllegalArgumentException"); in test_inOutMatcher_failContradictionDefault() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactoryTest.java | 88 if (dcTrackerMock == null) fail("failed to initialize dct"); in TestSetup() 165 fail("pretest of LiveRequests != 0"); in testActive() 172 fail("post-active test of LiveRequests != 1"); in testActive() 179 fail("post-second-request test of LiveRequests != 2"); in testActive() 186 fail("post-inactive test of LiveRequests != 0"); in testActive() 193 fail("post-mms-add test of LiveRequests != 0"); in testActive() 200 fail("post-active-mms-add test of LiveRequests != 3"); in testActive() 207 fail("post-remove-default test of LiveRequests != 2"); in testActive() 214 fail("test 8, LiveRequests != 0"); in testActive() 221 fail("test 9, LiveRequests != 0"); in testActive() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | LocalSocketTest.java | 88 fail("expected exception"); in testBasic() 95 fail("expected exception"); in testBasic() 102 fail("expected exception"); in testBasic() 109 fail("expected exception"); in testBasic() 116 fail("expected exception"); in testBasic() 123 fail("expected exception"); in testBasic() 142 fail("expected exception"); in testBasic() 151 fail("expected exception"); in testBasic() 160 fail("expected exception"); in testBasic()
|
/frameworks/base/tests/net/java/android/net/ |
D | IpPrefixTest.java | 25 import static org.junit.Assert.fail; 59 fail("Expected NullPointerException: null byte array"); in testConstructor() 64 fail("Expected NullPointerException: null InetAddress"); in testConstructor() 69 fail("Expected NullPointerException: null String"); in testConstructor() 76 fail("Expected IllegalArgumentException: invalid array length"); in testConstructor() 81 fail("Expected IllegalArgumentException: no prefix length"); in testConstructor() 86 fail("Expected IllegalArgumentException: empty prefix length"); in testConstructor() 91 fail("Expected IllegalArgumentException: invalid address"); in testConstructor() 96 fail("Expected IllegalArgumentException: deprecated IPv4 format"); in testConstructor() 101 fail("Expected IllegalArgumentException: invalid IPv4 address"); in testConstructor() [all …]
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | MemoryIntArrayTest.java | 23 import static org.junit.Assert.fail; 135 fail("Cannot interact with a closed instance"); in testInteractOnceClosed() 142 fail("Cannot interact with a closed instance"); in testInteractOnceClosed() 149 fail("Cannot interact with a closed instance"); in testInteractOnceClosed() 156 fail("Cannot interact with a closed instance"); in testInteractOnceClosed() 175 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds() 182 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds() 189 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds() 196 fail("Cannot interact out of array bounds"); in testInteractPutOfBounds() 210 fail("Cannot use over max size"); in testOverMaxSize() [all …]
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 459 fail(String.format("enable() timeout: state=%d (expected %d)", btState, in enable() 502 fail(String.format("disable() timeout: state=%d (expected %d)", btState, in disable() 515 fail("discoverable() bluetooth not enabled"); in discoverable() 552 fail(String.format("discoverable() timeout: scanMode=%d (expected %d)", scanMode, in discoverable() 565 fail("undiscoverable() bluetooth not enabled"); in undiscoverable() 602 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d)", scanMode, in undiscoverable() 617 fail("startScan() bluetooth not enabled"); in startScan() 641 fail(String.format("startScan() timeout: isDiscovering=%b, flags=0x%x (expected 0x%x)", in startScan() 655 fail("stopScan() bluetooth not enabled"); in stopScan() 679 fail(String.format("stopScan() timeout: isDiscovering=%b, flags=0x%x (expected 0x%x)", in stopScan() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | WordIteratorTest.java | 22 import static org.junit.Assert.fail; 156 fail("setCharSequence with invalid start and end values should throw " in testSetCharSequence() 162 fail("setCharSequence with invalid start and end values should throw " in testSetCharSequence() 197 fail("preceding with invalid offset should throw IllegalArgumentException."); in testPreceding() 202 fail("preceding with invalid offset should throw IllegalArgumentException."); in testPreceding() 237 fail("following with invalid offset should throw IllegalArgumentException."); in testFollowing() 242 fail("following with invalid offset should throw IllegalArgumentException."); in testFollowing() 277 fail("isBoundary with invalid offset should throw IllegalArgumentException."); in testIsBoundary() 282 fail("isBoundary with invalid offset should throw IllegalArgumentException."); in testIsBoundary() 305 fail("nextBoundary with invalid offset should throw IllegalArgumentException."); in testNextBoundary() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ArrayMapTest.java | 52 fail(); in testConcurrentModificationException() 55 fail(); in testConcurrentModificationException() 73 fail(); in testConcurrentModificationException() 76 fail(); in testConcurrentModificationException() 104 fail(); in testNonConcurrentAccesses()
|
/frameworks/support/compat/tests/java/android/support/v4/app/ |
D | JobIntentServiceTest.java | 20 import static org.junit.Assert.fail; 181 fail("Timed out waiting for wait, service state " + sLastServiceState); in ensureServiceWaiting() 184 fail("Interrupted waiting for service to wait: " + e); in ensureServiceWaiting() 195 fail("Timed out waiting for stop, service state " + sLastServiceState); in ensureServiceStopped() 198 fail("Interrupted waiting for service to stop: " + e); in ensureServiceStopped() 227 fail("Timed out waiting for finish, service state " + sLastServiceState in waitServiceFinish() 230 fail("Timed out waiting for finish, service state " + sLastServiceState); in waitServiceFinish() 234 fail("Interrupted waiting for service to finish: " + e); in waitServiceFinish() 238 fail(sFinishedErrorMsg); in waitServiceFinish() 321 fail("Didn't receive any expected work."); in compareIntents() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaRecorderStateUnitTestTemplate.java | 89 …fail("setMediaRecorderToInitialStateAfterReset: Exception " + e.getClass().getName() + " was throw… in setMediaRecorderToInitialStateAfterReset() 111 …fail("setMediaRecorderToInitialStateAfterReset: Exception " + e.getClass().getName() + " was throw… in setMediaRecorderToInitialStateAfterStop() 122 … fail("setMediaRecorderToInitializedState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToInitializedState() 135 … fail("setMediaRecorderToPreparedState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToPreparedState() 149 … fail("setMediaRecorderToRecordingState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToRecordingState() 171 …fail("setMediaRecorderToDataSourceConfiguredState: Exception " + e.getClass().getName() + " was th… in setMediaRecorderToDataSourceConfiguredState() 204 … fail("setMediaRecorderToErrorState: Exception " + e.getClass().getName() + " was thrown."); in setMediaRecorderToErrorState()
|
/frameworks/compile/slang/tests/ |
D | slang_test.py | 128 tests.fail(err_message) 231 tests.fail(err_message) 242 tests.fail(err_message) 244 tests.fail('Invalid test name: ' + dir_name + 264 tests.fail('%s not found' % find) 266 tests.fail('multiple %s found' % find) 268 tests.fail('%s and %s are different' % (found[0], expect)) 291 tests.fail('subprocess.call failed: ' + ' '.join(args))
|