/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationDataReader.java | 99 static void read(CollationTailoring base, ByteBuffer inBytes, in read() argument 101 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read() 106 int inLength = inBytes.remaining(); in read() 110 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read() 117 inIndexes[i] = inBytes.getInt(); in read() 123 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read() 160 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 176 ICUBinary.skipBytes(inBytes, length); in read() 191 inBytes.get(reorderTable); in read() 197 ICUBinary.skipBytes(inBytes, length); in read() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationDataReader.java | 100 static void read(CollationTailoring base, ByteBuffer inBytes, in read() argument 102 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read() 107 int inLength = inBytes.remaining(); in read() 111 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read() 118 inIndexes[i] = inBytes.getInt(); in read() 124 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read() 161 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 177 ICUBinary.skipBytes(inBytes, length); in read() 192 inBytes.get(reorderTable); in read() 198 ICUBinary.skipBytes(inBytes, length); in read() [all …]
|
/external/icu/icu4c/source/common/ |
D | ucol_swp.cpp | 93 const uint8_t *inBytes; in swapFormatVersion3() local 111 inBytes=(const uint8_t *)inData; in swapFormatVersion3() 155 if(inBytes!=outBytes) { in swapFormatVersion3() 156 uprv_memcpy(outBytes, inBytes, header.size); in swapFormatVersion3() 188 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3() 201 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3() 208 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3() 212 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3() 219 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3() 225 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3() [all …]
|
D | rbbidata.cpp | 324 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap() local 325 RBBIDataHeader *rbbiDH = (RBBIDataHeader *)inBytes; in ubrk_swap() 370 if (inBytes != outBytes) { in ubrk_swap() 385 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap() 387 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap() 396 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap() 398 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap() 403 utrie2_swap(ds, inBytes+ds->readUInt32(rbbiDH->fTrie), ds->readUInt32(rbbiDH->fTrieLen), in ubrk_swap() 407 …ds->swapArray16(ds, inBytes+ds->readUInt32(rbbiDH->fRuleSource), ds->readUInt32(rbbiDH->fRuleSourc… in ubrk_swap() 411 …ds->swapArray32(ds, inBytes+ds->readUInt32(rbbiDH->fStatusTable), ds->readUInt32(rbbiDH->fStatusTa… in ubrk_swap() [all …]
|
D | ucnv_bld.cpp | 1332 const uint8_t *inBytes; in ucnv_swap() local 1378 inBytes=(const uint8_t *)inData+headerSize; in ucnv_swap() 1382 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_swap() 1418 inBytes+=staticDataSize; in ucnv_swap() 1427 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_swap() 1522 inExtIndexes=(const int32_t *)(inBytes+extOffset); in ucnv_swap() 1535 if(inBytes!=outBytes) { in ucnv_swap() 1536 uprv_memcpy(outBytes, inBytes, size); in ucnv_swap() 1551 const char *inBaseName=(const char *)inBytes+count; in ucnv_swap() 1561 ds->swapArray32(ds, inBytes+offset, (int32_t)count, in ucnv_swap() [all …]
|
D | ucnv_u8.cpp | 76 int32_t i, inBytes; in ucnv_toUnicode_UTF8() local 81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8() 102 inBytes = U8_COUNT_BYTES_NON_ASCII(ch); /* lookup current sequence length */ in ucnv_toUnicode_UTF8() 106 while (i < inBytes) in ucnv_toUnicode_UTF8() 111 if (!icu::UTF8::isValidTrail(ch, static_cast<uint8_t>(ch2), i, inBytes) && in ucnv_toUnicode_UTF8() 124 cnv->mode = inBytes; in ucnv_toUnicode_UTF8() 131 if (i == inBytes && (!isCESU8 || i <= 3)) in ucnv_toUnicode_UTF8() 134 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8() 194 int32_t i, inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local 199 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() [all …]
|
D | dictionarydata.cpp | 166 const uint8_t *inBytes; in udict_swap() local 186 inBytes = (const uint8_t *)inData + headerSize; in udict_swap() 189 inIndexes = (const int32_t *)inBytes; in udict_swap() 212 if (inBytes != outBytes) { in udict_swap() 213 uprv_memcpy(outBytes, inBytes, size); in udict_swap() 217 ds->swapArray32(ds, inBytes, sizeof(indexes), outBytes, pErrorCode); in udict_swap() 223 … ds->swapArray16(ds, inBytes + offset, nextOffset - offset, outBytes + offset, pErrorCode); in udict_swap()
|
D | unames.cpp | 1841 const uint8_t *inBytes; in uchar_swapNames() local 1873 inBytes=(const uint8_t *)inData+headerSize; in uchar_swapNames() 1876 algNamesOffset=ds->readUInt32(((const uint32_t *)inBytes)[3]); in uchar_swapNames() 1880 (uint32_t)length<(algNamesOffset=ds->readUInt32(((const uint32_t *)inBytes)[3])) in uchar_swapNames() 1892 count=ds->readUInt32(*((const uint32_t *)(inBytes+offset))); in uchar_swapNames() 1896 inRange=(const AlgorithmicRange *)(inBytes+offset); in uchar_swapNames() 1910 if(inBytes!=outBytes) { in uchar_swapNames() 1911 uprv_memcpy(outBytes, inBytes, length); in uchar_swapNames() 1915 tokenStringOffset=ds->readUInt32(((const uint32_t *)inBytes)[0]); in uchar_swapNames() 1916 groupsOffset=ds->readUInt32(((const uint32_t *)inBytes)[1]); in uchar_swapNames() [all …]
|
D | usprep.cpp | 780 const uint8_t *inBytes; in usprep_swap() local 811 inBytes=(const uint8_t *)inData+headerSize; in usprep_swap() 814 inIndexes=(const int32_t *)inBytes; in usprep_swap() 846 if(inBytes!=outBytes) { in usprep_swap() 847 uprv_memcpy(outBytes, inBytes, size); in usprep_swap() 854 ds->swapArray32(ds, inBytes, count, outBytes, pErrorCode); in usprep_swap() 859 utrie_swap(ds, inBytes+offset, count, outBytes+offset, pErrorCode); in usprep_swap() 864 ds->swapArray16(ds, inBytes+offset, count, outBytes+offset, pErrorCode); in usprep_swap()
|
D | loadednormalizer2impl.cpp | 85 const uint8_t *inBytes=(const uint8_t *)udata_getMemory(memory); in load() local 86 const int32_t *inIndexes=(const int32_t *)inBytes; in load() 96 inBytes+offset, nextOffset-offset, NULL, in load() 104 const uint16_t *inExtraData=(const uint16_t *)(inBytes+offset); in load() 108 const uint8_t *inSmallFCD=inBytes+offset; in load()
|
D | ucnvsel.cpp | 410 const uint8_t *inBytes = (const uint8_t *)inData + headerSize; in ucnvsel_swap() local 414 const int32_t *inIndexes = (const int32_t *)inBytes; in ucnvsel_swap() 432 if(inBytes != outBytes) { in ucnvsel_swap() 433 uprv_memcpy(outBytes, inBytes, size); in ucnvsel_swap() 440 ds->swapArray32(ds, inBytes, count, outBytes, status); in ucnvsel_swap() 445 utrie2_swap(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap() 450 ds->swapArray32(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap() 455 ds->swapInvChars(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap()
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsHandshakerClientTest.java | 124 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeFailure() local 125 handshaker.startServerHandshake(inBytes); in startServerHandshakeFailure() 137 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeSuccess() local 138 ByteBuffer outFrame = handshaker.startServerHandshake(inBytes); in startServerHandshakeSuccess() 144 assertEquals(IN_BYTES_SIZE - BYTES_CONSUMED, inBytes.remaining()); in startServerHandshakeSuccess() 152 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeEmptyOutFrame() local 153 ByteBuffer outFrame = handshaker.startServerHandshake(inBytes); in startServerHandshakeEmptyOutFrame() 159 assertEquals(IN_BYTES_SIZE - BYTES_CONSUMED, inBytes.remaining()); in startServerHandshakeEmptyOutFrame() 167 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeWithPrefixBuffer() local 168 inBytes.position(PREFIX_POSITION); in startServerHandshakeWithPrefixBuffer() [all …]
|
/external/icu/icu4c/source/tools/toolutil/ |
D | swapimpl.cpp | 105 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap() local 119 const int32_t *inIndexes=reinterpret_cast<const int32_t *>(inBytes); in upname_swap() 134 ds->swapArray32(ds, inBytes, numBytesIndexesAndValueMaps, outBytes, pErrorCode); in upname_swap() 137 if(inBytes!=outBytes) { in upname_swap() 139 inBytes+numBytesIndexesAndValueMaps, in upname_swap() 316 const uint8_t *inBytes; in ucase_swap() local 350 inBytes=(const uint8_t *)inData+headerSize; in ucase_swap() 353 inIndexes=(const int32_t *)inBytes; in ucase_swap() 382 if(inBytes!=outBytes) { in ucase_swap() 383 uprv_memcpy(outBytes, inBytes, size); in ucase_swap() [all …]
|
D | pkgitems.cpp | 370 const uint8_t *inBytes, int32_t length, in ures_enumDependencies() argument 376 res_read(&resData, pInfo, inBytes, length, pErrorCode); in ures_enumDependencies() 448 const uint8_t *inBytes, int32_t length, in ucnv_enumDependencies() argument 469 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_enumDependencies() 480 inBytes+=staticDataSize; in ucnv_enumDependencies() 489 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_enumDependencies() 532 const char *inBaseName=(const char *)inBytes+mbcsHeaderLength*4; in ucnv_enumDependencies() 618 const uint8_t *inBytes=pItem->data+itemHeaderLength; in enumDependencies() local 621 … ucnv_enumDependencies(ds, pItem->name, pInfo, inBytes, length, check, context, &errorCode); in enumDependencies()
|
/external/icu/icu4c/source/i18n/ |
D | collationdatareader.cpp | 47 CollationDataReader::read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength, in read() argument 51 if(inBytes == NULL || (0 <= inLength && inLength < 24)) { in read() 55 const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes); in read() 66 inBytes += headerLength; in read() 72 if(inBytes == NULL || (0 <= inLength && inLength < 8)) { in read() 76 const int32_t *inIndexes = reinterpret_cast<const int32_t *>(inBytes); in read() 120 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read() 150 reorderTable = inBytes + offset; in read() 171 UTRIE2_32_VALUE_BITS, inBytes + offset, length, NULL, in read() 190 data->ces = reinterpret_cast<const int64_t *>(inBytes + offset); in read() [all …]
|
D | collationroot.cpp | 62 const uint8_t *inBytes = static_cast<const uint8_t *>(udata_getMemory(t->memory)); in load() local 63 CollationDataReader::read(NULL, inBytes, udata_getLength(t->memory), *t, errorCode); in load()
|
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/ |
D | AltsHandshakerClient.java | 98 private void setStartServerFields(HandshakerReq.Builder req, ByteBuffer inBytes) { in setStartServerFields() argument 105 .setInBytes(ByteString.copyFrom(inBytes.duplicate())); in setStartServerFields() 198 public ByteBuffer startServerHandshake(ByteBuffer inBytes) throws GeneralSecurityException { in startServerHandshake() argument 201 setStartServerFields(req, inBytes); in startServerHandshake() 209 inBytes.position(inBytes.position() + resp.getBytesConsumed()); in startServerHandshake() 222 public ByteBuffer next(ByteBuffer inBytes) throws GeneralSecurityException { in next() argument 228 .setInBytes(ByteString.copyFrom(inBytes.duplicate())) in next() 237 inBytes.position(inBytes.position() + resp.getBytesConsumed()); in next()
|
/external/icu/icu4c/source/tools/icuswap/ |
D | icuswap.cpp | 343 const uint8_t *inBytes; in udata_swapPackage() local 409 inBytes=(const uint8_t *)inData+headerSize; in udata_swapPackage() 410 inEntries=(const UDataOffsetTOCEntry *)(inBytes+4); in udata_swapPackage() 414 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage() 422 itemLength=udata_swap(ds, inBytes+offset, -1, NULL, pErrorCode); in udata_swapPackage() 437 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage() 458 ds->swapArray32(ds, inBytes, 4, outBytes, pErrorCode); in udata_swapPackage() 468 udata_swapInvStringBlock(ds, inBytes+offset, itemLength, outBytes+offset, pErrorCode); in udata_swapPackage() 492 entryName=(char *)inBytes+ds->readUInt32(inEntries[i].nameOffset); in udata_swapPackage() 529 uprv_memcpy(outBytes, inBytes, 4); in udata_swapPackage() [all …]
|
/external/libese/apps/boot/card/src/com/android/verifiedboot/storage/ |
D | VersionStorage.java | 92 public boolean restore(byte[] inBytes, short inBytesOffset, short inBytesLength) { in restore() argument 97 if (inBytes[0] != EXPORT_VERSION) { in restore() 101 Util.arrayCopy(inBytes, inBytesOffset, storage, (short) 0, inBytesLength); in restore()
|
D | BasicLock.java | 82 public boolean restore(byte[] inBytes, short inBytesOffset, in restore() argument 87 Util.arrayCopy(inBytes, inBytesOffset, in restore()
|
D | BackupInterface.java | 27 boolean restore(byte[] inBytes, short inBytesOffset, short inBytesLength); in restore() argument
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | DataLayout.cpp | 222 static unsigned inBytes(unsigned Bits) { in inBytes() function 287 unsigned PointerMemSize = inBytes(getInt(Tok)); in parseSpecifier() 296 unsigned PointerABIAlign = inBytes(getInt(Tok)); in parseSpecifier() 309 PointerPrefAlign = inBytes(getInt(Tok)); in parseSpecifier() 317 IndexSize = inBytes(getInt(Tok)); in parseSpecifier() 351 unsigned ABIAlign = inBytes(getInt(Tok)); in parseSpecifier() 360 PrefAlign = inBytes(getInt(Tok)); in parseSpecifier() 380 StackNaturalAlign = inBytes(getInt(Tok)); in parseSpecifier()
|
/external/llvm/lib/IR/ |
D | DataLayout.cpp | 217 static unsigned inBytes(unsigned Bits) { in inBytes() function 262 unsigned PointerMemSize = inBytes(getInt(Tok)); in parseSpecifier() 271 unsigned PointerABIAlign = inBytes(getInt(Tok)); in parseSpecifier() 280 PointerPrefAlign = inBytes(getInt(Tok)); in parseSpecifier() 315 unsigned ABIAlign = inBytes(getInt(Tok)); in parseSpecifier() 324 PrefAlign = inBytes(getInt(Tok)); in parseSpecifier() 344 StackNaturalAlign = inBytes(getInt(Tok)); in parseSpecifier()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUResourceBundleReader.java | 186 ByteBuffer inBytes; in createInstance() local 189 inBytes = ICUBinary.getData(loader, fullName, itemPath); in createInstance() 190 if (inBytes == null) { in createInstance() 199 inBytes = ICUBinary.getByteBufferFromInputStreamAndCloseStream(stream); in createInstance() 201 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loader); in createInstance() 214 private ICUResourceBundleReader(ByteBuffer inBytes, in ICUResourceBundleReader() argument 217 init(inBytes); in ICUResourceBundleReader() 241 private void init(ByteBuffer inBytes) throws IOException { in init() argument 242 dataVersion = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in init() 243 int majorFormatVersion = inBytes.get(16); in init() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICUResourceBundleReader.java | 188 ByteBuffer inBytes; in createInstance() local 191 inBytes = ICUBinary.getData(loader, fullName, itemPath); in createInstance() 192 if (inBytes == null) { in createInstance() 201 inBytes = ICUBinary.getByteBufferFromInputStreamAndCloseStream(stream); in createInstance() 203 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loader); in createInstance() 216 private ICUResourceBundleReader(ByteBuffer inBytes, in ICUResourceBundleReader() argument 219 init(inBytes); in ICUResourceBundleReader() 243 private void init(ByteBuffer inBytes) throws IOException { in init() argument 244 dataVersion = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in init() 245 int majorFormatVersion = inBytes.get(16); in init() [all …]
|