/frameworks/base/core/jni/ |
D | android_ddm_DdmHandleNativeHeap.cpp | 74 Header header; in DdmHandleNativeHeap_getLeakInfo() local 75 memset(&header, 0, sizeof(header)); in DdmHandleNativeHeap_getLeakInfo() 79 header.mapSize = maps.size(); in DdmHandleNativeHeap_getLeakInfo() 82 get_malloc_leak_info(&allocBytes, &header.allocSize, &header.allocInfoSize, in DdmHandleNativeHeap_getLeakInfo() 83 &header.totalMemory, &header.backtraceSize); in DdmHandleNativeHeap_getLeakInfo() 86 header.mapSize, header.allocSize, header.allocInfoSize, header.totalMemory); in DdmHandleNativeHeap_getLeakInfo() 89 header.signature = DDMS_HEADER_SIGNATURE; in DdmHandleNativeHeap_getLeakInfo() 90 header.version = DDMS_VERSION; in DdmHandleNativeHeap_getLeakInfo() 91 header.pointerSize = sizeof(void*); in DdmHandleNativeHeap_getLeakInfo() 94 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize); in DdmHandleNativeHeap_getLeakInfo() [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 …]
|
D | GsmSmsTest.java | 55 SmsHeader header = sms.getUserDataHeader(); in testUdh() local 56 assertNotNull(header); in testUdh() 57 assertNotNull(header.concatRef); in testUdh() 58 assertEquals(header.concatRef.refNumber, 42); in testUdh() 59 assertEquals(header.concatRef.msgCount, 2); in testUdh() 60 assertEquals(header.concatRef.seqNumber, 1); in testUdh() 61 assertEquals(header.concatRef.isEightBits, true); in testUdh() 62 assertNotNull(header.portAddrs); in testUdh() 63 assertEquals(header.portAddrs.destPort, 2948); in testUdh() 64 assertEquals(header.portAddrs.origPort, 9200); in testUdh() [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/av/media/libstagefright/ |
D | HevcUtils.cpp | 423 uint8_t *header = hvcc; in makeHvcc() local 424 header[0] = 1; in makeHvcc() 425 header[1] = (kGeneralProfileSpace << 6) | (kGeneralTierFlag << 5) | kGeneralProfileIdc; in makeHvcc() 426 header[2] = (compatibilityFlags >> 24) & 0xff; in makeHvcc() 427 header[3] = (compatibilityFlags >> 16) & 0xff; in makeHvcc() 428 header[4] = (compatibilityFlags >> 8) & 0xff; in makeHvcc() 429 header[5] = compatibilityFlags & 0xff; in makeHvcc() 430 header[6] = (constraintIdcFlags >> 40) & 0xff; in makeHvcc() 431 header[7] = (constraintIdcFlags >> 32) & 0xff; in makeHvcc() 432 header[8] = (constraintIdcFlags >> 24) & 0xff; in makeHvcc() [all …]
|
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 …]
|
D | AACExtractor.cpp | 116 uint8_t header[3]; in getAdtsFrameLength() local 117 if (source->readAt(offset + 3, &header, 3) < 3) { in getAdtsFrameLength() 121 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5; in getAdtsFrameLength() 155 uint8_t profile, sf_index, channel, header[2]; in AACExtractor() local 156 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { in AACExtractor() 160 profile = (header[0] >> 6) & 0x3; in AACExtractor() 161 sf_index = (header[0] >> 2) & 0xf; in AACExtractor() 166 channel = (header[0] & 0x1) << 2 | (header[1] >> 6); in AACExtractor() 372 uint8_t header[2]; in SniffAAC() local 374 if (source->readAt(pos, &header, 2) != 2) { in SniffAAC() [all …]
|
D | AMRExtractor.cpp | 102 uint8_t header; in getFrameSizeByOffset() local 103 ssize_t count = source->readAt(offset, &header, 1); in getFrameSizeByOffset() 110 unsigned FT = (header >> 3) & 0x0f; in getFrameSizeByOffset() 284 uint8_t header; in read() local 285 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read() 291 if (header & 0x83) { in read() 294 ALOGE("padding bits must be 0, header is 0x%02x", header); in read() 299 unsigned FT = (header >> 3) & 0x0f; in read() 344 char header[9]; in SniffAMR() local 346 if (source->readAt(0, header, sizeof(header)) != sizeof(header)) { in SniffAMR() [all …]
|
D | MP3Extractor.cpp | 138 uint32_t header = U32_AT(tmp); in Resync() local 140 if (match_header != 0 && (header & kMask) != (match_header & kMask)) { in Resync() 150 header, &frame_size, in Resync() 158 ALOGV("found possible 1st frame at %lld (header = 0x%08x)", (long long)pos, header); in Resync() 177 if ((test_header & kMask) != (header & kMask)) { in Resync() 198 *out_header = header; in Resync() 258 uint32_t header; in MP3Extractor() local 271 header = meta_header; in MP3Extractor() 276 success = Resync(mDataSource, 0, &pos, &post_id3_pos, &header); in MP3Extractor() 285 mFixedHeader = header; in MP3Extractor() [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 | 208 OMX_BUFFERHEADERTYPE **header, in useBuffer() argument 223 *header = new OMX_BUFFERHEADERTYPE; in useBuffer() 224 (*header)->nSize = sizeof(OMX_BUFFERHEADERTYPE); in useBuffer() 225 (*header)->nVersion.s.nVersionMajor = 1; in useBuffer() 226 (*header)->nVersion.s.nVersionMinor = 0; in useBuffer() 227 (*header)->nVersion.s.nRevision = 0; in useBuffer() 228 (*header)->nVersion.s.nStep = 0; in useBuffer() 229 (*header)->pBuffer = ptr; in useBuffer() 230 (*header)->nAllocLen = size; in useBuffer() 231 (*header)->nFilledLen = 0; in useBuffer() [all …]
|
D | OMXNodeInstance.cpp | 87 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument 88 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd) 89 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument 90 (intptr_t)(addr), (header)->nAllocLen, (header)->pBuffer, \ 91 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd) 134 void CopyFromOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyFromOMX() 140 sp<ABuffer> codec = getBuffer(header, true /* limit */); in CopyFromOMX() 142 memcpy(getPointer() + header->nOffset, codec->data(), codec->size()); in CopyFromOMX() 145 void CopyToOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyToOMX() 150 memcpy(header->pBuffer + header->nOffset, in CopyToOMX() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupHelperDispatcher.java | 50 Header header = new Header(); in performBackup() local 56 while ((err = readHeader_native(header, oldStateFD)) >= 0) { in performBackup() 58 BackupHelper helper = helpers.get(header.keyPrefix); in performBackup() 59 Log.d(TAG, "handling existing helper '" + header.keyPrefix + "' " + helper); in performBackup() 61 doOneBackup(oldState, data, newState, header, helper); in performBackup() 62 helpers.remove(header.keyPrefix); in performBackup() 64 skipChunk_native(oldStateFD, header.chunkSize); in performBackup() 72 header.keyPrefix = entry.getKey(); in performBackup() 73 Log.d(TAG, "handling new helper '" + header.keyPrefix + "'"); in performBackup() 75 doOneBackup(oldState, data, newState, header, helper); in performBackup() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | GsmSmsCbMessage.java | 97 public static SmsCbMessage createSmsCbMessage(Context context, SmsCbHeader header, in createSmsCbMessage() argument 100 if (header.isEtwsPrimaryNotification()) { in createSmsCbMessage() 105 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, header.getGeographicalScope(), in createSmsCbMessage() 106 header.getSerialNumber(), location, header.getServiceCategory(), null, in createSmsCbMessage() 107 getEtwsPrimaryMessage(context, header.getEtwsInfo().getWarningType()), in createSmsCbMessage() 108 SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, header.getEtwsInfo(), in createSmsCbMessage() 109 header.getCmasInfo()); in createSmsCbMessage() 114 Pair<String, String> p = parseBody(header, pdu); in createSmsCbMessage() 118 int priority = header.isEmergencyMessage() ? SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY in createSmsCbMessage() 122 header.getGeographicalScope(), header.getSerialNumber(), location, in createSmsCbMessage() [all …]
|
/frameworks/support/design/src/android/support/design/widget/ |
D | HeaderScrollingViewBehavior.java | 62 final View header = findFirstDependency(dependencies); in onMeasureChild() local 63 if (header != null) { in onMeasureChild() 64 if (ViewCompat.getFitsSystemWindows(header) in onMeasureChild() 83 final int height = availableHeight - header.getMeasuredHeight() in onMeasureChild() 84 + getScrollRange(header); in onMeasureChild() 104 final View header = findFirstDependency(dependencies); in layoutChild() local 106 if (header != null) { in layoutChild() 111 header.getBottom() + lp.topMargin, in layoutChild() 113 parent.getHeight() + header.getBottom() in layoutChild() 130 final int overlap = getOverlapPixelsForOffset(header); in layoutChild() [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 …]
|
D | Config.h.cmake | 40 /* Define to 1 if you have the <argz.h> header file. */ 52 /* Define to 1 if you have the <assert.h> header file. */ 70 /* Define to 1 if you have the <CrashReporterClient.h> header file. */ 76 /* Define to 1 if you have the <ctype.h> header file. */ 83 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. 90 /* Define to 1 if you have the <dld.h> header file. */ 96 /* Define to 1 if you have the <dlfcn.h> header file. */ 102 /* Define to 1 if you have the <dl.h> header file. */ 114 /* Define to 1 if you have the <errno.h> header file. */ 120 /* Define to 1 if you have the <execinfo.h> header file. */ [all …]
|
/frameworks/base/libs/androidfw/ |
D | LoadedArsc.cpp | 87 TypeSpecPtrBuilder(const ResTable_typeSpec* header) : header_(header) {} in TypeSpecPtrBuilder() argument 148 reinterpret_cast<const uint8_t*>(type->type) + dtohs(type->type->header.headerSize)); in FindEntry() 215 const ResTable_type* header = chunk.header<ResTable_type, kResTableTypeMinSize>(); in VerifyType() local 217 const size_t entry_count = dtohl(header->entryCount); in VerifyType() 225 const size_t entries_offset = dtohl(header->entriesStart); in VerifyType() 245 reinterpret_cast<const uint32_t*>(reinterpret_cast<const uint8_t*>(header) + offsets_offset); in VerifyType() 269 reinterpret_cast<const uint8_t*>(header) + offset); in VerifyType() 398 reinterpret_cast<const uint8_t*>(type->type) + dtohs(type->type->header.headerSize)); in FindEntryByName() 421 const ResTable_package* header = chunk.header<ResTable_package, kMinPackageSize>(); in Load() local 422 if (header == nullptr) { in Load() [all …]
|
/frameworks/av/media/mtp/tests/ |
D | MtpFfsHandle_test.cpp | 167 struct mtp_data_header *header = reinterpret_cast<struct mtp_data_header*>(buf); in TEST_F() local 169 EXPECT_EQ(header->length, static_cast<unsigned int>(size + sizeof(mtp_data_header))); in TEST_F() 170 EXPECT_EQ(header->type, static_cast<unsigned int>(2)); in TEST_F() 171 EXPECT_EQ(header->command, static_cast<unsigned int>(42)); in TEST_F() 172 EXPECT_EQ(header->transaction_id, static_cast<unsigned int>(1337)); in TEST_F() 196 struct mtp_data_header *header = reinterpret_cast<struct mtp_data_header*>(buf); in TEST_F() local 198 EXPECT_EQ(header->length, static_cast<unsigned int>(size + sizeof(mtp_data_header))); in TEST_F() 199 EXPECT_EQ(header->type, static_cast<unsigned int>(2)); in TEST_F() 200 EXPECT_EQ(header->command, static_cast<unsigned int>(42)); in TEST_F() 201 EXPECT_EQ(header->transaction_id, static_cast<unsigned int>(1337)); in TEST_F() [all …]
|
/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/base/libs/androidfw/tests/ |
D | TypeWrappers_test.cpp | 28 t.header.type = RES_TABLE_TYPE_TYPE; in createTypeData() 29 t.header.headerSize = sizeof(t); in createTypeData() 34 t.entriesStart = t.header.headerSize + sizeof(offsets); in createTypeData() 35 t.header.size = t.entriesStart; in createTypeData() 42 t.header.size += sizeof(e1); in createTypeData() 46 t.header.size += sizeof(v1); in createTypeData() 55 t.header.size += sizeof(e2); in createTypeData() 59 t.header.size += sizeof(v2); in createTypeData() 61 uint8_t* data = (uint8_t*)malloc(t.header.size); in createTypeData()
|
/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 | 182 Header* header = reinterpret_cast<Header*>(buffer); in flatten() local 183 header->mMagicNumber = blobCacheMagic; in flatten() 184 header->mBlobCacheVersion = blobCacheVersion; in flatten() 185 header->mDeviceVersion = blobCacheDeviceVersion; in flatten() 186 header->mNumEntries = mCacheEntries.size(); in flatten() 188 header->mBuildIdLength = property_get("ro.build.id", buildId, ""); in flatten() 189 memcpy(header->mBuildId, buildId, header->mBuildIdLength); in flatten() 193 off_t byteOffset = align4(sizeof(Header) + header->mBuildIdLength); in flatten() 235 const Header* header = reinterpret_cast<const Header*>(buffer); in unflatten() local 236 if (header->mMagicNumber != blobCacheMagic) { in unflatten() [all …]
|