/packages/apps/Tag/src/com/android/apps/tag/message/ |
H A D | NdefMessageParser.java | 19 import com.android.apps.tag.record.ImageRecord; 20 import com.android.apps.tag.record.MimeRecord; 21 import com.android.apps.tag.record.ParsedNdefRecord; 22 import com.android.apps.tag.record.SmartPoster; 23 import com.android.apps.tag.record.TextRecord; 24 import com.android.apps.tag.record.UnknownRecord; 25 import com.android.apps.tag.record.UriRecord; 26 import com.android.apps.tag.record.VCardRecord; 53 for (NdefRecord record : records) { 54 if (SmartPoster.isPoster(record)) { [all...] |
H A D | ParsedNdefMessage.java | 20 import com.android.apps.tag.record.ParsedNdefRecord; 21 import com.android.apps.tag.record.SmartPoster; 22 import com.android.apps.tag.record.UriRecord; 57 ParsedNdefRecord record = mRecords.get(0); 59 if (record instanceof UriRecord) { 76 record = mRecords.get(smartPosterRecord); 80 return record.getSnippet(context, locale);
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
H A D | MimeRecord.java | 17 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 D | ImageRecord.java | 17 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 D | SmartPoster.java | 17 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...] |
H A D | TextRecord.java | 17 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 D | ParsedNdefRecord.java | 17 package com.android.apps.tag.record; 35 * Returns a view to display this record.
|
H A D | UnknownRecord.java | 17 package com.android.apps.tag.record;
|
H A D | UriRecord.java | 17 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 D | VCardRecord.java | 17 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 D | RecordUtils.java | 17 package com.android.apps.tag.record; 60 * Creates one or more views for a parsed record that wants to display an actionable intent.
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
H A D | SnepValidationServerTests.java | 112 NdefRecord record = msg.getRecords()[0]; 113 ByteArrayWrapper id = (record.getId().length > 0) ? 114 new ByteArrayWrapper(record.getId()) : DEFAULT_NDEF; 122 NdefRecord record = msg.getRecords()[0]; 123 ByteArrayWrapper id = (record.getId().length > 0) ? 124 new ByteArrayWrapper(record.getId()) : DEFAULT_NDEF;
|
/packages/apps/Tag/src/com/android/apps/tag/ |
H A D | TagViewer.java | 21 import com.android.apps.tag.record.ParsedNdefRecord; 101 ParsedNdefRecord record = records.get(i); 102 content.addView(record.getView(this, inflater, content, i));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
H A D | CommonDatabaseUtils.java | 37 // primitive value used when record is not found. 57 String[] record = new String[cursor.getColumnCount()]; 58 fillArray(cursor, record); 59 result.add(record);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | NfcHandler.java | 91 NdefRecord record = NdefRecord.createMime("text/x-vcard", ndefBytes.toByteArray()); 92 return new NdefMessage(record);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
H A D | TelecomAccountRegistry.java | 113 SubscriptionInfo record = 115 if (record != null) { 116 subDisplayName = record.getDisplayName(); 117 slotId = record.getSimSlotIndex(); 118 color = record.getIconTint(); 119 iconBitmap = record.createIconBitmap(mContext); 130 // Either the sub record is not there or it has an empty display name.
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ |
H A D | ImportExportDialogFragment.java | 132 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 D | NfcWifiProtectedSetup.java | 41 * ID into configuration record for SSID and Network Key in hex. 97 for (NdefRecord record : records) { 98 if (new String(record.getType()).equals(NFC_TOKEN_MIME_TYPE)) { 99 ByteBuffer payload = ByteBuffer.wrap(record.getPayload());
|
H A D | NfcDispatcher.java | 448 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);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | CreateConnectionProcessor.java | 253 + "than 1 record"); 282 CallAttemptRecord record = new CallAttemptRecord( 285 Log.v(this, "setConnectionManager, changing %s -> %s", mAttemptRecords.get(0), record); 286 mAttemptRecords.set(0, record); 349 for (CallAttemptRecord record : records) { 350 result.add(record.connectionManagerPhoneAccount); 408 // Failure of some sort; record the reasons for failure and try again if possible
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | KeyboardAccessibilityNodeProvider.java | 146 final AccessibilityRecordCompat record = AccessibilityEventCompat.asRecord(event); 147 record.setSource(mKeyboardView, virtualViewId);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | UpdateHandler.java | 390 for (DownloadRecord record : downloadRecords) { 391 if (null == record.mAttributes) { 436 for (final DownloadRecord record : recordList) { 441 downloadSuccessful = handleDownloadedFile(context, record, manager, fileId); 444 if (record.isMetadata()) { 447 final SQLiteDatabase db = MetadataDbHelper.getDb(context, record.mClientId); 449 db, record.mAttributes, record.mClientId); 782 // as we want to leave the record as long as Android Keyboard has not deleted it ; 783 // the record wil [all...] |
/packages/apps/FMRadio/src/com/android/fmradio/ |
H A D | FmService.java | 116 // If eject record sdcard, should set Value false to not record. 117 // Key is sdcard path(like "/storage/sdcard0"), V is to enable record or 123 // record the listener list, will notify all listener in list 125 // record FM whether in recording mode 127 // record sd card path when start recording 139 // record whether RDS thread exit 200 // record. 203 // 2. exitFm() -> check the record status, discard it if it is recording 319 // If eject record sdcar [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
H A D | AtPhonebook.java | 482 String record; 575 record = "+CPBR: " + index + ",\"" + number + "\"," + regionType + ",\"" + name + "\""; 576 record = record + "\r\n\r\n"; 577 atCommandResponse = record;
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WriteWifiConfigToNfcDialog.java | 172 NdefRecord record = NdefRecord.createMime( 177 ndef.writeNdefMessage(new NdefMessage(record));
|