Searched defs:record (Results 1 - 11 of 11) sorted by relevance

/packages/apps/Tag/src/com/android/apps/tag/record/
H A DImageRecord.java17 package com.android.apps.tag.record;
53 public static ImageRecord parse(NdefRecord record) { argument
54 String mimeType = record.toMimeType();
61 byte[] content = record.getPayload();
69 public static boolean isImage(NdefRecord record) { argument
71 parse(record);
H A DMimeRecord.java17 package com.android.apps.tag.record;
70 public static MimeRecord parse(NdefRecord record) { argument
71 Preconditions.checkArgument(record.toMimeType() != null);
72 return new MimeRecord(record.toMimeType(), record.getPayload());
75 public static boolean isMime(NdefRecord record) { argument
76 return record.toMimeType() != null;
H A DTextRecord.java17 package com.android.apps.tag.record;
80 public static TextRecord parse(NdefRecord record) { argument
81 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN);
82 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT));
85 byte[] payload = record.getPayload();
119 public static boolean isText(NdefRecord record) { argument
121 parse(record);
H A DUriRecord.java17 package com.android.apps.tag.record;
52 * A parsed record containing a Uri.
129 * record containing a URI.
131 public static UriRecord parse(NdefRecord record) { argument
132 Uri uri = record.toUri();
137 public static boolean isUri(NdefRecord record) { argument
138 return record.toUri() != null;
H A DVCardRecord.java17 package com.android.apps.tag.record;
152 public static VCardRecord parse(NdefRecord record) { argument
153 MimeRecord underlyingRecord = MimeRecord.parse(record);
176 public static boolean isVCard(NdefRecord record) { argument
178 parse(record);
H A DParsedNdefRecord.java17 package com.android.apps.tag.record;
35 * Returns a view to display this record.
H A DUnknownRecord.java17 package com.android.apps.tag.record;
H A DRecordUtils.java17 package com.android.apps.tag.record;
60 * Creates one or more views for a parsed record that wants to display an actionable intent.
H A DSmartPoster.java17 package com.android.apps.tag.record;
51 * "The Title record for the service (there can be many of these in
53 * This record is optional."
61 * "The URI record. This is the core of the Smart Poster, and all other
62 * records are just metadata about this record. There MUST be one URI
63 * record and there MUST NOT be more than one."
70 * "The Icon record. A Smart Poster may include an icon by including one
74 * one. The Icon record is optional."
81 * "The Action record. This record describe
124 parse(NdefRecord record) argument
150 isPoster(NdefRecord record) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/
H A DImportExportDialogFragment.java132 for (SubscriptionInfo record : subInfoRecords) {
133 adapter.add(new AdapterEntry(getSubDescription(record),
134 R.string.import_from_sim, record.getSubscriptionId()));
283 private CharSequence getSubDescription(SubscriptionInfo record) { argument
284 CharSequence name = record.getDisplayName();
285 if (TextUtils.isEmpty(record.getNumber())) {
292 PhoneNumberUtils.ttsSpanAsPhoneNumber(record.getNumber()));
/packages/apps/Nfc/src/com/android/nfc/
H A DNfcDispatcher.java448 for (NdefRecord record : message.getRecords()) {
449 String pkg = checkForAar(record);
555 static String checkForAar(NdefRecord record) { argument
556 if (record.getTnf() == NdefRecord.TNF_EXTERNAL_TYPE &&
557 Arrays.equals(record.getType(), NdefRecord.RTD_ANDROID_APP)) {
558 return new String(record.getPayload(), StandardCharsets.US_ASCII);

Completed in 831 milliseconds