/frameworks/base/core/java/android/nfc/ |
NdefMessage.aidl | 19 parcelable NdefMessage;
|
NdefMessage.java | 45 * Use {@link #NdefMessage(byte[])} to construct an NDEF Message from 46 * binary data, or {@link #NdefMessage(NdefRecord[])} to 49 * {@link NdefMessage} and {@link NdefRecord} implementations are 61 public final class NdefMessage implements Parcelable { 94 public NdefMessage(byte[] data) throws FormatException { 111 public NdefMessage(NdefRecord record, NdefRecord ... records) { 131 public NdefMessage(NdefRecord[] records) { 147 * An {@link NdefMessage} always has one or more NDEF Records: so the 151 * NdefRecord firstRecord = ndefMessage.getRecords()[0]; 216 public static final Parcelable.Creator<NdefMessage> CREATOR [all...] |
INfcTag.aidl | 19 import android.nfc.NdefMessage; 35 NdefMessage ndefRead(int nativeHandle); 36 int ndefWrite(int nativeHandle, in NdefMessage msg);
|
BeamShareData.java | 10 * Allows bundling NdefMessage, Uris and flags in a single 16 public final NdefMessage ndefMessage; 21 public BeamShareData(NdefMessage msg, Uri[] uris, UserHandle userHandle, int flags) { 22 this.ndefMessage = msg; 36 dest.writeParcelable(ndefMessage, 0); 50 NdefMessage msg = source.readParcelable(NdefMessage.class.getClassLoader());
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowNdefMessage.java | 3 import android.nfc.NdefMessage; 9 @Implements(NdefMessage.class) 12 private NdefMessage realNdefMessage;
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
NdefMessageTest.java | 3 import android.nfc.NdefMessage; 17 NdefMessage ndefMessage = new NdefMessage(ndefRecords); 19 assertSame(ndefMessage.getRecords(), ndefRecords);
|
/cts/tests/tests/ndef/src/android/ndef/cts/ |
NdefTest.java | 23 import android.nfc.NdefMessage; 63 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 65 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 68 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 70 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 73 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 75 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 83 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 85 new NdefMessage(new NdefRecord(NdefRecord.TNF_EXTERNAL_TYPE, 112 new NdefMessage(b) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/nfc/ |
ForegroundNdefPush.java | 22 import android.nfc.NdefMessage; 34 private NdefMessage mMessage; 43 mMessage = new NdefMessage(NdefRecord.createUri("http://www.android.com"));
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/ |
RobolectricShadowOfLevel9.java | 3 import android.nfc.NdefMessage; 13 public static ShadowNdefMessage shadowOf(NdefMessage instance) {
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
SnepValidationServerTests.java | 25 import android.nfc.NdefMessage; 44 private Map<ByteArrayWrapper, NdefMessage> mStoredNdef = 45 new HashMap<ByteArrayWrapper, NdefMessage>(); 68 private NdefMessage getSmallNdef() { 71 return new NdefMessage(new NdefRecord[] { rec }); 74 private NdefMessage getLargeNdef() { 82 return new NdefMessage(new NdefRecord[] { rec }); 110 public SnepMessage doPut(NdefMessage msg) { 120 public SnepMessage doGet(int acceptableLength, NdefMessage msg) { 125 NdefMessage result = mStoredNdef.get(id) [all...] |
SnepCustomClientTests.java | 25 import android.nfc.NdefMessage; 75 private NdefMessage getSmallNdef() { 78 return new NdefMessage(new NdefRecord[] { rec }); 81 private NdefMessage getLargeNdef() { 89 return new NdefMessage(new NdefRecord[] { rec });
|
SnepDefaultClientTests.java | 25 import android.nfc.NdefMessage; 75 private NdefMessage getSmallNdef() { 78 return new NdefMessage(new NdefRecord[] { rec }); 81 private NdefMessage getLargeNdef() { 89 return new NdefMessage(new NdefRecord[] { rec });
|
SnepValidationClientTests.java | 25 import android.nfc.NdefMessage; 54 NdefMessage msg = getSmallNdef(); 79 NdefMessage msg = getLargeNdef(); 106 NdefMessage msgA = getSmallNdef(); 107 NdefMessage msgB = getLargeNdef(); 147 NdefMessage msg = getSmallNdef(); 165 NdefMessage msg = getLargeNdef(); 181 private NdefMessage getSmallNdef() { 184 return new NdefMessage(new NdefRecord[] { rec }); 187 private NdefMessage getLargeNdef() [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
NdefPushSenderActivity.java | 23 import android.nfc.NdefMessage; 39 static final NdefMessage TEST_MESSAGE = getTestMessage(); 60 private static NdefMessage getTestMessage() { 65 return new NdefMessage(new NdefRecord[] { 102 public NdefMessage createNdefMessage(NfcEvent event) {
|
NdefPushReceiverActivity.java | 27 import android.nfc.NdefMessage; 90 NdefMessage[] messages = getNdefMessages(intent); 102 private NdefMessage[] getNdefMessages(Intent intent) { 105 NdefMessage[] messages = new NdefMessage[rawMessages.length]; 107 messages[i] = (NdefMessage) rawMessages[i];
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushProtocol.java | 21 import android.nfc.NdefMessage; 41 private NdefMessage[] mMessages; 43 public NdefPushProtocol(NdefMessage msg, byte action) { 47 mMessages = new NdefMessage[1]; 51 public NdefPushProtocol(byte[] actions, NdefMessage[] messages) { 61 mMessages = new NdefMessage[numMessages]; 92 Log.w(TAG, "No NdefMessage inside NdefMessageSet packet"); 98 mMessages = new NdefMessage[mNumMessages]; 129 // Create and store NdefMessage 131 mMessages[i] = new NdefMessage(bytes) [all...] |
/development/samples/AndroidBeamDemo/src/com/example/android/beam/ |
Beam.java | 21 import android.nfc.NdefMessage; 72 public NdefMessage createNdefMessage(NfcEvent event) { 77 NdefMessage msg = new NdefMessage(NdefRecord.createMime( 136 NdefMessage msg = (NdefMessage) rawMsgs[0];
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
SnepMessage.java | 20 import android.nfc.NdefMessage; 51 private final NdefMessage mNdefMessage; 53 public static SnepMessage getGetRequest(int acceptableLength, NdefMessage ndef) { 58 public static SnepMessage getPutRequest(NdefMessage ndef) { 66 public static SnepMessage getSuccessResponse(NdefMessage ndef) { 99 mNdefMessage = new NdefMessage(bytes); 106 NdefMessage ndefMessage) { 111 mNdefMessage = ndefMessage; 147 public NdefMessage getNdefMessage() [all...] |
/frameworks/base/core/java/android/nfc/tech/ |
NdefFormatable.java | 22 import android.nfc.NdefMessage; 76 * Format a tag as NDEF, and write a {@link NdefMessage}. 93 public void format(NdefMessage firstMessage) throws IOException, FormatException { 98 * Formats a tag as NDEF, write a {@link NdefMessage}, and make read-only. 115 public void formatReadOnly(NdefMessage firstMessage) throws IOException, FormatException { 119 /*package*/ void format(NdefMessage firstMessage, boolean makeReadOnly) throws IOException,
|
Ndef.java | 22 import android.nfc.NdefMessage; 37 * {@link android.nfc.NdefMessage} and 39 * retrieve and modify the {@link android.nfc.NdefMessage} 129 private final NdefMessage mNdefMsg; 173 * Get the {@link NdefMessage} that was read from the tag at discovery time. 184 public NdefMessage getCachedNdefMessage() { 246 * Read the current {@link android.nfc.NdefMessage} on this tag. 265 public NdefMessage getNdefMessage() throws IOException, FormatException { 275 NdefMessage msg = tagService.ndefRead(serviceHandle); 292 * Overwrite the {@link NdefMessage} on this tag [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
NfcUtils.java | 19 import android.nfc.NdefMessage; 27 public static boolean areMessagesEqual(NdefMessage message, NdefMessage otherMessage) {
|
NdefTagTester.java | 23 import android.nfc.NdefMessage; 70 final NdefMessage expectedMessage = new NdefMessage(expectedRecords); 80 NdefMessage message = readMessage(tag); 107 private void writeMessage(Tag tag, NdefMessage message) throws IOException, FormatException { 124 private NdefMessage readMessage(Tag tag) throws IOException, FormatException {
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverClient.java | 19 import android.nfc.NdefMessage; 98 public NdefMessage sendHandoverRequest(NdefMessage msg) throws IOException { 125 NdefMessage handoverSelectMsg = null; 133 handoverSelectMsg = new NdefMessage(byteStream.toByteArray());
|
HandoverDataParser.java | 33 import android.nfc.NdefMessage; 86 public final NdefMessage handoverSelect; 89 public IncomingHandoverData(NdefMessage handoverSelect, 142 public NdefMessage createHandoverRequestMessage() { 150 return new NdefMessage( 155 NdefMessage createBluetoothHandoverSelectMessage(boolean activating) { 156 return new NdefMessage(createHandoverSelectRecord( 162 NdefMessage nestedMessage = new NdefMessage(alternateCarrier); 181 NdefMessage nestedMessage = new NdefMessage(createCollisionRecord(), messages) [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
NfcHandler.java | 23 import android.nfc.NdefMessage; 65 public NdefMessage createNdefMessage(NfcEvent event) { 92 return new NdefMessage(record);
|