/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 | 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 | 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 | 160 newTrie->dataLength=UNEWTRIE2_DATA_START_OFFSET; in utrie2_open() 257 uprv_memcpy(trie->data, other->data, (size_t)other->dataLength*4); in cloneBuilder() 259 trie->dataLength=other->dataLength; in cloneBuilder() 265 uprv_memcpy(trie->map, other->map, ((size_t)other->dataLength>>UTRIE2_SHIFT_2)*4); in cloneBuilder() 349 long dataLength=(long)trie->dataLength; in utrie_printLengths() local 350 … long totalLength=(long)sizeof(UTrieHeader)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie_printLengths() 352 indexLength, dataLength, totalLength); in utrie_printLengths() 358 long dataLength=(long)trie->dataLength; in utrie2_printLengths() local 359 … long totalLength=(long)sizeof(UTrie2Header)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie2_printLengths() 361 which, indexLength, dataLength, totalLength); in utrie2_printLengths() [all …]
|
D | utrie2.cpp | 47 return trie->data[trie->dataLength-UTRIE2_DATA_GRANULARITY]; in get32() 173 tempTrie.dataLength=header->shiftedDataLength<<UTRIE2_INDEX_SHIFT; in utrie2_openFromSerialized() 178 tempTrie.highValueIndex=tempTrie.dataLength-UTRIE2_DATA_GRANULARITY; in utrie2_openFromSerialized() 186 actualLength+=tempTrie.dataLength*2; in utrie2_openFromSerialized() 188 actualLength+=tempTrie.dataLength*4; in utrie2_openFromSerialized() 244 int32_t indexLength, dataLength, length, i; in utrie2_openDummy() local 258 dataLength=UTRIE2_DATA_START_OFFSET+UTRIE2_DATA_GRANULARITY; in utrie2_openDummy() 261 length+=dataLength*2; in utrie2_openDummy() 263 length+=dataLength*4; in utrie2_openDummy() 290 trie->dataLength=dataLength; in utrie2_openDummy() [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 | 66 void checkData(const StringAndValue data[], int32_t dataLength); 67 …void checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOption buildOption… 68 UCharsTrie *buildTrie(const StringAndValue data[], int32_t dataLength, 70 void checkFirst(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 71 void checkNext(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 72 void checkNextWithState(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 73 void checkNextString(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 74 void checkIterator(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength); 75 void checkIterator(UCharsTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength); 749 void UCharsTrieTest::checkData(const StringAndValue data[], int32_t dataLength) { in checkData() argument [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | BytesTrieTest.java | 515 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 516 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 517 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 518 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 519 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 522 …private void checkData(StringAndValue data[], int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 523 BytesTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 524 checkFirst(trie, data, dataLength); in checkData() 525 checkNext(trie, data, dataLength); in checkData() 526 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
D | CharsTrieTest.java | 642 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 643 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 644 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 645 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 646 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 649 …private void checkData(StringAndValue[] data, int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 650 CharsTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 651 checkFirst(trie, data, dataLength); in checkData() 652 checkNext(trie, data, dataLength); in checkData() 653 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | BytesTrieTest.java | 514 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 515 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 516 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 517 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 518 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 521 …private void checkData(StringAndValue data[], int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 522 BytesTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 523 checkFirst(trie, data, dataLength); in checkData() 524 checkNext(trie, data, dataLength); in checkData() 525 checkNextWithState(trie, data, dataLength); in checkData() [all …]
|
D | CharsTrieTest.java | 641 private void checkData(StringAndValue data[], int dataLength) { in checkData() argument 642 logln("checkData(dataLength="+dataLength+", fast)"); in checkData() 643 checkData(data, dataLength, StringTrieBuilder.Option.FAST); in checkData() 644 logln("checkData(dataLength="+dataLength+", small)"); in checkData() 645 checkData(data, dataLength, StringTrieBuilder.Option.SMALL); in checkData() 648 …private void checkData(StringAndValue[] data, int dataLength, StringTrieBuilder.Option buildOption… in checkData() argument 649 CharsTrie trie=buildTrie(data, dataLength, buildOption); in checkData() 650 checkFirst(trie, data, dataLength); in checkData() 651 checkNext(trie, data, dataLength); in checkData() 652 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()
|
D | IntTrie.java | 69 int dataLength, latin1Length, i, limit; in IntTrie() local 75 dataLength=latin1Length= INDEX_STAGE_1_SHIFT_<=8 ? 256 : DATA_BLOCK_LENGTH; in IntTrie() 77 dataLength+=DATA_BLOCK_LENGTH; in IntTrie() 79 m_data_=new int[dataLength]; in IntTrie() 80 m_dataLength_=dataLength; in IntTrie()
|
D | Trie2_16.java | 160 for (int i=0; i<dataLength; i++) { in serialize() 163 bytesWritten += dataLength*2; in serialize() 171 return 16+(header.indexLength+dataLength)*2; in getSerializedLength()
|
/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()
|
D | IntTrie.java | 68 int dataLength, latin1Length, i, limit; in IntTrie() local 74 dataLength=latin1Length= INDEX_STAGE_1_SHIFT_<=8 ? 256 : DATA_BLOCK_LENGTH; in IntTrie() 76 dataLength+=DATA_BLOCK_LENGTH; in IntTrie() 78 m_data_=new int[dataLength]; in IntTrie() 79 m_dataLength_=dataLength; in IntTrie()
|
D | Trie2_32.java | 155 for (int i=0; i<dataLength; i++) { in serialize() 158 bytesWritten += dataLength*4; in serialize() 166 return 16+header.indexLength*2+dataLength*4; in getSerializedLength()
|
D | Trie2_16.java | 158 for (int i=0; i<dataLength; i++) { in serialize() 161 bytesWritten += dataLength*2; in serialize() 169 return 16+(header.indexLength+dataLength)*2; in getSerializedLength()
|
/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()
|
/external/webrtc/webrtc/modules/media_file/ |
D | media_file_utility.cc | 708 const size_t dataLength) in WriteWavData() argument 712 "dataLen= %" PRIuS ")", &out, buffer, dataLength); in WriteWavData() 721 if(!out.Write(buffer, dataLength)) in WriteWavData() 725 _bytesWritten += dataLength; in WriteWavData() 726 return static_cast<int32_t>(dataLength); in WriteWavData() 870 const size_t dataLength) in WritePreEncodedData() argument 875 dataLength); in WritePreEncodedData() 885 lengthBuf = (int16_t)dataLength; in WritePreEncodedData() 886 if(dataLength > static_cast<size_t>(std::numeric_limits<int16_t>::max()) || in WritePreEncodedData() 893 if(!out.Write(buffer, dataLength)) in WritePreEncodedData() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/ |
D | Base64Encoder.java | 66 int dataLength = (length - modulus); in encode() local 69 for (int i = off; i < off + dataLength; i += 3) in encode() 92 d1 = data[off + dataLength] & 0xff; in encode() 102 d1 = data[off + dataLength] & 0xff; in encode() 103 d2 = data[off + dataLength + 1] & 0xff; in encode() 116 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4); in encode()
|
/external/icu/icu4c/source/tools/gentest/ |
D | gentest.c | 109 long dataLength; in createData() local 125 dataLength=udata_finish(pData, errorCode); in createData() 133 if(dataLength!=(long)size) { in createData() 135 dataLength, (unsigned long)size); in createData()
|