diff options
| author | Jim Miller <jaggies@google.com> | 2015-03-12 01:20:05 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-12 01:20:05 +0000 |
| commit | 216ce5d7b2b0c10305c8e109d5b5197c67cd76ab (patch) | |
| tree | 700d1b7aff913cfa53a829652d894ff47051024b /core/java/android | |
| parent | d5e97f93f0aee11952b08d1083623f4e63a36b72 (diff) | |
| parent | 99d6019bead4705b7e126e65b856d538417d4934 (diff) | |
| download | frameworks_base-216ce5d7b2b0c10305c8e109d5b5197c67cd76ab.zip frameworks_base-216ce5d7b2b0c10305c8e109d5b5197c67cd76ab.tar.gz frameworks_base-216ce5d7b2b0c10305c8e109d5b5197c67cd76ab.tar.bz2 | |
Merge "Add rename support to FingerprintManager"
Diffstat (limited to 'core/java/android')
| -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); } |
