Home
last modified time | relevance | path

Searched refs:stringBuilder (Results 1 – 25 of 29) sorted by relevance

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DCssParser.java55 private final StringBuilder stringBuilder; field in CssParser
59 stringBuilder = new StringBuilder(); in CssParser()
73 stringBuilder.setLength(0); in parseBlock()
81 while ((selector = parseSelector(styleInput, stringBuilder)) != null) { in parseBlock()
82 if (!RULE_START.equals(parseNextToken(styleInput, stringBuilder))) { in parseBlock()
91 token = parseNextToken(styleInput, stringBuilder); in parseBlock()
95 parseStyleDeclaration(styleInput, style, stringBuilder); in parseBlock()
115 private static String parseSelector(ParsableByteArray input, StringBuilder stringBuilder) { in parseSelector() argument
125 String token = parseNextToken(input, stringBuilder); in parseSelector()
137 token = parseNextToken(input, stringBuilder); in parseSelector()
[all …]
/external/webrtc/sdk/android/src/java/org/webrtc/
DGlGenericDrawer.java92 final StringBuilder stringBuilder = new StringBuilder(); in createFragmentShaderString() local
94 stringBuilder.append("#extension GL_OES_EGL_image_external : require\n"); in createFragmentShaderString()
96 stringBuilder.append("precision mediump float;\n"); in createFragmentShaderString()
97 stringBuilder.append("varying vec2 tc;\n"); in createFragmentShaderString()
100 stringBuilder.append("uniform sampler2D y_tex;\n"); in createFragmentShaderString()
101 stringBuilder.append("uniform sampler2D u_tex;\n"); in createFragmentShaderString()
102 stringBuilder.append("uniform sampler2D v_tex;\n"); in createFragmentShaderString()
106 stringBuilder.append("vec4 sample(vec2 p) {\n"); in createFragmentShaderString()
107 stringBuilder.append(" float y = texture2D(y_tex, p).r * 1.16438;\n"); in createFragmentShaderString()
108 stringBuilder.append(" float u = texture2D(u_tex, p).r;\n"); in createFragmentShaderString()
[all …]
/external/cbor-java/src/main/java/co/nstant/in/cbor/model/
DMap.java63 StringBuilder stringBuilder = new StringBuilder(); in toString() local
65 stringBuilder.append("{_ "); in toString()
67 stringBuilder.append("{ "); in toString()
70 stringBuilder.append(key).append(": ").append(map.get(key)).append(", "); in toString()
72 if (stringBuilder.toString().endsWith(", ")) { in toString()
73 stringBuilder.setLength(stringBuilder.length() - 2); in toString()
75 stringBuilder.append(" }"); in toString()
76 return stringBuilder.toString(); in toString()
DArray.java41 StringBuilder stringBuilder = new StringBuilder("["); in toString() local
43 stringBuilder.append("_ "); in toString()
45 stringBuilder.append(Arrays.toString(objects.toArray()).substring(1)); in toString()
46 return stringBuilder.toString(); in toString()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java602 StringBuilder stringBuilder = new StringBuilder(); in renderNetworkEvents() local
604 stringBuilder.append("Received message"); in renderNetworkEvents()
606 stringBuilder.append("Sent message"); in renderNetworkEvents()
608 stringBuilder.append("Unknown"); in renderNetworkEvents()
610 stringBuilder.append(" id="); in renderNetworkEvents()
611 stringBuilder.append(networkEvent.getMessageId()); in renderNetworkEvents()
612 stringBuilder.append(" uncompressed_size="); in renderNetworkEvents()
613 stringBuilder.append(networkEvent.getUncompressedMessageSize()); in renderNetworkEvents()
614 stringBuilder.append(" compressed_size="); in renderNetworkEvents()
615 stringBuilder.append(networkEvent.getCompressedMessageSize()); in renderNetworkEvents()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DTracestateTest.java94 StringBuilder stringBuilder = new StringBuilder(); in allAllowedKeyCharacters() local
96 stringBuilder.append(c); in allAllowedKeyCharacters()
99 stringBuilder.append(c); in allAllowedKeyCharacters()
101 stringBuilder.append('_'); in allAllowedKeyCharacters()
102 stringBuilder.append('-'); in allAllowedKeyCharacters()
103 stringBuilder.append('*'); in allAllowedKeyCharacters()
104 stringBuilder.append('/'); in allAllowedKeyCharacters()
105 String allowedKey = stringBuilder.toString(); in allAllowedKeyCharacters()
145 StringBuilder stringBuilder = new StringBuilder(); in allAllowedValueCharacters() local
150 stringBuilder.append(c); in allAllowedValueCharacters()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Interceptors/
DClientInterceptorTest.cs71 var stringBuilder = new StringBuilder(); in CheckInterceptorOrderInClientInterceptors()
73 stringBuilder.Append("interceptor1"); in CheckInterceptorOrderInClientInterceptors()
75 }).Intercept(new CallbackInterceptor(() => stringBuilder.Append("array1")), in CheckInterceptorOrderInClientInterceptors()
76 new CallbackInterceptor(() => stringBuilder.Append("array2")), in CheckInterceptorOrderInClientInterceptors()
77 new CallbackInterceptor(() => stringBuilder.Append("array3"))) in CheckInterceptorOrderInClientInterceptors()
80 stringBuilder.Append("interceptor2"); in CheckInterceptorOrderInClientInterceptors()
84 stringBuilder.Append("interceptor3"); in CheckInterceptorOrderInClientInterceptors()
88 …Assert.AreEqual("interceptor3interceptor2array1array2array3interceptor1", stringBuilder.ToString()… in CheckInterceptorOrderInClientInterceptors()
111 var stringBuilder = new StringBuilder(); in CountNumberOfRequestsInClientInterceptors()
114 stringBuilder.Append(request); in CountNumberOfRequestsInClientInterceptors()
[all …]
DServerInterceptorTest.cs66 var stringBuilder = new StringBuilder(); in VerifyInterceptorOrdering()
68 .Intercept(new ServerCallContextInterceptor(ctx => stringBuilder.Append("A"))) in VerifyInterceptorOrdering()
69 .Intercept(new ServerCallContextInterceptor(ctx => stringBuilder.Append("B1")), in VerifyInterceptorOrdering()
70 new ServerCallContextInterceptor(ctx => stringBuilder.Append("B2")), in VerifyInterceptorOrdering()
71 new ServerCallContextInterceptor(ctx => stringBuilder.Append("B3"))) in VerifyInterceptorOrdering()
72 .Intercept(new ServerCallContextInterceptor(ctx => stringBuilder.Append("C"))); in VerifyInterceptorOrdering()
77 Assert.AreEqual("CB1B2B3A", stringBuilder.ToString()); in VerifyInterceptorOrdering()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/filer/
DFormattingJavaFileObject.java54 final StringBuilder stringBuilder = new StringBuilder(DEFAULT_FILE_SIZE); in openWriter() local
58 stringBuilder.append(chars, start, end - start); in openWriter()
63 stringBuilder.append(string); in openWriter()
73 CharSource.wrap(stringBuilder), in openWriter()
85 writer.append(stringBuilder.toString()); in openWriter()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DLowerCaseBase16Encoding.java55 StringBuilder stringBuilder = new StringBuilder(bytes.length * 2); in encodeToString() local
58 stringBuilder.append(ENCODING[b]); in encodeToString()
59 stringBuilder.append(ENCODING[b | 0x100]); in encodeToString()
61 return stringBuilder.toString(); in encodeToString()
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DVideoFrameBufferTest.java275 StringBuilder stringBuilder, int width, int height, ByteBuffer plane, int stride) {
280 stringBuilder.append(", ");
282 stringBuilder.append(value);
284 stringBuilder.append("\n");
290 final StringBuilder stringBuilder = new StringBuilder();
291 stringBuilder.append(
293 stringBuilder.append("Y-plane:\n");
294 printPlane(stringBuilder, buffer.getWidth(), buffer.getHeight(), buffer.getDataY(),
298 stringBuilder.append("U-plane:\n");
299 printPlane(stringBuilder, chromaWidth, chromaHeight, buffer.getDataU(), buffer.getStrideU());
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/sym/
DTestByteBasedSymbols.java111 StringBuilder stringBuilder = new StringBuilder(); in testIssue207() local
112 stringBuilder.append("{\n"); in testIssue207()
113 stringBuilder.append(" \"expectedGCperPosition\": null"); in testIssue207()
115 stringBuilder.append(",\n \"").append(i + 1).append("\": null"); in testIssue207()
117 stringBuilder.append("\n}"); in testIssue207()
119 JsonParser p = jsonF.createParser(stringBuilder.toString().getBytes("UTF-8")); in testIssue207()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTimeZoneFinderS.java52 StringBuilder stringBuilder = new StringBuilder(); in readTzlookup() local
59 stringBuilder.append(line); in readTzlookup()
70 return stringBuilder.toString(); in readTzlookup()
DShadowTimeZoneFinder.java45 StringBuilder stringBuilder = new StringBuilder(); in readTzlookup() local
52 stringBuilder.append(line); in readTzlookup()
63 return stringBuilder.toString(); in readTzlookup()
DShadowTimeZoneFinderQ.java46 StringBuilder stringBuilder = new StringBuilder(); in readTzlookup() local
53 stringBuilder.append(line); in readTzlookup()
64 return stringBuilder.toString(); in readTzlookup()
/external/jsilver/src/com/google/clearsilver/jsilver/data/
DAbstractData.java117 StringBuilder stringBuilder = new StringBuilder(); in toString() local
118 toString(stringBuilder, 0); in toString()
119 return stringBuilder.toString(); in toString()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DCompressionTest.cs122 var stringBuilder = new StringBuilder(); in CanReadCompressedMessages()
125 stringBuilder.Append('a'); in CanReadCompressedMessages()
127 var request = stringBuilder.ToString(); in CanReadCompressedMessages()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowEditTextTest.java104 StringBuilder stringBuilder = new StringBuilder(); in stringOfLength() local
107 stringBuilder.append('x'); in stringOfLength()
109 return stringBuilder.toString(); in stringOfLength()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDefaultDownloadIndex.java377 StringBuilder stringBuilder = new StringBuilder(); in encodeStreamKeys() local
380 stringBuilder in encodeStreamKeys()
388 if (stringBuilder.length() > 0) { in encodeStreamKeys()
389 stringBuilder.setLength(stringBuilder.length() - 1); in encodeStreamKeys()
391 return stringBuilder.toString(); in encodeStreamKeys()
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/out/
DKeyboardToXml.java120 StringBuilder stringBuilder = new StringBuilder(); in escapeOutput() local
125 stringBuilder.append(String.format("\\u{%X}", character)); in escapeOutput()
127 stringBuilder.append(UCharacter.toString(character)); in escapeOutput()
130 return stringBuilder.toString(); in escapeOutput()
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java418 StringBuilder stringBuilder = new StringBuilder(30 * (typeArguments.length + 1)); in toString() local
419 stringBuilder.append(typeToString(rawType)); in toString()
422 return stringBuilder.toString(); in toString()
425 stringBuilder.append("<").append(typeToString(typeArguments[0])); in toString()
427 stringBuilder.append(", ").append(typeToString(typeArguments[i])); in toString()
429 return stringBuilder.append(">").toString(); in toString()
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java760 …StringBuilder stringBuilder = new StringBuilder("the possible argument indexes for this method are… in possibleArgumentTypesOf() local
762 stringBuilder.append(" [").append(i); in possibleArgumentTypesOf()
765stringBuilder.append("+] ").append(parameterTypes[i].getComponentType().getSimpleName()).append(" … in possibleArgumentTypesOf()
767 stringBuilder.append("] ").append(parameterTypes[i].getSimpleName()).append("\n"); in possibleArgumentTypesOf()
770 return stringBuilder; in possibleArgumentTypesOf()
/external/auto/value/src/test/java/com/google/auto/value/processor/
DPropertyAnnotationsTest.java254 ImmutableSet.Builder<String> stringBuilder = ImmutableSortedSet.naturalOrder(); in getImports() local
256 stringBuilder.add("import " + clazz.getName() + ";"); in getImports()
258 return stringBuilder.build(); in getImports()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DGenericMetadataSupport.java479 StringBuilder stringBuilder = new StringBuilder(); in rawType() local
481 stringBuilder.append("["); in rawType()
484 …return Class.forName(stringBuilder.append("L").append(rawComponentType.getName()).append(";").toSt… in rawType()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/layer/
DTextLayer.java38 private final StringBuilder stringBuilder = new StringBuilder(2); field in TextLayer
396 stringBuilder.setLength(0); in codePointToString()
399 stringBuilder.appendCodePoint(codePoint); in codePointToString()
402 String str = stringBuilder.toString(); in codePointToString()

12