diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/service/fingerprint/FingerprintManager.java | 23 | ||||
| -rw-r--r-- | core/java/android/service/fingerprint/IFingerprintService.aidl | 3 |
2 files changed, 24 insertions, 2 deletions
diff --git a/core/java/android/service/fingerprint/FingerprintManager.java b/core/java/android/service/fingerprint/FingerprintManager.java index 731709b..6375668 100644 --- a/core/java/android/service/fingerprint/FingerprintManager.java +++ b/core/java/android/service/fingerprint/FingerprintManager.java @@ -98,8 +98,8 @@ public class FingerprintManager { }; public static final class FingerprintItem { - CharSequence name; - int id; + public CharSequence name; + public int id; FingerprintItem(CharSequence name, int id) { this.name = name; this.id = id; @@ -291,4 +291,23 @@ public class FingerprintManager { } return false; } + + /** + * Renames the given fingerprint template + * @param fpId the fingerprint id + * @param newName the new name + * @hide + */ + public void rename(int fpId, String newName) { + // Renames the given fpId + if (mService != null) { + try { + mService.rename(fpId, newName); + } catch (RemoteException e) { + Log.v(TAG, "Remote exception in rename(): ", e); + } + } else { + Log.w(TAG, "rename(): Service not connected!"); + } + } }
\ No newline at end of file diff --git a/core/java/android/service/fingerprint/IFingerprintService.aidl b/core/java/android/service/fingerprint/IFingerprintService.aidl index a7d4090..9b4750b 100644 --- a/core/java/android/service/fingerprint/IFingerprintService.aidl +++ b/core/java/android/service/fingerprint/IFingerprintService.aidl @@ -41,4 +41,7 @@ interface IFingerprintService { // Determine if HAL is loaded and ready boolean isHardwareDetected(); + + // Rename the given fingerprint id + void rename(int fpId, String name); } |
