/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberUtilsTest.java | 28 assertEquals( in testExtractNetworkPortion() 33 assertEquals( in testExtractNetworkPortion() 38 assertEquals( in testExtractNetworkPortion() 44 assertEquals( in testExtractNetworkPortion() 49 assertEquals( in testExtractNetworkPortion() 54 assertEquals( in testExtractNetworkPortion() 59 assertEquals( in testExtractNetworkPortion() 66 assertEquals( in testExtractNetworkPortion() 74 assertEquals("", PhoneNumberUtils.extractNetworkPortion("")); in testExtractNetworkPortion() 76 assertEquals("", PhoneNumberUtils.extractNetworkPortion(",1234")); in testExtractNetworkPortion() [all …]
|
D | IntRangeManagerTest.java | 100 assertEquals("expecting empty configlist", 0, testManager.mConfigList.size()); in testEmptyRangeManager() 105 assertEquals("fromServiceId", fromServiceId, info.getFromServiceId()); in checkConfigInfo() 106 assertEquals("toServiceId", toServiceId, info.getToServiceId()); in checkConfigInfo() 107 assertEquals("fromCodeScheme", fromCodeScheme, info.getFromCodeScheme()); in checkConfigInfo() 108 assertEquals("toCodeScheme", toCodeScheme, info.getToCodeScheme()); in checkConfigInfo() 109 assertEquals("selected", selected, info.isSelected()); in checkConfigInfo() 114 assertEquals("flags before test", 0, testManager.flags); in testAddSingleChannel() 116 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel() 117 assertEquals("configlist size", 1, testManager.mConfigList.size()); in testAddSingleChannel() 122 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel() [all …]
|
D | MccTableTest.java | 31 assertEquals(MccTable.defaultTimeZoneForMcc(208), "ECT"); in testTimeZone() 32 assertEquals(MccTable.defaultTimeZoneForMcc(232), "Europe/Vienna"); in testTimeZone() 33 assertEquals(MccTable.defaultTimeZoneForMcc(655), "Africa/Johannesburg"); in testTimeZone() 34 assertEquals(MccTable.defaultTimeZoneForMcc(440), "Asia/Tokyo"); in testTimeZone() 35 assertEquals(MccTable.defaultTimeZoneForMcc(441), "Asia/Tokyo"); in testTimeZone() 36 assertEquals(MccTable.defaultTimeZoneForMcc(525), "Asia/Singapore"); in testTimeZone() 37 assertEquals(MccTable.defaultTimeZoneForMcc(240), null); // tz not defined, hence default in testTimeZone() 38 assertEquals(MccTable.defaultTimeZoneForMcc(0), null); // mcc not defined, hence default in testTimeZone() 39 assertEquals(MccTable.defaultTimeZoneForMcc(2000), null); // mcc not defined, hence default in testTimeZone() 44 assertEquals(MccTable.countryCodeForMcc(270), "lu"); in testCountryCode() [all …]
|
D | GsmSmsTest.java | 34 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 …]
|
D | GsmAlphabetTest.java | 47 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 …]
|
D | AdnRecordTest.java | 40 assertEquals("Voice Mail", adn.getAlphaTag()); in testBasic() 41 assertEquals("+18056377243", adn.getNumber()); in testBasic() 50 assertEquals("", adn.getAlphaTag()); in testBasic() 51 assertEquals("", adn.getNumber()); in testBasic() 59 assertEquals("", adn.getAlphaTag()); in testBasic() 60 assertEquals("", adn.getNumber()); in testBasic() 69 assertEquals("Voice Mail", adn.getAlphaTag()); in testBasic() 70 assertEquals("18056377243", adn.getNumber()); in testBasic() 79 assertEquals("Voice Mail", adn.getAlphaTag()); in testBasic() 80 assertEquals("18056377243", adn.getNumber()); in testBasic() [all …]
|
D | NeighboringCellInfoTest.java | 35 assertEquals(NETWORK_TYPE_EDGE, nc.getNetworkType()); in testConstructor() 36 assertEquals(rssi, nc.getRssi()); in testConstructor() 37 assertEquals(0xfff, nc.getLac()); in testConstructor() 38 assertEquals(0xffff, nc.getCid()); in testConstructor() 39 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getPsc()); in testConstructor() 42 assertEquals(NETWORK_TYPE_UMTS, nc.getNetworkType()); in testConstructor() 43 assertEquals(rssi, nc.getRssi()); in testConstructor() 44 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getCid()); in testConstructor() 45 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getLac()); in testConstructor() 46 assertEquals(0x1ff, nc.getPsc()); in testConstructor() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | DayOfMonthCursorTest.java | 47 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 …]
|
D | Base64Test.java | 44 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/ |
D | CdmaSmsTest.java | 49 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/core/tests/coretests/src/com/android/internal/util/ |
D | StateMachineTest.java | 162 assertEquals(8, smQuitTest.mLogRecs.size()); in testStateMachineQuit() 168 assertEquals(i, lr.getWhat()); in testStateMachineQuit() 169 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit() 170 assertEquals(smQuitTest.mS1, lr.getOriginalState()); in testStateMachineQuit() 173 assertEquals(EXIT, lr.getInfo()); in testStateMachineQuit() 174 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit() 177 assertEquals(ON_QUITTING, lr.getInfo()); in testStateMachineQuit() 266 assertEquals(3, smQuitNowTest.mLogRecs.size()); in testStateMachineQuitNow() 270 assertEquals(1, lr.getWhat()); in testStateMachineQuitNow() 271 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow() [all …]
|
D | ProcFileReaderTest.java | 46 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/ex/common/tests/src/com/android/common/ |
D | OperationSchedulerTest.java | 48 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/ |
D | UriTest.java | 40 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/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | ViewBindingAdapterTest.java | 39 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 …]
|
D | ObservableArrayListTest.java | 159 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 …]
|
D | ExpressionTest.java | 41 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr() 44 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr() 48 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr() 51 assertEquals("world", mBinder.textView0.getText().toString()); in testOr() 60 assertEquals("hello", mBinder.textView1.getText().toString()); in testAnd() 63 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd() 67 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd() 70 assertEquals("world", mBinder.textView1.getText().toString()); in testAnd() 78 assertEquals("0", mBinder.textView2.getText().toString()); // var1 & var2 in testBinary() 79 assertEquals("0", mBinder.textView3.getText().toString()); // var1 | var2 in testBinary() [all …]
|
D | TextViewBindingAdapterTest.java | 47 assertEquals(getExpectedNumericType(), listener.getInputType()); in testNumeric() 53 assertEquals(getExpectedNumericType(), listener.getInputType()); in testNumeric() 70 assertEquals(mBindingObject.getDrawableLeft(), in testDrawables() 72 assertEquals(mBindingObject.getDrawableTop(), in testDrawables() 74 assertEquals(mBindingObject.getDrawableRight(), in testDrawables() 76 assertEquals(mBindingObject.getDrawableBottom(), in testDrawables() 81 assertEquals(mBindingObject.getDrawableLeft(), in testDrawables() 83 assertEquals(mBindingObject.getDrawableTop(), in testDrawables() 85 assertEquals(mBindingObject.getDrawableRight(), in testDrawables() 87 assertEquals(mBindingObject.getDrawableBottom(), in testDrawables() [all …]
|
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
D | SingleRowTest.java | 33 assertEquals(dump(mSingleRow) + " Should filled 2 items", 1, mSingleRow.mLastVisibleIndex); in testAppendPrependRemove() 36 assertEquals(dump(mSingleRow) + " Should filled 3 items", in testAppendPrependRemove() 40 assertEquals(dump(mSingleRow) + " Should filled 4 items", in testAppendPrependRemove() 44 assertEquals(dump(mSingleRow) + " Should filled 6 items", in testAppendPrependRemove() 46 assertEquals(mProvider.getEdge(0), 0); in testAppendPrependRemove() 47 assertEquals(mProvider.getEdge(1), 100); in testAppendPrependRemove() 48 assertEquals(mProvider.getEdge(2), 200); in testAppendPrependRemove() 49 assertEquals(mProvider.getEdge(3), 250); in testAppendPrependRemove() 50 assertEquals(mProvider.getEdge(4), 370); in testAppendPrependRemove() 51 assertEquals(mProvider.getEdge(5), 430); in testAppendPrependRemove() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | MatrixCursorTest.java | 29 assertEquals(0, cursor.getCount()); in testEmptyCursor() 39 assertEquals(0, cursor.getShort(0)); in testNullValue() 40 assertEquals(0, cursor.getInt(0)); in testNullValue() 41 assertEquals(0L, cursor.getLong(0)); in testNullValue() 42 assertEquals(0.0f, cursor.getFloat(0)); in testNullValue() 43 assertEquals(0.0d, cursor.getDouble(0)); in testNullValue() 149 assertEquals("foobar", cursor.getString(0)); in testRowBuilderOffer() 150 assertEquals(null, cursor.getString(1)); in testRowBuilderOffer() 151 assertEquals(0, cursor.getShort(1)); in testRowBuilderOffer() 152 assertEquals(0, cursor.getInt(2)); in testRowBuilderOffer() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | KeySetManagerServiceTest.java | 54 assertEquals(PackageKeySetData.KEYSET_UNASSIGNED, pksd.getProperSigningKeySet()); in testPackageKeySetDataConstructorUnassignend() 58 assertEquals(0, aliases.size()); in testPackageKeySetDataConstructorUnassignend() 75 assertEquals(keyA, sigA.getPublicKey()); in testPublicKeyCertReprEquiv() 76 assertEquals(keyB, sigB.getPublicKey()); in testPublicKeyCertReprEquiv() 77 assertEquals(keyC, sigC.getPublicKey()); in testPublicKeyCertReprEquiv() 81 assertEquals(bArrayPk.length, bArrayCert.length); in testPublicKeyCertReprEquiv() 82 assertEquals(true, ArrayUtils.equals(bArrayPk, bArrayCert, bArrayPk.length)); in testPublicKeyCertReprEquiv() 86 assertEquals(bArrayPk.length, bArrayCert.length); in testPublicKeyCertReprEquiv() 87 assertEquals(true, ArrayUtils.equals(bArrayPk, bArrayCert, bArrayPk.length)); in testPublicKeyCertReprEquiv() 91 assertEquals(bArrayPk.length, bArrayCert.length); in testPublicKeyCertReprEquiv() [all …]
|
/frameworks/support/v4/tests/java/android/support/v4/text/ |
D | BidiFormatterTest.java | 44 assertEquals(false, LTR_FMT.isRtlContext()); in testIsRtlContext() 45 assertEquals(true, RTL_FMT.isRtlContext()); in testIsRtlContext() 47 assertEquals(false, BidiFormatter.getInstance(Locale.ENGLISH).isRtlContext()); in testIsRtlContext() 48 assertEquals(true, BidiFormatter.getInstance(true).isRtlContext()); in testIsRtlContext() 52 assertEquals(false, new BidiFormatter.Builder(false).build().isRtlContext()); in testBuilderIsRtlContext() 53 assertEquals(true, new BidiFormatter.Builder(true).build().isRtlContext()); in testBuilderIsRtlContext() 57 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl() 58 assertEquals(true, BidiFormatter.getInstance(false).isRtl(HE)); in testIsRtl() 60 assertEquals(false, BidiFormatter.getInstance(true).isRtl(EN)); in testIsRtl() 61 assertEquals(false, BidiFormatter.getInstance(false).isRtl(EN)); in testIsRtl() [all …]
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ |
D | Test.java | 31 assertEquals(10, TestApplication.get(true)); in testExceptionInMainDex() 35 assertEquals(10, getActivity().get1(true)); in testExceptionInSecondaryDex() 36 assertEquals(11, getActivity().get2(true)); in testExceptionInSecondaryDex() 40 assertEquals(11, IntermediateClass.get3(true)); in testExceptionInIntermediate() 41 assertEquals(11, MiniIntermediateClass.get3(true)); in testExceptionInIntermediate() 42 assertEquals(11, IntermediateClass.get4(true)); in testExceptionInIntermediate() 43 assertEquals(1, IntermediateClass.get5(null)); in testExceptionInIntermediate() 44 assertEquals(10, IntermediateClass.get5(new ExceptionInMainDex())); in testExceptionInIntermediate() 45 assertEquals(11, IntermediateClass.get5(new ExceptionInSecondaryDex())); in testExceptionInIntermediate() 46 assertEquals(12, IntermediateClass.get5(new ExceptionInMainDex2())); in testExceptionInIntermediate() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmSmsCbTest.java | 53 assertEquals("Unexpected geographical scope decoded", expectedGs, msg in doTestGeographicalScopeValue() 119 assertEquals("Unexpected geographical scope decoded", in testGetGeographicalScopeUmts() 141 assertEquals("Unexpected 7-bit string decoded", in testGetMessageBody7Bit() 171 assertEquals("Unexpected 7-bit string decoded", in testGetMessageBody7BitUmts() 218 assertEquals("Unexpected multipage 7-bit string decoded", in testGetMessageBody7BitMultipageUmts() 241 assertEquals( in testGetMessageBody7BitFull() 273 assertEquals( in testGetMessageBody7BitFullUmts() 298 assertEquals("Unexpected 7-bit string decoded", in testGetMessageBody7BitWithLanguage() 302 assertEquals("Unexpected language indicator decoded", "es", msg.getLanguageCode()); in testGetMessageBody7BitWithLanguage() 323 assertEquals("Unexpected 7-bit string decoded", in testGetMessageBody7BitWithLanguageInBody() [all …]
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TtsEnginesTests.java | 17 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-usa")); in testParseLocaleString() 18 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-USA")); in testParseLocaleString() 19 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en-US")); in testParseLocaleString() 20 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en_us")); in testParseLocaleString() 21 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng_US")); in testParseLocaleString() 22 assertEquals(new Locale("en", "US", "foobar"), in testParseLocaleString() 24 assertEquals(new Locale("en", "", "foobar"), mTtsHelper.parseLocaleString("eng__foobar")); in testParseLocaleString() 28 assertEquals(new Locale("en"), mTtsHelper.parseLocaleString("eng")); in testParseLocaleString() 29 assertEquals(new Locale("en","US","var"), mTtsHelper.parseLocaleString("eng-USA-var")); in testParseLocaleString() 44 assertEquals(Locale.UK, in testNormalizeLocale() [all …]
|