Home
last modified time | relevance | path

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

12345678910>>...50

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderAutoOrderTests.java19 import static org.junit.Assert.assertEquals;
79 assertEquals("1 key auto 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5M0()
80 assertEquals("1 key auto 5 M0 rows", 1, params.mNumRows); in testLayout1KeyAuto5M0()
81 assertEquals("1 key auto 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyAuto5M0()
82 assertEquals("1 key auto 5 M0 right", 1, params.mRightKeys); in testLayout1KeyAuto5M0()
83 assertEquals("1 key auto 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyAuto5M0()
84 assertEquals("1 key auto 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyAuto5M0()
85 assertEquals("1 key auto 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyAuto5M0()
92 assertEquals("1 key auto 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L0()
93 assertEquals("1 key auto 5 L0 rows", 1, params.mNumRows); in testLayout1KeyAuto5L0()
[all …]
DMoreKeysKeyboardBuilderFixedOrderTests.java19 import static org.junit.Assert.assertEquals;
79 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyFix5M0()
80 assertEquals("1 key fix 5 M0 rows", 1, params.mNumRows); in testLayout1KeyFix5M0()
81 assertEquals("1 key fix 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyFix5M0()
82 assertEquals("1 key fix 5 M0 right", 1, params.mRightKeys); in testLayout1KeyFix5M0()
83 assertEquals("1 key fix 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyFix5M0()
84 assertEquals("1 key fix 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyFix5M0()
85 assertEquals("1 key fix 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyFix5M0()
92 assertEquals("1 key fix 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyFix5L0()
93 assertEquals("1 key fix 5 L0 rows", 1, params.mNumRows); in testLayout1KeyFix5L0()
[all …]
DMoreKeysKeyboardBuilderMaxOrderTests.java19 import static org.junit.Assert.assertEquals;
79 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyMax5M0()
80 assertEquals("1 key max 5 M0 rows", 1, params.mNumRows); in testLayout1KeyMax5M0()
81 assertEquals("1 key max 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyMax5M0()
82 assertEquals("1 key max 5 M0 right", 1, params.mRightKeys); in testLayout1KeyMax5M0()
83 assertEquals("1 key max 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyMax5M0()
84 assertEquals("1 key max 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyMax5M0()
85 assertEquals("1 key max 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyMax5M0()
92 assertEquals("1 key max 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyMax5L0()
93 assertEquals("1 key max 5 L0 rows", 1, params.mNumRows); in testLayout1KeyMax5L0()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DVehiclePropertyIdsTest.java59 assertEquals(vehiclePropertyNames.size(), in testMatchingVehiclePropertyNamesInVehicleHal()
73 assertEquals(vehicleProperties.size(), in testMatchingVehiclePropertyValuesInVehicleHal()
89 assertEquals("INVALID", VehiclePropertyIds.toString(VehiclePropertyIds.INVALID)); in testToString()
90 assertEquals("INFO_VIN", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_VIN)); in testToString()
91 assertEquals("INFO_MAKE", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_MAKE)); in testToString()
92 assertEquals("INFO_MODEL", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_MODEL)); in testToString()
93 assertEquals("INFO_MODEL_YEAR", in testToString()
95 assertEquals("INFO_FUEL_CAPACITY", in testToString()
97 assertEquals("INFO_FUEL_TYPE", in testToString()
99 assertEquals("INFO_EV_BATTERY_CAPACITY", in testToString()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DRecapitalizeStatusTests.java19 import static org.junit.Assert.assertEquals;
41 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim()
42 assertEquals(30, status.getNewCursorStart()); in testTrim()
43 assertEquals(40, status.getNewCursorEnd()); in testTrim()
47 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim()
48 assertEquals(34, status.getNewCursorStart()); in testTrim()
49 assertEquals(44, status.getNewCursorEnd()); in testTrim()
53 assertEquals("abcdefgh", status.getRecapitalizedString()); in testTrim()
54 assertEquals(30, status.getNewCursorStart()); in testTrim()
55 assertEquals(38, status.getNewCursorEnd()); in testTrim()
[all …]
DSubtypeLocaleUtilsTests.java19 import static org.junit.Assert.assertEquals;
176 assertEquals("en_US", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(EN_US)); in testKeyboardLayoutSetName()
177 assertEquals("en_GB", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(EN_GB)); in testKeyboardLayoutSetName()
178 assertEquals("es_US", "spanish", SubtypeLocaleUtils.getKeyboardLayoutSetName(ES_US)); in testKeyboardLayoutSetName()
179 assertEquals("fr", "azerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR)); in testKeyboardLayoutSetName()
180 assertEquals("fr_CA", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR_CA)); in testKeyboardLayoutSetName()
181 assertEquals("fr_CH", "swiss", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR_CH)); in testKeyboardLayoutSetName()
182 assertEquals("de", "qwertz", SubtypeLocaleUtils.getKeyboardLayoutSetName(DE)); in testKeyboardLayoutSetName()
183 assertEquals("de_CH", "swiss", SubtypeLocaleUtils.getKeyboardLayoutSetName(DE_CH)); in testKeyboardLayoutSetName()
184 assertEquals("hi", "hindi", SubtypeLocaleUtils.getKeyboardLayoutSetName(HI)); in testKeyboardLayoutSetName()
[all …]
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/notification/app/
DChannelListPreferenceControllerTest.java23 import static junit.framework.TestCase.assertEquals;
91 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
92 assertEquals("zeroCategories", mGroupList.getPreference(0).getKey()); in testUpdateFullList_incrementalUpdates()
101 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
103 assertEquals("group1", group1.getKey()); in testUpdateFullList_incrementalUpdates()
104 assertEquals(2, group1.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
106 assertEquals("All \"Group 1\" notifications", group1.getPreference(0).getTitle()); in testUpdateFullList_incrementalUpdates()
107 assertEquals("ch1a", group1.getPreference(1).getKey()); in testUpdateFullList_incrementalUpdates()
108 assertEquals("Channel 1A", group1.getPreference(1).getTitle()); in testUpdateFullList_incrementalUpdates()
115 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueueTests.java19 import static org.junit.Assert.assertEquals;
78 assertEquals(0, mQueue.size()); in testEmpty()
79 assertEquals("[]", mQueue.toString()); in testEmpty()
85 assertEquals(1, mQueue.size()); in testAdd()
86 assertEquals("[1]", mQueue.toString()); in testAdd()
88 assertEquals(2, mQueue.size()); in testAdd()
89 assertEquals("[1 2]", mQueue.toString()); in testAdd()
91 assertEquals(3, mQueue.size()); in testAdd()
92 assertEquals("[1 2 3]", mQueue.toString()); in testAdd()
94 assertEquals(4, mQueue.size()); in testAdd()
[all …]
DHermiteInterpolatorTests.java19 import static org.junit.Assert.assertEquals;
60 assertEquals("p0x", mXCoords[p0], mInterpolator.mP1X); in testP0P1()
61 assertEquals("p0y", mYCoords[p0], mInterpolator.mP1Y); in testP0P1()
62 assertEquals("p1x", mXCoords[p1], mInterpolator.mP2X); in testP0P1()
63 assertEquals("p1y", mYCoords[p1], mInterpolator.mP2Y); in testP0P1()
65 assertEquals("slope x p0", -0.25f, mInterpolator.mSlope1X, EPSILON); in testP0P1()
66 assertEquals("slope y p0", -0.75f, mInterpolator.mSlope1Y, EPSILON); in testP0P1()
68 assertEquals("slope x p1", 1.50f, mInterpolator.mSlope2X, EPSILON); in testP0P1()
69 assertEquals("slope y p1", 0.50f, mInterpolator.mSlope2Y, EPSILON); in testP0P1()
72 assertEquals("t=0.0 x", 0.0f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java98 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem()
99 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem()
100 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem()
101 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem()
102 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem()
103 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem()
104 Assert.assertEquals(title, item.getTitle()); in buildAvrcpItem()
105 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem()
106 Assert.assertEquals(album, item.getAlbumName()); in buildAvrcpItem()
107 Assert.assertEquals(trackNumber, item.getTrackNumber()); in buildAvrcpItem()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUriTest.java44 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
50 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
55 assertEquals("robert", u.getScheme()); in testBuildUpon()
56 assertEquals("lee", u.getEncodedSchemeSpecificPart()); in testBuildUpon()
57 assertEquals("lee", u.getSchemeSpecificPart()); in testBuildUpon()
65 assertEquals("new", b.getFragment()); in testBuildUpon()
66 assertEquals("bar", b.getSchemeSpecificPart()); in testBuildUpon()
67 assertEquals("foo", b.getScheme()); in testBuildUpon()
74 assertEquals("new", b.getFragment()); in testBuildUpon()
75 assertEquals("bar", b.getSchemeSpecificPart()); in testBuildUpon()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DDeviceConfigFacadeTest.java21 import static org.junit.Assert.assertEquals;
120 assertEquals(false, mDeviceConfigFacade.isAbnormalConnectionBugreportEnabled()); in testDefaultValue()
121 assertEquals(DeviceConfigFacade.DEFAULT_ABNORMAL_CONNECTION_DURATION_MS, in testDefaultValue()
123 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_DURATION_MS, in testDefaultValue()
125 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_TX_TPUT_THR_KBPS, in testDefaultValue()
127 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_RX_TPUT_THR_KBPS, in testDefaultValue()
129 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_TX_PER_THR, in testDefaultValue()
131 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_CCA_LEVEL_THR, in testDefaultValue()
133 assertEquals(DeviceConfigFacade.DEFAULT_TX_TPUT_SUFFICIENT_THR_LOW_KBPS, in testDefaultValue()
135 assertEquals(DeviceConfigFacade.DEFAULT_TX_TPUT_SUFFICIENT_THR_HIGH_KBPS, in testDefaultValue()
[all …]
DSoftApStoreDataTest.java19 import static org.junit.Assert.assertEquals;
323 assertEquals(WifiConfigStore.STORE_FILE_SHARED_SOFTAP, in getUserStoreFileId()
360 assertEquals(TEST_CONFIG_STRING_WITH_ALL_CONFIG_LAST_VERSION, new String(actualData)); in serializeSoftAp()
362 assertEquals(TEST_CONFIG_STRING_WITH_ALL_CONFIG_IN_R, new String(actualData)); in serializeSoftAp()
384 assertEquals(softApConfig.getSsid(), TEST_SSID); in deserializeSoftAp()
385 assertEquals(softApConfig.getBssid().toString(), TEST_BSSID); in deserializeSoftAp()
386 assertEquals(softApConfig.getPassphrase(), TEST_PASSPHRASE); in deserializeSoftAp()
387 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeSoftAp()
388 assertEquals(softApConfig.isHiddenSsid(), TEST_HIDDEN); in deserializeSoftAp()
390 assertEquals(softApConfig.getBand(), TEST_BAND_2G); in deserializeSoftAp()
[all …]
DWifiMetricsTest.java40 import static org.junit.Assert.assertEquals;
1187 assertEquals(NUM_SOFT_AP_EVENT_ENTRIES + NUM_SOFT_AP_EVENT_ENTRIES_FOR_BRIDGED_AP, in verifySoftApEventsStoredInProto()
1189 assertEquals(SoftApConnectedClientsEvent.SOFT_AP_UP, in verifySoftApEventsStoredInProto()
1191 assertEquals(0, mDecodedProto.softApConnectedClientsEventsTethered[0].numConnectedClients); in verifySoftApEventsStoredInProto()
1192 assertEquals(SOFT_AP_CHANNEL_FREQUENCY_2G, in verifySoftApEventsStoredInProto()
1194 assertEquals(SOFT_AP_CHANNEL_BANDWIDTH_2G, in verifySoftApEventsStoredInProto()
1196 assertEquals(SOFT_AP_MAX_CLIENT_SETTING, in verifySoftApEventsStoredInProto()
1199 assertEquals(SOFT_AP_MAX_CLIENT_CAPABILITY, in verifySoftApEventsStoredInProto()
1202 assertEquals(SOFT_AP_SHUTDOWN_TIMEOUT_SETTING, in verifySoftApEventsStoredInProto()
1205 assertEquals(SOFT_AP_SHUTDOWN_TIMEOUT_DEFAULT_SETTING, in verifySoftApEventsStoredInProto()
[all …]
DWifiScoreCardTest.java232 assertEquals(perBssid, mWifiScoreCard.fetchByBssid(TEST_BSSID_1)); in testUpdate()
248 assertEquals(0, mWifiScoreCard.getBssidBlocklistStreak( in testBssidBlocklistStreakOperations()
251 assertEquals(i, mWifiScoreCard.incrementBssidBlocklistStreak( in testBssidBlocklistStreakOperations()
253 assertEquals(i, mWifiScoreCard.getBssidBlocklistStreak( in testBssidBlocklistStreakOperations()
257 assertEquals(0, mWifiScoreCard.getBssidBlocklistStreak( in testBssidBlocklistStreakOperations()
271 assertEquals(i, mWifiScoreCard.incrementBssidBlocklistStreak( in testClearBssidBlocklistStreakForSsid()
273 assertEquals(i, mWifiScoreCard.getBssidBlocklistStreak( in testClearBssidBlocklistStreakForSsid()
282 assertEquals(i, mWifiScoreCard.incrementBssidBlocklistStreak( in testClearBssidBlocklistStreakForSsid()
284 assertEquals(i, mWifiScoreCard.getBssidBlocklistStreak( in testClearBssidBlocklistStreakForSsid()
291 assertEquals(0, mWifiScoreCard.getBssidBlocklistStreak( in testClearBssidBlocklistStreakForSsid()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageFormatTest.java34 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_requiredOnly()
35 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_requiredOnly()
36 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_requiredOnly()
37 Assert.assertEquals(new BipTransformation(), format.getTransformation()); in testParseNative_requiredOnly()
38 Assert.assertEquals(-1, format.getSize()); in testParseNative_requiredOnly()
39 Assert.assertEquals(-1, format.getMaxSize()); in testParseNative_requiredOnly()
40 Assert.assertEquals(expected, format.toString()); in testParseNative_requiredOnly()
47 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_withSize()
48 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_withSize()
49 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_withSize()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DStateMachineTest.java226 Assert.assertEquals(8, smQuitTest.mLogRecs.size()); in testStateMachineQuit()
232 Assert.assertEquals(i, lr.getWhat()); in testStateMachineQuit()
233 Assert.assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
234 Assert.assertEquals(smQuitTest.mS1, lr.getOriginalState()); in testStateMachineQuit()
237 Assert.assertEquals(EXIT, lr.getInfo()); in testStateMachineQuit()
238 Assert.assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
241 Assert.assertEquals(ON_QUITTING, lr.getInfo()); in testStateMachineQuit()
330 Assert.assertEquals(3, smQuitNowTest.mLogRecs.size()); in testStateMachineQuitNow()
334 Assert.assertEquals(1, lr.getWhat()); in testStateMachineQuitNow()
335 Assert.assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DDnsUtilsTest.java23 import static org.junit.Assert.assertEquals;
100 assertEquals(test.get(i).address, expected.get(i)); in testRfc6724Comparator()
110 assertEquals(test.hasSrcAddr, 0); in testV4SortableAddress()
111 assertEquals(test.prefixMatchLen, 0); in testV4SortableAddress()
112 assertEquals(test.address, stringToAddress("216.58.200.36")); in testV4SortableAddress()
113 assertEquals(test.labelMatch, 0); in testV4SortableAddress()
114 assertEquals(test.scopeMatch, 0); in testV4SortableAddress()
115 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV4SortableAddress()
116 assertEquals(test.label, 4); in testV4SortableAddress()
117 assertEquals(test.precedence, 35); in testV4SortableAddress()
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/util/
DBitwiseUtilsTest.java21 import static org.junit.Assert.assertEquals;
33 assertEquals(1, BitwiseUtils.maxUnsignedValue(1)); in maxUnsignedValue()
34 assertEquals(3, BitwiseUtils.maxUnsignedValue(2)); in maxUnsignedValue()
35 assertEquals(7, BitwiseUtils.maxUnsignedValue(3)); in maxUnsignedValue()
36 assertEquals(15, BitwiseUtils.maxUnsignedValue(4)); in maxUnsignedValue()
37 assertEquals(Long.MAX_VALUE, BitwiseUtils.maxUnsignedValue(63)); in maxUnsignedValue()
45 assertEquals(0x0, BitwiseUtils.getLowBitsMask(0)); in getLowBitsMask()
46 assertEquals(0x1, BitwiseUtils.getLowBitsMask(1)); in getLowBitsMask()
47 assertEquals(0x3, BitwiseUtils.getLowBitsMask(2)); in getLowBitsMask()
48 assertEquals(0x7, BitwiseUtils.getLowBitsMask(3)); in getLowBitsMask()
[all …]
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDatabaseTest.java93 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments()
96 assertEquals(2, getInt(cursor, COLUMN_DOCUMENT_ID)); in testPutSingleStorageDocuments()
97 assertEquals(0, getInt(cursor, COLUMN_DEVICE_ID)); in testPutSingleStorageDocuments()
98 assertEquals(1, getInt(cursor, COLUMN_STORAGE_ID)); in testPutSingleStorageDocuments()
100 assertEquals( in testPutSingleStorageDocuments()
102 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutSingleStorageDocuments()
105 assertEquals(R.drawable.ic_root_mtp, getInt(cursor, COLUMN_ICON)); in testPutSingleStorageDocuments()
106 assertEquals(Document.FLAG_DIR_SUPPORTS_CREATE, getInt(cursor, COLUMN_FLAGS)); in testPutSingleStorageDocuments()
107 assertEquals(1000, getInt(cursor, COLUMN_SIZE)); in testPutSingleStorageDocuments()
108 assertEquals( in testPutSingleStorageDocuments()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiUsabilityStatsEntryTest.java19 import static org.junit.Assert.assertEquals;
92 assertEquals(32, usabilityStatsEntry.getTimeSliceDutyCycleInPercent()); in getTimeSliceDutyCycleInPercent()
142 assertEquals(expected.getTimeStampMillis(), actual.getTimeStampMillis()); in assertWifiUsabilityStatsEntryEquals()
143 assertEquals(expected.getRssi(), actual.getRssi()); in assertWifiUsabilityStatsEntryEquals()
144 assertEquals(expected.getLinkSpeedMbps(), actual.getLinkSpeedMbps()); in assertWifiUsabilityStatsEntryEquals()
145 assertEquals(expected.getTotalTxSuccess(), actual.getTotalTxSuccess()); in assertWifiUsabilityStatsEntryEquals()
146 assertEquals(expected.getTotalTxRetries(), actual.getTotalTxRetries()); in assertWifiUsabilityStatsEntryEquals()
147 assertEquals(expected.getTotalTxBad(), actual.getTotalTxBad()); in assertWifiUsabilityStatsEntryEquals()
148 assertEquals(expected.getTotalRxSuccess(), actual.getTotalRxSuccess()); in assertWifiUsabilityStatsEntryEquals()
149 assertEquals(expected.getWifiLinkLayerRadioStats().size(), in assertWifiUsabilityStatsEntryEquals()
[all …]
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DPeriodicCallbackModelTest.java32 import static org.junit.Assert.assertEquals;
39 assertEquals(1, PeriodicCallbackModel.getDelay(56999, MINUTE, -3000)); in getMinuteDelay()
40 assertEquals(60000, PeriodicCallbackModel.getDelay(57000, MINUTE, -3000)); in getMinuteDelay()
41 assertEquals(59999, PeriodicCallbackModel.getDelay(57001, MINUTE, -3000)); in getMinuteDelay()
43 assertEquals(1, PeriodicCallbackModel.getDelay(59999, MINUTE, 0)); in getMinuteDelay()
44 assertEquals(60000, PeriodicCallbackModel.getDelay(60000, MINUTE, 0)); in getMinuteDelay()
45 assertEquals(59999, PeriodicCallbackModel.getDelay(60001, MINUTE, 0)); in getMinuteDelay()
47 assertEquals(3001, PeriodicCallbackModel.getDelay(59999, MINUTE, 3000)); in getMinuteDelay()
48 assertEquals(3000, PeriodicCallbackModel.getDelay(60000, MINUTE, 3000)); in getMinuteDelay()
49 assertEquals(1, PeriodicCallbackModel.getDelay(62999, MINUTE, 3000)); in getMinuteDelay()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEnterpriseContactsCursorWrapperTest.java60 assertEquals(0, rewritten.getCount()); in testWrappedResults()
61 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults()
179 assertEquals(5, rewritten.getCount()); in testWrappedResults()
180 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults()
186 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
187 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
188 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
189 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
190 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
191 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
[all …]
DContactLocaleUtilsTest.java131 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testEnglishContactLocaleUtils()
132 assertEquals("#", getLabel(PHONE_NUMBER_2)); in testEnglishContactLocaleUtils()
133 assertEquals("J", getLabel(LATIN_NAME)); in testEnglishContactLocaleUtils()
134 assertEquals("\u2026", getLabel(CHINESE_NAME)); in testEnglishContactLocaleUtils()
135 assertEquals("D", getLabel(CHINESE_LATIN_MIX_NAME_1)); in testEnglishContactLocaleUtils()
136 assertEquals("B", getLabel("Bob Smith")); in testEnglishContactLocaleUtils()
138 assertEquals("\u0646", getLabel(ARABIC_NAME)); in testEnglishContactLocaleUtils()
139 assertEquals("\u0408", getLabel(SERBIAN_NAME)); in testEnglishContactLocaleUtils()
142 assertEquals("\u0406", getLabel(UKRAINIAN_NAME)); in testEnglishContactLocaleUtils()
150 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testJapaneseContactLocaleUtils()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java16 assertEquals(0, prop.getParameterNames().size()); in testAddParameter()
18 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
20 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
22 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
24 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
26 assertEquals(3, prop.getParameterNames().size()); in testAddParameter()
27 assertEquals("prop1;param1=foo;param1=bar;param1=quux;" in testAddParameter()
44 assertEquals(text, component.toString()); in testAddProperty()
64 assertEquals(text, parent.toString()); in testAddComponent()
77 assertEquals("STUB", component.getName()); in testParseBasicComponent()
[all …]

12345678910>>...50