Home
last modified time | relevance | path

Searched refs:lineLength (Results 1 – 25 of 46) 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/cronet/tot/third_party/icu/source/test/intltest/
Ddatadrivennumberformattestsuite.cpp189 int32_t lineLength; in readLine() local
190 const char16_t *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.cpp172 int32_t lineLength; in testPermutations() local
174 const char16_t* lineBuf = ucbuf_readline(f.getAlias(), &lineLength, status); in testPermutations()
179 UnicodeString expectedLine(lineBuf, lineLength - 1); in testPermutations()
185 if (!quick && ucbuf_readline(f.getAlias(), &lineLength, status) != nullptr) { in testPermutations()
Dcollationtest.cpp991 int32_t lineLength; in readNonEmptyLine() local
992 const char16_t *line = ucbuf_readline(f, &lineLength, errorCode); in readNonEmptyLine()
999 const char16_t *comment = u_memchr(line, 0x23, lineLength); // '#' in readNonEmptyLine()
1001 lineLength = (int32_t)(comment - line); in readNonEmptyLine()
1003 while(lineLength > 0 && isCROrLF(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
1005 while(lineLength > 0 && isSpace(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
1006 if(lineLength != 0) { in readNonEmptyLine()
1007 fileLine.setTo(false, line, lineLength); in readNonEmptyLine()
/external/icu/icu4c/source/test/intltest/
Ddatadrivennumberformattestsuite.cpp188 int32_t lineLength; in readLine() local
189 const char16_t *line = ucbuf_readline(f, &lineLength, &status); in readLine()
199 while(lineLength > 0 && isCROrLF(line[lineLength - 1])) { --lineLength; } in readLine()
200 fFileLine.setTo(false, line, lineLength); in readLine()
201 while(lineLength > 0 && isSpace(line[lineLength - 1])) { --lineLength; } in readLine()
202 if (lineLength == 0) { in readLine()
Dnumbertest_permutation.cpp172 int32_t lineLength; in testPermutations() local
174 const char16_t* lineBuf = ucbuf_readline(f.getAlias(), &lineLength, status); in testPermutations()
179 UnicodeString expectedLine(lineBuf, lineLength - 1); in testPermutations()
185 if (!quick && ucbuf_readline(f.getAlias(), &lineLength, status) != nullptr) { in testPermutations()
Dcollationtest.cpp1005 int32_t lineLength; in readNonEmptyLine() local
1006 const char16_t *line = ucbuf_readline(f, &lineLength, errorCode); in readNonEmptyLine()
1013 const char16_t *comment = u_memchr(line, 0x23, lineLength); // '#' in readNonEmptyLine()
1015 lineLength = static_cast<int32_t>(comment - line); in readNonEmptyLine()
1017 while(lineLength > 0 && isCROrLF(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
1019 while(lineLength > 0 && isSpace(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
1020 if(lineLength != 0) { in readNonEmptyLine()
1021 fileLine.setTo(false, line, lineLength); in readNonEmptyLine()
/external/cronet/stable/third_party/icu/source/test/intltest/
Ddatadrivennumberformattestsuite.cpp189 int32_t lineLength; in readLine() local
190 const char16_t *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.cpp172 int32_t lineLength; in testPermutations() local
174 const char16_t* lineBuf = ucbuf_readline(f.getAlias(), &lineLength, status); in testPermutations()
179 UnicodeString expectedLine(lineBuf, lineLength - 1); in testPermutations()
185 if (!quick && ucbuf_readline(f.getAlias(), &lineLength, status) != nullptr) { in testPermutations()
Dcollationtest.cpp991 int32_t lineLength; in readNonEmptyLine() local
992 const char16_t *line = ucbuf_readline(f, &lineLength, errorCode); in readNonEmptyLine()
999 const char16_t *comment = u_memchr(line, 0x23, lineLength); // '#' in readNonEmptyLine()
1001 lineLength = (int32_t)(comment - line); in readNonEmptyLine()
1003 while(lineLength > 0 && isCROrLF(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
1005 while(lineLength > 0 && isSpace(line[lineLength - 1])) { --lineLength; } in readNonEmptyLine()
1006 if(lineLength != 0) { in readNonEmptyLine()
1007 fileLine.setTo(false, line, lineLength); in readNonEmptyLine()
/external/cronet/tot/third_party/icu/source/tools/gendict/
Dgendict.cpp224 int32_t lineLength; in readLine() local
225 const char16_t *line = ucbuf_readline(f, &lineLength, errorCode); in readLine()
228 const char16_t *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/cronet/stable/third_party/icu/source/tools/gendict/
Dgendict.cpp224 int32_t lineLength; in readLine() local
225 const char16_t *line = ucbuf_readline(f, &lineLength, errorCode); in readLine()
228 const char16_t *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/icu/icu4c/source/tools/gendict/
Dgendict.cpp228 int32_t lineLength; in readLine() local
229 const char16_t *line = ucbuf_readline(f, &lineLength, errorCode); in readLine()
232 const char16_t *comment = u_memchr(line, 0x23, lineLength); // '#' in readLine()
234 lineLength = static_cast<int32_t>(comment - line); in readLine()
236 …while(lineLength > 0 && (line[lineLength - 1] == CARRIAGE_RETURN_CHARACTER || line[lineLength - 1]… in readLine()
238 while(lineLength > 0 && u_isspace(line[lineLength - 1])) { --lineLength; } in readLine()
239 fileLine.setTo(false, line, lineLength); in readLine()
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/
DShadowNativeDiscretePathEffectTest.java84 int lineLength = END_X - START_X; in testDiscretePathEffect() local
86 assertTrue(numGreenPixels >= lineLength); in testDiscretePathEffect()
92 assertTrue(intersect < lineLength); in testDiscretePathEffect()
94 assertTrue(intersect >= lineLength / SEGMENT_LENGTH); in testDiscretePathEffect()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DTouchCatcherView.java36 private double lineLength = 0.6; // Fraction of view width field in TouchCatcherView
99 int lineStart = (int) (w * (1 - lineLength) / 2); in onDraw()
100 int lineEnd = (int) (w * (1 + lineLength) / 2); in onDraw()
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/components/
DAxisBase.java566 public void enableGridDashedLine(float lineLength, float spaceLength, float phase) { in enableGridDashedLine() argument
568 lineLength, spaceLength in enableGridDashedLine()
618 public void enableAxisLineDashedLine(float lineLength, float spaceLength, float phase) { in enableAxisLineDashedLine() argument
620 lineLength, spaceLength in enableAxisLineDashedLine()
DLimitLine.java127 public void enableDashedLine(float lineLength, float spaceLength, float phase) { in enableDashedLine() argument
129 lineLength, spaceLength in enableDashedLine()
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/data/
DLineScatterCandleRadarDataSet.java85 public void enableDashedHighlightLine(float lineLength, float spaceLength, float phase) { in enableDashedHighlightLine() argument
87 lineLength, spaceLength in enableDashedHighlightLine()
DLineDataSet.java221 public void enableDashedLine(float lineLength, float spaceLength, float phase) { in enableDashedLine() argument
223 lineLength, spaceLength in enableDashedLine()
/external/jsoncpp/src/lib_json/
Djson_writer.cpp566 ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultilineArray() local
572 lineLength += static_cast<ArrayIndex>(childValues_[index].length()); in isMultilineArray()
575 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultilineArray()
787 ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultilineArray() local
793 lineLength += static_cast<ArrayIndex>(childValues_[index].length()); in isMultilineArray()
796 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultilineArray()
1067 ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]' in isMultilineArray() local
1073 lineLength += static_cast<ArrayIndex>(childValues_[index].length()); in isMultilineArray()
1076 isMultiLine = isMultiLine || lineLength >= rightMargin_; in isMultilineArray()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java478 int lineLength = 1; in test_generateCertificate_AnyLineLength_Success() local
484 while (lineLength < (maxLineLength - 4)) { in test_generateCertificate_AnyLineLength_Success()
485 int end = offset + lineLength; in test_generateCertificate_AnyLineLength_Success()
491 offset += lineLength; in test_generateCertificate_AnyLineLength_Success()
499 throw new Exception("Fail at line length " + lineLength, e); in test_generateCertificate_AnyLineLength_Success()
505 lineLength++; in test_generateCertificate_AnyLineLength_Success()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java467 int lineLength = 1; in test_generateCertificate_AnyLineLength_Success() local
473 while (lineLength < (maxLineLength - 4)) { in test_generateCertificate_AnyLineLength_Success()
474 int end = offset + lineLength; in test_generateCertificate_AnyLineLength_Success()
480 offset += lineLength; in test_generateCertificate_AnyLineLength_Success()
488 throw new Exception("Fail at line length " + lineLength, e); in test_generateCertificate_AnyLineLength_Success()
494 lineLength++; in test_generateCertificate_AnyLineLength_Success()
/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/skia/tools/viewer/
DChineseFlingSlide.cpp217 void createRandomLine(SkUnichar glyphs[45], int lineLength) { in createRandomLine() argument
218 for (auto i = 0; i < lineLength; ++i) { in createRandomLine()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DGenerateEnums.java128 int lineLength = in showCurrencies() local
131 printRow(Log.getLog(), sorted.get(name), name, "currency", null, lineLength); in showCurrencies() local
861 int lineLength) { in printRow() argument
896 if (prefix.length() > lineLength - (printedCodeName.length() + 1)) { in printRow()
898 int lastFit = prefix.lastIndexOf(' ', lineLength - (printedCodeName.length() + 1) - 2); in printRow()
905 " ", (lineLength - (prefix.length() + printedCodeName.length() + 1)))); in printRow()

12