Home
last modified time | relevance | path

Searched refs:assertEquals (Results 1 – 25 of 1130) sorted by relevance

12345678910>>...46

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsServTest.java159 Assert.assertEquals(18989, serv.getUnpluggedStartTime()); in testOnTimeStarted()
160 Assert.assertEquals(4042, serv.getUnpluggedStarts()); in testOnTimeStarted()
161 Assert.assertEquals(8085, serv.getUnpluggedLaunches()); in testOnTimeStarted()
166 Assert.assertEquals(1010, serv.getUnpluggedStartTime()); in testOnTimeStarted()
167 Assert.assertEquals(4042, serv.getUnpluggedStarts()); in testOnTimeStarted()
168 Assert.assertEquals(8085, serv.getUnpluggedLaunches()); in testOnTimeStarted()
188 Assert.assertEquals(1010, serv.getStartTime()); in testParceling()
189 Assert.assertEquals(2021, serv.getRunningSince()); in testParceling()
191 Assert.assertEquals(4042, serv.getStarts()); in testParceling()
192 Assert.assertEquals(5053, serv.getLaunchedTime()); in testParceling()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/method/
DBackspaceTest.java76 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
81 state.assertEquals("'1' U+20E3 |"); in testCombiningEnclosingKeycaps()
83 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
88 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
93 state.assertEquals("U+20E3 |"); in testCombiningEnclosingKeycaps()
95 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
105 state.assertEquals("|"); in testVariationSelector()
109 state.assertEquals("|"); in testVariationSelector()
114 state.assertEquals("U+FE0F |"); in testVariationSelector()
116 state.assertEquals("|"); in testVariationSelector()
[all …]
DForwardDeleteTest.java77 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
82 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
87 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
97 state.assertEquals("|"); in testVariationSelector()
101 state.assertEquals("|"); in testVariationSelector()
106 state.assertEquals("|"); in testVariationSelector()
110 state.assertEquals("|"); in testVariationSelector()
114 state.assertEquals("|"); in testVariationSelector()
118 state.assertEquals("|"); in testVariationSelector()
123 state.assertEquals("|"); in testVariationSelector()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberUtilsTest.java19 import static junit.framework.Assert.assertEquals;
38 assertEquals( in testExtractNetworkPortion()
43 assertEquals( in testExtractNetworkPortion()
48 assertEquals( in testExtractNetworkPortion()
54 assertEquals( in testExtractNetworkPortion()
59 assertEquals( in testExtractNetworkPortion()
64 assertEquals( in testExtractNetworkPortion()
69 assertEquals( in testExtractNetworkPortion()
76 assertEquals( in testExtractNetworkPortion()
84 assertEquals("", PhoneNumberUtils.extractNetworkPortion("")); in testExtractNetworkPortion()
[all …]
DMccTableTest.java29 assertEquals("Europe/Paris", MccTable.defaultTimeZoneForMcc(208)); in testTimeZone()
30 assertEquals("Europe/Vienna", MccTable.defaultTimeZoneForMcc(232)); in testTimeZone()
31 assertEquals("Africa/Johannesburg", MccTable.defaultTimeZoneForMcc(655)); in testTimeZone()
32 assertEquals("Asia/Tokyo", MccTable.defaultTimeZoneForMcc(440)); in testTimeZone()
33 assertEquals("Asia/Tokyo", MccTable.defaultTimeZoneForMcc(441)); in testTimeZone()
34 assertEquals("Asia/Singapore", MccTable.defaultTimeZoneForMcc(525)); in testTimeZone()
35 assertEquals("Europe/Stockholm", MccTable.defaultTimeZoneForMcc(240)); in testTimeZone()
38 assertEquals("Australia/Sydney", MccTable.defaultTimeZoneForMcc(505)); in testTimeZone()
39 assertEquals(null, MccTable.defaultTimeZoneForMcc(0)); // mcc not defined, hence default in testTimeZone()
40 assertEquals(null, MccTable.defaultTimeZoneForMcc(2000)); // mcc not defined, hence default in testTimeZone()
[all …]
DIntRangeManagerTest.java104 assertEquals("expecting empty configlist", 0, testManager.mConfigList.size()); in testEmptyRangeManager()
109 assertEquals("fromServiceId", fromServiceId, info.getFromServiceId()); in checkConfigInfo()
110 assertEquals("toServiceId", toServiceId, info.getToServiceId()); in checkConfigInfo()
111 assertEquals("fromCodeScheme", fromCodeScheme, info.getFromCodeScheme()); in checkConfigInfo()
112 assertEquals("toCodeScheme", toCodeScheme, info.getToCodeScheme()); in checkConfigInfo()
113 assertEquals("selected", selected, info.isSelected()); in checkConfigInfo()
119 assertEquals("flags before test", 0, testManager.flags); in testAddSingleChannel()
121 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel()
122 assertEquals("configlist size", 1, testManager.mConfigList.size()); in testAddSingleChannel()
127 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel()
[all …]
DGsmSmsTest.java34 assertEquals("+14155551212", sms.getServiceCenterAddress()); in testAddressing()
35 assertEquals("+16505551111", sms.getOriginatingAddress()); in testAddressing()
36 assertEquals("Test", sms.getMessageBody()); in testAddressing()
41 assertEquals("+14155551212", sms.getServiceCenterAddress()); in testAddressing()
42 assertEquals("+16505551111", sms.getOriginatingAddress()); in testAddressing()
43 assertEquals("(Subject)Test", sms.getMessageBody()); in testAddressing()
58 assertEquals(header.concatRef.refNumber, 42); in testUdh()
59 assertEquals(header.concatRef.msgCount, 2); in testUdh()
60 assertEquals(header.concatRef.seqNumber, 1); in testUdh()
61 assertEquals(header.concatRef.isEightBits, true); in testUdh()
[all …]
DVisualVoicemailSmsParserTest.java29 assertEquals("STATUS", result.prefix); in testParsing()
30 assertEquals("R", result.fields.getString("st")); in testParsing()
31 assertEquals("0", result.fields.getString("rc")); in testParsing()
32 assertEquals("1", result.fields.getString("srv")); in testParsing()
33 assertEquals("1", result.fields.getString("dn")); in testParsing()
34 assertEquals("1", result.fields.getString("ipt")); in testParsing()
35 assertEquals("0", result.fields.getString("spt")); in testParsing()
36 assertEquals("eg@example.com", result.fields.getString("u")); in testParsing()
37 assertEquals("1", result.fields.getString("pw")); in testParsing()
45 assertEquals("STATUS", result.prefix); in testParsing_TrailingSemiColon()
[all …]
DClientWakelockTrackerTest.java41 assertEquals(1, myTracker.mActiveClients.size()); in testTwoClients()
43 assertEquals(2, myTracker.mActiveClients.size()); in testTwoClients()
46 assertEquals(2, abc.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients()
47 assertEquals(2, pqr.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients()
50 assertEquals(1, myTracker.mActiveClients.size()); in testTwoClients()
51 assertEquals(0, abc.getPendingRequestCount()); in testTwoClients()
52 assertEquals(1, pqr.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients()
55 assertEquals(0, myTracker.mActiveClients.size()); in testTwoClients()
56 assertEquals(0, abc.getPendingRequestCount()); in testTwoClients()
57 assertEquals(0, pqr.getPendingRequestCount()); in testTwoClients()
[all …]
DGsmAlphabetTest.java47 assertEquals(message, parsedMessage); in test7bitWithHeader()
55 assertEquals(0, GsmAlphabet.charToGsm('@')); in testBasic()
58 assertEquals(0x7f, GsmAlphabet.charToGsm('\u00e0')); in testBasic()
66 assertEquals(GsmAlphabet.GSM_EXTENDED_ESCAPE, in testBasic()
72 assertEquals(GsmAlphabet.GSM_EXTENDED_ESCAPE, in testBasic()
76 assertEquals(GsmAlphabet.charToGsm(' '), in testBasic()
80 assertEquals(1, GsmAlphabet.countGsmSeptets('\u00a2')); in testBasic()
87 assertEquals(sGsmExtendedChars.charAt(i), in testBasic()
94 assertEquals(GsmAlphabet.charToGsm(' '), in testBasic()
101 assertEquals('@', GsmAlphabet.gsmToChar(0)); in testBasic()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DDayOfMonthCursorTest.java47 assertEquals(Calendar.SEPTEMBER, mc.getMonth()); in testMoveLeft()
48 assertEquals(3, mc.getSelectedDayOfMonth()); in testMoveLeft()
49 assertEquals(1, mc.getSelectedRow()); in testMoveLeft()
50 assertEquals(1, mc.getSelectedColumn()); in testMoveLeft()
54 assertEquals(2, mc.getSelectedDayOfMonth()); in testMoveLeft()
55 assertEquals(1, mc.getSelectedRow()); in testMoveLeft()
56 assertEquals(0, mc.getSelectedColumn()); in testMoveLeft()
60 assertEquals(1, mc.getSelectedDayOfMonth()); in testMoveLeft()
61 assertEquals(0, mc.getSelectedRow()); in testMoveLeft()
62 assertEquals(6, mc.getSelectedColumn()); in testMoveLeft()
[all …]
DBase64Test.java44 assertEquals(in, dec); in encodeToString()
58 private void assertEquals(byte[] expected, int len, byte[] actual) { in assertEquals() method in Base64Test
59 assertEquals(len, actual.length); in assertEquals()
61 assertEquals(expected[i], actual[i]); in assertEquals()
66 private void assertEquals(byte[] expected, int len, byte[] actual, int alen) { in assertEquals() method in Base64Test
67 assertEquals(len, alen); in assertEquals()
69 assertEquals(expected[i], actual[i]); in assertEquals()
74 private void assertEquals(byte[] expected, byte[] actual) { in assertEquals() method in Base64Test
75 assertEquals(expected.length, actual.length); in assertEquals()
77 assertEquals(expected[i], actual[i]); in assertEquals()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java49 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
50 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
51 assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); in testCdmaSmsAddrParsing()
52 assertEquals(addr.numberOfDigits, 10); in testCdmaSmsAddrParsing()
53 assertEquals(addr.origBytes.length, 10); in testCdmaSmsAddrParsing()
56 assertEquals(addr.origBytes[i], data[i]); in testCdmaSmsAddrParsing()
59 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
60 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
61 assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); in testCdmaSmsAddrParsing()
62 assertEquals(addr.numberOfDigits, 10); in testCdmaSmsAddrParsing()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java233 assertEquals(mClientContext.getPackageName(), si.getPackage()); in testShortcutInfoParcel()
234 assertEquals(USER_10, si.getUserId()); in testShortcutInfoParcel()
235 assertEquals(HANDLE_USER_10, si.getUserHandle()); in testShortcutInfoParcel()
236 assertEquals("id", si.getId()); in testShortcutInfoParcel()
237 assertEquals("title", si.getTitle()); in testShortcutInfoParcel()
238 assertEquals("action", si.getIntent().getAction()); in testShortcutInfoParcel()
261 assertEquals(getTestContext().getPackageName(), si.getPackage()); in testShortcutInfoParcel()
262 assertEquals("id", si.getId()); in testShortcutInfoParcel()
263 assertEquals(new ComponentName("a", "b"), si.getActivity()); in testShortcutInfoParcel()
264 assertEquals(123, si.getIcon().getResId()); in testShortcutInfoParcel()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DTelephonyMetricsTest.java33 import static org.junit.Assert.assertEquals;
146 assertEquals(1000, log.events.length); in testEventDropped()
147 assertEquals(0, log.callSessions.length); in testEventDropped()
148 assertEquals(0, log.smsSessions.length); in testEventDropped()
150 assertEquals(1, log.events[0].dataStallAction); in testEventDropped()
160 assertEquals(1, log.events.length); in testWriteDataStallEvent()
161 assertEquals(0, log.callSessions.length); in testWriteDataStallEvent()
162 assertEquals(0, log.smsSessions.length); in testWriteDataStallEvent()
163 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testWriteDataStallEvent()
164 assertEquals(3, log.events[0].dataStallAction); in testWriteDataStallEvent()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java26 import static org.junit.Assert.assertEquals;
38 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, metrics.quality); in testIsDefault()
39 assertEquals(0, metrics.length); in testIsDefault()
40 assertEquals(0, metrics.letters); in testIsDefault()
41 assertEquals(0, metrics.upperCase); in testIsDefault()
42 assertEquals(0, metrics.lowerCase); in testIsDefault()
43 assertEquals(0, metrics.numeric); in testIsDefault()
44 assertEquals(0, metrics.symbols); in testIsDefault()
45 assertEquals(0, metrics.nonLetter); in testIsDefault()
85 assertEquals(quality, metrics.quality); in testParceling()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DStateMachineTest.java163 assertEquals(8, smQuitTest.mLogRecs.size()); in testStateMachineQuit()
169 assertEquals(i, lr.getWhat()); in testStateMachineQuit()
170 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
171 assertEquals(smQuitTest.mS1, lr.getOriginalState()); in testStateMachineQuit()
174 assertEquals(EXIT, lr.getInfo()); in testStateMachineQuit()
175 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
178 assertEquals(ON_QUITTING, lr.getInfo()); in testStateMachineQuit()
267 assertEquals(3, smQuitNowTest.mLogRecs.size()); in testStateMachineQuitNow()
271 assertEquals(1, lr.getWhat()); in testStateMachineQuitNow()
272 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
[all …]
DProcFileReaderTest.java46 assertEquals("a", reader.nextString()); in testSingleString()
50 assertEquals("b", reader.nextString()); in testSingleString()
54 assertEquals("c", reader.nextString()); in testSingleString()
62 assertEquals(1, reader.nextInt()); in testMixedNumbersSkip()
63 assertEquals(2, reader.nextInt()); in testMixedNumbersSkip()
64 assertEquals(3, reader.nextInt()); in testMixedNumbersSkip()
68 assertEquals(4, reader.nextInt()); in testMixedNumbersSkip()
69 assertEquals("abc_def", reader.nextString()); in testMixedNumbersSkip()
70 assertEquals(5, reader.nextInt()); in testMixedNumbersSkip()
74 assertEquals(10, reader.nextInt()); in testMixedNumbersSkip()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/format/
DDateUtilsTest.java19 import static org.junit.Assert.assertEquals;
53 assertEquals("0 seconds", DateUtils.formatDuration(0)); in test_formatDuration_seconds()
54 assertEquals("0 seconds", DateUtils.formatDuration(1)); in test_formatDuration_seconds()
55 assertEquals("0 seconds", DateUtils.formatDuration(499)); in test_formatDuration_seconds()
56 assertEquals("1 second", DateUtils.formatDuration(500)); in test_formatDuration_seconds()
57 assertEquals("1 second", DateUtils.formatDuration(1000)); in test_formatDuration_seconds()
58 assertEquals("2 seconds", DateUtils.formatDuration(1500)); in test_formatDuration_seconds()
60 assertEquals("0 seconds", DateUtils.formatDuration(0, DateUtils.LENGTH_LONG)); in test_formatDuration_seconds()
61 assertEquals("1 second", DateUtils.formatDuration(1000, DateUtils.LENGTH_LONG)); in test_formatDuration_seconds()
62 assertEquals("2 seconds", DateUtils.formatDuration(1500, DateUtils.LENGTH_LONG)); in test_formatDuration_seconds()
[all …]
/frameworks/ex/common/tests/src/com/android/common/
DOperationSchedulerTest.java48 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler()
49 assertEquals(0, scheduler.getLastSuccessTimeMillis()); in testScheduler()
50 assertEquals(0, scheduler.getLastAttemptTimeMillis()); in testScheduler()
54 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler()
58 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler()
60 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
64 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler()
66 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler()
71 assertEquals(0, scheduler.getLastSuccessTimeMillis()); in testScheduler()
72 assertEquals(beforeError, scheduler.getLastAttemptTimeMillis()); in testScheduler()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java40 assertEquals("//foo", uri.toString()); in testToStringWithPathOnly()
61 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
67 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
77 assertEquals("robert", u.getScheme()); in testBuildUponOpaqueStringUri()
78 assertEquals("lee", u.getEncodedSchemeSpecificPart()); in testBuildUponOpaqueStringUri()
79 assertEquals("lee", u.getSchemeSpecificPart()); in testBuildUponOpaqueStringUri()
88 assertEquals("bob lee", in testStringUri()
90 assertEquals("bob%20lee", in testStringUri()
92 assertEquals("/bob%20lee", in testStringUri()
95 assertEquals("bob%20lee", in testStringUri()
[all …]
/frameworks/support/core-utils/tests/java/android/support/v4/text/
DBidiFormatterTest.java19 import static org.junit.Assert.assertEquals;
56 assertEquals(false, LTR_FMT.isRtlContext()); in testIsRtlContext()
57 assertEquals(true, RTL_FMT.isRtlContext()); in testIsRtlContext()
59 assertEquals(false, BidiFormatter.getInstance(Locale.ENGLISH).isRtlContext()); in testIsRtlContext()
60 assertEquals(true, BidiFormatter.getInstance(true).isRtlContext()); in testIsRtlContext()
65 assertEquals(false, new BidiFormatter.Builder(false).build().isRtlContext()); in testBuilderIsRtlContext()
66 assertEquals(true, new BidiFormatter.Builder(true).build().isRtlContext()); in testBuilderIsRtlContext()
71 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl()
72 assertEquals(true, BidiFormatter.getInstance(false).isRtl(HE)); in testIsRtl()
74 assertEquals(false, BidiFormatter.getInstance(true).isRtl(EN)); in testIsRtl()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DViewBindingAdapterTest.java39 assertEquals(mBindingObject.getPadding(), view.getPaddingBottom()); in testPadding()
40 assertEquals(mBindingObject.getPadding(), view.getPaddingTop()); in testPadding()
41 assertEquals(mBindingObject.getPadding(), view.getPaddingRight()); in testPadding()
42 assertEquals(mBindingObject.getPadding(), view.getPaddingLeft()); in testPadding()
46 assertEquals(mBindingObject.getPadding(), view.getPaddingBottom()); in testPadding()
47 assertEquals(mBindingObject.getPadding(), view.getPaddingTop()); in testPadding()
48 assertEquals(mBindingObject.getPadding(), view.getPaddingRight()); in testPadding()
49 assertEquals(mBindingObject.getPadding(), view.getPaddingLeft()); in testPadding()
54 assertEquals(mBindingObject.getPaddingLeft(), view.getPaddingLeft()); in testPaddingLeftRight()
55 assertEquals(mBindingObject.getPaddingRight(), view.getPaddingRight()); in testPaddingLeftRight()
[all …]
DExpressionTest.java38 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
41 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
45 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
48 assertEquals("world", mBinder.textView0.getText().toString()); in testOr()
57 assertEquals("hello", mBinder.textView1.getText().toString()); in testAnd()
60 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd()
64 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd()
67 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd()
75 assertEquals("0", mBinder.textView2.getText().toString()); // var1 & var2 in testBinary()
76 assertEquals("0", mBinder.textView3.getText().toString()); // var1 | var2 in testBinary()
[all …]
DObservableArrayListTest.java159 assertEquals(1, mNotifications.size()); in testAdd()
161 assertEquals(INSERT, change.change); in testAdd()
162 assertEquals(0, change.start); in testAdd()
163 assertEquals(1, change.count); in testAdd()
164 assertEquals("Hello", mObservable.get(0)); in testAdd()
173 assertEquals(4, mObservable.size()); in testInsert()
174 assertEquals("World", mObservable.get(0)); in testInsert()
175 assertEquals("Dang", mObservable.get(1)); in testInsert()
176 assertEquals("Hello", mObservable.get(2)); in testInsert()
177 assertEquals("End", mObservable.get(3)); in testInsert()
[all …]

12345678910>>...46