Loading nfc/java/android/nfc/INfcAdapter.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,7 @@ interface INfcAdapter void notifyPollingLoop(in PollingFrame frame); void notifyHceDeactivated(); void notifyTestHceData(in int technology, in byte[] data); int sendVendorNciMessage(int mt, int gid, int oid, in byte[] payload); void registerVendorExtensionCallback(in INfcVendorNciCallback callbacks); void unregisterVendorExtensionCallback(in INfcVendorNciCallback callbacks); Loading nfc/java/android/nfc/NfcAdapter.java +27 −0 Original line number Diff line number Diff line Loading @@ -2856,6 +2856,33 @@ public final class NfcAdapter { } } /** * Notifies the system of new HCE data for tests. * * @hide */ @FlaggedApi(Flags.FLAG_NFC_READ_POLLING_LOOP) public void notifyTestHceData(int technology, byte[] data) { try { if (sService == null) { attemptDeadServiceRecovery(null); } sService.notifyTestHceData(technology, data); } catch (RemoteException e) { attemptDeadServiceRecovery(e); // Try one more time if (sService == null) { Log.e(TAG, "Failed to recover NFC Service."); return; } try { sService.notifyTestHceData(technology, data); } catch (RemoteException e2) { Log.e(TAG, "Failed to recover NFC Service."); } } } /** * Notifies the system of a an HCE session being deactivated. * * Loading Loading
nfc/java/android/nfc/INfcAdapter.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -104,6 +104,7 @@ interface INfcAdapter void notifyPollingLoop(in PollingFrame frame); void notifyHceDeactivated(); void notifyTestHceData(in int technology, in byte[] data); int sendVendorNciMessage(int mt, int gid, int oid, in byte[] payload); void registerVendorExtensionCallback(in INfcVendorNciCallback callbacks); void unregisterVendorExtensionCallback(in INfcVendorNciCallback callbacks); Loading
nfc/java/android/nfc/NfcAdapter.java +27 −0 Original line number Diff line number Diff line Loading @@ -2856,6 +2856,33 @@ public final class NfcAdapter { } } /** * Notifies the system of new HCE data for tests. * * @hide */ @FlaggedApi(Flags.FLAG_NFC_READ_POLLING_LOOP) public void notifyTestHceData(int technology, byte[] data) { try { if (sService == null) { attemptDeadServiceRecovery(null); } sService.notifyTestHceData(technology, data); } catch (RemoteException e) { attemptDeadServiceRecovery(e); // Try one more time if (sService == null) { Log.e(TAG, "Failed to recover NFC Service."); return; } try { sService.notifyTestHceData(technology, data); } catch (RemoteException e2) { Log.e(TAG, "Failed to recover NFC Service."); } } } /** * Notifies the system of a an HCE session being deactivated. * * Loading