/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 | 384 Header& header = *reinterpret_cast<Header*>(buffer); in write() local 386 header.id = htons(id); in write() 388 header.flags0 = (qr << 7) | (opcode << 3) | (aa << 2) | (tr << 1) | rd; in write() 393 header.flags1 = (ad << 5) | rcode; in write() 395 header.qdcount = htons(questions.size()); in write() 396 header.ancount = htons(answers.size()); in write() 397 header.nscount = htons(authorities.size()); in write() 398 header.arcount = htons(additionals.size()); in write() 436 const auto& header = *reinterpret_cast<const Header*>(buffer); in readHeader() local 438 id = ntohs(header.id); in readHeader() [all …]
|
D | dns_responder.h | 168 void addMappingDnsHeader(const std::string& name, ns_type type, const DNSHeader& header); 246 bool hasOptPseudoRR(DNSHeader* header) const; 256 bool generateErrorResponse(DNSHeader* header, ns_rcode rcode, char* response, 262 bool writePacket(const DNSHeader* header, char* response, size_t* response_len) const; 264 bool makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response, 267 bool makeTruncatedResponse(DNSHeader* header, char* response, size_t* response_len) const; 269 bool makeResponse(DNSHeader* header, int protocol, char* response, size_t* response_len) const; 271 bool makeResponseFromAddressOrHostname(DNSHeader* header, char* response, 273 bool makeResponseFromDnsHeader(DNSHeader* header, char* response, size_t* response_len) const; 274 bool makeResponseFromBinaryPacket(DNSHeader* header, char* response,
|
/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/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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | GsmSmsCbMessage.java | 94 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 …]
|
D | GsmCellBroadcastHandler.java | 289 SmsCbHeader header = createSmsCbHeader(pdu); in handleSmsMessage() local 290 if (header == null) return false; in handleSmsMessage() 292 log("header=" + header); in handleSmsMessage() 293 if (header.getServiceCategory() == SmsCbConstants.MESSAGE_ID_CMAS_GEO_FENCING_TRIGGER) { in handleSmsMessage() 300 SmsCbMessage cbMessage = handleGsmBroadcastSms(header, pdu, slotIndex); in handleSmsMessage() 343 private SmsCbMessage handleGsmBroadcastSms(SmsCbHeader header, byte[] receivedPdu, in handleGsmBroadcastSms() argument 361 if (VDBG) log("header=" + header); in handleGsmBroadcastSms() 379 switch (header.getGeographicalScope()) { in handleGsmBroadcastSms() 396 int pageCount = header.getNumberOfPages(); in handleGsmBroadcastSms() 399 SmsCbConcatInfo concatInfo = new SmsCbConcatInfo(header, location); in handleGsmBroadcastSms() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | ChooseLockSettingsHelper.java | 163 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 168 header /* header */, in launchConfirmationActivity() 193 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 198 header /* header */, in launchConfirmationActivity() 218 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 223 header /* header */, in launchConfirmationActivity() 244 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 249 header /* header */, in launchConfirmationActivity() 273 @Nullable CharSequence title, @Nullable CharSequence header, in launchConfirmationActivityWithExternalAndChallenge() argument 278 header /* header */, in launchConfirmationActivityWithExternalAndChallenge() [all …]
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockSettingsHelper.java | 174 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 179 header /* header */, in launchConfirmationActivity() 205 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 210 header /* header */, in launchConfirmationActivity() 232 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 237 header /* header */, in launchConfirmationActivity() 260 @Nullable CharSequence header, @Nullable CharSequence description, in launchConfirmationActivity() argument 265 header /* header */, in launchConfirmationActivity() 290 @Nullable CharSequence title, @Nullable CharSequence header, in launchConfirmationActivityWithExternalAndChallenge() argument 295 header /* header */, in launchConfirmationActivityWithExternalAndChallenge() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessage.java | 88 public IkeMessage(IkeHeader header, List<IkePayload> payloadList) { in IkeMessage() argument 89 ikeHeader = header; in IkeMessage() 114 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument 115 return sIkeMessageHelper.decode(expectedMsgId, header, inputPacket); in decode() 545 public DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument 547 if (header.messageId != expectedMsgId) { in decode() 548 throw new InvalidMessageIdException(header.messageId); in decode() 551 header.validateMajorVersion(); in decode() 552 header.validateInboundHeader(inputPacket.length); in decode() 559 header.nextPayloadType, header.isResponseMsg, unencryptedPayloads); in decode() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | TransitionAnimationHelper.java | 181 mAnimationComponents.header.setText(transition.header); 219 final Context context = mAnimationComponents.header.getContext(); 224 final TextView header = mAnimationComponents.header; 225 final Context context = header.getContext(); 226 header.setContentDescription(context.getString(mProvisioningModeWrapper.summary)); 230 final @StringRes int header; 235 TransitionScreenWrapper(@StringRes int header, @DrawableRes int drawable) { 236 this(header, drawable, /* subHeader */ 0, /* showContactAdmin */ false); 239 TransitionScreenWrapper(@StringRes int header, @DrawableRes int drawable, 241 this.header = checkNotNull(header, [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeHeaderTest.java | 77 IkeHeader header = new IkeHeader(inputPacket); in testDecodeIkeHeader() local 82 assertEquals(initSpi, header.ikeInitiatorSpi); in testDecodeIkeHeader() 84 assertEquals(respSpi, header.ikeResponderSpi); in testDecodeIkeHeader() 86 assertEquals(IKE_FIRST_PAYLOAD_TYPE, header.nextPayloadType); in testDecodeIkeHeader() 87 assertEquals(IKE_MAJOR_VERSION, header.majorVersion); in testDecodeIkeHeader() 88 assertEquals(IKE_MINOR_VERSION, header.minorVersion); in testDecodeIkeHeader() 89 assertEquals(IKE_EXCHANGE_TYPE, header.exchangeType); in testDecodeIkeHeader() 90 assertFalse(header.isResponseMsg); in testDecodeIkeHeader() 91 assertTrue(header.fromIkeInitiator); in testDecodeIkeHeader() 92 assertEquals(IKE_MSG_ID, header.messageId); in testDecodeIkeHeader() [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()
|
D | ContactViewHolder.java | 36 private final TextView header; field in ContactViewHolder 51 header = itemView.findViewById(R.id.header); in ContactViewHolder() 72 header.setText(headerText); in bind() 73 header.setVisibility(showHeader ? View.VISIBLE : View.INVISIBLE); in bind() 89 return header; in getHeaderView()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 387 byte[] header = mBlobHeader; in clearEntry() 388 Arrays.fill(header, (byte) 0); in clearEntry() 390 mActiveDataFile.write(header); in clearEntry() 398 byte[] header = mBlobHeader; in insertInternal() 400 writeLong(header, BH_KEY, key); in insertInternal() 401 writeInt(header, BH_CHECKSUM, sum); in insertInternal() 402 writeInt(header, BH_OFFSET, mActiveBytes); in insertInternal() 403 writeInt(header, BH_LENGTH, length); in insertInternal() 404 mActiveDataFile.write(header); in insertInternal() 490 byte[] header = mBlobHeader; in getBlob() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/ |
D | SettingsWithLargeHeader.java | 90 protected void updateHeader(@NonNull View header) { in updateHeader() argument 91 if (header != null) { in updateHeader() 92 header.setVisibility(View.VISIBLE); in updateHeader() 94 ImageView appIcon = header.requireViewById(R.id.entity_header_icon); in updateHeader() 108 TextView appName = header.requireViewById(R.id.entity_header_title); in updateHeader() 111 header.requireViewById(R.id.entity_header_summary).setVisibility(View.GONE); in updateHeader() 112 header.requireViewById(R.id.entity_header_second_summary).setVisibility(View.GONE); in updateHeader() 113 header.requireViewById(R.id.header_link).setVisibility(View.GONE); in updateHeader()
|
/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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | EntityHeaderControllerTest.java | 117 final View header = in bindViews_shouldBindAllData() local 119 final TextView label = header.findViewById(R.id.entity_header_title); in bindViews_shouldBindAllData() 120 final TextView summary = header.findViewById(R.id.entity_header_summary); in bindViews_shouldBindAllData() 121 final TextView secondSummary = header.findViewById(R.id.entity_header_second_summary); in bindViews_shouldBindAllData() 123 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData() 296 final View header = mLayoutInflater.inflate( in instantApps_normalAppsDontGetLabel() local 298 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in instantApps_normalAppsDontGetLabel() 301 assertThat(header.findViewById(R.id.install_type).getVisibility()) in instantApps_normalAppsDontGetLabel() 308 final View header = mLayoutInflater.inflate( in instantApps_expectedHeaderItem() local 310 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in instantApps_expectedHeaderItem() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | QuickContactActivity.java | 1380 String header = null; in dataItemToEntry() local 1420 header = res.getString(R.string.header_im_entry); in dataItemToEntry() 1425 header = Im.getProtocolLabel(res, protocol, in dataItemToEntry() 1429 entryContextMenuInfo = new EntryContextMenuInfo(im.getData(), header, in dataItemToEntry() 1433 header = res.getString(R.string.header_organization_entry); in dataItemToEntry() 1435 entryContextMenuInfo = new EntryContextMenuInfo(subHeader, header, in dataItemToEntry() 1449 header = res.getString(R.string.header_nickname_entry); in dataItemToEntry() 1451 entryContextMenuInfo = new EntryContextMenuInfo(subHeader, header, in dataItemToEntry() 1457 header = TextUtils.isEmpty(summary) in dataItemToEntry() 1460 entryContextMenuInfo = new EntryContextMenuInfo(subHeader, header, in dataItemToEntry() [all …]
|
/packages/services/Car/tools/hidl_parser/ |
D | parser.py | 115 def __init__(self, header, cases): argument 116 self.header = header 135 return '%s {\n%s\n}' % (self.header, 142 def __init__(self, header, items): argument 143 self.header = header 147 return '%s {\n%s\n}' % (self.header, 166 self.name = struct.header.name 302 enums[enum.header.name] = enum 305 structs[struct.header.name] = struct
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
D | MimeBodyPart.java | 30 protected MimeHeader header = new MimeHeader(); field in MimeBodyPart 56 return header.getFirstHeader(name); in getFirstHeader() 61 header.addHeader(name, value); in addHeader() 66 header.setHeader(name, value); in setHeader() 71 return header.getHeader(name); in getHeader() 76 header.removeHeader(name); in removeHeader() 193 header.writeTo(out); in writeTo()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessageMime.java | 556 String header; in parseMimeHeaders() local 560 header = headers[i]; in parseMimeHeaders() 562 Log.d(TAG, "Header[" + i + "]: " + header); in parseMimeHeaders() 569 if (header.trim().isEmpty()) { in parseMimeHeaders() 572 String[] headerParts = header.split(":", 2); in parseMimeHeaders() 642 Log.w(TAG, "Skipping unknown header: " + headerType + " (" + header + ")"); in parseMimeHeaders() 663 for (String header : headers) { in parseMimePart() 665 if ((header.length() == 0) || (header.trim().isEmpty()) || header.trim() in parseMimePart() 670 String[] headerParts = header.split(":", 2); in parseMimePart() 678 Log.d(TAG, "parseMimePart: header=" + header); in parseMimePart() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/ |
D | ThemePreviewPage.java | 67 TextView header = card.findViewById(R.id.theme_preview_card_header); in bindPreviewContent() local 68 header.setText(nameResId); in bindPreviewContent() 69 header.setCompoundDrawables(null, icon, null, null); in bindPreviewContent() 70 header.setCompoundDrawableTintList(ColorStateList.valueOf(accentColor)); in bindPreviewContent() 191 TextView header = card.findViewById(R.id.theme_preview_card_header); in bindPreviewContent() local 192 header.setText(mTitle); in bindPreviewContent() 193 header.setTextAppearance(R.style.CoverTitleTextAppearance); in bindPreviewContent() 194 header.setTypeface(mHeadlineFont); in bindPreviewContent()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | Ver4DictDecoder.java | 48 final DictionaryHeader header = binaryDictionary.getHeader(); in readHeader() local 50 if (header == null) { in readHeader() 53 return header; in readHeader() 64 final DictionaryHeader header = readHeader(); in readDictionaryBinary() local 66 new FusionDictionary(new FusionDictionary.PtNodeArray(), header.mDictionaryOptions); in readDictionaryBinary()
|