/frameworks/base/core/java/android/nfc/ |
NdefRecord.aidl | 19 parcelable NdefRecord
|
NdefMessage.java | 46 * binary data, or {@link #NdefMessage(NdefRecord[])} to 47 * construct from one or more {@link NdefRecord}s. 49 * {@link NdefMessage} and {@link NdefRecord} implementations are 52 * {@link NdefRecord}s are intended to be immutable (and thread-safe), 59 * @see NdefRecord 62 private final NdefRecord[] mRecords; 71 * into logical {@link NdefRecord}s within the message.<p> 75 * on {@link NdefRecord#NdefRecord(short, byte[], byte[], byte[])}<p> 83 * {@link NdefRecord#NdefRecord(short, byte[], byte[], byte[])} [all...] |
NdefRecord.java | 58 * Helpers such as {@link NdefRecord#createUri}, {@link NdefRecord#createMime} 59 * and {@link NdefRecord#createExternal} are included to create well-formatted 63 * Use the constructor {@link #NdefRecord(short, byte[], byte[], byte[])} 75 * {@link NdefMessage} and {@link NdefRecord} implementations are 78 * {@link NdefRecord}s are intended to be immutable (and thread-safe), 87 public final class NdefRecord implements Parcelable { 155 * since all {@link NdefRecord}s are already unchunked, however they 309 public static NdefRecord createApplicationRecord(String packageName) { 313 return new NdefRecord(TNF_EXTERNAL_TYPE, RTD_ANDROID_APP, null [all...] |
/cts/tests/tests/ndef/src/android/ndef/cts/ |
NdefTest.java | 24 import android.nfc.NdefRecord; 40 NdefRecord r; 42 r = new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null); 46 assertEquals(NdefRecord.TNF_EMPTY, r.getTnf()); 50 assertEquals(new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null), 51 new NdefRecord(NdefRecord.TNF_EMPTY, null, null, null)); 53 new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowNdefRecord.java | 3 import android.nfc.NdefRecord; 8 @Implements(NdefRecord.class) 11 private NdefRecord realNdefRecord;
|
ShadowNdefMessage.java | 4 import android.nfc.NdefRecord; 14 private NdefRecord[] ndefRecords; 16 public void __constructor__(NdefRecord[] ndefRecords) { 21 public NdefRecord[] getRecords() {
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
NdefRecordTest.java | 3 import android.nfc.NdefRecord; 16 NdefRecord ndefRecord = new NdefRecord(bytes); 18 assertSame(ndefRecord.getPayload(), bytes);
|
NdefMessageTest.java | 4 import android.nfc.NdefRecord; 16 NdefRecord[] ndefRecords = {new NdefRecord("mumble".getBytes())};
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
SnepCustomClientTests.java | 26 import android.nfc.NdefRecord; 76 NdefRecord rec = new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI, NdefRecord.RTD_URI, 78 return new NdefMessage(new NdefRecord[] { rec }); 87 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), 89 return new NdefMessage(new NdefRecord[] { rec }) [all...] |
SnepDefaultClientTests.java | 26 import android.nfc.NdefRecord; 76 NdefRecord rec = new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI, NdefRecord.RTD_URI, 78 return new NdefMessage(new NdefRecord[] { rec }); 87 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), 89 return new NdefMessage(new NdefRecord[] { rec }) [all...] |
SnepValidationServerTests.java | 26 import android.nfc.NdefRecord; 69 NdefRecord rec = new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI, NdefRecord.RTD_URI, 71 return new NdefMessage(new NdefRecord[] { rec }); 80 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), 82 return new NdefMessage(new NdefRecord[] { rec }) [all...] |
SnepValidationClientTests.java | 26 import android.nfc.NdefRecord; 182 NdefRecord rec = new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_URI, 184 return new NdefMessage(new NdefRecord[] { rec }); 193 NdefRecord rec = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "text/plain".getBytes(), 195 return new NdefMessage(new NdefRecord[] { rec }) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
NfcUtils.java | 20 import android.nfc.NdefRecord; 32 private static boolean areRecordArraysEqual(NdefRecord[] records, NdefRecord[] otherRecords) { 45 private static boolean areRecordsEqual(NdefRecord record, NdefRecord otherRecord) {
|
NdefTagTester.java | 24 import android.nfc.NdefRecord; 67 NdefRecord mimeRecord = createRandomMimeRecord(random); 68 NdefRecord[] expectedRecords = new NdefRecord[] {mimeRecord}; 81 NdefRecord[] records = message.getRecords(); 84 NdefRecord record = records[0]; 99 private NdefRecord createRandomMimeRecord(Random random) { 104 return new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, id, payload);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
RobolectricShadowOfLevel9.java | 4 import android.nfc.NdefRecord; 17 public static ShadowNdefRecord shadowOf(NdefRecord instance) {
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
TextRecord.java | 26 import android.nfc.NdefRecord; 80 public static TextRecord parse(NdefRecord record) { 81 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); 82 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT)); 119 public static boolean isText(NdefRecord record) { 129 public static NdefRecord newTextRecord(String text, Locale locale) { 133 public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8) { 151 return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], data) [all...] |
ImageRecord.java | 25 import android.nfc.NdefRecord; 34 * A NdefRecord corresponding to an image type. 53 public static ImageRecord parse(NdefRecord record) { 69 public static boolean isImage(NdefRecord record) { 78 public static NdefRecord newImageRecord(Bitmap bitmap) { 82 return NdefRecord.createMime("image/jpeg", content);
|
MimeRecord.java | 25 import android.nfc.NdefRecord; 70 public static MimeRecord parse(NdefRecord record) { 75 public static boolean isMime(NdefRecord record) { 79 public static NdefRecord newMimeRecord(String type, byte[] data) { 80 return NdefRecord.createMime(type, data);
|
SmartPoster.java | 30 import android.nfc.NdefRecord; 124 public static SmartPoster parse(NdefRecord record) { 125 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); 126 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_SMART_POSTER)); 135 public static SmartPoster parse(NdefRecord[] recordsRaw) { 150 public static boolean isPoster(NdefRecord record) { 224 private static NdefRecord getByType(byte[] type, NdefRecord[] records) { 225 for (NdefRecord record : records) { 235 private static RecommendedAction parseRecommendedAction(NdefRecord[] records) [all...] |
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverManager.java | 38 import android.nfc.NdefRecord; 236 static NdefRecord createCollisionRecord() { 239 return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, RTD_COLLISION_RESOLUTION, null, random); 242 NdefRecord createBluetoothAlternateCarrierRecord(boolean activating) { 249 return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_ALTERNATIVE_CARRIER, null, payload); 252 NdefRecord createBluetoothOobDataRecord() { 270 return new NdefRecord(NdefRecord.TNF_MIME_MEDIA, TYPE_BT_OOB, new byte[]{'b'}, payload) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/nfc/ |
ForegroundNdefPush.java | 23 import android.nfc.NdefRecord; 43 mMessage = new NdefMessage(NdefRecord.createUri("http://www.android.com"));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
NdefPushSenderActivity.java | 24 import android.nfc.NdefRecord; 63 return new NdefMessage(new NdefRecord[] { 64 new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, id, payload)
|
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/ |
TagCanon.java | 30 import android.nfc.NdefRecord; 52 public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8) { 70 return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], data); 73 public static NdefRecord newMimeRecord(String type, byte[] data) { 79 return new NdefRecord(NdefRecord.TNF_MIME_MEDIA, typeBytes, new byte[0], data); 95 NdefRecord text = newTextRecord("There's an image below this text!", Locale.US, true); 96 NdefRecord image = newMimeRecord("image/png", payload) [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
NfcHandler.java | 23 import android.nfc.NdefRecord; 91 NdefRecord record = NdefRecord.createMime("text/x-vcard", ndefBytes.toByteArray());
|
/packages/apps/Tag/src/com/android/apps/tag/message/ |
NdefMessageParser.java | 29 import android.nfc.NdefRecord; 51 public static List<ParsedNdefRecord> getRecords(NdefRecord[] records) { 53 for (NdefRecord record : records) {
|