Home
last modified time | relevance | path

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

12345678910>>...87

/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/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 …]
/packages/modules/Uwb/service/support_lib/test/
DFiraTests.java49 import static org.junit.Assert.assertEquals;
223 assertEquals(params.getProtocolVersion(), protocolVersion); in testOpenSessionParams()
224 assertEquals(params.getSessionId(), sessionId); in testOpenSessionParams()
225 assertEquals(params.getSessionType(), sessionType); in testOpenSessionParams()
226 assertEquals(params.getDeviceType(), deviceType); in testOpenSessionParams()
227 assertEquals(params.getDeviceRole(), deviceRole); in testOpenSessionParams()
228 assertEquals(params.getRangingRoundUsage(), rangingRoundUsage); in testOpenSessionParams()
229 assertEquals(params.getMultiNodeMode(), multiNodeMode); in testOpenSessionParams()
230 assertEquals(params.getDeviceAddress(), deviceAddress); in testOpenSessionParams()
231 assertEquals(params.getDestAddressList().size(), destAddressList.size()); in testOpenSessionParams()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
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 …]
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 …]
/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/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java31 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 …]
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/app/
DChannelListPreferenceControllerTest.java23 import static junit.framework.TestCase.assertEquals;
90 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
91 assertEquals("zeroCategories", mGroupList.getPreference(0).getKey()); in testUpdateFullList_incrementalUpdates()
100 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
102 assertEquals("group1", group1.getKey()); in testUpdateFullList_incrementalUpdates()
103 assertEquals(2, group1.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
105 assertEquals("All \"Group 1\" notifications", in testUpdateFullList_incrementalUpdates()
107 assertEquals("ch1a", group1.getPreference(1).getKey()); in testUpdateFullList_incrementalUpdates()
108 assertEquals("Channel 1A", group1.getPreference(1).getTitle().toString()); in testUpdateFullList_incrementalUpdates()
115 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates()
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/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/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/atoms/
DAtomsQualifiedRatListChangedInfoTest.java19 import static org.junit.Assert.assertEquals;
159 assertEquals(0, mInfoEmpty.getNetCapability()); in testGetSetNetCapability()
160 assertEquals(DEFAULT_NET_CAPABILITY, mInfoDefault.getNetCapability()); in testGetSetNetCapability()
161 assertEquals(DEFAULT_NET_CAPABILITY, mInfoCopy.getNetCapability()); in testGetSetNetCapability()
167 assertEquals(QnsProtoEnums.NET_CAPABILITY_IMS, mInfoEmpty.getNetCapability()); in testGetSetNetCapability()
168 assertEquals(QnsProtoEnums.NET_CAPABILITY_EIMS, mInfoDefault.getNetCapability()); in testGetSetNetCapability()
169 assertEquals(QnsProtoEnums.NET_CAPABILITY_XCAP, mInfoCopy.getNetCapability()); in testGetSetNetCapability()
174 assertEquals(0, mInfoEmpty.getFirstQualifiedRat()); in testGetSetFirstQualifiedRat()
175 assertEquals(DEFAULT_FIRST_QUALIFIED_RAT, mInfoDefault.getFirstQualifiedRat()); in testGetSetFirstQualifiedRat()
176 assertEquals(DEFAULT_FIRST_QUALIFIED_RAT, mInfoCopy.getFirstQualifiedRat()); in testGetSetFirstQualifiedRat()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DDeviceConfigFacadeTest.java21 import static org.junit.Assert.assertEquals;
124 assertEquals(false, mDeviceConfigFacade.isAbnormalConnectionBugreportEnabled()); in testDefaultValue()
125 assertEquals(DeviceConfigFacade.DEFAULT_ABNORMAL_CONNECTION_DURATION_MS, in testDefaultValue()
127 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_DURATION_MS, in testDefaultValue()
129 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_TX_TPUT_THR_KBPS, in testDefaultValue()
131 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_RX_TPUT_THR_KBPS, in testDefaultValue()
133 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_TX_PER_THR, in testDefaultValue()
135 assertEquals(DeviceConfigFacade.DEFAULT_DATA_STALL_CCA_LEVEL_THR, in testDefaultValue()
137 assertEquals(DeviceConfigFacade.DEFAULT_TX_TPUT_SUFFICIENT_THR_LOW_KBPS, in testDefaultValue()
139 assertEquals(DeviceConfigFacade.DEFAULT_TX_TPUT_SUFFICIENT_THR_HIGH_KBPS, in testDefaultValue()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DEventReportTest.java24 import static org.junit.Assert.assertEquals;
137 assertEquals("1", eventReport.getId()); in creation_success()
138 assertEquals(new UnsignedLong(21L), eventReport.getSourceEventId()); in creation_success()
139 assertEquals("enrollment-id", eventReport.getEnrollmentId()); in creation_success()
140 assertEquals("https://bar.test", in creation_success()
142 assertEquals(1000L, eventReport.getTriggerTime()); in creation_success()
143 assertEquals(new UnsignedLong(8L), eventReport.getTriggerData()); in creation_success()
144 assertEquals(2L, eventReport.getTriggerPriority()); in creation_success()
145 assertEquals(new UnsignedLong(3L), eventReport.getTriggerDedupKey()); in creation_success()
146 assertEquals(2000L, eventReport.getReportTime()); in creation_success()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUriTest.java47 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
53 assertEquals(u, Uri.CREATOR.createFromParcel(p)); in parcelAndUnparcel()
58 assertEquals("robert", u.getScheme()); in testBuildUpon()
59 assertEquals("lee", u.getEncodedSchemeSpecificPart()); in testBuildUpon()
60 assertEquals("lee", u.getSchemeSpecificPart()); in testBuildUpon()
68 assertEquals("new", b.getFragment()); in testBuildUpon()
69 assertEquals("bar", b.getSchemeSpecificPart()); in testBuildUpon()
70 assertEquals("foo", b.getScheme()); in testBuildUpon()
77 assertEquals("new", b.getFragment()); in testBuildUpon()
78 assertEquals("bar", b.getSchemeSpecificPart()); in testBuildUpon()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageFormatTest.java32 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_requiredOnly()
33 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_requiredOnly()
34 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_requiredOnly()
35 Assert.assertEquals(new BipTransformation(), format.getTransformation()); in testParseNative_requiredOnly()
36 Assert.assertEquals(-1, format.getSize()); in testParseNative_requiredOnly()
37 Assert.assertEquals(-1, format.getMaxSize()); in testParseNative_requiredOnly()
38 Assert.assertEquals(expected, format.toString()); in testParseNative_requiredOnly()
45 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_withSize()
46 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_withSize()
47 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_withSize()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsConstantsTest.java36 Assert.assertEquals(callType_str, "IDLE"); in testCallTypeToString()
38 Assert.assertEquals(callType_str, "VOICE"); in testCallTypeToString()
40 Assert.assertEquals(callType_str, "VIDEO"); in testCallTypeToString()
42 Assert.assertEquals(callType_str, "SOS"); in testCallTypeToString()
44 Assert.assertEquals(callType_str, ""); in testCallTypeToString()
52 Assert.assertEquals(coverage_str, "HOME"); in testCoverageToString()
54 Assert.assertEquals(coverage_str, "ROAM"); in testCoverageToString()
56 Assert.assertEquals(coverage_str, ""); in testCoverageToString()
64 Assert.assertEquals(preference_str, "WIFI_ONLY"); in testPreferenceToString()
66 Assert.assertEquals(preference_str, "CELL_PREF"); in testPreferenceToString()
[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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java94 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem()
95 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem()
96 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem()
97 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem()
98 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem()
99 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem()
100 Assert.assertEquals(title, item.getTitle()); in buildAvrcpItem()
101 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem()
102 Assert.assertEquals(album, item.getAlbumName()); in buildAvrcpItem()
103 Assert.assertEquals(trackNumber, item.getTrackNumber()); in buildAvrcpItem()
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
DCameraTest.java31 assertEquals(0, Util.roundOrientation(0, 0)); in testRoundOrientation()
32 assertEquals(0, Util.roundOrientation(359, 0)); in testRoundOrientation()
33 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation()
34 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation()
35 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation()
36 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation()
38 assertEquals(90, Util.roundOrientation(90, 90)); in testRoundOrientation()
39 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation()
40 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation()
41 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DSearchUtilTest.java34 assertEquals("With potentially many lines.", matched.line); in testFindMatchingLine()
35 assertEquals(5, matched.startIndex); in testFindMatchingLine()
39 assertEquals("hello", matched.line); in testFindMatchingLine()
40 assertEquals(0, matched.startIndex); in testFindMatchingLine()
44 assertEquals("this is a long test string.", matched.line); in testFindMatchingLine()
45 assertEquals(0, matched.startIndex); in testFindMatchingLine()
49 assertEquals("'leading punc", matched.line); in testFindMatchingLine()
50 assertEquals(9, matched.startIndex); in testFindMatchingLine()
56 assertEquals(0, SearchUtil.contains(actual, "this")); in testContains()
57 assertEquals(10, SearchUtil.contains(actual, "lon")); in testContains()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiUsabilityStatsEntryTest.java20 import static org.junit.Assert.assertEquals;
107 assertEquals(32, usabilityStatsEntry.getTimeSliceDutyCycleInPercent()); in getTimeSliceDutyCycleInPercent()
166 assertEquals(expected.getTimeStampMillis(), actual.getTimeStampMillis()); in assertWifiUsabilityStatsEntryEquals()
167 assertEquals(expected.getRssi(), actual.getRssi()); in assertWifiUsabilityStatsEntryEquals()
168 assertEquals(expected.getLinkSpeedMbps(), actual.getLinkSpeedMbps()); in assertWifiUsabilityStatsEntryEquals()
169 assertEquals(expected.getTotalTxSuccess(), actual.getTotalTxSuccess()); in assertWifiUsabilityStatsEntryEquals()
170 assertEquals(expected.getTotalTxRetries(), actual.getTotalTxRetries()); in assertWifiUsabilityStatsEntryEquals()
171 assertEquals(expected.getTotalTxBad(), actual.getTotalTxBad()); in assertWifiUsabilityStatsEntryEquals()
172 assertEquals(expected.getTotalRxSuccess(), actual.getTotalRxSuccess()); in assertWifiUsabilityStatsEntryEquals()
173 assertEquals(expected.getTotalCcaBusyFreqTimeMillis(), in assertWifiUsabilityStatsEntryEquals()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEnterpriseContactsCursorWrapperTest.java59 assertEquals(0, rewritten.getCount()); in testWrappedResults()
60 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults()
178 assertEquals(5, rewritten.getCount()); in testWrappedResults()
179 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults()
185 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
186 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
187 assertEquals(null, rewritten.getString(column++)); 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()
[all …]
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDatabaseTest.java92 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments()
95 assertEquals(2, getInt(cursor, COLUMN_DOCUMENT_ID)); in testPutSingleStorageDocuments()
96 assertEquals(0, getInt(cursor, COLUMN_DEVICE_ID)); in testPutSingleStorageDocuments()
97 assertEquals(1, getInt(cursor, COLUMN_STORAGE_ID)); in testPutSingleStorageDocuments()
99 assertEquals( in testPutSingleStorageDocuments()
101 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutSingleStorageDocuments()
104 assertEquals(R.drawable.ic_root_mtp, getInt(cursor, COLUMN_ICON)); in testPutSingleStorageDocuments()
105 assertEquals(Document.FLAG_DIR_SUPPORTS_CREATE, getInt(cursor, COLUMN_FLAGS)); in testPutSingleStorageDocuments()
106 assertEquals(1000, getInt(cursor, COLUMN_SIZE)); in testPutSingleStorageDocuments()
107 assertEquals( in testPutSingleStorageDocuments()
[all …]
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmSmsCbMessageTest.java81 assertEquals(testMessage1, message); in testGetEtwsPrimaryMessage()
86 assertEquals(testMessage2, message); in testGetEtwsPrimaryMessage()
91 assertEquals(testMessage3, message); in testGetEtwsPrimaryMessage()
96 assertEquals(testMessage4, message); in testGetEtwsPrimaryMessage()
101 assertEquals(testMessage5, message); in testGetEtwsPrimaryMessage()
131 assertEquals(SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE, in testCreateMessageFromBinary()
133 assertEquals(3946, msg.getSerialNumber()); in testCreateMessageFromBinary()
134 assertEquals(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED, in testCreateMessageFromBinary()
136 assertEquals("en", msg.getLanguageCode()); in testCreateMessageFromBinary()
137 assertEquals("Hello UMTS world, this is IuBC§Write§5.1.5.sl (new) - Page 1/ 1.", in testCreateMessageFromBinary()
[all …]

12345678910>>...87