/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/AppSearch/framework/java/android/app/appsearch/safeparcel/ |
D | SafeParcelReader.java | 58 public static int getFieldId(int header) { in getFieldId() argument 59 return header & 0x0000ffff; in getFieldId() 63 public static int readSize(@NonNull Parcel p, int header) { in readSize() argument 64 if ((header & 0xffff0000) != 0xffff0000) { in readSize() 65 return (header >> 16) & 0x0000ffff; in readSize() 72 public static void skipUnknownField(@NonNull Parcel p, int header) { in skipUnknownField() argument 73 int size = readSize(p, header); in skipUnknownField() 77 private static void readAndEnforceSize(@NonNull Parcel p, int header, int required) { in readAndEnforceSize() argument 78 final int size = readSize(p, header); in readAndEnforceSize() 92 private static void enforceSize(@NonNull Parcel p, int header, int size, int required) { in enforceSize() argument [all …]
|
/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/ |
D | SafeParcelableTest.java | 68 int header = prepareToReadFromParcel(); in testReadWriteByteArray() local 69 byte[] readBuffer = SafeParcelReader.createByteArray(mParcel, header); in testReadWriteByteArray() 82 int header = prepareToReadFromParcel(); in testReadWriteByteArrayNull() local 83 byte[] readBuffer = SafeParcelReader.createByteArray(mParcel, header); in testReadWriteByteArrayNull() 103 int header = prepareToReadFromParcel(); in testReadWriteByteArrayArray() local 104 byte[][] readBuffer = SafeParcelReader.createByteArrayArray(mParcel, header); in testReadWriteByteArrayArray() 120 int header = prepareToReadFromParcel(); in testReadWriteByteArrayArrayNull() local 121 byte[][] readBuffer = SafeParcelReader.createByteArrayArray(mParcel, header); in testReadWriteByteArrayArrayNull() 138 int header = prepareToReadFromParcel(); in testReadWriteBoolean() local 139 boolean readVal = SafeParcelReader.readBoolean(mParcel, header); in testReadWriteBoolean() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | DataQueue.cpp | 52 tHeader* header = mQueue.front(); in ~DataQueue() local 54 free(header); in ~DataQueue() 83 tHeader* header = (tHeader*)malloc(sizeof(tHeader) + dataLen); in enqueue() local 85 if (header) { in enqueue() 86 memset(header, 0, sizeof(tHeader)); in enqueue() 87 header->mDataLen = dataLen; in enqueue() 88 memcpy(header + 1, data, dataLen); in enqueue() 90 mQueue.push_back(header); in enqueue() 116 tHeader* header = mQueue.front(); in dequeue() local 119 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 …]
|
/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/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 409 Header& header = *reinterpret_cast<Header*>(buffer); in write() local 411 header.id = htons(id); in write() 413 header.flags0 = (qr << 7) | (opcode << 3) | (aa << 2) | (tr << 1) | rd; in write() 418 header.flags1 = (ad << 5) | rcode; in write() 420 header.qdcount = htons(questions.size()); in write() 421 header.ancount = htons(answers.size()); in write() 422 header.nscount = htons(authorities.size()); in write() 423 header.arcount = htons(additionals.size()); in write() 461 const auto& header = *reinterpret_cast<const Header*>(buffer); in readHeader() local 463 id = ntohs(header.id); in readHeader() [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() 111 header.version = u32::from_le(header.version); in parse_fsverity_metadata() 112 header.descriptor.data_size = u64::from_le(header.descriptor.data_size); in parse_fsverity_metadata() 113 header.signature_type = u32::from_le(header.signature_type); in parse_fsverity_metadata() 114 header.signature_size = u32::from_le(header.signature_size); in parse_fsverity_metadata() 115 (header, digest) in parse_fsverity_metadata() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | GsmSmsCbMessage.java | 94 public static SmsCbMessage createSmsCbMessage(Context context, SmsCbHeader header, in createSmsCbMessage() argument 113 if (header.isEtwsPrimaryNotification()) { in createSmsCbMessage() 118 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, header.getGeographicalScope(), in createSmsCbMessage() 119 header.getSerialNumber(), location, header.getServiceCategory(), null, 0, in createSmsCbMessage() 120 getEtwsPrimaryMessage(context, header.getEtwsInfo().getWarningType()), in createSmsCbMessage() 121 SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, header.getEtwsInfo(), in createSmsCbMessage() 122 header.getCmasInfo(), 0, null /* geometries */, receivedTimeMillis, slotIndex, in createSmsCbMessage() 124 } else if (header.isUmtsFormat()) { in createSmsCbMessage() 127 Pair<String, String> cbData = parseUmtsBody(header, pdu); in createSmsCbMessage() 130 int priority = header.isEmergencyMessage() ? SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY in createSmsCbMessage() [all …]
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | GsmSmsCbMessage.java | 97 public static SmsCbMessage createSmsCbMessage(Context context, SmsCbHeader header, in createSmsCbMessage() argument 106 if (header.isEtwsPrimaryNotification()) { in createSmsCbMessage() 111 return new SmsCbMessage(SmsCbMessage.MESSAGE_FORMAT_3GPP, header.getGeographicalScope(), in createSmsCbMessage() 112 header.getSerialNumber(), location, header.getServiceCategory(), null, in createSmsCbMessage() 113 header.getDataCodingScheme(), getEtwsPrimaryMessage(context, in createSmsCbMessage() 114 header.getEtwsInfo().getWarningType()), SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, in createSmsCbMessage() 115 header.getEtwsInfo(), header.getCmasInfo(), 0, null, receivedTimeMillis, in createSmsCbMessage() 117 } else if (header.isUmtsFormat()) { in createSmsCbMessage() 120 Pair<String, String> cbData = parseUmtsBody(header, pdu); in createSmsCbMessage() 123 int priority = header.isEmergencyMessage() ? SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY in createSmsCbMessage() [all …]
|
/packages/modules/Connectivity/clatd/ |
D | ipv4.c | 58 const struct iphdr *header = (struct iphdr *)packet; in ipv4_packet() local 73 if (header->ihl < 5) { in ipv4_packet() 74 logmsg_dbg(ANDROID_LOG_ERROR, "ip_packet/ip header length set to less than 5: %x", header->ihl); in ipv4_packet() 78 if ((size_t)header->ihl * 4 > len) { // ip header length larger than entire packet in ipv4_packet() 79 logmsg_dbg(ANDROID_LOG_ERROR, "ip_packet/ip header length set too large: %x", header->ihl); in ipv4_packet() 83 if (header->version != 4) { in ipv4_packet() 84 logmsg_dbg(ANDROID_LOG_ERROR, "ip_packet/ip header version not 4: %x", header->version); in ipv4_packet() 93 next_header = packet + header->ihl * 4; in ipv4_packet() 94 len_left = len - header->ihl * 4; in ipv4_packet() 96 nxthdr = header->protocol; in ipv4_packet() [all …]
|
D | dump.c | 42 void dump_ip(struct iphdr *header) { in dump_ip() argument 46 frag_flags = ntohs(header->frag_off); in dump_ip() 49 printf("header_len = %x\n", header->ihl); in dump_ip() 50 printf("version = %x\n", header->version); in dump_ip() 51 printf("tos = %x\n", header->tos); in dump_ip() 52 printf("tot_len = %x\n", ntohs(header->tot_len)); in dump_ip() 53 printf("id = %x\n", ntohs(header->id)); in dump_ip() 65 printf("ttl = %x\n", header->ttl); in dump_ip() 66 printf("protocol = %x\n", header->protocol); in dump_ip() 67 printf("checksum = %x\n", ntohs(header->check)); in dump_ip() [all …]
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | instance.rs | 117 let (header, offset) = self.locate_microdroid_header()?; in read_microdroid_data() 118 if header.is_none() { in read_microdroid_data() 121 let header = header.unwrap(); in read_microdroid_data() localVariable 131 header.payload_size as usize - AES_256_GCM_NONCE_LENGTH - AES_256_GCM_TAG_LENGTH; in read_microdroid_data() 140 let mut header = [0; PARTITION_HEADER_SIZE as usize]; in read_microdroid_data() localVariable 142 self.file.read_exact(&mut header)?; in read_microdroid_data() 147 let plaintext = decrypt_aead(cipher, &key, Some(&nonce), &header, &data, &tag)?; in read_microdroid_data() 160 let (header, offset) = self.locate_microdroid_header()?; in write_microdroid_data() 171 if let Some(header) = header { in write_microdroid_data() 172 if header.payload_size != payload_size { in write_microdroid_data() [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/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/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | StructNdOptRdnss.java | 57 public final RdnssOption header; field in StructNdOptRdnss 69 this.header = new RdnssOption((byte) TYPE, (byte) (servers.length * 2 + 1), in StructNdOptRdnss() 84 final RdnssOption header = Struct.parse(RdnssOption.class, buf); in parse() local 85 if (header.type != TYPE) { in parse() 86 throw new IllegalArgumentException("Invalid type " + header.type); in parse() 88 if (header.length < MIN_OPTION_LEN || (header.length % 2 == 0)) { in parse() 89 throw new IllegalArgumentException("Invalid length " + header.length); in parse() 92 final int numOfDnses = (header.length - 1) / 2; in parse() 99 return new StructNdOptRdnss(servers, header.lifetime); in parse() 110 header.writeToByteBuffer(buf); in writeToByteBuffer() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ondevicepersonalization/ |
D | OdpDelegationWrapperImplTest.java | 120 Map<String, List<String>> header = new HashMap<>(); in registerOdpTrigger_validParameters_success() local 121 header.put( in registerOdpTrigger_validParameters_success() 137 odpDelegationWrapperImpl.registerOdpTrigger(asyncRegistration, header, true); in registerOdpTrigger_validParameters_success() 176 Map<String, List<String>> header = new HashMap<>(); in registerOdpTrigger_invalidEnrollment_fail() local 177 header.put( in registerOdpTrigger_invalidEnrollment_fail() 193 odpDelegationWrapperImpl.registerOdpTrigger(asyncRegistration, header, false); in registerOdpTrigger_invalidEnrollment_fail() 220 Map<String, List<String>> header = new HashMap<>(); in registerOdpTrigger_headerSizeLimitExceeded_fail() local 221 header.put( in registerOdpTrigger_headerSizeLimitExceeded_fail() 237 odpDelegationWrapperImpl.registerOdpTrigger(asyncRegistration, header, true); in registerOdpTrigger_headerSizeLimitExceeded_fail() 263 Map<String, List<String>> header = new HashMap<>(); in registerOdpTrigger_invalidHeaderFormat_fail() local [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/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/ |
D | WidgetsListHeaderAccessibilityTest.java | 64 WidgetsListHeader header = (WidgetsListHeader) mLayoutInflater.inflate( in singlePaneCollapsable_hasCustomAccessibilityActions() local 68 assertThat(header.getAccessibilityDelegate()).isNotNull(); in singlePaneCollapsable_hasCustomAccessibilityActions() 70 header.setOnClickListener(mOnClickListener); in singlePaneCollapsable_hasCustomAccessibilityActions() 71 header.getAccessibilityDelegate().performAccessibilityAction(header, in singlePaneCollapsable_hasCustomAccessibilityActions() 73 header.getAccessibilityDelegate().performAccessibilityAction(header, in singlePaneCollapsable_hasCustomAccessibilityActions() 76 verify(mOnClickListener, times(2)).onClick(header); in singlePaneCollapsable_hasCustomAccessibilityActions() 81 WidgetsListHeader header = (WidgetsListHeader) mLayoutInflater.inflate( in twoPaneNonCollapsable_noCustomAccessibilityDelegate() local 85 assertThat(header.getAccessibilityDelegate()).isNull(); in twoPaneNonCollapsable_noCustomAccessibilityDelegate()
|
/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/Virtualization/libs/vbmeta/src/ |
D | lib.rs | 69 header: AvbVBMetaImageHeader, field 107 let header = unsafe { in verify_reader_region() localVariable 108 let mut header = MaybeUninit::uninit(); in verify_reader_region() localVariable 110 avb_vbmeta_image_header_to_host_byte_order(src, header.as_mut_ptr()); in verify_reader_region() 111 header.assume_init() in verify_reader_region() 115 + header.authentication_data_block_size in verify_reader_region() 116 + header.auxiliary_data_block_size; in verify_reader_region() 118 Ok(Self { header, data: data.into_boxed_slice() }) in verify_reader_region() 124 if self.header.algorithm_type == AvbAlgorithmType::AVB_ALGORITHM_TYPE_NONE as u32 { in public_key() 128 + self.header.authentication_data_block_size as usize in public_key() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessage.java | 133 public IkeMessage(IkeHeader header, List<IkePayload> payloadList) { in IkeMessage() argument 134 ikeHeader = header; in IkeMessage() 159 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument 160 return sIkeMessageHelper.decode(expectedMsgId, header, inputPacket); in decode() 688 public DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument 690 if (header.messageId != expectedMsgId) { in decode() 691 throw new InvalidMessageIdException(header.messageId); in decode() 694 header.validateMajorVersion(); in decode() 695 header.validateInboundHeader(inputPacket.length); in decode() 702 header.nextPayloadType, header.isResponseMsg, unencryptedPayloads); in decode() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | TransitionScreenWrapper.java | 30 public final LazyStringResource header; field in TransitionScreenWrapper 41 TransitionScreenWrapper(LazyStringResource header, @RawRes int drawable) { in TransitionScreenWrapper() argument 42 this(header, /* description= */ Empty.INSTANCE, drawable, /* shouldLoop= */ true); in TransitionScreenWrapper() 50 LazyStringResource header, in TransitionScreenWrapper() argument 55 header, in TransitionScreenWrapper() 77 LazyStringResource header, in TransitionScreenWrapper() argument 87 this.header = header; in TransitionScreenWrapper() 112 if (header instanceof Empty) { in validateFields() 132 public Builder setHeader(LazyStringResource header) { in setHeader() argument 133 this.mHeader = header; in setHeader()
|
/packages/modules/StatsD/lib/libstatssocket/ |
D | statsd_writer.cpp | 187 android_log_header_t header; in statsdWrite() local 217 header.tid = android::base::GetThreadId(); in statsdWrite() 218 header.realtime.tv_sec = ts->tv_sec; in statsdWrite() 219 header.realtime.tv_nsec = ts->tv_nsec; in statsdWrite() 221 newVec[0].iov_base = (unsigned char*)&header; in statsdWrite() 222 newVec[0].iov_len = sizeof(header); in statsdWrite() 229 header.id = LOG_ID_STATS; in statsdWrite() 231 buffer.header.tag = atomic_load(&log_error); in statsdWrite() 244 if (ret != (ssize_t)(sizeof(header) + sizeof(buffer))) { in statsdWrite() 254 header.id = LOG_ID_STATS; in statsdWrite() [all …]
|
/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 …]
|