Home
last modified time | relevance | path

Searched refs:StringWrapper (Results 1 – 25 of 48) sorted by relevance

12

/external/google-smali/dexlib2/src/test/java/com/android/tools/smali/util/
DStringWrapperTest.java33 import com.android.tools.smali.util.StringWrapper;
66 StringWrapper.wrapString("abc\nabcdefabcdef", 6, null)); in testWrapString()
70 StringWrapper.wrapString("abc", 6, new String[3])); in testWrapString()
74 StringWrapper.wrapString("abc", 6, new String[0])); in testWrapString()
78 StringWrapper.wrapString("abc", 6, new String[1])); in testWrapString()
82 StringWrapper.wrapString("", 6, new String[3])); in testWrapString()
86 StringWrapper.wrapString("abcdef", 6, new String[3])); in testWrapString()
90 StringWrapper.wrapString("abcdef\nabcdef", 6, new String[3])); in testWrapString()
94 StringWrapper.wrapString("abc\n\ndef", 6, new String[3])); in testWrapString()
98 StringWrapper.wrapString("\nabcdef", 6, new String[3])); in testWrapString()
[all …]
/external/smali/dexlib2/src/test/java/org/jf/util/
DStringWrapperTest.java66 StringWrapper.wrapString("abc\nabcdefabcdef", 6, null)); in testWrapString()
70 StringWrapper.wrapString("abc", 6, new String[3])); in testWrapString()
74 StringWrapper.wrapString("abc", 6, new String[0])); in testWrapString()
78 StringWrapper.wrapString("abc", 6, new String[1])); in testWrapString()
82 StringWrapper.wrapString("", 6, new String[3])); in testWrapString()
86 StringWrapper.wrapString("abcdef", 6, new String[3])); in testWrapString()
90 StringWrapper.wrapString("abcdef\nabcdef", 6, new String[3])); in testWrapString()
94 StringWrapper.wrapString("abc\n\ndef", 6, new String[3])); in testWrapString()
98 StringWrapper.wrapString("\nabcdef", 6, new String[3])); in testWrapString()
102 StringWrapper.wrapString("\n\nabcdef", 6, new String[3])); in testWrapString()
[all …]
/external/gson/gson/src/test/java/com/google/gson/functional/
DNamingPolicyTest.java24 import com.google.gson.common.TestTypes.StringWrapper;
47 StringWrapper target = new StringWrapper("blah"); in testGsonWithNonDefaultFieldNamingPolicySerialization()
55 StringWrapper deserializedObject = gson.fromJson(target, StringWrapper.class); in testGsonWithNonDefaultFieldNamingPolicyDeserialiation()
61 StringWrapper target = new StringWrapper("blah"); in testGsonWithLowerCaseDashPolicySerialization()
68 StringWrapper target = new StringWrapper("blah"); in testGsonWithLowerCaseDotPolicySerialization()
76 StringWrapper deserializedObject = gson.fromJson(target, StringWrapper.class); in testGsonWithLowerCaseDotPolicyDeserialiation()
83 StringWrapper deserializedObject = gson.fromJson(target, StringWrapper.class); in testGsonWithLowerCaseDashPolicyDeserialiation()
90 StringWrapper target = new StringWrapper("blah"); in testGsonWithLowerCaseUnderscorePolicySerialization()
99 StringWrapper deserializedObject = gson.fromJson(target, StringWrapper.class); in testGsonWithLowerCaseUnderscorePolicyDeserialiation()
131 StringWrapper target = new StringWrapper("blah"); in testGsonWithUpperCamelCaseSpacesPolicySerialiation()
[all …]
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/wrappers/
DParcelableStringWrapper.java23 import com.google.android.enterprise.connectedapps.testapp.StringWrapper;
25 @CustomParcelableWrapper(originalType = StringWrapper.class)
31 private final StringWrapper stringWrapper;
39 Bundler bundler, BundlerType type, StringWrapper stringWrapper) { in of()
43 public StringWrapper get() { in get()
47 private ParcelableStringWrapper(Bundler bundler, BundlerType type, StringWrapper stringWrapper) { in ParcelableStringWrapper()
62 stringWrapper = new StringWrapper(value); in ParcelableStringWrapper()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/
DTestGenericCollectionDeser.java14 static class ListSubClass extends ArrayList<StringWrapper> { }
20 @JsonDeserialize(contentAs=StringWrapper.class)
50 assertEquals(StringWrapper.class, value.getClass()); in testListSubClass()
51 StringWrapper bw = (StringWrapper) value; in testListSubClass()
68 assertEquals(StringWrapper.class, ob.getClass()); in testAnnotatedLStringist()
69 assertEquals("...", ((StringWrapper) ob).str); in testAnnotatedLStringist()
DTestValueAnnotations.java151 final static class StringWrapper class in TestValueAnnotations
155 public StringWrapper(String s) { _string = s; } in StringWrapper() method in TestValueAnnotations.StringWrapper
162 @JsonDeserialize(keyAs=StringWrapper.class)
187 @JsonDeserialize(contentAs=StringWrapper.class)
341 Map<StringWrapper, String> map = (Map<StringWrapper,String>)(Map<?,?>)result._map; in testOverrideKeyClassValid()
343 Map.Entry<StringWrapper, String> en = map.entrySet().iterator().next(); in testOverrideKeyClassValid()
345 StringWrapper key = en.getKey(); in testOverrideKeyClassValid()
346 assertEquals(StringWrapper.class, key.getClass()); in testOverrideKeyClassValid()
373 List<StringWrapper> list = (List<StringWrapper>)result._list; in testOverrideContentClassValid()
376 assertEquals(StringWrapper.class, value.getClass()); in testOverrideContentClassValid()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/mixins/
DTestMixinDeserForCreators.java66 static class StringWrapper { class in TestMixinDeserForCreators
68 private StringWrapper(String s, boolean foo) { _value = s; } in StringWrapper() method in TestMixinDeserForCreators.StringWrapper
71 private static StringWrapper create(String str) { in create()
72 return new StringWrapper(str, false); in create()
77 @JsonCreator static StringWrapper create(String str) { return null; } in create()
139 m.addMixIn(StringWrapper.class, StringWrapperMixIn.class); in testFactoryDelegateMixIn()
140 StringWrapper result = m.readValue("\"a\"", StringWrapper.class); in testFactoryDelegateMixIn()
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/
DStringWrapper.java20 public class StringWrapper { class
23 public StringWrapper(String value) { in StringWrapper() method in StringWrapper
36 if (!(o instanceof StringWrapper)) { in equals()
39 StringWrapper that = (StringWrapper) o; in equals()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DMapWithGenericValuesDeserTest.java26 static class StringWrapper { class in MapWithGenericValuesDeserTest
28 @JsonCreator StringWrapper(String value) { in StringWrapper() method in MapWithGenericValuesDeserTest.StringWrapper
39 @JsonDeserialize(keyAs=StringWrapper.class, contentAs=BooleanWrapper.class)
56 static class StringWrapperValueMap<KEY> extends HashMap<KEY,StringWrapper> { }
112 assertEquals(value.getClass(), StringWrapper.class); in testIntermediateTypes()
113 assertEquals("b", ((StringWrapper) value).str); in testIntermediateTypes()
132 assertEquals(StringWrapper.class, en.getKey().getClass()); in testAnnotatedMap()
134 assertEquals("a", ((StringWrapper) en.getKey()).str); in testAnnotatedMap()
DMapRelatedTypesDeserTest.java32 …List<Map.Entry<Integer,StringWrapper>> stuff = MAPPER.readValue(aposToQuotes("[{'28':'Foo'},{'13':… in testMapEntryWithStringBean()
33 new TypeReference<List<Map.Entry<Integer,StringWrapper>>>() { }); in testMapEntryWithStringBean()
39 StringWrapper sw = stuff.get(1).getValue(); in testMapEntryWithStringBean()
47 new TypeReference<List<Map.Entry<Integer,StringWrapper>>>() { }); in testMapEntryFail()
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DCheckUtf8Test.java37 import proto2_test_check_utf8.TestCheckUtf8.StringWrapper;
59 assertThat(StringWrapper.newBuilder().setReqBytes(UTF8_BYTE_STRING).getReq()) in testBuildRequiredStringWithGoodUtf8()
67 assertThat(StringWrapper.parser().parseFrom(serialized).getReq()) in testParseRequiredStringWithGoodUtf8()
74 StringWrapper.newBuilder().setReqBytes(NON_UTF8_BYTE_STRING); in testBuildRequiredStringWithBadUtf8()
84 StringWrapper.newBuilder().setOptBytes(NON_UTF8_BYTE_STRING); in testBuildOptionalStringWithBadUtf8()
94 StringWrapper.newBuilder().addRepBytes(NON_UTF8_BYTE_STRING); in testBuildRepeatedStringWithBadUtf8()
105 assertParseBadUtf8(StringWrapper.getDefaultInstance(), serialized); in testParseRequiredStringWithBadUtf8()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCheckUtf8Test.java37 import proto2_test_check_utf8.TestCheckUtf8.StringWrapper;
59 assertThat(StringWrapper.newBuilder().setReqBytes(UTF8_BYTE_STRING).getReq()) in testBuildRequiredStringWithGoodUtf8()
67 assertThat(StringWrapper.parseFrom(serialized).getReq()).isEqualTo(UTF8_BYTE_STRING_TEXT); in testParseRequiredStringWithGoodUtf8()
73 StringWrapper.newBuilder().setReqBytes(NON_UTF8_BYTE_STRING); in testBuildRequiredStringWithBadUtf8()
83 StringWrapper.newBuilder().setOptBytes(NON_UTF8_BYTE_STRING); in testBuildOptionalStringWithBadUtf8()
93 StringWrapper.newBuilder().addRepBytes(NON_UTF8_BYTE_STRING); in testBuildRepeatedStringWithBadUtf8()
104 assertParseBadUtf8(StringWrapper.getDefaultInstance(), serialized); in testParseRequiredStringWithBadUtf8()
/external/guava/guava-tests/test/com/google/common/base/
DConverterTest.java106 private static class StringWrapper { class in ConverterTest
109 public StringWrapper(String value) { in StringWrapper() method in ConverterTest.StringWrapper
115 Converter<StringWrapper, String> first = in testAndThen()
116 new Converter<StringWrapper, String>() { in testAndThen()
118 protected String doForward(StringWrapper object) { in testAndThen()
123 protected StringWrapper doBackward(String object) { in testAndThen()
124 return new StringWrapper(object); in testAndThen()
133 Converter<StringWrapper, Long> converter = first.andThen(STR_TO_LONG); in testAndThen()
135 assertEquals(LONG_VAL, converter.convert(new StringWrapper(STR_VAL))); in testAndThen()
/external/guava/android/guava-tests/test/com/google/common/base/
DConverterTest.java106 private static class StringWrapper { class in ConverterTest
109 public StringWrapper(String value) { in StringWrapper() method in ConverterTest.StringWrapper
115 Converter<StringWrapper, String> first = in testAndThen()
116 new Converter<StringWrapper, String>() { in testAndThen()
118 protected String doForward(StringWrapper object) { in testAndThen()
123 protected StringWrapper doBackward(String object) { in testAndThen()
124 return new StringWrapper(object); in testAndThen()
133 Converter<StringWrapper, Long> converter = first.andThen(STR_TO_LONG); in testAndThen()
135 assertEquals(LONG_VAL, converter.convert(new StringWrapper(STR_VAL))); in testAndThen()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTestPropertyTypeInfo.java87 String json = mapper.writeValueAsString(new FieldWrapperBean(new StringWrapper("foo"))); in testSimpleField()
91 assertEquals(StringWrapper.class, bean.value.getClass()); in testSimpleField()
92 assertEquals(((StringWrapper) bean.value).str, "foo"); in testSimpleField()
127 list.add(new MethodWrapperBean(new StringWrapper("x"))); in testSimpleListMethod()
137 assertEquals(StringWrapper.class, bean.value.getClass()); in testSimpleListMethod()
138 assertEquals(((StringWrapper) bean.value).str, "x"); in testSimpleListMethod()
162 MethodWrapperBean[] { new MethodWrapperBean(new StringWrapper("A")) }); in testSimpleArrayMethod()
169 assertEquals(StringWrapper.class, bean.value.getClass()); in testSimpleArrayMethod()
170 assertEquals(((StringWrapper) bean.value).str, "A"); in testSimpleArrayMethod()
DPolymorphicViaRefTypeTest.java34 public AtomicReference<StringWrapper> wrapper;
38 wrapper = new AtomicReference<StringWrapper>(new StringWrapper(str)); in AtomicStringWrapper()
75 StringWrapper w = result.wrapper.get(); in testAtomicRefViaDefaultTyping()
/external/clang/test/Analysis/
Dinitializer.cpp77 class StringWrapper { class
80 StringWrapper(const char *input) : str(strdup(input)) {} // no-warning in StringWrapper() function in StringWrapper
133 struct StringWrapper { struct
137 StringWrapper(bool) {} in StringWrapper() function
141 StringWrapper w(true); in testString()
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DStringWrapperIntegrationTest.java393 assertThat(StringWrapper.wrap(40, formatter.formatSource(input), formatter)).isEqualTo(output); in test()
398 assertThat(StringWrapper.wrap(40, formatter.formatSource(input.replace('\n', '\r')), formatter)) in testCR()
405 StringWrapper.wrap(40, formatter.formatSource(input.replace("\n", "\r\n")), formatter)) in testCRLF()
411 String wrap = StringWrapper.wrap(40, formatter.formatSource(input), formatter); in idempotent()
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DHelpCommand.java39 import org.jf.util.StringWrapper;
85 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, in run()
111 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, in run()
172 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, in run()
/external/google-smali/baksmali/src/main/java/com/android/tools/smali/baksmali/
DHelpCommand.java43 import com.android.tools.smali.util.StringWrapper;
88 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, in run()
114 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, in run()
175 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, in run()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoerceContainersTest.java142 _verifyNoCoercion(StringWrapper[].class); in testPOJOArray()
143 StringWrapper[] result = _readWithCoercion(StringWrapper[].class); in testPOJOArray()
/external/cronet/third_party/protobuf/src/google/protobuf/util/internal/testdata/
Dwrappers.proto48 StringWrapper string_wrapper = 8;
58 StringWrapper string_wrapper_default = 17;
90 message StringWrapper { message
/external/protobuf/src/google/protobuf/util/internal/testdata/
Dwrappers.proto48 StringWrapper string_wrapper = 8;
58 StringWrapper string_wrapper_default = 17;
90 message StringWrapper { message
/external/smali/dexlib2/src/main/java/org/jf/util/
DTwoColumnOutput.java97 leftLines = StringWrapper.wrapString(left, leftWidth, leftLines); in write()
98 rightLines = StringWrapper.wrapString(right, rightWidth, rightLines); in write()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/util/
DTwoColumnOutput.java96 leftLines = StringWrapper.wrapString(left, leftWidth, leftLines); in write()
97 rightLines = StringWrapper.wrapString(right, rightWidth, rightLines); in write()

12