/packages/apps/Contacts/src/com/android/contacts/list/ |
D | PinnedHeaderListView.java | 216 PinnedHeader header = mHeaders[i]; in onItemSelected() local 217 if (header.visible) { in onItemSelected() 218 if (header.state == TOP) { in onItemSelected() 219 windowTop = header.y + header.height; in onItemSelected() 220 } else if (header.state == BOTTOM) { in onItemSelected() 221 windowBottom = header.y; in onItemSelected() 262 PinnedHeader header = mHeaders[viewIndex]; in setHeaderPinnedAtTop() local 263 header.visible = true; in setHeaderPinnedAtTop() 264 header.y = y; in setHeaderPinnedAtTop() 265 header.state = TOP; in setHeaderPinnedAtTop() [all …]
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 414 Header& header = *reinterpret_cast<Header*>(buffer); in write() local 416 header.id = htons(id); in write() 418 header.flags0 = (qr << 7) | (opcode << 3) | (aa << 2) | (tr << 1) | rd; in write() 423 header.flags1 = (ad << 5) | rcode; in write() 425 header.qdcount = htons(questions.size()); in write() 426 header.ancount = htons(answers.size()); in write() 427 header.nscount = htons(authorities.size()); in write() 428 header.arcount = htons(additionals.size()); in write() 466 const auto& header = *reinterpret_cast<const Header*>(buffer); in readHeader() local 468 id = ntohs(header.id); in readHeader() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | DataQueue.cpp | 53 tHeader* header = mQueue.front(); in ~DataQueue() local 55 free(header); in ~DataQueue() 84 tHeader* header = (tHeader*)malloc(sizeof(tHeader) + dataLen); in enqueue() local 86 if (header) { in enqueue() 87 memset(header, 0, sizeof(tHeader)); in enqueue() 88 header->mDataLen = dataLen; in enqueue() 89 memcpy(header + 1, data, dataLen); in enqueue() 91 mQueue.push_back(header); in enqueue() 117 tHeader* header = mQueue.front(); in dequeue() local 120 if (header && buffer && (bufferMaxLen > 0)) { in dequeue() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/scripts/ |
D | link_layer_socket.py | 104 header = self.rx_bytes(17) 105 if not header: 107 payload_length = header[0] 108 payload_length |= header[1] << 8 109 payload_length |= header[2] << 16 110 payload_length |= header[3] << 24 111 print('Rx: type_byte ' + hex(header[4])) 112 …print('Rx: from ' + hex(header[5]) + ':' + hex(header[6]) + ':' + hex(header[7]) + ':' + hex(heade… 113 ':' + hex(header[9]) + ':' + hex(header[10])) 114 …print('Rx: to ' + hex(header[11]) + ':' + hex(header[12]) + ':' + hex(header[13]) + ':' + hex(head… [all …]
|
D | hci_socket.py | 245 header = b'' 247 header = self.rx_bytes(3) 248 if not header: 250 payload_length = header[2] 252 header = self.rx_bytes(4) 253 if not header: 255 payload_length = header[3] << 8 256 payload_length |= header[2] 258 header = self.rx_bytes(3) 259 if not header: [all …]
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | GsmSmsCbMessage.java | 93 public static SmsCbMessage createSmsCbMessage(Context context, SmsCbHeader header, in createSmsCbMessage() argument 105 if (header.isEtwsPrimaryNotification()) { in createSmsCbMessage() 110 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, header.getGeographicalScope(), in createSmsCbMessage() 111 header.getSerialNumber(), location, header.getServiceCategory(), null, 0, in createSmsCbMessage() 112 getEtwsPrimaryMessage(context, header.getEtwsInfo().getWarningType()), in createSmsCbMessage() 113 SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, header.getEtwsInfo(), in createSmsCbMessage() 114 header.getCmasInfo(), 0, null /* geometries */, receivedTimeMillis, slotIndex, in createSmsCbMessage() 116 } else if (header.isUmtsFormat()) { in createSmsCbMessage() 119 Pair<String, String> cbData = parseUmtsBody(header, pdu); in createSmsCbMessage() 122 int priority = header.isEmergencyMessage() ? SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY in createSmsCbMessage() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | SipMessageUtils.java | 39 String header = "Via: " + addParamToHeader(BASE_VIA_HEADER_VALUE, "branch", branchId); in generateSipRequest() local 40 header += "\n"; in generateSipRequest() 41 header += "From: " + addParamToHeader(fromContact, "tag", fromTag); in generateSipRequest() 42 header += "\n"; in generateSipRequest() 44 header += "To: " + ((toTag != null) in generateSipRequest() 46 header += "\n"; in generateSipRequest() 47 header += "Call-ID: " + callId; in generateSipRequest() 48 return new SipMessage(requestMethod + " " + toUri + " SIP/2.0", header, new byte[0]); in generateSipRequest() 57 String header = "Via: " + addParamToHeader(BASE_VIA_HEADER_VALUE, "branch", branchId); in generateSipResponse() local 58 header += "\n"; in generateSipResponse() [all …]
|
/packages/modules/Virtualization/authfs/src/fsverity/metadata/ |
D | metadata.rs | 39 pub header: fsverity_metadata_header, field 83 let (header, digest) = { in parse_fsverity_metadata() 85 let mut header: fsverity_metadata_header = unsafe { zeroed() }; in parse_fsverity_metadata() localVariable 91 &mut header as *mut fsverity_metadata_header as *mut u8, in parse_fsverity_metadata() 98 let digest = match header.descriptor.hash_algorithm { in parse_fsverity_metadata() 114 header.version = u32::from_le(header.version); in parse_fsverity_metadata() 115 header.descriptor.data_size = u64::from_le(header.descriptor.data_size); in parse_fsverity_metadata() 116 header.signature_type = u32::from_le(header.signature_type); in parse_fsverity_metadata() 117 header.signature_size = u32::from_le(header.signature_size); in parse_fsverity_metadata() 118 (header, digest) in parse_fsverity_metadata() [all …]
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | GsmSmsCbMessage.java | 97 public static SmsCbMessage createSmsCbMessage(Context context, SmsCbHeader header, in createSmsCbMessage() argument 109 if (header.isEtwsPrimaryNotification()) { in createSmsCbMessage() 114 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, header.getGeographicalScope(), in createSmsCbMessage() 115 header.getSerialNumber(), location, header.getServiceCategory(), null, in createSmsCbMessage() 116 header.getDataCodingScheme(), getEtwsPrimaryMessage(context, in createSmsCbMessage() 117 header.getEtwsInfo().getWarningType()), SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, in createSmsCbMessage() 118 header.getEtwsInfo(), header.getCmasInfo(), 0, null, receivedTimeMillis, in createSmsCbMessage() 120 } else if (header.isUmtsFormat()) { in createSmsCbMessage() 123 Pair<String, String> cbData = parseUmtsBody(header, pdu); in createSmsCbMessage() 126 int priority = header.isEmergencyMessage() ? SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY in createSmsCbMessage() [all …]
|
/packages/modules/adb/pairing_connection/ |
D | pairing_connection.cpp | 102 bool WriteHeader(const PairingPacketHeader* header, std::string_view payload); 106 bool ReadHeader(PairingPacketHeader* header); 108 void CreateHeader(PairingPacketHeader* header, adb::proto::PairingPacket::Type type, 204 bool PairingConnectionCtx::WriteHeader(const PairingPacketHeader* header, in WriteHeader() argument 206 PairingPacketHeader network_header = *header; in WriteHeader() 218 bool PairingConnectionCtx::ReadHeader(PairingPacketHeader* header) { in ReadHeader() argument 226 header->version = *p; in ReadHeader() 228 if (header->version < kMinSupportedKeyHeaderVersion || in ReadHeader() 229 header->version > kMaxSupportedKeyHeaderVersion) { in ReadHeader() 231 << " them=" << header->version << ")"; in ReadHeader() [all …]
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | instance.rs | 113 let (header, offset) = self.locate_microdroid_header()?; in read_microdroid_data() 114 if header.is_none() { in read_microdroid_data() 117 let header = header.unwrap(); in read_microdroid_data() localVariable 127 let payload_size = header.payload_size - 12; // we already have read the nonce in read_microdroid_data() 132 let mut header = [0; PARTITION_HEADER_SIZE as usize]; in read_microdroid_data() localVariable 134 self.file.read_exact(&mut header)?; in read_microdroid_data() 138 let plaintext_len = get_key()?.open_in_place(nonce, Aad::from(&header), &mut data)?.len(); in read_microdroid_data() 149 let (header, offset) = self.locate_microdroid_header()?; in write_microdroid_data() 160 if let Some(header) = header { in write_microdroid_data() 161 if header.payload_size != payload_size { in write_microdroid_data() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeHeaderTest.java | 78 IkeHeader header = new IkeHeader(inputPacket); in testDecodeIkeHeader() local 83 assertEquals(initSpi, header.ikeInitiatorSpi); in testDecodeIkeHeader() 85 assertEquals(respSpi, header.ikeResponderSpi); in testDecodeIkeHeader() 87 assertEquals(IKE_FIRST_PAYLOAD_TYPE, header.nextPayloadType); in testDecodeIkeHeader() 88 assertEquals(IKE_MAJOR_VERSION, header.majorVersion); in testDecodeIkeHeader() 89 assertEquals(IKE_MINOR_VERSION, header.minorVersion); in testDecodeIkeHeader() 90 assertEquals(IKE_EXCHANGE_TYPE, header.exchangeType); in testDecodeIkeHeader() 91 assertFalse(header.isResponseMsg); in testDecodeIkeHeader() 92 assertTrue(header.fromIkeInitiator); in testDecodeIkeHeader() 93 assertEquals(IKE_MSG_ID, header.messageId); in testDecodeIkeHeader() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/ |
D | ConfigParser.java | 227 MimeHeader header = parseHeaders(in); in parseMimeMultipartMessage() local 228 if (!TextUtils.equals(header.contentType, TYPE_MULTIPART_MIXED)) { in parseMimeMultipartMessage() 229 throw new IOException("Invalid content type: " + header.contentType); in parseMimeMultipartMessage() 231 if (TextUtils.isEmpty(header.boundary)) { in parseMimeMultipartMessage() 234 if (!TextUtils.equals(header.encodingType, ENCODING_BASE64)) { in parseMimeMultipartMessage() 235 throw new IOException("Unexpected encoding: " + header.encodingType); in parseMimeMultipartMessage() 245 if (line.equals("--" + header.boundary)) { in parseMimeMultipartMessage() 254 MimePart mimePart = parseMimePart(in, header.boundary); in parseMimeMultipartMessage() 272 MimeHeader header = parseHeaders(in); in parseMimePart() local 274 if (!TextUtils.equals(header.encodingType, ENCODING_BASE64)) { in parseMimePart() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | TransitionScreenWrapper.java | 27 public final @StringRes int header; field in TransitionScreenWrapper 38 TransitionScreenWrapper(@StringRes int header, @RawRes int drawable) { in TransitionScreenWrapper() argument 39 this(header, /* description= */ 0, drawable, /* shouldLoop */ true); in TransitionScreenWrapper() 42 TransitionScreenWrapper(@StringRes int header, @StringRes int description, in TransitionScreenWrapper() argument 44 this(header, /* description= */ description, drawable, 0, 0, 0, shouldLoop, 0, 0, 0); in TransitionScreenWrapper() 47 private TransitionScreenWrapper(int header, int description, int drawable, int subHeaderTitle, in TransitionScreenWrapper() argument 50 this.header = header; in TransitionScreenWrapper() 76 if (header == 0) { in validateFields() 93 public Builder setHeader(int header) { in setHeader() argument 94 mHeader = header; in setHeader()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessage.java | 132 public IkeMessage(IkeHeader header, List<IkePayload> payloadList) { in IkeMessage() argument 133 ikeHeader = header; in IkeMessage() 158 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument 159 return sIkeMessageHelper.decode(expectedMsgId, header, inputPacket); in decode() 687 public DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument 689 if (header.messageId != expectedMsgId) { in decode() 690 throw new InvalidMessageIdException(header.messageId); in decode() 693 header.validateMajorVersion(); in decode() 694 header.validateInboundHeader(inputPacket.length); in decode() 701 header.nextPayloadType, header.isResponseMsg, unencryptedPayloads); in decode() [all …]
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpChunk.java | 55 public MsrpChunkHeader header(String headerName) { in header() method in MsrpChunk 56 for (MsrpChunkHeader header : headers()) { in header() 57 if (header.name().equals(headerName)) { in header() 58 return header; in header() 129 public Builder addHeader(MsrpChunkHeader header) { in addHeader() argument 130 headersBuilder().add(header); in addHeader() 141 MsrpChunkHeader header(String name) { in header() method in MsrpChunk.Builder 142 for (MsrpChunkHeader header : headersBuilder().build()) { in header() 143 if (header.name().equals(name)) { in header() 144 return header; in header()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | PacketUtils.java | 69 byte[] getPacketBytes(IpHeader header) throws Exception; in getPacketBytes() argument 71 void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception; in addPacketBytes() argument 219 public byte[] getPacketBytes(IpHeader header) { in getPacketBytes() argument 222 addPacketBytes(header, bb); in getPacketBytes() 226 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) { in addPacketBytes() argument 255 public byte[] getPacketBytes(IpHeader header) throws Exception { in getPacketBytes() argument 258 addPacketBytes(header, bb); in getPacketBytes() 262 public void addPacketBytes(IpHeader header, ByteBuffer resultBuffer) throws Exception { in addPacketBytes() argument 272 payload.addPacketBytes(header, payloadBuffer); in addPacketBytes() 276 resultBuffer.putShort(calculateChecksum(header, payloadBytes)); in addPacketBytes() [all …]
|
/packages/modules/StatsD/lib/libstatssocket/ |
D | statsd_writer.c | 185 android_log_header_t header; in statsdWrite() local 215 header.tid = gettid(); in statsdWrite() 216 header.realtime.tv_sec = ts->tv_sec; in statsdWrite() 217 header.realtime.tv_nsec = ts->tv_nsec; in statsdWrite() 219 newVec[0].iov_base = (unsigned char*)&header; in statsdWrite() 220 newVec[0].iov_len = sizeof(header); in statsdWrite() 227 header.id = LOG_ID_STATS; in statsdWrite() 229 buffer.header.tag = atomic_load(&log_error); in statsdWrite() 242 if (ret != (ssize_t)(sizeof(header) + sizeof(buffer))) { in statsdWrite() 248 header.id = LOG_ID_STATS; in statsdWrite() [all …]
|
/packages/modules/adb/client/ |
D | incremental_server.cpp | 144 ResponseHeader header; member 399 buffer.header.compression_type = kCompressionNone; in SendTreeBlock() 400 buffer.header.block_type = kTypeHash; in SendTreeBlock() 401 buffer.header.file_id = toBigEndian(fileId); in SendTreeBlock() 402 buffer.header.block_size = toBigEndian(int16_t(bytesRead)); in SendTreeBlock() 403 buffer.header.block_idx = toBigEndian(blockIdx); in SendTreeBlock() 440 ResponseHeader* header; in SendDataBlock() local 444 header = &compressed.header; in SendDataBlock() 445 header->compression_type = kCompressionLZ4; in SendDataBlock() 449 header = &raw.header; in SendDataBlock() [all …]
|
/packages/services/Car/tools/hidl_parser/ |
D | parser.py | 124 def __init__(self, header, cases): argument 125 self.header = header 144 return '%s {\n%s\n}' % (self.header, 151 def __init__(self, header, items): argument 152 self.header = header 156 return '%s {\n%s\n}' % (self.header, 163 def __init__(self, header, name): argument 164 self.header = header 168 return '%s {\n%s\n}' % (self.header, 187 self.name = struct.header.name [all …]
|
/packages/modules/NeuralNetworks/driver/cache/BlobCache/ |
D | BlobCache.cpp | 239 Header* header = reinterpret_cast<Header*>(buffer); in flatten() local 240 header->mMagicNumber = blobCacheMagic; in flatten() 241 header->mBlobCacheVersion = blobCacheVersion; in flatten() 242 header->mDeviceVersion = blobCacheDeviceVersion; in flatten() 243 header->mNumEntries = mCacheEntries.size(); in flatten() 245 header->mBuildIdLength = property_get("ro.build.id", buildId, ""); in flatten() 246 memcpy(header->mBuildId, buildId, header->mBuildIdLength); in flatten() 250 off_t byteOffset = align_sizet(sizeof(Header) + header->mBuildIdLength); in flatten() 292 const Header* header = reinterpret_cast<const Header*>(buffer); in unflatten() local 293 if (header->mMagicNumber != blobCacheMagic) { in unflatten() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SchedulesHeaderRowPresenter.java | 69 SchedulesHeaderRow header = (SchedulesHeaderRow) item; in onBindRowViewHolder() local 70 headerViewHolder.mTitle.setText(header.getTitle()); in onBindRowViewHolder() 71 headerViewHolder.mDescription.setText(header.getDescription()); in onBindRowViewHolder() 126 SeriesRecordingHeaderRow header = (SeriesRecordingHeaderRow) item; in onBindRowViewHolder() local 128 header.getSeriesRecording().isStopped() ? View.INVISIBLE : View.VISIBLE); in onBindRowViewHolder() 131 if (header.getSeriesRecording().isStopped()) { in onBindRowViewHolder() 144 header.getSeriesRecording().getId(), in onBindRowViewHolder() 145 header.getPrograms(), in onBindRowViewHolder() 156 if (header.getSeriesRecording().isStopped()) { in onBindRowViewHolder() 159 SeriesRecording.buildFrom(header.getSeriesRecording()) in onBindRowViewHolder() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
D | ContactsAdapter.java | 52 private final @Header int header; field in ContactsAdapter 63 Context context, @Header int header, OnContactSelectedListener onContactSelectedListener) { in ContactsAdapter() argument 65 this.header = header; in ContactsAdapter() 113 if (header != Header.NONE) { in onBindViewHolder() 118 String header = getHeaderString(position); in onBindViewHolder() local 138 boolean showHeader = position == 0 || !header.equals(getHeaderString(position - 1)); in onBindViewHolder() 139 contactViewHolder.bind(header, name, contactUri, getContactId(cursor), showHeader); in onBindViewHolder() 148 if (header != Header.NONE && position == 0) { in getItemViewType() 176 if (header != Header.NONE) { in getItemCount() 206 if (header != Header.NONE) { in getHeaderString()
|
/packages/services/Car/cpp/evs/manager/1.1/emul/ |
D | VideoCapture.cpp | 46 png_byte header[kSigSize] = {0}; in validatePng() local 47 source.read((char*)header, kSigSize); in validatePng() 50 (png_sig_cmp(header, 0, kSigSize) == 0); in validatePng() 340 imageMetadata header = {}; in collectFrames() local 349 fillBufferFromPng(mSrcIter->path(), header); in collectFrames() 352 mPixelBufferSize = header.stride * header.height; in collectFrames() 358 fin.read((char*)&header, sizeof(header)); in collectFrames() 359 const size_t length = header.stride * header.height; in collectFrames() 384 mBufferInfo.info = header; in collectFrames()
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
D | HeaderViewHolder.java | 26 private final TextView header; field in HeaderViewHolder 30 header = view.findViewById(R.id.header); in HeaderViewHolder() 33 public void setHeader(String header) { in setHeader() argument 34 this.header.setText(header); in setHeader()
|