/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() 371 int32_t length=trie->dataLength; in countInitial() 388 long dataLength=(long)trie->dataLength; in utrie_printLengths() local 389 … long totalLength=(long)sizeof(UTrieHeader)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie_printLengths() 391 indexLength, dataLength, totalLength); in utrie_printLengths() 397 long dataLength=(long)trie->dataLength; in utrie2_printLengths() local 398 … long totalLength=(long)sizeof(UTrie2Header)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie2_printLengths() [all …]
|
D | umutablecptrie.cpp | 112 int32_t dataLength = 0; member in __anon1a978a9e0111::MutableCodePointTrie 172 uprv_memcpy(data, other.data, (size_t)other.dataLength * 4); in MutableCodePointTrie() 173 dataLength = other.dataLength; in MutableCodePointTrie() 219 errorValue = trie->data.ptr16[trie->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 220 initialValue = trie->data.ptr16[trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 223 errorValue = trie->data.ptr32[trie->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 224 initialValue = trie->data.ptr32[trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 227 errorValue = trie->data.ptr8[trie->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 228 initialValue = trie->data.ptr8[trie->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET]; in fromUCPTrie() 263 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 checkNextWithState64(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 68 void checkNextString(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 69 void checkIterator(const BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 70 void checkIterator(BytesTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength); [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 checkNextWithState64(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 75 void checkNextString(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 76 void checkIterator(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 77 void checkIterator(UCharsTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength); [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | BytesTrieTest.java | 541 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 542 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 543 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 544 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 545 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 548 …private void checkData(StringAndValue data[], int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 549 BytesTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 550 checkFirst(trie, data, dataLength); in checkData() 551 checkNext(trie, data, dataLength); in checkData() 552 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
D | CharsTrieTest.java | 668 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 669 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 670 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 671 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 672 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 675 …private void checkData(StringAndValue[] data, int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 676 CharsTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 677 checkFirst(trie, data, dataLength); in checkData() 678 checkNext(trie, data, dataLength); in checkData() 679 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | BytesTrieTest.java | 538 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 539 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 540 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 541 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 542 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 545 …private void checkData(StringAndValue data[], int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 546 BytesTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 547 checkFirst(trie, data, dataLength); in checkData() 548 checkNext(trie, data, dataLength); in checkData() 549 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
D | CharsTrieTest.java | 665 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 666 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 667 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 668 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 669 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 672 …private void checkData(StringAndValue[] data, int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 673 CharsTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 674 checkFirst(trie, data, dataLength); in checkData() 675 checkNext(trie, data, dataLength); in checkData() 676 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
/external/llvm-project/clang/test/Analysis/ |
D | malloc.mm | 10 void testNSDatafFreeWhenDoneNoError(NSUInteger dataLength) { 12 NSData *nsdata = [NSData dataWithBytesNoCopy:data length:dataLength]; 15 void testNSDataFreeWhenDoneYES(NSUInteger dataLength) { 17 NSData *nsdata = [NSData dataWithBytesNoCopy:data length:dataLength freeWhenDone:1]; // no-warning 20 void testNSDataFreeWhenDoneYES2(NSUInteger dataLength) { 22 …NSData *nsdata = [[NSData alloc] initWithBytesNoCopy:data length:dataLength freeWhenDone:1]; // no… 25 void testNSDataFreeWhenDoneYES2_with_wrapper(NSUInteger dataLength) { 27 Wrapper *nsdata = [[Wrapper alloc] initWithBytesNoCopy:data length:dataLength]; // no-warning 30 void testNSStringFreeWhenDoneYES3(NSUInteger dataLength) { 32 …NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8Stri… [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 …]
|
/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/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/android_icu4j/src/main/java/android/icu/util/ |
D | MutableCodePointTrie.java | 69 builder.dataLength = dataLength; in clone() 115 dataLength = 0; in clear() 394 private int dataLength; field in MutableCodePointTrie 427 int newBlock = dataLength; in allocDataBlock() 442 for (int j = 0; j < dataLength; ++j) { newData[j] = data[j]; } in allocDataBlock() 445 dataLength = newTop; in allocDataBlock() 491 for (int i = 0; i < dataLength; ++i) { in maskValues() 1407 dataLength = newDataLength; in compactTrie() 1408 if (dataLength > (0x3ffff + CodePointTrie.SMALL_DATA_BLOCK_LENGTH)) { in compactTrie() 1456 if (((indexLength ^ dataLength) & 1) != 0) { in build() [all …]
|
D | CodePointTrie.java | 87 this.dataLength = data.getDataLength(); in CodePointTrie() 97 if (nullValueOffset >= dataLength) { in CodePointTrie() 98 nullValueOffset = dataLength - HIGH_VALUE_NEG_DATA_OFFSET; in CodePointTrie() 166 int dataLength = bytes.getChar(); in fromBinary() local 215 dataLength |= ((options & OPTIONS_DATA_LENGTH_MASK) << 4); in fromBinary() 223 actualLength += dataLength * 2; in fromBinary() 225 actualLength += dataLength * 4; in fromBinary() 227 actualLength += dataLength; in fromBinary() 236 char[] data16 = ICUBinary.getChars(bytes, dataLength, 0); in fromBinary() 242 int[] data32 = ICUBinary.getInts(bytes, dataLength, 0); in fromBinary() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | MutableCodePointTrie.java | 70 builder.dataLength = dataLength; in clone() 117 dataLength = 0; in clear() 402 private int dataLength; field in MutableCodePointTrie 435 int newBlock = dataLength; in allocDataBlock() 450 for (int j = 0; j < dataLength; ++j) { newData[j] = data[j]; } in allocDataBlock() 453 dataLength = newTop; in allocDataBlock() 499 for (int i = 0; i < dataLength; ++i) { in maskValues() 1415 dataLength = newDataLength; in compactTrie() 1416 if (dataLength > (0x3ffff + CodePointTrie.SMALL_DATA_BLOCK_LENGTH)) { in compactTrie() 1464 if (((indexLength ^ dataLength) & 1) != 0) { in build() [all …]
|
D | CodePointTrie.java | 94 this.dataLength = data.getDataLength(); in CodePointTrie() 104 if (nullValueOffset >= dataLength) { in CodePointTrie() 105 nullValueOffset = dataLength - HIGH_VALUE_NEG_DATA_OFFSET; in CodePointTrie() 174 int dataLength = bytes.getChar(); in fromBinary() local 223 dataLength |= ((options & OPTIONS_DATA_LENGTH_MASK) << 4); in fromBinary() 231 actualLength += dataLength * 2; in fromBinary() 233 actualLength += dataLength * 4; in fromBinary() 235 actualLength += dataLength; in fromBinary() 244 char[] data16 = ICUBinary.getChars(bytes, dataLength, 0); in fromBinary() 250 int[] data32 = ICUBinary.getInts(bytes, dataLength, 0); in fromBinary() [all …]
|
/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 %zu\n", dataLength, size); in main()
|