Home
last modified time | relevance | path

Searched refs:currentOffset (Results 1 – 25 of 43) sorted by relevance

12

/external/replicaisland/src/com/replica/replicaisland/
DConversationDialogActivity.java97 int currentOffset = 0; in formatPages() local
107 int fittingChars = paint.breakText(text, currentOffset, textLength, true, maxWidth, null); in formatPages()
109 if (currentOffset + fittingChars < textLength) { in formatPages()
112 int lastSpace = TextUtils.lastIndexOf(text, ' ', currentOffset + fittingChars - 1); in formatPages()
115 lastSpace = currentOffset + fittingChars - 1; in formatPages()
119 currentOffset = lastSpace + 1; in formatPages()
122 currentOffset = textLength; in formatPages()
125 if (lineCount >= maxLinesPerPage || currentOffset >= textLength) { in formatPages()
129 currentPage.text = spannedText.subSequence(lastPageStart, currentOffset); in formatPages()
134 newPage.text = spannedText.subSequence(lastPageStart, currentOffset); in formatPages()
[all …]
/external/icu/icu4c/source/common/
Ducnvscsu.cpp1022 uint32_t currentOffset; in _SCSUFromUnicodeWithOffsets() local
1050 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1097 } else if((delta=c-currentOffset)<=0x7f) { in _SCSUFromUnicodeWithOffsets()
1135 if((delta=c-currentOffset)<=0x7f) { in _SCSUFromUnicodeWithOffsets()
1145 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1147 c=((uint32_t)(SC0+dynamicWindow)<<8)|(c-currentOffset)|0x80; in _SCSUFromUnicodeWithOffsets()
1155 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]=offset; in _SCSUFromUnicodeWithOffsets()
1157 … c=((uint32_t)SDX<<24)|((uint32_t)dynamicWindow<<21)|((uint32_t)code<<8)|(c-currentOffset)|0x80; in _SCSUFromUnicodeWithOffsets()
1189 currentOffset=scsu->fromUDynamicOffsets[dynamicWindow]; in _SCSUFromUnicodeWithOffsets()
1191 c=((uint32_t)(SC0+dynamicWindow)<<8)|(c-currentOffset)|0x80; in _SCSUFromUnicodeWithOffsets()
[all …]
/external/skqp/src/gpu/vk/
DGrVkUniformHandler.cpp180 uint32_t* currentOffset, in get_ubo_aligned_offset() argument
188 uint32_t offsetDiff = *currentOffset & alignmentMask; in get_ubo_aligned_offset()
192 *uniformOffset = *currentOffset + offsetDiff; in get_ubo_aligned_offset()
197 *currentOffset = *uniformOffset + elementSize * arrayCount; in get_ubo_aligned_offset()
199 *currentOffset = *uniformOffset + grsltype_to_vk_size(type); in get_ubo_aligned_offset()
241 uint32_t* currentOffset; in internalAddUniformArray() local
244 currentOffset = &fCurrentGeometryUBOOffset; in internalAddUniformArray()
247 currentOffset = &fCurrentFragmentUBOOffset; in internalAddUniformArray()
249 get_ubo_aligned_offset(&uni.fUBOffset, currentOffset, type, arrayCount); in internalAddUniformArray()
/external/cldr/tools/java/org/unicode/cldr/util/
DZoneInflections.java111 int currentOffset = zone.getOffset(currentDate); in ZoneInflections() local
112 if (currentOffset != lastOffset) { // Binary Search in ZoneInflections()
113 if (currentOffset < minOffset) in ZoneInflections()
114 minOffset = currentOffset; in ZoneInflections()
115 if (currentOffset > maxOffset) in ZoneInflections()
116 maxOffset = currentOffset; in ZoneInflections()
118 int lowOffset = currentOffset; in ZoneInflections()
137 lastOffset = currentOffset; in ZoneInflections()
DDictionary.java500 int currentOffset = matcher.getOffset(); in growToOffset() local
509 setOffsets(length + 1, 1, currentOffset + 1); in growToOffset()
510 buffer.append(source.charAt(currentOffset)); in growToOffset()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneAliasTest.java278 int currentOffset = zone.getOffset(currentDate); in Zone() local
279 if (currentOffset != lastOffset) { // Binary Search in Zone()
280 if (currentOffset < minOffset) minOffset = currentOffset; in Zone()
281 if (currentOffset > maxOffset) maxOffset = currentOffset; in Zone()
283 if (currentOffset < minRecentOffset) minRecentOffset = currentOffset; in Zone()
284 if (currentOffset > maxRecentOffset) maxRecentOffset = currentOffset; in Zone()
300 lastOffset = currentOffset; in Zone()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneAliasTest.java275 int currentOffset = zone.getOffset(currentDate); in Zone() local
276 if (currentOffset != lastOffset) { // Binary Search in Zone()
277 if (currentOffset < minOffset) minOffset = currentOffset; in Zone()
278 if (currentOffset > maxOffset) maxOffset = currentOffset; in Zone()
280 if (currentOffset < minRecentOffset) minRecentOffset = currentOffset; in Zone()
281 if (currentOffset > maxRecentOffset) maxRecentOffset = currentOffset; in Zone()
297 lastOffset = currentOffset; in Zone()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetSCSU.java628 private int currentOffset; field in CharsetSCSU.CharsetEncoderSCSU
652 currentOffset = data.fromUDynamicOffsets[dynamicWindow]; in encodeLoop()
809 …} else if(((delta=(c-currentOffset))&UConverterConstants.UNSIGNED_INT_MASK)<=0x7f && !AfterGetTrai… in loop()
838 if(((delta=(c-currentOffset))&UConverterConstants.UNSIGNED_INT_MASK)<=0x7f){ in loop()
848 currentOffset = data.fromUDynamicOffsets[dynamicWindow]; in loop()
850 c = ((SC0+dynamicWindow)<<8 | (c-currentOffset)|0x80); in loop()
859 currentOffset = data.fromUDynamicOffsets[dynamicWindow]=offset; in loop()
862 (code<<8)| (c- currentOffset) |0x80); in loop()
900 currentOffset = data.fromUDynamicOffsets[dynamicWindow]; in loop()
902 c = ((SC0+window)<<8) | (c- currentOffset) | 0x80; in loop()
[all …]
/external/brotli/csharp/org/brotli/dec/
DHuffman.cs129 int currentOffset = tableOffset; in BuildHuffmanTable()
136 currentOffset += tableSize; in BuildHuffmanTable()
141 … rootTable[tableOffset + low] = (tableBits + rootBits) << 16 | (currentOffset - tableOffset - low); in BuildHuffmanTable()
143 …ReplicateValue(rootTable, currentOffset + (key >> rootBits), step, tableSize, (len - rootBits) << … in BuildHuffmanTable()
/external/brotli/java/org/brotli/dec/
DHuffman.java118 int currentOffset = tableOffset; in buildHuffmanTable() local
122 currentOffset += tableSize; in buildHuffmanTable()
128 (tableBits + rootBits) << 16 | (currentOffset - tableOffset - low); in buildHuffmanTable()
130 replicateValue(tableGroup, currentOffset + (key >> rootBits), step, tableSize, in buildHuffmanTable()
/external/skia/src/gpu/vk/
DGrVkUniformHandler.cpp191 static uint32_t get_aligned_offset(uint32_t* currentOffset, in get_aligned_offset() argument
200 uint32_t offsetDiff = *currentOffset & alignmentMask; in get_aligned_offset()
204 int32_t uniformOffset = *currentOffset + offsetDiff; in get_aligned_offset()
210 *currentOffset = uniformOffset + elementSize * arrayCount; in get_aligned_offset()
212 *currentOffset = uniformOffset + grsltype_to_vk_size(type, layout); in get_aligned_offset()
387 uint32_t currentOffset = fCurrentOffsets[layout]; in getRTHeightOffset() local
388 return get_aligned_offset(&currentOffset, kFloat_GrSLType, 0, layout); in getRTHeightOffset()
DGrVkPipelineStateBuilder.cpp329 SkASSERT(!SkToBool(fUniformHandler.currentOffset() & 0x3)); in finalize()
330 pushConstantRange.size = fUniformHandler.currentOffset(); in finalize()
380 fUniformHandler.currentOffset(), in finalize()
/external/python/cryptography/docs/development/custom-vectors/arc4/
Dverify_arc4.go48 var currentOffset uint64 = 0
50 for currentOffset <= offset {
52 currentOffset += uint64(len(plaintext))
/external/skia/src/gpu/
DGrSPIRVUniformHandler.cpp187 uint32_t get_ubo_offset(uint32_t* currentOffset, GrSLType type, int arrayCount) { in get_ubo_offset() argument
193 uint32_t offsetDiff = *currentOffset & alignmentMask; in get_ubo_offset()
197 uint32_t uniformOffset = *currentOffset + offsetDiff; in get_ubo_offset()
202 *currentOffset = uniformOffset + elementSize * arrayCount; in get_ubo_offset()
204 *currentOffset = uniformOffset + grsltype_to_size(type); in get_ubo_offset()
DGrStagingBufferManager.cpp21 size_t currentOffset = fBuffers[i].fOffset; in allocateStagingBufferSlice() local
22 offset = ((currentOffset + requiredAlignment - 1)/requiredAlignment)*requiredAlignment; in allocateStagingBufferSlice()
/external/skqp/src/gpu/mtl/
DGrMtlUniformHandler.mm174 // the new uniform, and currentOffset is updated to be the offset to the end of the new uniform.
176 uint32_t* currentOffset,
180 uint32_t offsetDiff = *currentOffset & alignmentMask;
184 *uniformOffset = *currentOffset + offsetDiff;
189 *currentOffset = *uniformOffset + elementSize * arrayCount;
191 *currentOffset = *uniformOffset + grsltype_to_mtl_size(type);
233 uint32_t* currentOffset;
236 currentOffset = &fCurrentGeometryUBOOffset;
239 currentOffset = &fCurrentFragmentUBOOffset;
241 get_ubo_aligned_offset(&uni.fUBOffset, currentOffset, type, arrayCount);
/external/angle/src/libANGLE/renderer/metal/
Dmtl_occlusion_query_pool.mm49 uint32_t currentOffset =
59 else if (currentOffset + kOcclusionQueryResultSize > mRenderPassResultsPool->size())
76 query->setFirstAllocatedVisibilityOffset(currentOffset);
81 ASSERT(currentOffset ==
88 if (currentOffset == 0)
/external/ImageMagick/coders/
Dpalm.c698 currentOffset, in WritePALMImage() local
762 currentOffset=0; in WritePALMImage()
993 offset=SeekBlob(image,currentOffset+6,SEEK_SET); in WritePALMImage()
995 offset=SeekBlob(image,currentOffset+12,SEEK_SET); in WritePALMImage()
1000 offset=SeekBlob(image,currentOffset+20,SEEK_SET); in WritePALMImage()
1011 offset=SeekBlob(image,currentOffset+offset,SEEK_SET); in WritePALMImage()
1013 currentOffset-offset)); in WritePALMImage()
1025 offset=SeekBlob(image,currentOffset+10,SEEK_SET); in WritePALMImage()
1026 nextDepthOffset=(size_t) ((GetBlobSize(image)-currentOffset)/4); in WritePALMImage()
1028 currentOffset=(MagickOffsetType) GetBlobSize(image); in WritePALMImage()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DCompositeReadableBuffer.java92 int currentOffset = destOffset; in readBytes()
95 buffer.readBytes(dest, currentOffset, length); in readBytes()
96 currentOffset += length; in readBytes()
/external/freetype/src/gxvalid/
Dgxvmort1.c149 FT_Short currentOffset; in gxv_mort_subtable_type1_entry_validate() local
162 currentOffset = (FT_Short)( glyphOffset_p->ul ); in gxv_mort_subtable_type1_entry_validate()
175 gxv_mort_subtable_type1_offset_to_subst_validate( currentOffset, in gxv_mort_subtable_type1_entry_validate()
/external/lz4/lib/
Dlz4.c758 || ((tableType == byU16) && cctx->currentOffset + (unsigned)inputSize >= 0xFFFFU) in LZ4_prepareTable()
759 || ((tableType == byU32) && cctx->currentOffset > 1 GB) in LZ4_prepareTable()
765 cctx->currentOffset = 0; in LZ4_prepareTable()
776 if (cctx->currentOffset != 0 && tableType == byU32) { in LZ4_prepareTable()
778 cctx->currentOffset += 64 KB; in LZ4_prepareTable()
805 U32 const startIndex = cctx->currentOffset; in LZ4_compress_generic()
814 …const U32 dictDelta = (dictDirective == usingDictCtx) ? startIndex - dictCtx->currentOffset : 0; … in LZ4_compress_generic()
827 dictionary + dictSize - dictCtx->currentOffset : in LZ4_compress_generic()
856 cctx->currentOffset += (U32)inputSize; in LZ4_compress_generic()
1220 if (ctx->currentOffset) { in LZ4_compress_fast_extState_fastReset()
[all …]
/external/skia/src/gpu/mtl/
DGrMtlUniformHandler.mm188 // the new uniform, and currentOffset is updated to be the offset to the end of the new uniform.
189 static uint32_t get_ubo_aligned_offset(uint32_t* currentOffset,
197 uint32_t offsetDiff = *currentOffset & alignmentMask;
201 uint32_t uniformOffset = *currentOffset + offsetDiff;
204 *currentOffset = uniformOffset + grsltype_to_mtl_size(type) * arrayCount;
206 *currentOffset = uniformOffset + grsltype_to_mtl_size(type);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
DSampleList.java140 long currentOffset = 0; in initIsoFile() local
146 long contentOffset = currentOffset + ((MediaDataBox) b).getHeader().limit(); in initIsoFile()
154 currentOffset += currentSize; in initIsoFile()
/external/skqp/src/core/
DSkStream.cpp340 const size_t currentOffset = fOffset; in peek() local
343 nonConstThis->fOffset = currentOffset; in peek()
786 size_t currentOffset = fCurrentOffset; in peek() local
789 size_t bytesFromCurrent = SkTMin(current->written() - currentOffset, bytesLeftToPeek); in peek()
790 memcpy(buffer, current->start() + currentOffset, bytesFromCurrent); in peek()
794 currentOffset = 0; in peek()
/external/skia/src/core/
DSkStream.cpp351 const size_t currentOffset = fOffset; in peek() local
354 nonConstThis->fOffset = currentOffset; in peek()
797 size_t currentOffset = fCurrentOffset; in peek() local
800 size_t bytesFromCurrent = std::min(current->written() - currentOffset, bytesLeftToPeek); in peek()
801 memcpy(buffer, current->start() + currentOffset, bytesFromCurrent); in peek()
805 currentOffset = 0; in peek()

12