Home
last modified time | relevance | path

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

12345678910>>...60

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java22 import static org.junit.Assert.assertEquals;
220 assertEquals(0, mDevice.getLowPowerModeTriggerLevel()); in testNoAutoBatterySaver()
222 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
223 assertEquals(100, mPersistedState.batteryLevel); in testNoAutoBatterySaver()
224 assertEquals(false, mPersistedState.batteryLow); in testNoAutoBatterySaver()
228 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
229 assertEquals(90, mPersistedState.batteryLevel); in testNoAutoBatterySaver()
230 assertEquals(false, mPersistedState.batteryLow); in testNoAutoBatterySaver()
234 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
235 assertEquals(50, mPersistedState.batteryLevel); in testNoAutoBatterySaver()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java31 import static org.junit.Assert.assertEquals;
66 assertEquals(left.getFirstTimeStamp(), 99999); in testEarlierBeginTimeTakesPriorityOnAdd()
78 assertEquals(left.getLastTimeStamp(), 100001); in testLaterEndTimeTakesPriorityOnAdd()
92 assertEquals(left.getLastTimeUsed(), 200001); in testLastUsedTimeIsOverriddenByLaterStats()
106 assertEquals(left.getLastTimeUsed(), 200000); in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
120 assertEquals(left.getTotalTimeInForeground(), 11); in testForegroundTimeIsSummed()
147 assertEquals(left.mLastTimeUsed, 200000); in testActivity()
148 assertEquals(left.mLastTimeVisible, 200000); in testActivity()
149 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); in testActivity()
150 assertEquals(left.mLaunchCount, 1); in testActivity()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/method/
DBackspaceTest.java81 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
86 state.assertEquals("'1' U+20E3 |"); in testCombiningEnclosingKeycaps()
88 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
93 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
98 state.assertEquals("U+20E3 |"); in testCombiningEnclosingKeycaps()
100 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
110 state.assertEquals("|"); in testVariationSelector()
114 state.assertEquals("|"); in testVariationSelector()
119 state.assertEquals("U+FE0F |"); in testVariationSelector()
121 state.assertEquals("|"); in testVariationSelector()
[all …]
DForwardDeleteTest.java80 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
85 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
90 state.assertEquals("|"); in testCombiningEnclosingKeycaps()
100 state.assertEquals("|"); in testVariationSelector()
104 state.assertEquals("|"); in testVariationSelector()
109 state.assertEquals("|"); in testVariationSelector()
113 state.assertEquals("|"); in testVariationSelector()
117 state.assertEquals("|"); in testVariationSelector()
121 state.assertEquals("|"); in testVariationSelector()
126 state.assertEquals("|"); in testVariationSelector()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java27 assertEquals(1, ParseUtils.parseInt(null, 1)); in testParseInt()
28 assertEquals(1, ParseUtils.parseInt("", 1)); in testParseInt()
29 assertEquals(1, ParseUtils.parseInt("1x", 1)); in testParseInt()
30 assertEquals(2, ParseUtils.parseInt("2", 1)); in testParseInt()
32 assertEquals(2, ParseUtils.parseInt("+2", 1)); in testParseInt()
33 assertEquals(-2, ParseUtils.parseInt("-2", 1)); in testParseInt()
37 assertEquals(1, ParseUtils.parseIntWithBase(null, 10, 1)); in testParseIntWithBase()
38 assertEquals(1, ParseUtils.parseIntWithBase("", 10, 1)); in testParseIntWithBase()
39 assertEquals(1, ParseUtils.parseIntWithBase("1x", 10, 1)); in testParseIntWithBase()
40 assertEquals(2, ParseUtils.parseIntWithBase("2", 10, 1)); in testParseIntWithBase()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberUtilsTest.java19 import static junit.framework.Assert.assertEquals;
57 assertEquals( in testExtractNetworkPortion()
62 assertEquals( in testExtractNetworkPortion()
67 assertEquals( in testExtractNetworkPortion()
73 assertEquals( in testExtractNetworkPortion()
78 assertEquals( in testExtractNetworkPortion()
83 assertEquals( in testExtractNetworkPortion()
88 assertEquals( in testExtractNetworkPortion()
95 assertEquals( in testExtractNetworkPortion()
103 assertEquals("", PhoneNumberUtils.extractNetworkPortion("")); in testExtractNetworkPortion()
[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()
47 assertEquals("*#abc#*51", sms.getOriginatingAddress()); in testAddressing()
54 assertEquals("+8613800250500", sms.getServiceCenterAddress()); in testRecipientAddress()
55 assertEquals("+8613693092030", sms.getRecipientAddress()); in testRecipientAddress()
79 assertEquals(header.concatRef.refNumber, 42); in testUdh()
[all …]
/frameworks/base/tests/net/java/android/net/util/
DDnsUtilsTest.java23 import static org.junit.Assert.assertEquals;
96 assertEquals(test.get(i).address, expected.get(i)); in testRfc6724Comparator()
106 assertEquals(test.hasSrcAddr, 0); in testV4SortableAddress()
107 assertEquals(test.prefixMatchLen, 0); in testV4SortableAddress()
108 assertEquals(test.address, stringToAddress("216.58.200.36")); in testV4SortableAddress()
109 assertEquals(test.labelMatch, 0); in testV4SortableAddress()
110 assertEquals(test.scopeMatch, 0); in testV4SortableAddress()
111 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV4SortableAddress()
112 assertEquals(test.label, 4); in testV4SortableAddress()
113 assertEquals(test.precedence, 35); in testV4SortableAddress()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DListGridLayoutTest.java19 import static junit.framework.Assert.assertEquals;
54 assertEquals(3, mListGridLayout.getChildCount()); in testInflation()
61 assertEquals(3, mListGridLayout.getRowCount()); in testGetRowCount()
64 assertEquals(3, mListGridLayout.getRowCount()); in testGetRowCount()
66 assertEquals(3, mListGridLayout.getRowCount()); in testGetRowCount()
68 assertEquals(3, mListGridLayout.getRowCount()); in testGetRowCount()
70 assertEquals(2, mListGridLayout.getRowCount()); in testGetRowCount()
72 assertEquals(2, mListGridLayout.getRowCount()); in testGetRowCount()
74 assertEquals(2, mListGridLayout.getRowCount()); in testGetRowCount()
76 assertEquals(1, mListGridLayout.getRowCount()); in testGetRowCount()
[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()
263 assertEquals(getTestContext().getPackageName(), si.getPackage()); in testShortcutInfoParcel()
264 assertEquals("id", si.getId()); in testShortcutInfoParcel()
265 assertEquals(new ComponentName("a", "b"), si.getActivity()); in testShortcutInfoParcel()
266 assertEquals(123, si.getIcon().getResId()); in testShortcutInfoParcel()
[all …]
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java30 import static junit.framework.Assert.assertEquals;
50 assertEquals(0, inet4AddressToIntHTL(ipv4Address("0.0.0.0"))); in testInet4AddressToIntHTL()
51 assertEquals(0x000080ff, inet4AddressToIntHTL(ipv4Address("255.128.0.0"))); in testInet4AddressToIntHTL()
52 assertEquals(0x0080ff0a, inet4AddressToIntHTL(ipv4Address("10.255.128.0"))); in testInet4AddressToIntHTL()
53 assertEquals(0x00feff0a, inet4AddressToIntHTL(ipv4Address("10.255.254.0"))); in testInet4AddressToIntHTL()
54 assertEquals(0xfeffa8c0, inet4AddressToIntHTL(ipv4Address("192.168.255.254"))); in testInet4AddressToIntHTL()
55 assertEquals(0xffffa8c0, inet4AddressToIntHTL(ipv4Address("192.168.255.255"))); in testInet4AddressToIntHTL()
60 assertEquals(ipv4Address("0.0.0.0"), intToInet4AddressHTL(0)); in testIntToInet4AddressHTL()
61 assertEquals(ipv4Address("255.128.0.0"), intToInet4AddressHTL(0x000080ff)); in testIntToInet4AddressHTL()
62 assertEquals(ipv4Address("10.255.128.0"), intToInet4AddressHTL(0x0080ff0a)); in testIntToInet4AddressHTL()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DDayOfMonthCursorTest.java48 assertEquals(Calendar.SEPTEMBER, mc.getMonth()); in testMoveLeft()
49 assertEquals(3, mc.getSelectedDayOfMonth()); in testMoveLeft()
50 assertEquals(1, mc.getSelectedRow()); in testMoveLeft()
51 assertEquals(1, mc.getSelectedColumn()); in testMoveLeft()
55 assertEquals(2, mc.getSelectedDayOfMonth()); in testMoveLeft()
56 assertEquals(1, mc.getSelectedRow()); in testMoveLeft()
57 assertEquals(0, mc.getSelectedColumn()); in testMoveLeft()
61 assertEquals(1, mc.getSelectedDayOfMonth()); in testMoveLeft()
62 assertEquals(0, mc.getSelectedRow()); in testMoveLeft()
63 assertEquals(6, mc.getSelectedColumn()); in testMoveLeft()
[all …]
DBase64Test.java51 assertEquals(in, dec); in encodeToString()
65 private void assertEquals(byte[] expected, int len, byte[] actual) { in assertEquals() method in Base64Test
66 assertEquals(len, actual.length); in assertEquals()
68 assertEquals(expected[i], actual[i]); in assertEquals()
73 private void assertEquals(byte[] expected, int len, byte[] actual, int alen) { in assertEquals() method in Base64Test
74 assertEquals(len, alen); in assertEquals()
76 assertEquals(expected[i], actual[i]); in assertEquals()
81 private void assertEquals(byte[] expected, byte[] actual) { in assertEquals() method in Base64Test
82 assertEquals(expected.length, actual.length); in assertEquals()
84 assertEquals(expected[i], actual[i]); in assertEquals()
[all …]
/frameworks/base/tools/locked_region_code_injection/test/lockedregioncodeinjection/
DTestMain.java65 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedBlock()
66 Assert.assertEquals(TestTarget.unboostCount, 0); in testSimpleSynchronizedBlock()
67 Assert.assertEquals(TestTarget.unboostCount, 0); in testSimpleSynchronizedBlock()
70 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedBlock()
71 Assert.assertEquals(TestTarget.unboostCount, 0); in testSimpleSynchronizedBlock()
75 Assert.assertEquals(TestTarget.boostCount, 1); in testSimpleSynchronizedBlock()
76 Assert.assertEquals(TestTarget.unboostCount, 1); in testSimpleSynchronizedBlock()
77 Assert.assertEquals(TestTarget.invokeCount, 1); in testSimpleSynchronizedBlock()
85 Assert.assertEquals(TestTarget.boostCount, 0); in testSimpleSynchronizedMethod()
86 Assert.assertEquals(TestTarget.unboostCount, 0); in testSimpleSynchronizedMethod()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java51 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
52 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
53 assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); in testCdmaSmsAddrParsing()
54 assertEquals(addr.numberOfDigits, 10); in testCdmaSmsAddrParsing()
55 assertEquals(addr.origBytes.length, 10); in testCdmaSmsAddrParsing()
58 assertEquals(addr.origBytes[i], data[i]); in testCdmaSmsAddrParsing()
61 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
62 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
63 assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); in testCdmaSmsAddrParsing()
64 assertEquals(addr.numberOfDigits, 10); in testCdmaSmsAddrParsing()
[all …]
/frameworks/base/core/tests/systemproperties/src/android/os/
DPropertyInvalidatedCacheTest.java59 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
60 assertEquals(1, cache.getRecomputeCount()); in testCacheRecompute()
61 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
62 assertEquals(1, cache.getRecomputeCount()); in testCacheRecompute()
63 assertEquals("foo6", cache.query(6)); in testCacheRecompute()
64 assertEquals(2, cache.getRecomputeCount()); in testCacheRecompute()
66 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
67 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
68 assertEquals(3, cache.getRecomputeCount()); in testCacheRecompute()
74 assertEquals("foo5", cache.query(5)); in testCacheInitialState()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DTelephonyMetricsTest.java35 import static org.junit.Assert.assertEquals;
158 assertEquals(1000, log.events.length); in testEventDropped()
159 assertEquals(0, log.callSessions.length); in testEventDropped()
160 assertEquals(0, log.smsSessions.length); in testEventDropped()
162 assertEquals(1, log.events[0].dataStallAction); in testEventDropped()
172 assertEquals(1, log.events.length); in testWriteDataStallEvent()
173 assertEquals(0, log.callSessions.length); in testWriteDataStallEvent()
174 assertEquals(0, log.smsSessions.length); in testWriteDataStallEvent()
175 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testWriteDataStallEvent()
176 assertEquals(3, log.events[0].dataStallAction); in testWriteDataStallEvent()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java36 import static org.junit.Assert.assertEquals;
56 assertEquals(DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, metrics.quality); in testIsDefault()
57 assertEquals(0, metrics.length); in testIsDefault()
58 assertEquals(0, metrics.letters); in testIsDefault()
59 assertEquals(0, metrics.upperCase); in testIsDefault()
60 assertEquals(0, metrics.lowerCase); in testIsDefault()
61 assertEquals(0, metrics.numeric); in testIsDefault()
62 assertEquals(0, metrics.symbols); in testIsDefault()
63 assertEquals(0, metrics.nonLetter); in testIsDefault()
89 assertEquals(quality, metrics.quality); in testParceling()
[all …]
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerProfileTest.java58 Assert.assertEquals(12.0f, audio.onMa, EPSILON); in testReadGood()
63 Assert.assertEquals(0.02f, bluetooth.idleMa, EPSILON); in testReadGood()
64 Assert.assertEquals(3.0f, bluetooth.rxMa, EPSILON); in testReadGood()
65 Assert.assertEquals(5.0f, bluetooth.txMa, EPSILON); in testReadGood()
69 Assert.assertEquals(941.0f, camera.onMa, EPSILON); in testReadGood()
73 Assert.assertEquals(1.3f, cpu.suspendMa, EPSILON); in testReadGood()
74 Assert.assertEquals(3.9f, cpu.idleMa, EPSILON); in testReadGood()
75 Assert.assertEquals(18.33f, cpu.activeMa, EPSILON); in testReadGood()
76 Assert.assertEquals(2, cpu.clusters.length); in testReadGood()
78 Assert.assertEquals(4, cpu.clusters[0].coreCount); in testReadGood()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/textservices/
DLocaleUtilsTest.java19 import static org.junit.Assert.assertEquals;
51 assertEquals(3, locales.size()); in testGetSuitableLocalesForSpellChecker()
52 assertEquals(LOCALE_EN_US, locales.get(0)); in testGetSuitableLocalesForSpellChecker()
53 assertEquals(LOCALE_EN_GB, locales.get(1)); in testGetSuitableLocalesForSpellChecker()
54 assertEquals(LOCALE_EN, locales.get(2)); in testGetSuitableLocalesForSpellChecker()
60 assertEquals(3, locales.size()); in testGetSuitableLocalesForSpellChecker()
61 assertEquals(LOCALE_EN_GB, locales.get(0)); in testGetSuitableLocalesForSpellChecker()
62 assertEquals(LOCALE_EN_US, locales.get(1)); in testGetSuitableLocalesForSpellChecker()
63 assertEquals(LOCALE_EN, locales.get(2)); in testGetSuitableLocalesForSpellChecker()
69 assertEquals(3, locales.size()); in testGetSuitableLocalesForSpellChecker()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexoptUtilsTest.java19 import static org.junit.Assert.assertEquals;
127 assertEquals(9, contexts.length); in testSplitChain()
128 assertEquals("PCL[]{PCL[a.dex:b.dex]}", contexts[0]); in testSplitChain()
129 assertEquals("DLC[];DLC[base-2.dex];PCL[base-4.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", in testSplitChain()
131 assertEquals("DLC[];PCL[base-4.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[2]); in testSplitChain()
132 assertEquals("PCL[];PCL[base-4.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[3]); in testSplitChain()
133 assertEquals("PCL[];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[4]); in testSplitChain()
134 assertEquals("PCL[];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[5]); in testSplitChain()
135 assertEquals("PCL[];PCL[base-5.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[6]); in testSplitChain()
136 assertEquals(null, contexts[7]); // config split in testSplitChain()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DIccUtilsTest.java20 import static org.junit.Assert.assertEquals;
34 assertEquals(0, IccUtils.bytesToInt(new byte[] {}, 0, 0)); in testBytesToInt()
35 assertEquals(0, IccUtils.bytesToInt(new byte[] {0}, 0, 0)); in testBytesToInt()
36 assertEquals(0x1234, IccUtils.bytesToInt(new byte[] {0x12, 0x34}, 0, 2)); in testBytesToInt()
37 assertEquals(0x34, IccUtils.bytesToInt(new byte[] {0x12, 0x34}, 1, 1)); in testBytesToInt()
38 assertEquals(0xFF, IccUtils.bytesToInt(new byte[] {-2, 0, -1, -3, -4}, 1, 2)); in testBytesToInt()
39 assertEquals(0x7FFFFFFF, IccUtils.bytesToInt(new byte[] {0x7F, -1, -1, -1}, 0, 4)); in testBytesToInt()
40 assertEquals(0x80, IccUtils.bytesToInt(new byte[] {0x00, -128}, 0, 2)); in testBytesToInt()
64 assertEquals(0, IccUtils.bytesToRawLong(new byte[] {}, 0, 0)); in testBytesToLong()
65 assertEquals(0, IccUtils.bytesToRawLong(new byte[] {0}, 0, 0)); in testBytesToLong()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsServTest.java121 Assert.assertEquals(1010, serv.getStartTime()); in testParceling()
122 Assert.assertEquals(2021, serv.getRunningSince()); in testParceling()
124 Assert.assertEquals(4042, serv.getStarts()); in testParceling()
125 Assert.assertEquals(5053, serv.getLaunchedTime()); in testParceling()
126 Assert.assertEquals(6064, serv.getLaunchedSince()); in testParceling()
128 Assert.assertEquals(8085, serv.getLaunches()); in testParceling()
143 Assert.assertEquals(8989, serv.getLaunchTimeToNowLocked(10000)); in testLaunchTimeToNow()
147 Assert.assertEquals(5053, serv.getLaunchTimeToNowLocked(10000)); in testLaunchTimeToNow()
161 Assert.assertEquals(18989, serv.getStartTimeToNowLocked(20000)); in testStartTimeToNow()
165 Assert.assertEquals(1010, serv.getStartTimeToNowLocked(20000)); in testStartTimeToNow()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java21 import static org.junit.Assert.assertEquals;
49 assertEquals(DOWN_TIME, keyEvent.getDownTime()); in testObtain()
50 assertEquals(EVENT_TIME, keyEvent.getEventTime()); in testObtain()
51 assertEquals(ACTION, keyEvent.getAction()); in testObtain()
52 assertEquals(KEYCODE, keyEvent.getKeyCode()); in testObtain()
53 assertEquals(REPEAT, keyEvent.getRepeatCount()); in testObtain()
54 assertEquals(METASTATE, keyEvent.getMetaState()); in testObtain()
55 assertEquals(DEVICE_ID, keyEvent.getDeviceId()); in testObtain()
56 assertEquals(SCAN_CODE, keyEvent.getScanCode()); in testObtain()
57 assertEquals(FLAGS, keyEvent.getFlags()); in testObtain()
[all …]

12345678910>>...60