Loading core/java/android/nfc/INfcAdapterExtras.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,5 @@ interface INfcAdapterExtras { int getCardEmulationRoute(in String pkg); void setCardEmulationRoute(in String pkg, int route); void authenticate(in String pkg, in byte[] token); String getDriverName(in String pkg); } nfc-extras/java/com/android/nfc_extras/NfcAdapterExtras.java +17 −0 Original line number Diff line number Diff line Loading @@ -234,4 +234,21 @@ public final class NfcAdapterExtras { attemptDeadServiceRecovery(e); } } /** * Returns the name of this adapter's driver. * * <p>Different NFC adapters may use different drivers. This value is * informational and should not be parsed. * * @return the driver name, or empty string if unknown */ public String getDriverName() { try { return sService.getDriverName(mPackageName); } catch (RemoteException e) { attemptDeadServiceRecovery(e); return ""; } } } Loading
core/java/android/nfc/INfcAdapterExtras.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,5 @@ interface INfcAdapterExtras { int getCardEmulationRoute(in String pkg); void setCardEmulationRoute(in String pkg, int route); void authenticate(in String pkg, in byte[] token); String getDriverName(in String pkg); }
nfc-extras/java/com/android/nfc_extras/NfcAdapterExtras.java +17 −0 Original line number Diff line number Diff line Loading @@ -234,4 +234,21 @@ public final class NfcAdapterExtras { attemptDeadServiceRecovery(e); } } /** * Returns the name of this adapter's driver. * * <p>Different NFC adapters may use different drivers. This value is * informational and should not be parsed. * * @return the driver name, or empty string if unknown */ public String getDriverName() { try { return sService.getDriverName(mPackageName); } catch (RemoteException e) { attemptDeadServiceRecovery(e); return ""; } } }