/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 …]
|
D | android_backup_BackupHelperDispatcher.cpp | 172 chunk_header_v1 header; in writeHeader_native() local 182 header.nameLength = env->GetStringUTFLength(nameObj); in writeHeader_native() 183 namePadding = padding_len(header.nameLength); in writeHeader_native() 185 header.headerSize = sizeof(chunk_header_v1) + header.nameLength + namePadding; in writeHeader_native() 186 header.version = VERSION_1_HEADER; in writeHeader_native() 187 header.dataSize = prevPos - (pos + header.headerSize); in writeHeader_native() 190 err = write(fd, &header, sizeof(chunk_header_v1)); in writeHeader_native() 196 err = write(fd, buf, header.nameLength); in writeHeader_native() 198 if (err != header.nameLength) { in writeHeader_native()
|
/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/omx/ |
D | OMXNodeInstance.cpp | 79 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument 80 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd) 81 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument 82 (intptr_t)(addr), (header)->nAllocLen, (header)->pBuffer, \ 83 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd) 119 void CopyFromOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyFromOMX() 125 sp<ABuffer> codec = getBuffer(header, false /* backup */, true /* limit */); in CopyFromOMX() 127 memcpy((OMX_U8 *)mMem->pointer() + header->nOffset, codec->data(), codec->size()); in CopyFromOMX() 130 void CopyToOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyToOMX() 135 memcpy(header->pBuffer + header->nOffset, in CopyToOMX() [all …]
|
D | SimpleSoftOMXComponent.cpp | 186 OMX_BUFFERHEADERTYPE **header, in useBuffer() argument 194 *header = new OMX_BUFFERHEADERTYPE; in useBuffer() 195 (*header)->nSize = sizeof(OMX_BUFFERHEADERTYPE); in useBuffer() 196 (*header)->nVersion.s.nVersionMajor = 1; in useBuffer() 197 (*header)->nVersion.s.nVersionMinor = 0; in useBuffer() 198 (*header)->nVersion.s.nRevision = 0; in useBuffer() 199 (*header)->nVersion.s.nStep = 0; in useBuffer() 200 (*header)->pBuffer = ptr; in useBuffer() 201 (*header)->nAllocLen = size; in useBuffer() 202 (*header)->nFilledLen = 0; in useBuffer() [all …]
|
D | GraphicBufferSource.cpp | 299 void GraphicBufferSource::addCodecBuffer(OMX_BUFFERHEADERTYPE* header) { in addCodecBuffer() argument 310 header, header->nAllocLen, header->pBuffer); in addCodecBuffer() 312 codecBuffer.mHeader = header; in addCodecBuffer() 316 void GraphicBufferSource::codecBufferEmptied(OMX_BUFFERHEADERTYPE* header, int fenceFd) { in codecBufferEmptied() argument 322 int cbi = findMatchingCodecBuffer_l(header); in codecBufferEmptied() 325 ALOGE("codecBufferEmptied: buffer not recognized (h=%p)", header); in codecBufferEmptied() 333 header, header->nAllocLen, header->nFilledLen, in codecBufferEmptied() 334 header->pBuffer); in codecBufferEmptied() 356 if (EXTRA_CHECK && header->nAllocLen >= sizeof(MetadataBufferType)) { in codecBufferEmptied() 359 OMX_U8* data = header->pBuffer; in codecBufferEmptied() [all …]
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
D | SoftOpus.cpp | 246 OpusHeader* header) { in ParseOpusHeader() argument 278 header->channels = *(data + kOpusHeaderChannelsOffset); in ParseOpusHeader() 280 if (header->channels <= 0 || header->channels > kMaxChannels) { in ParseOpusHeader() 281 ALOGV("Invalid Header, wrong channel count: %d", header->channels); in ParseOpusHeader() 284 header->skip_samples = ReadLE16(data, data_size, in ParseOpusHeader() 286 header->gain_db = static_cast<int16_t>( in ParseOpusHeader() 289 header->channel_mapping = *(data + kOpusHeaderChannelMappingOffset); in ParseOpusHeader() 290 if (!header->channel_mapping) { in ParseOpusHeader() 291 if (header->channels > kMaxChannelsWithDefaultLayout) { in ParseOpusHeader() 295 header->num_streams = 1; in ParseOpusHeader() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmSmsCbMessage.java | 62 static SmsCbMessage createSmsCbMessage(SmsCbHeader header, SmsCbLocation location, in createSmsCbMessage() argument 64 if (header.isEtwsPrimaryNotification()) { in createSmsCbMessage() 66 header.getGeographicalScope(), header.getSerialNumber(), in createSmsCbMessage() 67 location, header.getServiceCategory(), in createSmsCbMessage() 69 header.getEtwsInfo(), header.getCmasInfo()); in createSmsCbMessage() 74 Pair<String, String> p = parseBody(header, pdu); in createSmsCbMessage() 78 int priority = header.isEmergencyMessage() ? SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY in createSmsCbMessage() 82 header.getGeographicalScope(), header.getSerialNumber(), location, in createSmsCbMessage() 83 header.getServiceCategory(), language, sb.toString(), priority, in createSmsCbMessage() 84 header.getEtwsInfo(), header.getCmasInfo()); in createSmsCbMessage() [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/av/media/libstagefright/ |
D | SampleTable.cpp | 183 uint8_t header[8]; in setChunkOffsetParams() local 185 data_offset, header, sizeof(header)) < (ssize_t)sizeof(header)) { in setChunkOffsetParams() 189 if (U32_AT(header) != 0) { in setChunkOffsetParams() 194 mNumChunkOffsets = U32_AT(&header[4]); in setChunkOffsetParams() 221 uint8_t header[8]; in setSampleToChunkParams() local 223 data_offset, header, sizeof(header)) < (ssize_t)sizeof(header)) { in setSampleToChunkParams() 227 if (U32_AT(header) != 0) { in setSampleToChunkParams() 232 mNumSampleToChunkOffsets = U32_AT(&header[4]); in setSampleToChunkParams() 279 uint8_t header[12]; in setSampleSizeParams() local 281 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() 366 uint8_t header[2]; in SniffAAC() local 368 if (source->readAt(pos, &header, 2) != 2) { in SniffAAC() [all …]
|
D | AMRExtractor.cpp | 102 uint8_t header; in getFrameSizeByOffset() local 103 if (source->readAt(offset, &header, 1) < 1) { in getFrameSizeByOffset() 107 unsigned FT = (header >> 3) & 0x0f; in getFrameSizeByOffset() 278 uint8_t header; in read() local 279 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read() 285 if (header & 0x83) { in read() 288 ALOGE("padding bits must be 0, header is 0x%02x", header); in read() 293 unsigned FT = (header >> 3) & 0x0f; in read() 332 char header[9]; in SniffAMR() local 334 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() 257 uint32_t header; in MP3Extractor() local 270 header = meta_header; in MP3Extractor() 275 success = Resync(mDataSource, 0, &pos, &post_id3_pos, &header); in MP3Extractor() 284 mFixedHeader = header; in MP3Extractor() [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 287 ByteBuffer header = ByteBuffer.wrap(headerBuf); in makeWavHeader() local 288 header.order(ByteOrder.LITTLE_ENDIAN); in makeWavHeader() 290 header.put(new byte[]{ 'R', 'I', 'F', 'F' }); in makeWavHeader() 291 header.putInt(dataLength + WAV_HEADER_LENGTH - 8); // RIFF chunk size in makeWavHeader() 292 header.put(new byte[]{ 'W', 'A', 'V', 'E' }); in makeWavHeader() 293 header.put(new byte[]{ 'f', 'm', 't', ' ' }); in makeWavHeader() 294 header.putInt(16); // size of fmt chunk in makeWavHeader() 295 header.putShort(WAV_FORMAT_PCM); in makeWavHeader() 296 header.putShort((short) channelCount); in makeWavHeader() 297 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/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/base/core/java/android/preference/ |
D | PreferenceActivity.java | 242 Header header = onGetNewHeader(); 243 if (header != null && header.fragment != null) { 244 Header mappedHeader = findBestMatchingHeader(header, oldHeaders); 246 switchToHeader(header); 296 Header header = getItem(position); in getView() local 298 if (header.iconRes == 0) { in getView() 302 holder.icon.setImageResource(header.iconRes); in getView() 305 holder.icon.setImageResource(header.iconRes); in getView() 307 holder.title.setText(header.getTitle(getContext().getResources())); in getView() 308 CharSequence summary = header.getSummary(getContext().getResources()); in getView() [all …]
|
/frameworks/av/media/libstagefright/id3/ |
D | ID3.cpp | 127 id3_header header; in parseV2() local 129 offset, &header, sizeof(header)) != (ssize_t)sizeof(header)) { in parseV2() 133 if (memcmp(header.id, "ID3", 3)) { in parseV2() 137 if (header.version_major == 0xff || header.version_minor == 0xff) { in parseV2() 141 if (header.version_major == 2) { in parseV2() 142 if (header.flags & 0x3f) { in parseV2() 148 if (header.flags & 0x40) { in parseV2() 154 } else if (header.version_major == 3) { in parseV2() 155 if (header.flags & 0x1f) { in parseV2() 160 } else if (header.version_major == 4) { in parseV2() [all …]
|
/frameworks/base/tools/aapt2/ |
D | TableFlattener.cpp | 342 spec->header.type = android::RES_TABLE_TYPE_SPEC_TYPE; in flatten() 343 spec->header.headerSize = sizeof(*spec); in flatten() 344 spec->header.size = spec->header.headerSize + (type->entries.size() * sizeof(uint32_t)); in flatten() 395 publicHeader->header.type = RES_TABLE_PUBLIC_TYPE; in flatten() 396 publicHeader->header.headerSize = sizeof(*publicHeader); in flatten() 439 publicHeader->header.size = in flatten() 447 typeHeader->header.type = android::RES_TABLE_TYPE_TYPE; in flatten() 448 typeHeader->header.headerSize = sizeof(*typeHeader); in flatten() 451 typeHeader->entriesStart = typeHeader->header.headerSize in flatten() 476 typeHeader->header.size = typeBlock.size() - typeHeaderStart; in flatten() [all …]
|
/frameworks/compile/mclinker/lib/LD/ |
D | GNUArchiveReader.cpp | 158 const Archive::MemberHeader* header = in readMemberHeader() local 161 assert(memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag)) == in readMemberHeader() 164 pMemberSize = atoi(header->size); in readMemberHeader() 168 llvm::StringRef name_field(header->name, sizeof(header->name)); in readMemberHeader() 169 if (header->name[0] != '/') { in readMemberHeader() 267 const Archive::MemberHeader* header = in readSymbolTable() local 269 assert(memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag)) == in readSymbolTable() 272 int symtab_size = atoi(header->size); in readSymbolTable() 281 if (strncmp(header->name, in readSymbolTable() 285 else if (strncmp(header->name, in readSymbolTable() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | EventThread.cpp | 55 mVSyncEvent[i].header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC; in EventThread() 56 mVSyncEvent[i].header.id = 0; in EventThread() 57 mVSyncEvent[i].header.timestamp = 0; in EventThread() 155 mVSyncEvent[0].header.type = DisplayEventReceiver::DISPLAY_EVENT_VSYNC; in onVSyncEvent() 156 mVSyncEvent[0].header.id = 0; in onVSyncEvent() 157 mVSyncEvent[0].header.timestamp = timestamp; in onVSyncEvent() 169 event.header.type = DisplayEventReceiver::DISPLAY_EVENT_HOTPLUG; in onHotplugReceived() 170 event.header.id = type; in onHotplugReceived() 171 event.header.timestamp = systemTime(); in onHotplugReceived() 196 event.header.type, conn.get()); in threadLoop() [all …]
|