/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInfoTest.java | 64 private void checkPkgInfoSame(PackageInfo expected, PackageInfo actual) { in checkPkgInfoSame() argument 65 assertEquals(expected.packageName, actual.packageName); in checkPkgInfoSame() 66 assertEquals(expected.versionCode, actual.versionCode); in checkPkgInfoSame() 67 assertEquals(expected.versionName, actual.versionName); in checkPkgInfoSame() 68 assertEquals(expected.sharedUserId, actual.sharedUserId); in checkPkgInfoSame() 69 assertEquals(expected.sharedUserLabel, actual.sharedUserLabel); in checkPkgInfoSame() 70 if (expected.applicationInfo != null) { in checkPkgInfoSame() 72 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame() 76 assertTrue(Arrays.equals(expected.gids, actual.gids)); in checkPkgInfoSame() 77 checkInfoArray(expected.activities, actual.activities); in checkPkgInfoSame() [all …]
|
D | ProviderInfoTest.java | 70 private void checkInfoSame(ProviderInfo expected, ProviderInfo actual) { in checkInfoSame() argument 71 assertEquals(expected.name, actual.name); in checkInfoSame() 72 assertEquals(expected.authority, actual.authority); in checkInfoSame() 73 assertEquals(expected.readPermission, actual.readPermission); in checkInfoSame() 74 assertEquals(expected.writePermission, actual.writePermission); in checkInfoSame() 75 assertEquals(expected.grantUriPermissions, actual.grantUriPermissions); in checkInfoSame() 76 assertEquals(expected.uriPermissionPatterns, actual.uriPermissionPatterns); in checkInfoSame() 77 assertEquals(expected.multiprocess, actual.multiprocess); in checkInfoSame() 78 assertEquals(expected.initOrder, actual.initOrder); in checkInfoSame() 79 assertEquals(expected.isSyncable, actual.isSyncable); in checkInfoSame()
|
D | InstrumentationInfoTest.java | 55 private void checkInfoSame(InstrumentationInfo expected, InstrumentationInfo actual) { in checkInfoSame() argument 56 assertEquals(expected.name, actual.name); in checkInfoSame() 57 assertEquals(expected.dataDir, actual.dataDir); in checkInfoSame() 58 assertEquals(expected.handleProfiling, actual.handleProfiling); in checkInfoSame() 59 assertEquals(expected.functionalTest, actual.functionalTest); in checkInfoSame() 60 assertEquals(expected.targetPackage, actual.targetPackage); in checkInfoSame() 61 assertEquals(expected.sourceDir, actual.sourceDir); in checkInfoSame() 62 assertEquals(expected.publicSourceDir, actual.publicSourceDir); in checkInfoSame()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentValuesTest.java | 85 Long expected = 10L; in testGetAsLong() local 86 mContentValues.put("Long", expected); in testGetAsLong() 87 assertEquals(expected, mContentValues.getAsLong("Long")); in testGetAsLong() 89 expected = -1000L; in testGetAsLong() 90 mContentValues.put("Long", expected); in testGetAsLong() 91 assertEquals(expected, mContentValues.getAsLong("Long")); in testGetAsLong() 98 Byte expected = 'a'; in testGetAsByte() local 99 mContentValues.put("Byte", expected); in testGetAsByte() 100 assertEquals(expected, mContentValues.getAsByte("Byte")); in testGetAsByte() 102 expected = 'z'; in testGetAsByte() [all …]
|
D | IntentTest.java | 116 final CharSequence expected = "CharSequencetest"; in testGetCharSequenceExtra() local 117 mIntent.putExtra(TEST_EXTRA_NAME, expected); in testGetCharSequenceExtra() 118 assertEquals(expected, mIntent.getCharSequenceExtra(TEST_EXTRA_NAME)); in testGetCharSequenceExtra() 142 final ArrayList<Intent> expected = new ArrayList<Intent>(); in testGetParcelableArrayListExtra() local 144 expected.add(intent); in testGetParcelableArrayListExtra() 146 mIntent.putParcelableArrayListExtra(TEST_EXTRA_NAME, expected); in testGetParcelableArrayListExtra() 148 assertEquals(expected.size(), target.size()); in testGetParcelableArrayListExtra() 149 assertEquals(expected, target); in testGetParcelableArrayListExtra() 169 final ArrayList<Integer> expected = new ArrayList<Integer>(); in testGetIntegerArrayListExtra() local 170 expected.add(0); in testGetIntegerArrayListExtra() [all …]
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 61 final AccessibilityEvent expected = AccessibilityEvent.obtain(); in testTypeViewSelectedAccessibilityEvent() local 62 expected.setEventType(AccessibilityEvent.TYPE_VIEW_SELECTED); in testTypeViewSelectedAccessibilityEvent() 63 expected.setClassName(ListView.class.getName()); in testTypeViewSelectedAccessibilityEvent() 64 expected.setPackageName(getActivity().getPackageName()); in testTypeViewSelectedAccessibilityEvent() 65 expected.getText().add(getActivity().getString(R.string.second_list_item)); in testTypeViewSelectedAccessibilityEvent() 66 expected.setItemCount(2); in testTypeViewSelectedAccessibilityEvent() 67 expected.setCurrentItemIndex(1); in testTypeViewSelectedAccessibilityEvent() 68 expected.setEnabled(true); in testTypeViewSelectedAccessibilityEvent() 69 expected.setScrollable(false); in testTypeViewSelectedAccessibilityEvent() 70 expected.setFromIndex(0); in testTypeViewSelectedAccessibilityEvent() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
D | CameraErrorCollector.java | 143 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() argument 144 if (expected == null) { in expectEquals() 148 if (!Objects.equals(expected, actual)) { in expectEquals() 149 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectEquals() 165 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() argument 166 if (Objects.equals(expected, actual)) { in expectNotEquals() 167 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectNotEquals() 185 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() argument 186 if (expected == null) { in expectEquals() 190 if (!Arrays.deepEquals(expected, actual)) { in expectEquals() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ChronometerTest.java | 54 int expected = 100000; in testAccessBase() local 55 chronometer.setBase(expected); in testAccessBase() 56 assertEquals(expected, chronometer.getBase()); in testAccessBase() 59 expected = 100; in testAccessBase() 61 chronometer.setBase(expected); in testAccessBase() 62 assertEquals(expected, chronometer.getBase()); in testAccessBase() 65 expected = -1; in testAccessBase() 67 chronometer.setBase(expected); in testAccessBase() 68 assertEquals(expected, chronometer.getBase()); in testAccessBase() 71 expected = Integer.MAX_VALUE; in testAccessBase() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | NetworkInfo_DetailedStateTest.java | 39 DetailedState[] expected = DetailedState.values(); in testValues() local 40 assertEquals(13, expected.length); in testValues() 41 assertEquals(DetailedState.IDLE, expected[0]); in testValues() 42 assertEquals(DetailedState.SCANNING, expected[1]); in testValues() 43 assertEquals(DetailedState.CONNECTING, expected[2]); in testValues() 44 assertEquals(DetailedState.AUTHENTICATING, expected[3]); in testValues() 45 assertEquals(DetailedState.OBTAINING_IPADDR, expected[4]); in testValues() 46 assertEquals(DetailedState.CONNECTED, expected[5]); in testValues() 47 assertEquals(DetailedState.SUSPENDED, expected[6]); in testValues() 48 assertEquals(DetailedState.DISCONNECTING, expected[7]); in testValues() [all …]
|
D | NetworkInfo_StateTest.java | 34 State[] expected = State.values(); in testValues() local 35 assertEquals(6, expected.length); in testValues() 36 assertEquals(State.CONNECTING, expected[0]); in testValues() 37 assertEquals(State.CONNECTED, expected[1]); in testValues() 38 assertEquals(State.SUSPENDED, expected[2]); in testValues() 39 assertEquals(State.DISCONNECTING, expected[3]); in testValues() 40 assertEquals(State.DISCONNECTED, expected[4]); in testValues() 41 assertEquals(State.UNKNOWN, expected[5]); in testValues()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | TimeTest.java | 159 } catch (NullPointerException expected) { in testParseNull() 165 } catch (NullPointerException expected) { in testParseNull() 178 } catch (TimeFormatException expected) { in testBug16002() 192 } catch (TimeFormatException expected) { in testBug22225() 363 Time expected = new Time(tz); in testNormalize1() local 364 Fields.setDateTime(expected, test.year2, test.month2, test.day2, test.hour2, in testNormalize1() 367 Fields.MAIN_DATE_TIME, expected, local); in testNormalize1() 376 expected = new Time(tz); in testNormalize1() 377 Fields.setDateTime(expected, test.year2, test.month2, test.day2, test.hour2, in testNormalize1() 380 Fields.MAIN_DATE_TIME, expected, local); in testNormalize1() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | SimRestrictedApisTest.java | 50 } catch (SecurityException expected) { in testInjectSmsPdu() 65 } catch (SecurityException expected) { in testSetLine1NumberForDisplay() 80 } catch (SecurityException expected) { in testSetLine1NumberForDisplay2() 95 } catch (SecurityException expected) { in testIccOpenLogicalChannel() 110 } catch (SecurityException expected) { in testIccCloseLogicalChannel() 125 } catch (SecurityException expected) { in testIccTransmitApduLogicalChannel() 140 } catch (SecurityException expected) { in testIccTransmitApduBasicChannel() 155 } catch (SecurityException expected) { in testSendEnvelopeWithStatus() 169 } catch (SecurityException expected) { in testNvReadItem() 183 } catch (SecurityException expected) { in testNvWriteItem() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ArrayTest.java | 35 final Object expected) { in checkEntry() argument 37 + " at index " + index, expected, res); in checkEntry() 40 private void checkStringArray(final int resid, final String[] expected) { in checkStringArray() argument 42 assertEquals(res.length, expected.length); in checkStringArray() 43 for (int i = 0; i < expected.length; i++) { in checkStringArray() 44 checkEntry(resid, i, res[i], expected[i]); in checkStringArray() 48 private void checkTextArray(final int resid, final String[] expected) { in checkTextArray() argument 50 assertEquals(res.length, expected.length); in checkTextArray() 51 for (int i = 0; i < expected.length; i++) { in checkTextArray() 52 checkEntry(resid, i, res[i], expected[i]); in checkTextArray() [all …]
|
D | PrimitiveTest.java | 35 private void tryEnum(final int resid, final int expected) { in tryEnum() argument 40 assertEquals("Expecting value " + expected + " got " + value in tryEnum() 41 + ": in resource 0x" + Integer.toHexString(resid), expected, value); in tryEnum() 52 private void tryFlag(final int resid, final int expected) { in tryFlag() argument 57 assertEquals("Expecting value " + expected + " got " + value in tryFlag() 58 + ": in resource 0x" + Integer.toHexString(resid), expected, value); in tryFlag() 70 private void tryBoolean(final int resid, final boolean expected) { in tryBoolean() argument 74 assertEquals("Expecting boolean value " + expected + " got " + v in tryBoolean() 76 expected, v.data != 0); in tryBoolean() 77 assertEquals("Expecting boolean value " + expected + " got " + v in tryBoolean() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageTest.java | 66 Message expected = Message.obtain(mHandler, mRunnable); in testAccessMessageProperties() local 67 assertEquals(mRunnable, expected.getCallback()); in testAccessMessageProperties() 95 Message expected = Message.obtain(message); in testObtain2() local 97 assertEquals(message.getTarget(), expected.getTarget()); in testObtain2() 98 assertEquals(message.what, expected.what); in testObtain2() 99 assertEquals(message.arg1, expected.arg1); in testObtain2() 100 assertEquals(message.arg2, expected.arg2); in testObtain2() 101 assertEquals(message.obj, expected.obj); in testObtain2() 105 Message expected = Message.obtain(mHandler); in testObtain3() local 106 assertEquals(mHandler, expected.getTarget()); in testObtain3() [all …]
|
D | FileObserverTest.java | 92 int[] expected = null; in testFileObserver() local 103 expected = new int[] {FileObserver.MODIFY, FileObserver.OPEN, FileObserver.MODIFY, in testFileObserver() 106 assertEventsEquals(expected, moveEvents); in testFileObserver() 114 expected = new int[] {UNDEFINED}; in testFileObserver() 116 assertEventsEquals(expected, moveEvents); in testFileObserver() 132 expected = new int[] {FileObserver.CREATE, in testFileObserver() 136 assertEventsEquals(expected, moveEvents); in testFileObserver() 156 expected = new int[] {FileObserver.MOVE_SELF}; in testFileObserver() 158 assertEventsEquals(expected, moveEvents); in testFileObserver() 160 expected = new int[] {FileObserver.MOVED_FROM}; in testFileObserver() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_SearchSnippetsTest.java | 93 final ContentValues expected = new ContentValues(); in testSearchSnippets_MatchEmailAddressCorrectSnippet() local 94 expected.put(Contacts._ID, ids[1]); in testSearchSnippets_MatchEmailAddressCorrectSnippet() 95 expected.put(SearchSnippets.SNIPPET, "eggs@[farmers].org"); in testSearchSnippets_MatchEmailAddressCorrectSnippet() 96 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testSearchSnippets_MatchEmailAddressCorrectSnippet() 104 final ContentValues expected = new ContentValues(); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() local 105 expected.put(Contacts._ID, ids[0]); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() 106 expected.put(SearchSnippets.SNIPPET, "[510-123-5769]"); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() 107 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() 115 final ContentValues expected = new ContentValues(); in testSearchSnippets_MatchPostalAddressCorrectSnippet() local 116 expected.put(Contacts._ID, ids[2]); in testSearchSnippets_MatchPostalAddressCorrectSnippet() [all …]
|
D | ContactsContract_PhoneLookup.java | 117 final ContentValues expected = new ContentValues(); in testPhoneLookup_found1() local 118 expected.put(PhoneLookup._ID, ids[0]); in testPhoneLookup_found1() 119 expected.put(PhoneLookup.NUMBER, "1111222333444"); in testPhoneLookup_found1() 121 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testPhoneLookup_found1() 132 final ContentValues expected = new ContentValues(); in testPhoneLookup_found2() local 133 expected.put(PhoneLookup._ID, ids[1]); in testPhoneLookup_found2() 134 expected.put(PhoneLookup.NUMBER, "2111222333444"); in testPhoneLookup_found2() 136 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testPhoneLookup_found2() 158 final ContentValues expected = new ContentValues(); in testPhoneLookupEnterprise_found1() local 159 expected.put(PhoneLookup._ID, ids[0]); in testPhoneLookupEnterprise_found1() [all …]
|
D | Settings_SecureTest.java | 57 } catch (NumberFormatException expected) { in assertSettingsForTests() 73 } catch (SecurityException expected) { in testGetPutInt() 79 } catch (SettingNotFoundException expected) { in testGetPutInt() 85 } catch (SettingNotFoundException expected) { in testGetPutInt() 95 } catch (SecurityException expected) { in testGetPutFloat() 101 } catch (SettingNotFoundException expected) { in testGetPutFloat() 107 } catch (SettingNotFoundException expected) { in testGetPutFloat() 117 } catch (SecurityException expected) { in testGetPutLong() 123 } catch (SettingNotFoundException expected) { in testGetPutLong() 129 } catch (SettingNotFoundException expected) { in testGetPutLong() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | DxAbstractMain.java | 111 static public void assertEquals(int expected, int actual) { in assertEquals() argument 112 …if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " +… in assertEquals() 115 static public void assertEquals(String message, int expected, int actual) { in assertEquals() argument 116 …if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals: " + message … in assertEquals() 119 static public void assertEquals(long expected, long actual) { in assertEquals() argument 120 …if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " +… in assertEquals() 123 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument 124 …if(!(Math.abs(expected-actual) <= delta)) throw new RuntimeException("AssertionFailedError: not wi… in assertEquals() 127 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 128 if (expected == null && actual == null) in assertEquals() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
D | MeanVerificationTest.java | 45 float[] expected = {2.0f, 3.0f, 6.0f}; in testVerify() local 48 MeanVerification verification = getVerification(expected, threshold, values); in testVerify() 52 expected = new float[]{2.5f, 2.5f, 5.5f}; in testVerify() 55 verification = getVerification(expected, threshold, values); in testVerify() 59 expected = new float[]{2.5f, 2.5f, 5.5f}; in testVerify() 62 verification = getVerification(expected, threshold, values); in testVerify() 71 expected = new float[]{2.5f, 2.5f, 5.5f}; in testVerify() 74 verification = getVerification(expected, threshold, values); in testVerify() 85 verification = getVerification(expected, threshold, values); in testVerify() 95 private static MeanVerification getVerification(float[] expected, float[] threshold, in getVerification() argument [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Region_OpTest.java | 39 Op[] expected = { in testValues() local 47 assertEquals(expected.length, actual.length); in testValues() 48 assertEquals(expected[0], actual[0]); in testValues() 49 assertEquals(expected[1], actual[1]); in testValues() 50 assertEquals(expected[2], actual[2]); in testValues() 51 assertEquals(expected[3], actual[3]); in testValues() 52 assertEquals(expected[4], actual[4]); in testValues() 53 assertEquals(expected[5], actual[5]); in testValues()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerUnaffiliatedAuthenticatorTests.java | 79 } catch (SecurityException expected) {} in testNotifyAccountAuthenticated() 90 } catch (SecurityException expected) { in testEditProperties() 102 } catch (SecurityException expected) {} in testAddAccountExplicitly() 112 } catch (SecurityException expected) {} in testRemoveAccount_withBooleanResult() 123 } catch (SecurityException expected) {} in testRemoveAccount_withBundleResult() 131 } catch (SecurityException expected) {} in testRemoveAccountExplicitly() 139 } catch (SecurityException expected) {} in testGetPassword() 148 } catch (SecurityException expected) {} in testSetPassword() 156 } catch (SecurityException expected) {} in testClearPassword() 165 } catch (SecurityException expected) {} in testGetUserData() [all …]
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 44 public ComparisonTask(ITestDevice device, File expected, File actual) { in ComparisonTask() argument 46 mExpected = expected; in ComparisonTask() 54 final BufferedImage expected = ImageIO.read(mExpected); in call() local 56 if (compare(expected, actual, IMAGE_THRESHOLD)) { in call() 60 createDiff(expected, actual, diff); in call() 80 private static boolean compare(BufferedImage expected, BufferedImage actual, in compare() argument 84 if (w != expected.getWidth() || h != expected.getHeight()) { in compare() 90 final int p1 = expected.getRGB(i, j); in compare() 108 private static void createDiff(BufferedImage expected, BufferedImage actual, File out) in createDiff() argument 110 final int w1 = expected.getWidth(); in createDiff() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | VideoCallTest.java | 482 public Object expected() { in assertVideoState() 509 public Object expected() { in assertVideoCallbackRegistered() 535 public Object expected() { in assertCameraCapabilitiesReceived() 562 public Object expected() { in assertCallDataUsageReceived() 589 public Object expected() { in assertVideoQualityReceived() 616 public Object expected() { in assertCallSessionEventReceived() 643 public Object expected() { in assertPeerWidthChanged() 664 final int expected) { in assertDeviceOrientationChanged() argument 668 public Object expected() { in assertDeviceOrientationChanged() 669 return expected; in assertDeviceOrientationChanged() [all …]
|