/external/caliper/examples/src/main/java/examples/ |
D | VarargsBenchmark.java | 162 int dataLength = data.length; in oneArgument() local 164 dummy += strategy.one(data[i % dataLength]); in oneArgument() 172 int dataLength = data.length; in twoArguments() local 174 dummy += strategy.two(data[i % dataLength], data[(i + 1) % dataLength]); in twoArguments() 182 int dataLength = data.length; in threeArguments() local 185 data[i % dataLength], in threeArguments() 186 data[(i + 1) % dataLength], in threeArguments() 187 data[(i + 2) % dataLength]); in threeArguments() 195 int dataLength = data.length; in fourArguments() local 198 data[i % dataLength], in fourArguments() [all …]
|
/external/icu/icu4c/source/common/ |
D | utrie_swap.cpp | 52 trie.dataLength=udata_readInt32(ds, inTrie->dataLength); in utrie_swap() 59 trie.dataLength<UTRIE_DATA_BLOCK_LENGTH || in utrie_swap() 60 (trie.dataLength&(UTRIE_DATA_GRANULARITY-1))!=0 || in utrie_swap() 61 …((trie.options&UTRIE_OPTIONS_LATIN1_IS_LINEAR)!=0 && trie.dataLength<(UTRIE_DATA_BLOCK_LENGTH+0x10… in utrie_swap() 68 size=sizeof(UTrieHeader)+trie.indexLength*2+trie.dataLength*(dataIs32?4:2); in utrie_swap() 86 ds->swapArray32(ds, (const uint16_t *)(inTrie+1)+trie.indexLength, trie.dataLength*4, in utrie_swap() 89 … ds->swapArray16(ds, inTrie+1, (trie.indexLength+trie.dataLength)*2, outTrie+1, pErrorCode); in utrie_swap() 102 int32_t dataLength, size; in utrie2_swap() local 126 dataLength=(int32_t)trie.shiftedDataLength<<UTRIE2_INDEX_SHIFT; in utrie2_swap() 131 dataLength<UTRIE2_DATA_START_OFFSET in utrie2_swap() [all …]
|
D | unistr_cnv.cpp | 52 int32_t dataLength) { in UnicodeString() argument 55 doCodepageCreate(codepageData, dataLength, 0); in UnicodeString() 71 int32_t dataLength, in UnicodeString() argument 75 doCodepageCreate(codepageData, dataLength, codepage); in UnicodeString() 299 int32_t dataLength, in doCodepageCreate() argument 303 if(codepageData == 0 || dataLength == 0 || dataLength < -1) { in doCodepageCreate() 306 if(dataLength == -1) { in doCodepageCreate() 307 dataLength = (int32_t)uprv_strlen(codepageData); in doCodepageCreate() 319 setToUTF8(StringPiece(codepageData, dataLength)); in doCodepageCreate() 325 if(cloneArrayIfNeeded(dataLength, dataLength, FALSE)) { in doCodepageCreate() [all …]
|
D | ucptrie.cpp | 74 tempTrie.dataLength = in ucptrie_openFromBinary() 75 ((options & UCPTRIE_OPTIONS_DATA_LENGTH_MASK) << 4) | header->dataLength; in ucptrie_openFromBinary() 88 actualLength += tempTrie.dataLength * 2; in ucptrie_openFromBinary() 90 actualLength += tempTrie.dataLength * 4; in ucptrie_openFromBinary() 92 actualLength += tempTrie.dataLength; in ucptrie_openFromBinary() 117 if (nullValueOffset >= trie->dataLength) { in ucptrie_openFromBinary() 118 nullValueOffset = trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET; in ucptrie_openFromBinary() 192 return trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET; in ucptrie_internalSmallU8Index() 268 int32_t di = trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET; in getRange() 402 int32_t di = trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET; in getRange() [all …]
|
D | utrie.cpp | 102 trie->dataLength=j; in utrie_open() 144 uprv_memcpy(trie->data, other->data, (size_t)other->dataLength*4); in utrie_clone() 145 trie->dataLength=other->dataLength; in utrie_clone() 171 *pLength=trie->dataLength; in utrie_getData() 179 newBlock=trie->dataLength; in utrie_allocDataBlock() 185 trie->dataLength=newTop; in utrie_allocDataBlock() 562 _findSameDataBlock(const uint32_t *data, int32_t dataLength, in _findSameDataBlock() argument 567 dataLength-=UTRIE_DATA_BLOCK_LENGTH; in _findSameDataBlock() 569 for(block=0; block<=dataLength; block+=step) { in _findSameDataBlock() 619 for(start=newStart; start<trie->dataLength;) { in utrie_compact() [all …]
|
D | utrie2_builder.cpp | 173 newTrie->dataLength=UNEWTRIE2_DATA_START_OFFSET; in utrie2_open() 278 uprv_memcpy(trie->data, other->data, (size_t)other->dataLength*4); in cloneBuilder() 280 trie->dataLength=other->dataLength; in cloneBuilder() 286 uprv_memcpy(trie->map, other->map, ((size_t)other->dataLength>>UTRIE2_SHIFT_2)*4); in cloneBuilder() 369 int32_t length=trie->dataLength; in countInitial() 386 long dataLength=(long)trie->dataLength; in utrie_printLengths() local 387 … long totalLength=(long)sizeof(UTrieHeader)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie_printLengths() 389 indexLength, dataLength, totalLength); in utrie_printLengths() 395 long dataLength=(long)trie->dataLength; in utrie2_printLengths() local 396 … long totalLength=(long)sizeof(UTrie2Header)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie2_printLengths() [all …]
|
D | umutablecptrie.cpp | 107 int32_t dataLength = 0; member in __anon5a66f5c00111::MutableCodePointTrie 167 uprv_memcpy(data, other.data, (size_t)other.dataLength * 4); in MutableCodePointTrie() 168 dataLength = other.dataLength; in MutableCodePointTrie() 214 errorValue = trie->data.ptr16[trie->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 215 initialValue = trie->data.ptr16[trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 218 errorValue = trie->data.ptr32[trie->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 219 initialValue = trie->data.ptr32[trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 222 errorValue = trie->data.ptr8[trie->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 223 initialValue = trie->data.ptr8[trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 258 dataLength = 0; in clear() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | bytestrietest.cpp | 60 void checkData(const StringAndValue data[], int32_t dataLength); 61 …void checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOption buildOption… 62 BytesTrie *buildTrie(const StringAndValue data[], int32_t dataLength, 64 void checkFirst(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 65 void checkNext(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 66 void checkNextWithState(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 67 void checkNextString(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 68 void checkIterator(const BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 69 void checkIterator(BytesTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength); 601 void BytesTrieTest::checkData(const StringAndValue data[], int32_t dataLength) { in checkData() argument [all …]
|
D | ucharstrietest.cpp | 67 void checkData(const StringAndValue data[], int32_t dataLength); 68 …void checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOption buildOption… 69 UCharsTrie *buildTrie(const StringAndValue data[], int32_t dataLength, 71 void checkFirst(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 72 void checkNext(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 73 void checkNextWithState(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 74 void checkNextString(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 75 void checkIterator(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 76 void checkIterator(UCharsTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength); 750 void UCharsTrieTest::checkData(const StringAndValue data[], int32_t dataLength) { in checkData() argument [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | BytesTrieTest.java | 517 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 518 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 519 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 520 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 521 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 524 …private void checkData(StringAndValue data[], int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 525 BytesTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 526 checkFirst(trie, data, dataLength); in checkData() 527 checkNext(trie, data, dataLength); in checkData() 528 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
D | CharsTrieTest.java | 644 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 645 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 646 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 647 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 648 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 651 …private void checkData(StringAndValue[] data, int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 652 CharsTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 653 checkFirst(trie, data, dataLength); in checkData() 654 checkNext(trie, data, dataLength); in checkData() 655 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | BytesTrieTest.java | 520 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 521 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 522 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 523 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 524 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 527 …private void checkData(StringAndValue data[], int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 528 BytesTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 529 checkFirst(trie, data, dataLength); in checkData() 530 checkNext(trie, data, dataLength); in checkData() 531 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
D | CharsTrieTest.java | 647 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 648 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 649 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 650 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 651 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 654 …private void checkData(StringAndValue[] data, int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 655 CharsTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 656 checkFirst(trie, data, dataLength); in checkData() 657 checkNext(trie, data, dataLength); in checkData() 658 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
/external/clang/test/Analysis/ |
D | malloc.mm | 6 void testNSDatafFreeWhenDoneNoError(NSUInteger dataLength) { 8 NSData *nsdata = [NSData dataWithBytesNoCopy:data length:dataLength]; 11 void testNSDataFreeWhenDoneYES(NSUInteger dataLength) { 13 NSData *nsdata = [NSData dataWithBytesNoCopy:data length:dataLength freeWhenDone:1]; // no-warning 16 void testNSDataFreeWhenDoneYES2(NSUInteger dataLength) { 18 …NSData *nsdata = [[NSData alloc] initWithBytesNoCopy:data length:dataLength freeWhenDone:1]; // no… 21 void testNSDataFreeWhenDoneYES2_with_wrapper(NSUInteger dataLength) { 23 Wrapper *nsdata = [[Wrapper alloc] initWithBytesNoCopy:data length:dataLength]; // no-warning 26 void testNSStringFreeWhenDoneYES3(NSUInteger dataLength) { 28 …NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8Stri… [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Trie2Writable.java | 65 dataLength = UNEWTRIE2_DATA_START_OFFSET; in init() 213 newBlock=dataLength; in allocDataBlock() 233 System.arraycopy(data, 0, newData, 0, dataLength); in allocDataBlock() 237 dataLength=newTop; in allocDataBlock() 343 this.dataLength = tempTrie.dataLength; in uncompact() 585 return data[dataLength-UTRIE2_DATA_GRANULARITY]; in get() 644 private int findSameDataBlock(int dataLength, int otherBlock, int blockLength) { in findSameDataBlock() argument 648 dataLength-=blockLength; in findSameDataBlock() 650 for(block=0; block<=dataLength; block+=UTRIE2_DATA_GRANULARITY) { in findSameDataBlock() 758 for(start=newStart; start<dataLength;) { in compactData() [all …]
|
D | CharTrie.java | 65 int dataLength, latin1Length, i, limit; in CharTrie() local 71 dataLength=latin1Length= INDEX_STAGE_1_SHIFT_<=8 ? 256 : DATA_BLOCK_LENGTH; in CharTrie() 73 dataLength+=DATA_BLOCK_LENGTH; in CharTrie() 75 m_data_=new char[dataLength]; in CharTrie() 76 m_dataLength_=dataLength; in CharTrie()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Trie2Writable.java | 63 dataLength = UNEWTRIE2_DATA_START_OFFSET; in init() 211 newBlock=dataLength; in allocDataBlock() 231 System.arraycopy(data, 0, newData, 0, dataLength); in allocDataBlock() 235 dataLength=newTop; in allocDataBlock() 341 this.dataLength = tempTrie.dataLength; in uncompact() 583 return data[dataLength-UTRIE2_DATA_GRANULARITY]; in get() 642 private int findSameDataBlock(int dataLength, int otherBlock, int blockLength) { in findSameDataBlock() argument 646 dataLength-=blockLength; in findSameDataBlock() 648 for(block=0; block<=dataLength; block+=UTRIE2_DATA_GRANULARITY) { in findSameDataBlock() 756 for(start=newStart; start<dataLength;) { in compactData() [all …]
|
D | CharTrie.java | 64 int dataLength, latin1Length, i, limit; in CharTrie() local 70 dataLength=latin1Length= INDEX_STAGE_1_SHIFT_<=8 ? 256 : DATA_BLOCK_LENGTH; in CharTrie() 72 dataLength+=DATA_BLOCK_LENGTH; in CharTrie() 74 m_data_=new char[dataLength]; in CharTrie() 75 m_dataLength_=dataLength; in CharTrie()
|
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/ |
D | AltsFraming.java | 175 int dataLength = frameLength - FRAME_LENGTH_HEADER_SIZE; in flush() local 177 buffer.putInt(dataLength); in flush() 284 int dataLength = bufferAlias.getInt(); in readBytes() local 285 if (dataLength < FRAME_MESSAGE_TYPE_HEADER_SIZE || dataLength > MAX_DATA_LENGTH) { in readBytes() 286 throw new IllegalArgumentException("Invalid frame length " + dataLength); in readBytes() 289 int frameLength = dataLength + FRAME_LENGTH_HEADER_SIZE; in readBytes() 293 buffer.putInt(dataLength); in readBytes()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | MutableCodePointTrie.java | 73 builder.dataLength = dataLength; in clone() 121 dataLength = 0; in clear() 411 private int dataLength; field in MutableCodePointTrie 444 int newBlock = dataLength; in allocDataBlock() 459 for (int j = 0; j < dataLength; ++j) { newData[j] = data[j]; } in allocDataBlock() 462 dataLength = newTop; in allocDataBlock() 508 for (int i = 0; i < dataLength; ++i) { in maskValues() 1424 dataLength = newDataLength; in compactTrie() 1425 if (dataLength > (0x3ffff + CodePointTrie.SMALL_DATA_BLOCK_LENGTH)) { in compactTrie() 1473 if (((indexLength ^ dataLength) & 1) != 0) { in build() [all …]
|
D | CodePointTrie.java | 102 this.dataLength = data.getDataLength(); in CodePointTrie() 112 if (nullValueOffset >= dataLength) { in CodePointTrie() 113 nullValueOffset = dataLength - HIGH_VALUE_NEG_DATA_OFFSET; in CodePointTrie() 183 int dataLength = bytes.getChar(); in fromBinary() local 232 dataLength |= ((options & OPTIONS_DATA_LENGTH_MASK) << 4); in fromBinary() 240 actualLength += dataLength * 2; in fromBinary() 242 actualLength += dataLength * 4; in fromBinary() 244 actualLength += dataLength; in fromBinary() 253 char[] data16 = ICUBinary.getChars(bytes, dataLength, 0); in fromBinary() 259 int[] data32 = ICUBinary.getInts(bytes, dataLength, 0); in fromBinary() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | MutableCodePointTrie.java | 72 builder.dataLength = dataLength; in clone() 119 dataLength = 0; in clear() 404 private int dataLength; field in MutableCodePointTrie 437 int newBlock = dataLength; in allocDataBlock() 452 for (int j = 0; j < dataLength; ++j) { newData[j] = data[j]; } in allocDataBlock() 455 dataLength = newTop; in allocDataBlock() 501 for (int i = 0; i < dataLength; ++i) { in maskValues() 1417 dataLength = newDataLength; in compactTrie() 1418 if (dataLength > (0x3ffff + CodePointTrie.SMALL_DATA_BLOCK_LENGTH)) { in compactTrie() 1466 if (((indexLength ^ dataLength) & 1) != 0) { in build() [all …]
|
D | CodePointTrie.java | 98 this.dataLength = data.getDataLength(); in CodePointTrie() 108 if (nullValueOffset >= dataLength) { in CodePointTrie() 109 nullValueOffset = dataLength - HIGH_VALUE_NEG_DATA_OFFSET; in CodePointTrie() 178 int dataLength = bytes.getChar(); in fromBinary() local 227 dataLength |= ((options & OPTIONS_DATA_LENGTH_MASK) << 4); in fromBinary() 235 actualLength += dataLength * 2; in fromBinary() 237 actualLength += dataLength * 4; in fromBinary() 239 actualLength += dataLength; in fromBinary() 248 char[] data16 = ICUBinary.getChars(bytes, dataLength, 0); in fromBinary() 254 int[] data32 = ICUBinary.getInts(bytes, dataLength, 0); in fromBinary() [all …]
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsFramingTest.java | 91 int dataLength = AltsFraming.getMaxDataLength(); in parserFrameLengthMaxOk() local 94 ByteBuffer.allocate(AltsFraming.getFrameLengthHeaderSize() + dataLength + 1); in parserFrameLengthMaxOk() 96 buffer.putInt(dataLength); // write invalid length in parserFrameLengthMaxOk() 98 buffer.put(new byte[dataLength - AltsFraming.getFrameMessageTypeHeaderSize()]); // write data in parserFrameLengthMaxOk() 111 int dataLength = AltsFraming.getFrameMessageTypeHeaderSize(); in parserFrameLengthZeroOk() local 114 ByteBuffer.allocate(AltsFraming.getFrameLengthHeaderSize() + dataLength + 1); in parserFrameLengthZeroOk() 116 buffer.putInt(dataLength); // write invalid length in parserFrameLengthZeroOk()
|
/external/icu/icu4c/source/samples/udata/ |
D | writer.c | 72 long dataLength; in main() local 101 dataLength=udata_finish(pData, &errorCode); in main() 109 if(dataLength!=(long)size) { in main() 110 fprintf(stderr, "Error: data length %ld != calculated size %lu\n", dataLength, size); in main()
|