Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/frameworks/native/libs/binder/ndk/scripts/
Dgen_parcel_helper.py65 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"
78header += "binder_status_t AParcel_write" + pretty + "(AParcel* parcel, " + cpp + " value) __INTRO…
[all …]
/frameworks/base/core/jni/
Dandroid_ddm_DdmHandleNativeHeap.cpp72 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/
DOpusHeader.cpp93 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSMSDispatcherTest.java.broken38 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/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DHeaderRecyclerView.java68 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/base/cmds/idmap2/libidmap2/
DBinaryStreamVisitor.cpp53 void BinaryStreamVisitor::visit(const IdmapHeader& header) { in visit() argument
54 Write32(header.GetMagic()); in visit()
55 Write32(header.GetVersion()); in visit()
56 Write32(header.GetTargetCrc()); in visit()
57 Write32(header.GetOverlayCrc()); in visit()
58 Write32(header.GetFulfilledPolicies()); in visit()
59 Write32(static_cast<uint8_t>(header.GetEnforceOverlayable())); in visit()
60 WriteString(header.GetTargetPath()); in visit()
61 WriteString(header.GetOverlayPath()); in visit()
62 WriteString(header.GetOverlayName()); in visit()
[all …]
DRawPrintVisitor.cpp37 void RawPrintVisitor::visit(const IdmapHeader& header) { in visit() argument
38 print(header.GetMagic(), "magic"); in visit()
39 print(header.GetVersion(), "version"); in visit()
40 print(header.GetTargetCrc(), "target crc"); in visit()
41 print(header.GetOverlayCrc(), "overlay crc"); in visit()
42 print(header.GetFulfilledPolicies(), "fulfilled policies: %s", in visit()
43 PoliciesToDebugString(header.GetFulfilledPolicies()).c_str()); in visit()
44 print(static_cast<uint32_t>(header.GetEnforceOverlayable()), "enforce overlayable"); in visit()
45 print(header.GetTargetPath(), true /* print_value */, "target path"); in visit()
46 print(header.GetOverlayPath(), true /* print_value */, "overlay path"); in visit()
[all …]
DPrettyPrintVisitor.cpp36 void PrettyPrintVisitor::visit(const IdmapHeader& header) { in visit() argument
38 << TAB "target path : " << header.GetTargetPath() << std::endl in visit()
39 << TAB "overlay path : " << header.GetOverlayPath() << std::endl; in visit()
41 if (!header.GetOverlayName().empty()) { in visit()
42 stream_ << "Overlay name: " << header.GetOverlayName() << std::endl; in visit()
45 const std::string& debug = header.GetDebugInfo(); in visit()
55 if (auto target = TargetResourceContainer::FromPath(header.GetTargetPath())) { in visit()
58 if (auto overlay = OverlayResourceContainer::FromPath(header.GetOverlayPath())) { in visit()
65 void PrettyPrintVisitor::visit(const IdmapData::Header& header ATTRIBUTE_UNUSED) { in visit()
/frameworks/base/obex/javax/obex/
DClientSession.java100 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 …]
DObexSession.java67 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/codecs/mp3dec/test/
Dmp3reader.cpp41 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/base/libs/protoutil/tests/
Dprotobuf_test.cpp44 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/av/media/libstagefright/
DHevcUtils.cpp488 uint8_t *header = hvcc; in makeHvcc() local
489 header[0] = 1; in makeHvcc()
490 header[1] = (generalProfileSpace << 6) | (generalTierFlag << 5) | generalProfileIdc; in makeHvcc()
491 header[2] = (compatibilityFlags >> 24) & 0xff; in makeHvcc()
492 header[3] = (compatibilityFlags >> 16) & 0xff; in makeHvcc()
493 header[4] = (compatibilityFlags >> 8) & 0xff; in makeHvcc()
494 header[5] = compatibilityFlags & 0xff; in makeHvcc()
495 header[6] = (constraintIdcFlags >> 40) & 0xff; in makeHvcc()
496 header[7] = (constraintIdcFlags >> 32) & 0xff; in makeHvcc()
497 header[8] = (constraintIdcFlags >> 24) & 0xff; in makeHvcc()
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupHelperDispatcher.java53 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/libstagefright/omx/
DOMXNodeInstance.cpp91 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \ argument
92 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd)
93 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \ argument
94 (intptr_t)(addr), (header)->nAllocLen, (header)->pBuffer, \
95 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd)
138 void CopyFromOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyFromOMX()
144 sp<ABuffer> codec = getBuffer(header, true /* limit */); in CopyFromOMX()
146 memcpy(getPointer() + header->nOffset, codec->data(), codec->size()); in CopyFromOMX()
149 void CopyToOMX(const OMX_BUFFERHEADERTYPE *header) { in CopyToOMX()
154 memcpy(header->pBuffer + header->nOffset, in CopyToOMX()
[all …]
DSimpleSoftOMXComponent.cpp241 OMX_BUFFERHEADERTYPE **header, in useBuffer() argument
256 *header = new OMX_BUFFERHEADERTYPE; in useBuffer()
257 (*header)->nSize = sizeof(OMX_BUFFERHEADERTYPE); in useBuffer()
258 (*header)->nVersion.s.nVersionMajor = 1; in useBuffer()
259 (*header)->nVersion.s.nVersionMinor = 0; in useBuffer()
260 (*header)->nVersion.s.nRevision = 0; in useBuffer()
261 (*header)->nVersion.s.nStep = 0; in useBuffer()
262 (*header)->pBuffer = ptr; in useBuffer()
263 (*header)->nAllocLen = size; in useBuffer()
264 (*header)->nFilledLen = 0; in useBuffer()
[all …]
/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java292 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/minikin/doc/
Dminikin_style.md23 #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/compile/mclinker/include/mcld/Config/
DConfig.h.in16 /* 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/av/media/extractors/mp4/
DSampleTable.cpp189 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/native/libs/gui/
DDisplayEventDispatcher.cpp145 switch (ev.header.type) { in processPendingEvents()
150 *outTimestamp = ev.header.timestamp; in processPendingEvents()
151 *outDisplayId = ev.header.displayId; in processPendingEvents()
158 dispatchHotplug(ev.header.timestamp, ev.header.displayId, ev.hotplug.connected); in processPendingEvents()
161 dispatchModeChanged(ev.header.timestamp, ev.header.displayId, in processPendingEvents()
165 dispatchNullEvent(ev.header.timestamp, ev.header.displayId); in processPendingEvents()
171 dispatchFrameRateOverrides(ev.header.timestamp, ev.header.displayId, in processPendingEvents()
175 ALOGW("dispatcher %p ~ ignoring unknown event type %#x", this, ev.header.type); in processPendingEvents()
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp86 serverMsg.header.type = InputMessage::Type::KEY; in TEST_F()
94 EXPECT_EQ(serverMsg.header.type, clientMsg.header.type) in TEST_F()
102 clientReply.header.type = InputMessage::Type::FINISHED; in TEST_F()
103 clientReply.header.seq = 0x11223344; in TEST_F()
111 EXPECT_EQ(clientReply.header.type, serverReply.header.type) in TEST_F()
113 EXPECT_EQ(clientReply.header.seq, serverReply.header.seq) in TEST_F()
161 msg.header.type = InputMessage::Type::KEY; in TEST_F()
180 serverMsg.header.type = InputMessage::Type::MOTION; in TEST_F()
181 serverMsg.header.seq = 1; in TEST_F()
192 EXPECT_EQ(serverMsg.header.type, clientMsg.header.type); in TEST_F()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp53 explicit TypeSpecBuilder(incfs::verified_map_ptr<ResTable_typeSpec> header) : header_(header) {} in TypeSpecBuilder()
76 static bool VerifyResTableType(incfs::map_ptr<ResTable_type> header) { in VerifyResTableType() argument
77 if (header->id == 0) { in VerifyResTableType()
82 const size_t entry_count = dtohl(header->entryCount); in VerifyResTableType()
89 const size_t offsets_offset = dtohs(header->header.headerSize); in VerifyResTableType()
90 const size_t entries_offset = dtohl(header->entriesStart); in VerifyResTableType()
98 if (entries_offset > dtohl(header->header.size)) { in VerifyResTableType()
125 const size_t chunk_size = dtohl(type->header.size); in VerifyResTableEntry()
245 const size_t offsets_offset = dtohs(type_chunk->header.headerSize); in GetEntryOffset()
381 auto entry_offset_ptr = type.offset(dtohs(type->header.headerSize)).convert<uint32_t>() + in FindEntryByName()
[all …]
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp28 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/native/opengl/libs/EGL/
DBlobCache.cpp184 Header* header = reinterpret_cast<Header*>(buffer); in flatten() local
185 header->mMagicNumber = blobCacheMagic; in flatten()
186 header->mBlobCacheVersion = blobCacheVersion; in flatten()
187 header->mDeviceVersion = blobCacheDeviceVersion; in flatten()
188 header->mNumEntries = mCacheEntries.size(); in flatten()
190 header->mBuildIdLength = buildId.size(); in flatten()
191 memcpy(header->mBuildId, buildId.c_str(), header->mBuildIdLength); in flatten()
195 off_t byteOffset = align4(sizeof(Header) + header->mBuildIdLength); in flatten()
237 const Header* header = reinterpret_cast<const Header*>(buffer); in unflatten() local
238 if (header->mMagicNumber != blobCacheMagic) { in unflatten()
[all …]

12345678910>>...14