/external/google-smali/dexlib2/src/test/java/com/android/tools/smali/util/ |
D | StringWrapperTest.java | 33 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/ |
D | StringWrapperTest.java | 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() 102 StringWrapper.wrapString("\n\nabcdef", 6, new String[3])); in testWrapString() [all …]
|
/external/gson/gson/src/test/java/com/google/gson/functional/ |
D | NamingPolicyTest.java | 24 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/ |
D | ParcelableStringWrapper.java | 23 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/ |
D | TestGenericCollectionDeser.java | 14 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()
|
D | TestValueAnnotations.java | 151 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/ |
D | TestMixinDeserForCreators.java | 66 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/ |
D | StringWrapper.java | 20 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/ |
D | MapWithGenericValuesDeserTest.java | 26 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()
|
D | MapRelatedTypesDeserTest.java | 32 …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/ |
D | CheckUtf8Test.java | 37 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/ |
D | CheckUtf8Test.java | 37 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/ |
D | ConverterTest.java | 106 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/ |
D | ConverterTest.java | 106 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/ |
D | TestPropertyTypeInfo.java | 87 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()
|
D | PolymorphicViaRefTypeTest.java | 34 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/ |
D | initializer.cpp | 77 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/ |
D | StringWrapperIntegrationTest.java | 393 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/ |
D | HelpCommand.java | 39 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/ |
D | HelpCommand.java | 43 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/ |
D | CoerceContainersTest.java | 142 _verifyNoCoercion(StringWrapper[].class); in testPOJOArray() 143 StringWrapper[] result = _readWithCoercion(StringWrapper[].class); in testPOJOArray()
|
/external/cronet/third_party/protobuf/src/google/protobuf/util/internal/testdata/ |
D | wrappers.proto | 48 StringWrapper string_wrapper = 8; 58 StringWrapper string_wrapper_default = 17; 90 message StringWrapper { message
|
/external/protobuf/src/google/protobuf/util/internal/testdata/ |
D | wrappers.proto | 48 StringWrapper string_wrapper = 8; 58 StringWrapper string_wrapper_default = 17; 90 message StringWrapper { message
|
/external/smali/dexlib2/src/main/java/org/jf/util/ |
D | TwoColumnOutput.java | 97 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/ |
D | TwoColumnOutput.java | 96 leftLines = StringWrapper.wrapString(left, leftWidth, leftLines); in write() 97 rightLines = StringWrapper.wrapString(right, rightWidth, rightLines); in write()
|