summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2015-03-12 01:20:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-12 01:20:05 +0000
commit216ce5d7b2b0c10305c8e109d5b5197c67cd76ab (patch)
tree700d1b7aff913cfa53a829652d894ff47051024b /core/java/android
parentd5e97f93f0aee11952b08d1083623f4e63a36b72 (diff)
parent99d6019bead4705b7e126e65b856d538417d4934 (diff)
downloadframeworks_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.java23
-rw-r--r--core/java/android/service/fingerprint/IFingerprintService.aidl3
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);
}