Home
last modified time | relevance | path

Searched refs:nfcIntent (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParser.java123 public ProvisioningParams parse(Intent nfcIntent) in parse() argument
125 if (!ACTION_NDEF_DISCOVERED.equals(nfcIntent.getAction())) { in parse()
131 NdefRecord firstRecord = getFirstNdefRecord(nfcIntent); in parse()
144 .setProvisioningAction(mUtils.mapIntentToDpmAction(nfcIntent)) in parse()
185 mUtils.isOrganizationOwnedProvisioning(nfcIntent)); in parse()
302 public static NdefRecord getFirstNdefRecord(Intent nfcIntent) { in getFirstNdefRecord() argument
304 final Parcelable[] ndefMessages = nfcIntent.getParcelableArrayExtra( in getFirstNdefRecord()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParserTest.java398 Intent nfcIntent = new Intent(NfcAdapter.ACTION_NDEF_DISCOVERED); in testGetFirstNdefRecord_nullNdefMessages() local
401 assertThat(PropertiesProvisioningDataParser.getFirstNdefRecord(nfcIntent)).isNull(); in testGetFirstNdefRecord_nullNdefMessages()
409 Intent nfcIntent = new Intent(NfcAdapter.ACTION_NDEF_DISCOVERED) in testGetFirstNdefRecord_noNfcMimeType() local
414 assertThat(PropertiesProvisioningDataParser.getFirstNdefRecord(nfcIntent)).isNull(); in testGetFirstNdefRecord_noNfcMimeType()
424 Intent nfcIntent = new Intent(NfcAdapter.ACTION_NDEF_DISCOVERED) in testGetFirstNdefRecord() local
429 assertThat(PropertiesProvisioningDataParser.getFirstNdefRecord(nfcIntent)) in testGetFirstNdefRecord()