/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachineTest.java | 22 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/com/android/internal/util/ |
D | ParseUtilsTest.java | 27 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/base/core/tests/coretests/src/android/text/method/ |
D | BackspaceTest.java | 81 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 …]
|
D | ForwardDeleteTest.java | 80 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/android/app/usage/ |
D | UsageStatsTest.java | 32 import static org.junit.Assert.assertEquals; 70 assertEquals(left.getFirstTimeStamp(), 99999); in testEarlierBeginTimeTakesPriorityOnAdd() 82 assertEquals(left.getLastTimeStamp(), 100001); in testLaterEndTimeTakesPriorityOnAdd() 96 assertEquals(left.getLastTimeUsed(), 200001); in testLastUsedTimeIsOverriddenByLaterStats() 110 assertEquals(left.getLastTimeUsed(), 200000); in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier() 124 assertEquals(left.getTotalTimeInForeground(), 11); in testForegroundTimeIsSummed() 133 assertEquals(expectedPath, actualPath); in testDataIsInCe() 161 assertEquals(left.mLastTimeUsed, 200000); in testActivity() 162 assertEquals(left.mLastTimeVisible, 200000); in testActivity() 163 assertEquals(left.mActivities.get(1), Event.ACTIVITY_RESUMED); in testActivity() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberUtilsTest.java | 19 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 …]
|
D | IntRangeManagerTest.java | 104 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 …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | Inet4AddressUtilsTest.java | 31 import static junit.framework.Assert.assertEquals; 52 assertEquals(0, inet4AddressToIntHTL(ipv4Address("0.0.0.0"))); in testInet4AddressToIntHTL() 53 assertEquals(0x000080ff, inet4AddressToIntHTL(ipv4Address("255.128.0.0"))); in testInet4AddressToIntHTL() 54 assertEquals(0x0080ff0a, inet4AddressToIntHTL(ipv4Address("10.255.128.0"))); in testInet4AddressToIntHTL() 55 assertEquals(0x00feff0a, inet4AddressToIntHTL(ipv4Address("10.255.254.0"))); in testInet4AddressToIntHTL() 56 assertEquals(0xfeffa8c0, inet4AddressToIntHTL(ipv4Address("192.168.255.254"))); in testInet4AddressToIntHTL() 57 assertEquals(0xffffa8c0, inet4AddressToIntHTL(ipv4Address("192.168.255.255"))); in testInet4AddressToIntHTL() 62 assertEquals(ipv4Address("0.0.0.0"), intToInet4AddressHTL(0)); in testIntToInet4AddressHTL() 63 assertEquals(ipv4Address("255.128.0.0"), intToInet4AddressHTL(0x000080ff)); in testIntToInet4AddressHTL() 64 assertEquals(ipv4Address("10.255.128.0"), intToInet4AddressHTL(0x0080ff0a)); in testIntToInet4AddressHTL() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | ListGridLayoutTest.java | 19 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/core/tests/coretests/src/android/util/ |
D | DayOfMonthCursorTest.java | 48 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 …]
|
D | Base64Test.java | 51 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/ |
D | TestMain.java | 65 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/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 233 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() 265 assertEquals(getTestContext().getPackageName(), si.getPackage()); in testShortcutInfoParcel() 266 assertEquals("id", si.getId()); in testShortcutInfoParcel() 267 assertEquals(new ComponentName("a", "b"), si.getActivity()); in testShortcutInfoParcel() 268 assertEquals(123, si.getIcon().getResId()); in testShortcutInfoParcel() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PasswordPolicyTest.java | 33 import static org.junit.Assert.assertEquals; 57 assertEquals(CREDENTIAL_TYPE_NONE, minMetrics.credType); in testGetMinMetrics_unspecified() 58 assertEquals(0, minMetrics.length); in testGetMinMetrics_unspecified() 59 assertEquals(0, minMetrics.numeric); in testGetMinMetrics_unspecified() 66 assertEquals(CREDENTIAL_TYPE_PATTERN, minMetrics.credType); in testGetMinMetrics_something() 67 assertEquals(0, minMetrics.length); in testGetMinMetrics_something() 68 assertEquals(0, minMetrics.numeric); in testGetMinMetrics_something() 75 assertEquals(CREDENTIAL_TYPE_PATTERN, minMetrics.credType); in testGetMinMetrics_biometricWeak() 76 assertEquals(0, minMetrics.length); in testGetMinMetrics_biometricWeak() 77 assertEquals(0, minMetrics.numeric); in testGetMinMetrics_biometricWeak() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | FakeExecutorTest.java | 21 import static org.junit.Assert.assertEquals; 57 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 58 assertEquals(0, runnable.mRunCount); in testNoDelay() 62 assertEquals(0, runnable.mRunCount); in testNoDelay() 63 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 64 assertEquals(1, fakeExecutor.numPending()); in testNoDelay() 66 assertEquals(0, runnable.mRunCount); in testNoDelay() 67 assertEquals(10000, clock.uptimeMillis()); in testNoDelay() 68 assertEquals(2, fakeExecutor.numPending()); in testNoDelay() 72 assertEquals(1, runnable.mRunCount); in testNoDelay() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsTest.java | 51 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/ |
D | PropertyInvalidatedCacheTest.java | 59 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/base/tools/powermodel/test/com/android/powermodel/ |
D | PowerProfileTest.java | 58 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | TelephonyMetricsTest.java | 36 import static org.junit.Assert.assertEquals; 164 assertEquals(1000, log.events.length); in testEventDropped() 165 assertEquals(0, log.callSessions.length); in testEventDropped() 166 assertEquals(0, log.smsSessions.length); in testEventDropped() 168 assertEquals(1, log.events[0].dataStallAction); in testEventDropped() 178 assertEquals(1, log.events.length); in testWriteDataStallEvent() 179 assertEquals(0, log.callSessions.length); in testWriteDataStallEvent() 180 assertEquals(0, log.smsSessions.length); in testWriteDataStallEvent() 181 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testWriteDataStallEvent() 182 assertEquals(3, log.events[0].dataStallAction); in testWriteDataStallEvent() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/textservices/ |
D | LocaleUtilsTest.java | 19 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | IccUtilsTest.java | 20 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/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexoptUtilsTest.java | 19 import static org.junit.Assert.assertEquals; 151 assertEquals(9, contexts.length); in testSplitChain() 152 assertEquals("PCL[]{PCL[a.dex:b.dex]}", contexts[0]); in testSplitChain() 153 assertEquals("DLC[];DLC[base-2.dex];PCL[base-4.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", in testSplitChain() 155 assertEquals("DLC[];PCL[base-4.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[2]); in testSplitChain() 156 assertEquals("PCL[];PCL[base-4.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[3]); in testSplitChain() 157 assertEquals("PCL[];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[4]); in testSplitChain() 158 assertEquals("PCL[];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[5]); in testSplitChain() 159 assertEquals("PCL[];PCL[base-5.dex];PCL[base.dex]{PCL[a.dex:b.dex]}", contexts[6]); in testSplitChain() 160 assertEquals(null, contexts[7]); // config split in testSplitChain() [all …]
|
/frameworks/base/core/tests/coretests/src/android/colormodel/ |
D | CamTest.java | 19 import static org.junit.Assert.assertEquals; 39 assertEquals(color, RED); in camFromIntToInt() 44 assertEquals(18.418f, CamUtils.yFromLstar(50.0f), 0.001); in yFromMidgray() 49 assertEquals(0.0f, CamUtils.yFromLstar(0.0f), 0.001); in yFromBlack() 54 assertEquals(100.0f, CamUtils.yFromLstar(100.0f), 0.001); in yFromWhite() 60 assertEquals(46.445f, cam.getJ(), 0.001f); in camFromRed() 61 assertEquals(113.357f, cam.getChroma(), 0.001f); in camFromRed() 62 assertEquals(27.408f, cam.getHue(), 0.001f); in camFromRed() 63 assertEquals(89.494f, cam.getM(), 0.001f); in camFromRed() 64 assertEquals(91.889f, cam.getS(), 0.001f); in camFromRed() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsServTest.java | 121 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/ |
D | BlurAggregatorTest.java | 21 import static junit.framework.TestCase.assertEquals; 80 assertEquals(0, blurRegions.length); in testBlurRadiusUpdatePropagatesToRenderThreadIfNeeded() 86 assertEquals(1, blurRegions.length); in testBlurRadiusUpdatePropagatesToRenderThreadIfNeeded() 87 assertEquals(TEST_BLUR_RADIUS, blurRegions[0].blurRadius); in testBlurRadiusUpdatePropagatesToRenderThreadIfNeeded() 97 assertEquals(1, blurRegions.length); in testAlphaUpdatePropagatesToRenderThreadIfNeeded() 98 assertEquals(20 / 255f, blurRegions[0].alpha); in testAlphaUpdatePropagatesToRenderThreadIfNeeded() 107 assertEquals(0, blurRegions.length); in testAlphaUpdatePropagatesToRenderThreadIfNeeded() 116 assertEquals(1, blurRegions.length); in testCornerRadiusUpdatePropagatesToRenderThreadIfNeeded() 117 assertEquals(1f, blurRegions[0].cornerRadiusTL); in testCornerRadiusUpdatePropagatesToRenderThreadIfNeeded() 118 assertEquals(2f, blurRegions[0].cornerRadiusTR); in testCornerRadiusUpdatePropagatesToRenderThreadIfNeeded() [all …]
|