Home
last modified time | relevance | path

Searched refs:newPos (Results 1 – 25 of 27) sorted by relevance

12

/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/
DTestReferenceStringSearch.java102 int[] newPos = new int[count * 2]; in checkAgainstStringSearch() local
106 int newCount = checkNew("lazy", bigText, newPos, newTimer, icuTimer); in checkAgainstStringSearch()
110 int diff = findDifference(icuPos, newPos, oldCount, newCount); in checkAgainstStringSearch()
113 + icuPos[diff] + ", " + newPos[diff]); in checkAgainstStringSearch()
130 private static int checkNew(String key, String bigText, int[] newPos, in checkNew() argument
141 newPos[count++] = range.start; in checkNew()
142 newPos[count++] = range.limit; in checkNew()
147 newPos[count++] = range.start; in checkNew()
148 newPos[count++] = range.limit; in checkNew()
161 private static int checkDirect(String key, String bigText, int[] newPos, in checkDirect() argument
[all …]
/external/pdfium/core/fxcrt/
Dcfx_fileaccess_windows.cpp63 LARGE_INTEGER newPos = {}; in GetPosition() local
64 if (!::SetFilePointerEx(m_hFile, dist, &newPos, FILE_CURRENT)) in GetPosition()
67 return (FX_FILESIZE)newPos.QuadPart; in GetPosition()
76 LARGE_INTEGER newPos = {}; in SetPosition() local
77 if (!::SetFilePointerEx(m_hFile, dist, &newPos, FILE_BEGIN)) in SetPosition()
80 return (FX_FILESIZE)newPos.QuadPart; in SetPosition()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedValueFieldPositionIteratorImpl.java104 FieldPosition newPos = new FieldPosition(new FieldWithValue(spanField, firstIndex)); in addOverlapSpans() local
105 newPos.setBeginIndex(s1a); in addOverlapSpans()
106 newPos.setEndIndex(s1b); in addOverlapSpans()
107 attributes.add(newPos); in addOverlapSpans()
108 newPos = new FieldPosition(new FieldWithValue(spanField, 1 - firstIndex)); in addOverlapSpans()
109 newPos.setBeginIndex(s2a); in addOverlapSpans()
110 newPos.setEndIndex(s2b); in addOverlapSpans()
111 attributes.add(newPos); in addOverlapSpans()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DFormattedValueFieldPositionIteratorImpl.java106 FieldPosition newPos = new FieldPosition(new FieldWithValue(spanField, firstIndex)); in addOverlapSpans() local
107 newPos.setBeginIndex(s1a); in addOverlapSpans()
108 newPos.setEndIndex(s1b); in addOverlapSpans()
109 attributes.add(newPos); in addOverlapSpans()
110 newPos = new FieldPosition(new FieldWithValue(spanField, 1 - firstIndex)); in addOverlapSpans()
111 newPos.setBeginIndex(s2a); in addOverlapSpans()
112 newPos.setEndIndex(s2b); in addOverlapSpans()
113 attributes.add(newPos); in addOverlapSpans()
/external/lzma/CPP/7zip/Common/
DLimitedStreams.cpp45 UInt64 newPos = _startOffset + _virtPos; in Read() local
46 if (newPos != _physPos) in Read()
48 _physPos = newPos; in Read()
109 UInt64 newPos = StartOffset + ((UInt64)phyBlock << BlockSizeLog) + offsetInBlock; in Read() local
110 if (newPos != _physPos) in Read()
112 _physPos = newPos; in Read()
291 UInt64 newPos = _startOffset + _virtPos; in Read() local
292 UInt64 offsetInCache = newPos - _cachePhyPos; in Read()
294 if (newPos >= _cachePhyPos && in Read()
303 if (newPos != _physPos) in Read()
[all …]
/external/javassist/src/main/javassist/expr/
DNewExpr.java45 int newPos; field in NewExpr
54 newPos = np; in NewExpr()
162 int op = iterator.byteAt(newPos + 3); in canReplace()
164 return ((iterator.byteAt(newPos + 4) == Opcode.DUP2_X2 in canReplace()
165 && iterator.byteAt(newPos + 5) == Opcode.POP2)) ? 6 : 4; in canReplace()
167 && iterator.byteAt(newPos + 4) == Opcode.SWAP) in canReplace()
188 int pos = newPos; in replace()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DSuperTypesLastSorter.java38 int newPos = i; in sortSuperTypesLast() local
43 newPos = j; in sortSuperTypesLast()
47 if (newPos == i) { in sortSuperTypesLast()
51 fields.add(newPos, f); in sortSuperTypesLast()
/external/apache-commons-io/src/main/java/org/apache/commons/io/input/
DRandomAccessFileInputStream.java145 final long newPos = targetPos > fileLength ? fileLength - 1 : targetPos; in skip() local
146 if (newPos > 0) { in skip()
147 seek(newPos); in skip()
/external/libwebsockets/lib/plat/windows/
Dwindows-file.c108 LARGE_INTEGER newPos; in _lws_plat_file_seek_cur() local
109 if (!SetFilePointerEx((HANDLE)fop_fd->filesystem_priv, zero, &newPos, FILE_CURRENT)) in _lws_plat_file_seek_cur()
114 fop_fd->pos = newPos.QuadPart; in _lws_plat_file_seek_cur()
116 return newPos.QuadPart; in _lws_plat_file_seek_cur()
/external/skia/modules/svg/src/
DSkSVGAttributeParser.cpp56 bool SkSVGAttributeParser::matchStringToken(const char* token, const char** newPos) const { in matchStringToken()
68 if (newPos) { in matchStringToken()
69 *newPos = c; in matchStringToken()
94 const char* newPos; in parseExpectedStringToken() local
95 if (!matchStringToken(expected, &newPos)) { in parseExpectedStringToken()
99 fCurPos = newPos; in parseExpectedStringToken()
119 bool SkSVGAttributeParser::matchHexToken(const char** newPos) const { in matchHexToken()
120 *newPos = fCurPos; in matchHexToken()
121 while (*newPos < fEndPos && is_hex(**newPos)) { ++*newPos; } in matchHexToken()
122 return *newPos != fCurPos; in matchHexToken()
/external/ktfmt/core/src/test/java/com/facebook/ktfmt/kdoc/
DUtilitiesTest.kt35 val newPos = findSamePosition(old, oldCaretIndex, new) in testFindSamePosition() constant
37 val actual = new.substring(0, newPos) + "|" + new.substring(newPos) in testFindSamePosition()
/external/tflite-support/third_party/zlib/contrib/minizip/
Diowin32.c246 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMov… in MySetFilePointerEx() argument
249 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); in MySetFilePointerEx()
257 if ((newPos != NULL) && (fOk)) in MySetFilePointerEx()
259 newPos->LowPart = dwNewPos; in MySetFilePointerEx()
260 newPos->HighPart = lHigh; in MySetFilePointerEx()
/external/rust/crates/libz-sys/src/zlib/contrib/minizip/
Diowin32.c241 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMov… in MySetFilePointerEx() argument
244 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); in MySetFilePointerEx()
252 if ((newPos != NULL) && (fOk)) in MySetFilePointerEx()
254 newPos->LowPart = dwNewPos; in MySetFilePointerEx()
255 newPos->HighPart = lHigh; in MySetFilePointerEx()
/external/zlib/contrib/minizip/
Diowin32.c246 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMov… in MySetFilePointerEx() argument
249 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); in MySetFilePointerEx()
257 if ((newPos != NULL) && (fOk)) in MySetFilePointerEx()
259 newPos->LowPart = dwNewPos; in MySetFilePointerEx()
260 newPos->HighPart = lHigh; in MySetFilePointerEx()
/external/skia/modules/svg/include/
DSkSVGAttributeParser.h104 bool matchStringToken(const char* token, const char** newPos = nullptr) const;
105 bool matchHexToken(const char** newPos) const;
/external/fonttools/Lib/fontTools/ttLib/tables/
DttProgram.py202 newPos = m.regs[0][1]
203 assert newPos >= pos
204 return newPos
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeUnitFormat.java255 int newPos = -1; in parseObject() local
298 newPos = pos.getIndex(); in parseObject()
328 pos.setIndex(newPos); in parseObject()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java253 int newPos = -1; in parseObject() local
296 newPos = pos.getIndex(); in parseObject()
326 pos.setIndex(newPos); in parseObject()
/external/protobuf/csharp/src/Google.Protobuf/
DParsingPrimitives.cs501 int newPos = 0; in ReadRawBytesSlow()
504 Buffer.BlockCopy(chunk, 0, bytes, newPos, chunk.Length); in ReadRawBytesSlow()
505 newPos += chunk.Length; in ReadRawBytesSlow()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/
DParsingPrimitives.cs501 int newPos = 0; in ReadRawBytesSlow()
504 Buffer.BlockCopy(chunk, 0, bytes, newPos, chunk.Length); in ReadRawBytesSlow()
505 newPos += chunk.Length; in ReadRawBytesSlow()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java517 int newPos = decryptedBuffer.position(); in unwrap() local
519 assertEquals(bytesProduced, newPos - prevPos); in unwrap()
527 decryptedBuffer.limit(newPos); in unwrap()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DConscryptEngineTest.java526 int newPos = decryptedBuffer.position(); in unwrap() local
528 assertEquals(bytesProduced, newPos - prevPos); in unwrap()
536 decryptedBuffer.limit(newPos); in unwrap()
/external/OpenCL-CTS/test_conformance/buffers/
Dtest_sub_buffers.cpp356 … size_t newPos = subBuffers[ sbThatFailed ].mOrigin + subBuffers[ sbThatFailed ].mSize - 1; in test_sub_buffers_read_write_core() local
357 i = newPos & ~65535; in test_sub_buffers_read_write_core()
358 j = newPos - i; in test_sub_buffers_read_write_core()
/external/icu/icu4c/source/i18n/
Dtmutfmt.cpp181 int32_t newPos = -1; in parseObject() local
246 newPos = pos.getIndex(); in parseObject()
280 pos.setIndex(newPos); in parseObject()
/external/cronet/third_party/icu/source/i18n/
Dtmutfmt.cpp181 int32_t newPos = -1; in parseObject() local
246 newPos = pos.getIndex(); in parseObject()
280 pos.setIndex(newPos); in parseObject()

12