Home
last modified time | relevance | path

Searched refs:fromString (Results 1 – 25 of 186) sorted by relevance

12345678

/external/guava/guava-tests/test/com/google/common/net/
DHostAndPortTest.java103 hp = HostAndPort.fromString(hpString); in checkFromStringCase()
191 assertEquals(80, HostAndPort.fromString("host:80").getPortOrDefault(123)); in testGetPortOrDefault()
192 assertEquals(123, HostAndPort.fromString("host").getPortOrDefault(123)); in testGetPortOrDefault()
196 HostAndPort hpNoPort1 = HostAndPort.fromString("foo::123"); in testHashCodeAndEquals()
197 HostAndPort hpNoPort2 = HostAndPort.fromString("foo::123"); in testHashCodeAndEquals()
198 HostAndPort hpNoPort3 = HostAndPort.fromString("[foo::123]"); in testHashCodeAndEquals()
204 HostAndPort hpWithPort3 = HostAndPort.fromString("[foo::123]:80"); in testHashCodeAndEquals()
214 assertEquals("::1", HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHost()); in testRequireBracketsForIPv6()
215 assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost()); in testRequireBracketsForIPv6()
217 assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHost()); in testRequireBracketsForIPv6()
[all …]
/external/guava/android/guava-tests/test/com/google/common/net/
DHostAndPortTest.java103 hp = HostAndPort.fromString(hpString); in checkFromStringCase()
191 assertEquals(80, HostAndPort.fromString("host:80").getPortOrDefault(123)); in testGetPortOrDefault()
192 assertEquals(123, HostAndPort.fromString("host").getPortOrDefault(123)); in testGetPortOrDefault()
196 HostAndPort hpNoPort1 = HostAndPort.fromString("foo::123"); in testHashCodeAndEquals()
197 HostAndPort hpNoPort2 = HostAndPort.fromString("foo::123"); in testHashCodeAndEquals()
198 HostAndPort hpNoPort3 = HostAndPort.fromString("[foo::123]"); in testHashCodeAndEquals()
204 HostAndPort hpWithPort3 = HostAndPort.fromString("[foo::123]:80"); in testHashCodeAndEquals()
214 assertEquals("::1", HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHost()); in testRequireBracketsForIPv6()
215 assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost()); in testRequireBracketsForIPv6()
217 assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHost()); in testRequireBracketsForIPv6()
[all …]
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskUtilTest.java51 FieldMaskUtil.isValid(NestedTestAllTypes.class, FieldMaskUtil.fromString("payload"))); in testIsValid()
53 FieldMaskUtil.isValid(NestedTestAllTypes.class, FieldMaskUtil.fromString("nonexist"))); in testIsValid()
56 NestedTestAllTypes.class, FieldMaskUtil.fromString("payload,nonexist"))); in testIsValid()
63 NestedTestAllTypes.getDescriptor(), FieldMaskUtil.fromString("payload"))); in testIsValid()
66 NestedTestAllTypes.getDescriptor(), FieldMaskUtil.fromString("nonexist"))); in testIsValid()
97 FieldMask mask = FieldMaskUtil.fromString(""); in testFromString()
99 mask = FieldMaskUtil.fromString("foo"); in testFromString()
102 mask = FieldMaskUtil.fromString("foo,bar.baz"); in testFromString()
108 mask = FieldMaskUtil.fromString(",foo,,bar,"); in testFromString()
114 mask = FieldMaskUtil.fromString(NestedTestAllTypes.class, ",payload"); in testFromString()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/test/
DKeyboardIdTest.java15 KeyboardId id = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testKeyboardId()
23 KeyboardId keyboardLocale = KeyboardId.fromString("bn-t-k0-windows"); in testFromStringForSimple()
28 KeyboardId keyboardLocale = KeyboardId.fromString("es-US-t-k0-android-768dpi.xml"); in testFromStringForComplex()
34 KeyboardId.fromString("en-US-android"); in testFromStringForInvalid()
42 KeyboardId id1 = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testEqualsTrue()
43 KeyboardId id2 = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testEqualsTrue()
49 KeyboardId id1 = KeyboardId.fromString("de-CH-t-k0-windows-extended-var"); in testEqualsFalse()
50 KeyboardId id2 = KeyboardId.fromString("es-US-t-k0-android-768dpi.xml"); in testEqualsFalse()
DModifierKeyTest.java11 ModifierKey key = ModifierKey.fromString("shiftL"); in testFromString()
17 ModifierKey.fromString("bla"); in testFromStringInvalid()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DPosixAttributeProviderTest.java62 "permissions", PosixFilePermissions.fromString("rw-r--r--"))); in testInitialAttributes()
68 assertSetAndGetSucceeds("permissions", PosixFilePermissions.fromString("rwxrwxrwx")); in testSet()
77 assertSetAndGetSucceedsOnCreate("permissions", PosixFilePermissions.fromString("rwxrwxrwx")); in testSetOnCreate()
100 assertThat(attrs.permissions()).isEqualTo(PosixFilePermissions.fromString("rw-r--r--")); in testView()
110 view.setPermissions(PosixFilePermissions.fromString("rwx------")); in testView()
112 .isEqualTo(PosixFilePermissions.fromString("rwx------")); in testView()
114 .isEqualTo(PosixFilePermissions.fromString("rwx------")); in testView()
120 assertThat(attrs.permissions()).isEqualTo(PosixFilePermissions.fromString("rw-r--r--")); in testAttributes()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestPluralRuleGeneration.java162 FixedDecimal fromString = new FixedDecimal(source); in TestEFixedDecimal()
164 final String fromToString = fromString.toString(); in TestEFixedDecimal()
166 fromString.toString(); // for debugging in TestEFixedDecimal()
168 … if (!assertEquals(rowString + " double vs toString", fExpected, fromString.doubleValue())) { in TestEFixedDecimal()
169 fromString.doubleValue(); // for debugging in TestEFixedDecimal()
171 String pluralActual = test.select(fromString); in TestEFixedDecimal()
176 Map<Operand, Double> operands = getOperandMap(fromString); in TestEFixedDecimal()
178 …ce + (checkString ? " < " : " ≤ ") + source, lastFromString.compareTo(fromString) < (checkString … in TestEFixedDecimal()
179 lastFromString.compareTo(fromString); // for debugging in TestEFixedDecimal()
189 …if (!assertEquals(rowString + " fromString vs fromDoubleAndExponent", fromString, fromDoubleAndExp… in TestEFixedDecimal()
[all …]
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DTestCasesTest.java19 import static io.grpc.testing.integration.TestCases.fromString;
36 fromString("does_not_exist_1234"); in unknownStringThrowsException()
80 testCaseSet.add(TestCases.fromString(testCase)); in testCaseNamesShouldMapToEnums()
83 testCaseSet.add(TestCases.fromString(testCase)); in testCaseNamesShouldMapToEnums()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DModifierKey.java44 public static ModifierKey fromString(String string) { in fromString() method in ModifierKey
68 return fromString(keyType + variant.opposite()); in sibling()
79 return fromString(keyType); in parent()
90 … return ImmutableList.of(fromString(keyType + Variant.LEFT), fromString(keyType + Variant.RIGHT)); in children()
DKeyboardId.java54 public static KeyboardId fromString(String keyboardLocale) { in fromString() method in KeyboardId
61 Platform platform = Platform.fromString(attributeStrings[0]); in fromString()
148 private static Platform fromString(String platform) { in fromString() method in KeyboardId.Platform
/external/guava/android/guava-tests/test/com/google/common/hash/
DHashCodeTest.java217 HashCode hash2 = HashCode.fromString(hash1.toString()); in testRoundTripHashCodeUsingFromString()
233 HashCode.fromString("7f8005ff0z"); in testFromStringFailsWithInvalidHexChar()
242 HashCode.fromString(string); in testFromStringFailsWithUpperCaseString()
250 HashCode.fromString(""); in testFromStringFailsWithShortInputs()
255 HashCode.fromString("7"); in testFromStringFailsWithShortInputs()
259 HashCode unused = HashCode.fromString("7f"); in testFromStringFailsWithShortInputs()
264 HashCode.fromString("7f8"); in testFromStringFailsWithOddLengthInput()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java217 HashCode hash2 = HashCode.fromString(hash1.toString()); in testRoundTripHashCodeUsingFromString()
233 HashCode.fromString("7f8005ff0z"); in testFromStringFailsWithInvalidHexChar()
242 HashCode.fromString(string); in testFromStringFailsWithUpperCaseString()
250 HashCode.fromString(""); in testFromStringFailsWithShortInputs()
255 HashCode.fromString("7"); in testFromStringFailsWithShortInputs()
259 HashCode unused = HashCode.fromString("7f"); in testFromStringFailsWithShortInputs()
264 HashCode.fromString("7f8"); in testFromStringFailsWithOddLengthInput()
/external/llvm-project/llvm/lib/BinaryFormat/
DMsgPackDocumentYAML.cpp70 StringRef DocNode::fromString(StringRef S, StringRef Tag) { in fromString() function in DocNode
117 N.fromString(toString(), ""); in getYAMLTag()
183 return S.fromString(Str, Tag); in input()
212 KeyObj.fromString(Key, ""); in inputOne()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/
DMsgPackDocumentYAML.cpp70 StringRef DocNode::fromString(StringRef S, StringRef Tag) { in fromString() function in DocNode
117 N.fromString(toString(), ""); in getYAMLTag()
183 return S.fromString(Str, Tag); in input()
212 KeyObj.fromString(Key, ""); in inputOne()
/external/icu/icu4c/source/i18n/
Dstandardplural.h68 static Form fromString(const char *keyword, UErrorCode &errorCode) { in fromString() function
78 static Form fromString(const UnicodeString &keyword, UErrorCode &errorCode) { in fromString() function
Dpluralranges.cpp42 … StandardPlural::Form first = StandardPlural::fromString(value.getUnicodeString(status), status); in put()
45 … StandardPlural::Form second = StandardPlural::fromString(value.getUnicodeString(status), status); in put()
48 … StandardPlural::Form result = StandardPlural::fromString(value.getUnicodeString(status), status); in put()
/external/icu/libicu/cts_headers/
Dstandardplural.h68 static Form fromString(const char *keyword, UErrorCode &errorCode) { in fromString() function
78 static Form fromString(const UnicodeString &keyword, UErrorCode &errorCode) { in fromString() function
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRangesTest.java54 final StandardPlural start = StandardPlural.fromString(test[1]); in TestLocaleData()
55 final StandardPlural end = StandardPlural.fromString(test[2]); in TestLocaleData()
56 final StandardPlural expected = StandardPlural.fromString(test[3]); in TestLocaleData()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/cenc/
DProtectionSystemSpecificHeaderBox.java37 …public static byte[] OMA2_SYSTEM_ID = UUIDConverter.convert(UUID.fromString("A2B55680-6F43-11E0-9A…
38 …public static byte[] PLAYREADY_SYSTEM_ID = UUIDConverter.convert(UUID.fromString("9A04F079-9840-42…
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/range/
DStandardPluralRanges.java93 StandardPlural first = StandardPlural.fromString(value.getString()); in put()
95 StandardPlural second = StandardPlural.fromString(value.getString()); in put()
97 StandardPlural result = StandardPlural.fromString(value.getString()); in put()
/external/guava/android/guava/src/com/google/common/net/
DHostAndPort.java133 HostAndPort parsedHost = fromString(host); in fromParts()
150 HostAndPort parsedHost = fromString(host); in fromHost()
165 public static HostAndPort fromString(String hostPortString) { in fromString() method in HostAndPort
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/range/
DStandardPluralRanges.java95 StandardPlural first = StandardPlural.fromString(value.getString()); in put()
97 StandardPlural second = StandardPlural.fromString(value.getString()); in put()
99 StandardPlural result = StandardPlural.fromString(value.getString()); in put()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRangesTest.java51 final StandardPlural start = StandardPlural.fromString(test[1]); in TestLocaleData()
52 final StandardPlural end = StandardPlural.fromString(test[2]); in TestLocaleData()
53 final StandardPlural expected = StandardPlural.fromString(test[3]); in TestLocaleData()
/external/guava/guava/src/com/google/common/net/
DHostAndPort.java133 HostAndPort parsedHost = fromString(host); in fromParts()
150 HostAndPort parsedHost = fromString(host); in fromHost()
165 public static HostAndPort fromString(String hostPortString) { in fromString() method in HostAndPort
/external/autotest/frontend/client/src/autotest/common/
DCustomHistory.java26 public static HistoryToken fromString(String tokenString) { in fromString() method in CustomHistory.HistoryToken
64 token = HistoryToken.fromString(historyTokenString); in processHistoryTokenString()

12345678