/frameworks/native/libs/binder/ndk/scripts/ |
D | gen_parcel_helper.py | 65 header = "" 70 header += "/**\n" 71 header += " * Writes " + cpp + " value to the next location in a non-null parcel.\n" 72 header += " *\n" 73 header += " * \\param parcel the parcel to write to.\n" 74 header += " * \\param value the value to write to the parcel.\n" 75 header += " *\n" 76 header += " * \\return STATUS_OK on successful write.\n" 77 header += " */\n" 78 …header += "binder_status_t AParcel_write" + pretty + "(AParcel* parcel, " + cpp + " value) __INTRO… [all …]
|
/frameworks/base/core/jni/ |
D | android_ddm_DdmHandleNativeHeap.cpp | 72 Header header; in DdmHandleNativeHeap_getLeakInfo() local 73 memset(&header, 0, sizeof(header)); in DdmHandleNativeHeap_getLeakInfo() 77 header.mapSize = maps.size(); in DdmHandleNativeHeap_getLeakInfo() 85 header.allocSize = leak_info.overall_size; in DdmHandleNativeHeap_getLeakInfo() 86 header.allocInfoSize = leak_info.info_size; in DdmHandleNativeHeap_getLeakInfo() 87 header.totalMemory = leak_info.total_memory; in DdmHandleNativeHeap_getLeakInfo() 88 header.backtraceSize = leak_info.backtrace_size; in DdmHandleNativeHeap_getLeakInfo() 91 header.mapSize, header.allocSize, header.allocInfoSize, header.totalMemory); in DdmHandleNativeHeap_getLeakInfo() 94 header.signature = DDMS_HEADER_SIGNATURE; in DdmHandleNativeHeap_getLeakInfo() 95 header.version = DDMS_VERSION; in DdmHandleNativeHeap_getLeakInfo() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | OpusHeader.cpp | 93 bool ParseOpusHeader(const uint8_t* data, size_t data_size, OpusHeader* header) { in ParseOpusHeader() argument 101 header->channels = data[kOpusHeaderChannelsOffset]; in ParseOpusHeader() 103 if (header->channels < 1 || header->channels > kMaxChannels) { in ParseOpusHeader() 104 ALOGV("Invalid Header, bad channel count: %d", header->channels); in ParseOpusHeader() 107 header->skip_samples = ReadLE16(data, data_size, kOpusHeaderSkipSamplesOffset); in ParseOpusHeader() 108 header->gain_db = static_cast<int16_t>(ReadLE16(data, data_size, kOpusHeaderGainOffset)); in ParseOpusHeader() 109 header->channel_mapping = data[kOpusHeaderChannelMappingOffset]; in ParseOpusHeader() 110 if (!header->channel_mapping) { in ParseOpusHeader() 111 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader() 115 header->num_streams = 1; in ParseOpusHeader() [all …]
|
/frameworks/base/libs/androidfw/ |
D | Idmap.cpp | 47 bool LoadedIdmap::Lookup(const IdmapEntry_header* header, uint16_t input_entry_id, in Lookup() argument 49 if (input_entry_id < dtohs(header->entry_id_offset)) { in Lookup() 54 input_entry_id -= dtohs(header->entry_id_offset); in Lookup() 55 if (input_entry_id >= dtohs(header->entry_count)) { in Lookup() 60 uint32_t result = dtohl(header->entries[input_entry_id]); in Lookup() 83 const Idmap_header* header = reinterpret_cast<const Idmap_header*>(data.data()); in IsValidIdmapHeader() local 84 if (dtohl(header->magic) != kIdmapMagic) { in IsValidIdmapHeader() 86 dtohl(header->magic), kIdmapMagic); in IsValidIdmapHeader() 90 if (dtohl(header->version) != kIdmapCurrentVersion) { in IsValidIdmapHeader() 94 dtohl(header->version), kIdmapCurrentVersion); in IsValidIdmapHeader() [all …]
|
D | LoadedArsc.cpp | 54 explicit TypeSpecPtrBuilder(const ResTable_typeSpec* header, in TypeSpecPtrBuilder() argument 56 : header_(header), idmap_header_(idmap_header) { in TypeSpecPtrBuilder() 94 static bool VerifyResTableType(const ResTable_type* header) { in VerifyResTableType() argument 95 if (header->id == 0) { in VerifyResTableType() 100 const size_t entry_count = dtohl(header->entryCount); in VerifyResTableType() 107 const size_t offsets_offset = dtohs(header->header.headerSize); in VerifyResTableType() 108 const size_t entries_offset = dtohl(header->entriesStart); in VerifyResTableType() 116 if (entries_offset > dtohl(header->header.size)) { in VerifyResTableType() 142 const size_t chunk_size = dtohl(type->header.size); in VerifyResTableEntry() 252 const size_t offsets_offset = dtohs(type_chunk->header.headerSize); in GetEntryOffset() [all …]
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/ |
D | HeaderRecyclerView.java | 68 private View header; field in HeaderRecyclerView.HeaderAdapter 80 if (header != null) { 88 if (header != null) { 96 if (header != null) { 108 if (header != null) { 143 if (header != null) { in onBindViewHolder() 148 if (header == null) { in onBindViewHolder() 151 if (header.getParent() != null) { in onBindViewHolder() 152 ((ViewGroup) header.getParent()).removeView(header); in onBindViewHolder() 155 mHeaderParent.addView(header); in onBindViewHolder() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SMSDispatcherTest.java.broken | 38 SmsHeader header; 51 header = sms.getUserDataHeader(); 52 assertNotNull(header); 54 assertNotNull(header.concatRef); 55 assertEquals(header.concatRef.refNumber, 85); 56 assertEquals(header.concatRef.msgCount, 2); 57 assertEquals(header.concatRef.seqNumber, 1); 58 assertEquals(header.concatRef.isEightBits, true); 59 assertNotNull(header.portAddrs); 60 assertEquals(header.portAddrs.destPort, 2948); [all …]
|
/frameworks/base/obex/javax/obex/ |
D | ClientSession.java | 100 public HeaderSet connect(final HeaderSet header) throws IOException { in connect() argument 111 if (header != null) { in connect() 112 if (header.nonce != null) { in connect() 114 System.arraycopy(header.nonce, 0, mChallengeDigest, 0, 16); in connect() 116 head = ObexHelper.createHeader(header, false); in connect() 166 public Operation get(HeaderSet header) throws IOException { in get() argument 176 if (header == null) { in get() 179 head = header; in get() 215 public HeaderSet delete(HeaderSet header) throws IOException { in delete() argument 217 Operation op = put(header); in delete() [all …]
|
D | ObexSession.java | 67 public boolean handleAuthChall(HeaderSet header) throws IOException { in handleAuthChall() argument 81 byte[] challenge = ObexHelper.getTagValue((byte)0x00, header.mAuthChall); in handleAuthChall() 82 byte[] option = ObexHelper.getTagValue((byte)0x01, header.mAuthChall); in handleAuthChall() 83 byte[] description = ObexHelper.getTagValue((byte)0x02, header.mAuthChall); in handleAuthChall() 127 header.mAuthChall = null; in handleAuthChall() 160 header.mAuthResp = new byte[38 + userName.length]; in handleAuthChall() 161 header.mAuthResp[36] = (byte)0x01; in handleAuthChall() 162 header.mAuthResp[37] = (byte)userName.length; in handleAuthChall() 163 System.arraycopy(userName, 0, header.mAuthResp, 38, userName.length); in handleAuthChall() 165 header.mAuthResp = new byte[36]; in handleAuthChall() [all …]
|
/frameworks/base/cmds/idmap2/tests/ |
D | BinaryStreamVisitorTests.cpp | 92 const IdmapEntry_header* header = loaded_idmap->GetEntryMapForType(0x01); in TEST() local 93 ASSERT_THAT(header, NotNull()); in TEST() 96 bool success = LoadedIdmap::Lookup(header, 0x0000, &entry); in TEST() 100 header = loaded_idmap->GetEntryMapForType(0x02); in TEST() 101 ASSERT_THAT(header, NotNull()); in TEST() 103 success = LoadedIdmap::Lookup(header, 0x0000, &entry); // string/a in TEST() 106 success = LoadedIdmap::Lookup(header, 0x0001, &entry); // string/b in TEST() 109 success = LoadedIdmap::Lookup(header, 0x0002, &entry); // string/c in TEST() 112 success = LoadedIdmap::Lookup(header, 0x0003, &entry); // string/policy_odm in TEST() 115 success = LoadedIdmap::Lookup(header, 0x0004, &entry); // string/policy_oem in TEST() [all …]
|
/frameworks/av/media/libstagefright/ |
D | HevcUtils.cpp | 436 uint8_t *header = hvcc; in makeHvcc() local 437 header[0] = 1; in makeHvcc() 438 header[1] = (generalProfileSpace << 6) | (generalTierFlag << 5) | generalProfileIdc; in makeHvcc() 439 header[2] = (compatibilityFlags >> 24) & 0xff; in makeHvcc() 440 header[3] = (compatibilityFlags >> 16) & 0xff; in makeHvcc() 441 header[4] = (compatibilityFlags >> 8) & 0xff; in makeHvcc() 442 header[5] = compatibilityFlags & 0xff; in makeHvcc() 443 header[6] = (constraintIdcFlags >> 40) & 0xff; in makeHvcc() 444 header[7] = (constraintIdcFlags >> 32) & 0xff; in makeHvcc() 445 header[8] = (constraintIdcFlags >> 24) & 0xff; in makeHvcc() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | mp3reader.cpp | 41 uint32_t header, size_t *frame_size, in parseHeader() argument 62 if ((header & 0xffe00000) != 0xffe00000) { in parseHeader() 66 unsigned version = (header >> 19) & 3; in parseHeader() 72 unsigned layer = (header >> 17) & 3; in parseHeader() 78 unsigned bitrate_index = (header >> 12) & 0x0f; in parseHeader() 85 unsigned sampling_rate_index = (header >> 10) & 3; in parseHeader() 99 unsigned padding = (header >> 9) & 1; in parseHeader() 182 int channel_mode = (header >> 6) & 3; in parseHeader() 284 uint32_t header = U32_AT(tmp); in resync() local 286 if (match_header != 0 && (header & kMask) != (match_header & kMask)) { in resync() [all …]
|
/frameworks/av/media/libstagefright/omx/ |
D | SimpleSoftOMXComponent.cpp | 224 OMX_BUFFERHEADERTYPE **header, in useBuffer() argument 239 *header = new OMX_BUFFERHEADERTYPE; in useBuffer() 240 (*header)->nSize = sizeof(OMX_BUFFERHEADERTYPE); in useBuffer() 241 (*header)->nVersion.s.nVersionMajor = 1; in useBuffer() 242 (*header)->nVersion.s.nVersionMinor = 0; in useBuffer() 243 (*header)->nVersion.s.nRevision = 0; in useBuffer() 244 (*header)->nVersion.s.nStep = 0; in useBuffer() 245 (*header)->pBuffer = ptr; in useBuffer() 246 (*header)->nAllocLen = size; in useBuffer() 247 (*header)->nFilledLen = 0; in useBuffer() [all …]
|
D | OMXNodeInstance.cpp | 89 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument 90 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd) 91 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument 92 (intptr_t)(addr), (header)->nAllocLen, (header)->pBuffer, \ 93 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd) 136 void CopyFromOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyFromOMX() 142 sp<ABuffer> codec = getBuffer(header, true /* limit */); in CopyFromOMX() 144 memcpy(getPointer() + header->nOffset, codec->data(), codec->size()); in CopyFromOMX() 147 void CopyToOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyToOMX() 152 memcpy(header->pBuffer + header->nOffset, in CopyToOMX() [all …]
|
/frameworks/base/libs/protoutil/tests/ |
D | protobuf_test.cpp | 44 uint8_t header[20]; in TEST() local 45 memset(header, UNSET_BYTE, sizeof(header)); in TEST() 46 EXPECT_EQ(write_length_delimited_tag_header(header, 3, 150) - header, 3); in TEST() 47 EXPECT_EQ(header[0], 26); in TEST() 48 EXPECT_EQ(header[1], 0x96); in TEST() 49 EXPECT_EQ(header[2], 0x01); in TEST() 50 EXPECT_EQ(header[3], UNSET_BYTE); in TEST()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | BinaryStreamVisitor.cpp | 48 void BinaryStreamVisitor::visit(const IdmapHeader& header) { in visit() argument 49 Write32(header.GetMagic()); in visit() 50 Write32(header.GetVersion()); in visit() 51 Write32(header.GetTargetCrc()); in visit() 52 Write32(header.GetOverlayCrc()); in visit() 53 WriteString(header.GetTargetPath()); in visit() 54 WriteString(header.GetOverlayPath()); in visit() 61 void BinaryStreamVisitor::visit(const IdmapData::Header& header) { in visit() argument 62 Write16(header.GetTargetPackageId()); in visit() 63 Write16(header.GetTypeCount()); in visit()
|
D | RawPrintVisitor.cpp | 38 void RawPrintVisitor::visit(const IdmapHeader& header) { in visit() argument 39 print(header.GetMagic(), "magic"); in visit() 40 print(header.GetVersion(), "version"); in visit() 41 print(header.GetTargetCrc(), "target crc"); in visit() 42 print(header.GetOverlayCrc(), "overlay crc"); in visit() 43 print(header.GetTargetPath().to_string(), "target path"); in visit() 44 print(header.GetOverlayPath().to_string(), "overlay path"); in visit() 46 target_apk_ = ApkAssets::Load(header.GetTargetPath().to_string()); in visit() 55 void RawPrintVisitor::visit(const IdmapData::Header& header) { in visit() argument 56 print(static_cast<uint16_t>(header.GetTargetPackageId()), "target package id"); in visit() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupHelperDispatcher.java | 53 Header header = new Header(); in performBackup() local 59 while ((err = readHeader_native(header, oldStateFD)) >= 0) { in performBackup() 61 BackupHelper helper = helpers.get(header.keyPrefix); in performBackup() 62 Log.d(TAG, "handling existing helper '" + header.keyPrefix + "' " + helper); in performBackup() 64 doOneBackup(oldState, data, newState, header, helper); in performBackup() 65 helpers.remove(header.keyPrefix); in performBackup() 67 skipChunk_native(oldStateFD, header.chunkSize); in performBackup() 75 header.keyPrefix = entry.getKey(); in performBackup() 76 Log.d(TAG, "handling new helper '" + header.keyPrefix + "'"); in performBackup() 78 doOneBackup(oldState, data, newState, header, helper); in performBackup() [all …]
|
/frameworks/av/media/extractors/mp4/ |
D | SampleTable.cpp | 189 uint8_t header[8]; in setChunkOffsetParams() local 191 data_offset, header, sizeof(header)) < (ssize_t)sizeof(header)) { in setChunkOffsetParams() 195 if (U32_AT(header) != 0) { in setChunkOffsetParams() 200 mNumChunkOffsets = U32_AT(&header[4]); in setChunkOffsetParams() 232 uint8_t header[8]; in setSampleToChunkParams() local 234 data_offset, header, sizeof(header)) < (ssize_t)sizeof(header)) { in setSampleToChunkParams() 238 if (U32_AT(header) != 0) { in setSampleToChunkParams() 243 mNumSampleToChunkOffsets = U32_AT(&header[4]); in setSampleToChunkParams() 326 uint8_t header[12]; in setSampleSizeParams() local 328 data_offset, header, sizeof(header)) < (ssize_t)sizeof(header)) { in setSampleSizeParams() [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 292 ByteBuffer header = ByteBuffer.wrap(headerBuf); in makeWavHeader() local 293 header.order(ByteOrder.LITTLE_ENDIAN); in makeWavHeader() 295 header.put(new byte[]{ 'R', 'I', 'F', 'F' }); in makeWavHeader() 296 header.putInt(dataLength + WAV_HEADER_LENGTH - 8); // RIFF chunk size in makeWavHeader() 297 header.put(new byte[]{ 'W', 'A', 'V', 'E' }); in makeWavHeader() 298 header.put(new byte[]{ 'f', 'm', 't', ' ' }); in makeWavHeader() 299 header.putInt(16); // size of fmt chunk in makeWavHeader() 300 header.putShort(WAV_FORMAT_PCM); in makeWavHeader() 301 header.putShort((short) channelCount); in makeWavHeader() 302 header.putInt(sampleRateInHz); in makeWavHeader() [all …]
|
/frameworks/compile/mclinker/include/mcld/Config/ |
D | Config.h.in | 16 /* Define to 1 if you have the <cxxabi.h> header file. */ 19 /* Define to 1 if you have the <dlfcn.h> header file. */ 22 /* Define to 1 if you have the <fcntl.h> header file. */ 25 /* Define to 1 if you have the <inttypes.h> header file. */ 28 /* Define to 1 if you have the <memory.h> header file. */ 31 /* Define if you have POSIX threads libraries and header files. */ 34 /* Define to 1 if you have the <stdint.h> header file. */ 37 /* Define to 1 if you have the <stdlib.h> header file. */ 40 /* Define to 1 if you have the <strings.h> header file. */ 43 /* Define to 1 if you have the <string.h> header file. */ [all …]
|
/frameworks/minikin/doc/ |
D | minikin_style.md | 23 #include "minikin/Layout.h" // The corresponding header file. 25 #include <math.h> // C system header files. 26 #include <string> // C++ system header files. 28 #include <hb.h> // Other library, HarfBuzz, header file. 29 #include <log/log.h> // Other library, Android, header file. 30 #include <unicode/ubidi.h> // Other library, ICU, header file. 32 #include "minikin/Emoji.h" // The minikin public header file. 33 #include "HbFontCache.h" // The minikin private header file. 39 * `#include "..."` should be used for minikin header files.
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/ |
D | ConfigParser.java | 221 MimeHeader header = parseHeaders(in); in parseMimeMultipartMessage() local 222 if (!TextUtils.equals(header.contentType, TYPE_MULTIPART_MIXED)) { in parseMimeMultipartMessage() 223 throw new IOException("Invalid content type: " + header.contentType); in parseMimeMultipartMessage() 225 if (TextUtils.isEmpty(header.boundary)) { in parseMimeMultipartMessage() 228 if (!TextUtils.equals(header.encodingType, ENCODING_BASE64)) { in parseMimeMultipartMessage() 229 throw new IOException("Unexpected encoding: " + header.encodingType); in parseMimeMultipartMessage() 239 if (line.equals("--" + header.boundary)) { in parseMimeMultipartMessage() 248 MimePart mimePart = parseMimePart(in, header.boundary); in parseMimeMultipartMessage() 266 MimeHeader header = parseHeaders(in); in parseMimePart() local 268 if (!TextUtils.equals(header.encodingType, ENCODING_BASE64)) { in parseMimePart() [all …]
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
D | SoftOpus.cpp | 312 OpusHeader* header) { in ParseOpusHeader() argument 344 header->channels = *(data + kOpusHeaderChannelsOffset); in ParseOpusHeader() 346 if (header->channels <= 0 || header->channels > kMaxChannels) { in ParseOpusHeader() 347 ALOGV("Invalid Header, wrong channel count: %d", header->channels); in ParseOpusHeader() 350 header->skip_samples = ReadLE16(data, data_size, in ParseOpusHeader() 352 header->gain_db = static_cast<int16_t>( in ParseOpusHeader() 355 header->channel_mapping = *(data + kOpusHeaderChannelMappingOffset); in ParseOpusHeader() 356 if (!header->channel_mapping) { in ParseOpusHeader() 357 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader() 361 header->num_streams = 1; in ParseOpusHeader() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | BlobCache.cpp | 183 Header* header = reinterpret_cast<Header*>(buffer); in flatten() local 184 header->mMagicNumber = blobCacheMagic; in flatten() 185 header->mBlobCacheVersion = blobCacheVersion; in flatten() 186 header->mDeviceVersion = blobCacheDeviceVersion; in flatten() 187 header->mNumEntries = mCacheEntries.size(); in flatten() 189 header->mBuildIdLength = property_get("ro.build.id", buildId, ""); in flatten() 190 memcpy(header->mBuildId, buildId, header->mBuildIdLength); in flatten() 194 off_t byteOffset = align4(sizeof(Header) + header->mBuildIdLength); in flatten() 236 const Header* header = reinterpret_cast<const Header*>(buffer); in unflatten() local 237 if (header->mMagicNumber != blobCacheMagic) { in unflatten() [all …]
|