Home
last modified time | relevance | path

Searched refs:lineLength (Results 1 – 25 of 34) sorted by relevance

12

/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java155 private final int lineLength; field in Base64Codec
264 public Base64Codec(int lineLength) { in Base64Codec() argument
265 this(lineLength, CHUNK_SEPARATOR); in Base64Codec()
290 public Base64Codec(int lineLength, byte[] lineSeparator) { in Base64Codec() argument
291 this(lineLength, lineSeparator, false); in Base64Codec()
319 public Base64Codec(int lineLength, byte[] lineSeparator, boolean urlSafe) { in Base64Codec() argument
321 lineLength = 0; // disable chunk-separating in Base64Codec()
324 this.lineLength = lineLength > 0 ? (lineLength / 4) * 4 : 0; in Base64Codec()
327 if (lineLength > 0) { in Base64Codec()
483 if (lineLength > 0 && pos > 0) { in encode()
[all …]
/external/icu/icu4c/source/test/intltest/
Ddatadrivennumberformattestsuite.cpp189 int32_t lineLength; in readLine() local
190 const UChar *line = ucbuf_readline(f, &lineLength, &status); in readLine()
200 while(lineLength > 0 && isCROrLF(line[lineLength - 1])) { --lineLength; } in readLine()
201 fFileLine.setTo(FALSE, line, lineLength); in readLine()
202 while(lineLength > 0 && isSpace(line[lineLength - 1])) { --lineLength; } in readLine()
203 if (lineLength == 0) { in readLine()
Dnumbertest_permutation.cpp168 int32_t lineLength; in testPermutations() local
170 const UChar* lineBuf = ucbuf_readline(f.getAlias(), &lineLength, status); in testPermutations()
175 UnicodeString expectedLine(lineBuf, lineLength - 1); in testPermutations()
181 if (!quick && ucbuf_readline(f.getAlias(), &lineLength, status) != nullptr) { in testPermutations()
Dcollationtest.cpp969 int32_t lineLength; in readNonEmptyLine() local
970 const UChar *line = ucbuf_readline(f, &lineLength, errorCode); in readNonEmptyLine()
977 const UChar *comment = u_memchr(line, 0x23, lineLength); // '#' in readNonEmptyLine()
979 lineLength = (int32_t)(comment - line); in readNonEmptyLine()
981 while(lineLength > 0 && isCROrLF(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
983 while(lineLength > 0 && isSpace(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
984 if(lineLength != 0) { in readNonEmptyLine()
985 fileLine.setTo(FALSE, line, lineLength); in readNonEmptyLine()
Dlocalematchertest.cpp563 int32_t lineLength; in testDataDriven() local
568 while ((p = ucbuf_readline(f.getAlias(), &lineLength, errorCode)) != nullptr && in testDataDriven()
570 line.setTo(FALSE, p, lineLength); in testDataDriven()
Drbbimonkeytest.cpp293 int32_t lineLength = 0; in compileRules() local
294 const UChar *lineBuf = ucbuf_readline(rules, &lineLength, &status); in compileRules()
298 UnicodeString line(lineBuf, lineLength); in compileRules()
/external/icu/icu4c/source/tools/gendict/
Dgendict.cpp224 int32_t lineLength; in readLine() local
225 const UChar *line = ucbuf_readline(f, &lineLength, errorCode); in readLine()
228 const UChar *comment = u_memchr(line, 0x23, lineLength); // '#' in readLine()
230 lineLength = (int32_t)(comment - line); in readLine()
232 …while(lineLength > 0 && (line[lineLength - 1] == CARRIAGE_RETURN_CHARACTER || line[lineLength - 1]… in readLine()
234 while(lineLength > 0 && u_isspace(line[lineLength - 1])) { --lineLength; } in readLine()
235 fileLine.setTo(FALSE, line, lineLength); in readLine()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/test/
DTestUtil.kt79 var lineLength = 0 variable
82 if (lineLength > limit) in flushLine()
83 oldOut.print(" ($lineLength chars in total)") in flushLine()
84 val result = lineLength > 0 in flushLine()
85 lineLength = 0 in flushLine()
95 lineLength++ in write()
96 if (lineLength <= limit) in write()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DTouchCatcherView.java35 private double lineLength = 0.6; // Fraction of view width field in TouchCatcherView
94 int lineStart = (int) (w * (1 - lineLength) / 2); in onDraw()
95 int lineEnd = (int) (w * (1 + lineLength) / 2); in onDraw()
/external/jsoncpp/src/lib_json/
Djson_writer.cpp372 int lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultineArray() local
375 lineLength += int(childValues_[index].length()); in isMultineArray()
378 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultineArray()
595 int lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultineArray() local
598 lineLength += int(childValues_[index].length()); in isMultineArray()
601 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultineArray()
/external/angle/third_party/jsoncpp/source/src/lib_json/
Djson_writer.cpp554 ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultilineArray() local
560 lineLength += static_cast<ArrayIndex>(childValues_[index].length()); in isMultilineArray()
563 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultilineArray()
775 ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultilineArray() local
781 lineLength += static_cast<ArrayIndex>(childValues_[index].length()); in isMultilineArray()
784 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultilineArray()
1060 ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultilineArray() local
1066 lineLength += static_cast<ArrayIndex>(childValues_[index].length()); in isMultilineArray()
1069 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultilineArray()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java359 int lineLength = 1; in test_generateCertificate_AnyLineLength_Success() local
365 while (lineLength < (maxLineLength - 4)) { in test_generateCertificate_AnyLineLength_Success()
366 int end = offset + lineLength; in test_generateCertificate_AnyLineLength_Success()
372 offset += lineLength; in test_generateCertificate_AnyLineLength_Success()
380 throw new Exception("Fail at line length " + lineLength, e); in test_generateCertificate_AnyLineLength_Success()
386 lineLength++; in test_generateCertificate_AnyLineLength_Success()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java356 int lineLength = 1; in test_generateCertificate_AnyLineLength_Success() local
362 while (lineLength < (maxLineLength - 4)) { in test_generateCertificate_AnyLineLength_Success()
363 int end = offset + lineLength; in test_generateCertificate_AnyLineLength_Success()
369 offset += lineLength; in test_generateCertificate_AnyLineLength_Success()
377 throw new Exception("Fail at line length " + lineLength, e); in test_generateCertificate_AnyLineLength_Success()
383 lineLength++; in test_generateCertificate_AnyLineLength_Success()
/external/skqp/tools/bookmaker/
DtextParser.cpp46 size_t lineLen = this->lineLength(); in reportWarning()
52 lineLen = err.lineLength(); in reportWarning()
DtextParser.h203 ptrdiff_t lineLength() const { in lineLength() function
540 int max = (int) (this->lineLength()); in trimmedBracketEnd()
553 size_t max = (size_t) (this->lineLength()); in trimmedBracketEnd()
DmdOut.cpp2187 ptrdiff_t lineLength = paragraph.fChar - contentStart; in resolveOut() local
2188 if (lineLength) { in resolveOut()
2189 while (lineLength && contentStart[lineLength - 1] <= ' ') { in resolveOut()
2190 --lineLength; in resolveOut()
2192 string str(contentStart, lineLength); in resolveOut()
2194 fWroteSomething = !!lineLength; in resolveOut()
/external/skia/samplecode/
DSampleChineseFling.cpp212 void createRandomLine(SkUnichar glyphs[45], int lineLength) { in createRandomLine() argument
213 for (auto i = 0; i < lineLength; ++i) { in createRandomLine()
/external/dng_sdk/source/
Ddng_parse_utils.cpp1854 uint32 lineLength = 0; in DumpXMP() local
1865 if (lineLength == 0) in DumpXMP()
1870 lineLength = 5; in DumpXMP()
1880 lineLength = 0; in DumpXMP()
1887 if (lineLength >= 128) in DumpXMP()
1892 lineLength = 5; in DumpXMP()
1901 lineLength += 1; in DumpXMP()
1910 lineLength += 4; in DumpXMP()
1918 if (lineLength != 0) in DumpXMP()
/external/skqp/samplecode/
DSampleChineseFling.cpp232 void createRandomLine(SkUnichar glyphs[45], int lineLength) { in createRandomLine() argument
233 for (auto i = 0; i < lineLength; ++i) { in createRandomLine()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateEnums.java126 int lineLength = " /** Belgian Franc */ BEF," in showCurrencies() local
130 lineLength); in showCurrencies() local
846 String type, Map<String, String> code_replacements, int lineLength) { in printRow() argument
874 if (prefix.length() > lineLength - (printedCodeName.length() + 1)) { in printRow()
876 int lastFit = prefix.lastIndexOf(' ', lineLength in printRow()
882 out.print(Utility.repeat(" ", (lineLength in printRow()
/external/skia/gm/
Ddashing.cpp203 SkScalar lineLength, in drawDashedLines() argument
225 pts[1].set(lineLength, SkIntToScalar(y)); in drawDashedLines()
234 pts[1].set(SkIntToScalar(x), lineLength); in drawDashedLines()
/external/skqp/gm/
Ddashing.cpp210 SkScalar lineLength, in drawDashedLines() argument
232 pts[1].set(lineLength, SkIntToScalar(y)); in drawDashedLines()
241 pts[1].set(SkIntToScalar(x), lineLength); in drawDashedLines()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DStringMsgParser.java163 int lineLength = i - lineStart; in parseSIPMessage() local
167 currentLine = new String(msgBuffer, lineStart, lineLength, "UTF-8"); in parseSIPMessage()
/external/icu/icu4c/source/test/perf/dicttrieperf/
Ddicttrieperf.cpp630 int32_t lineLength=lines[i].len; in call() local
631 for(int32_t j=1; j<lineLength; ++j) { in call()
/external/deqp/framework/common/
DtcuRasterizationVerifier.cpp955 float lineLength = tcu::distance(lineScreenSpace[0], lineScreenSpace[1]); in verifyMultisampleLineGroupRasterization() local
958 while (lineOffset < lineLength) in verifyMultisampleLineGroupRasterization()
965 if (leftoverPhase > lineLength) in verifyMultisampleLineGroupRasterization()
968 d1 = lineLength; in verifyMultisampleLineGroupRasterization()
969 leftoverPhase -= lineLength; in verifyMultisampleLineGroupRasterization()
979 if (d0 + 1.0f > lineLength) in verifyMultisampleLineGroupRasterization()
981 d1 = lineLength; in verifyMultisampleLineGroupRasterization()
982 leftoverPhase = d0 + 1.0f - lineLength; in verifyMultisampleLineGroupRasterization()
1000 d0 /= lineLength; in verifyMultisampleLineGroupRasterization()
1001 d1 /= lineLength; in verifyMultisampleLineGroupRasterization()

12