Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25d5eaa1 authored by Yifan Hong's avatar Yifan Hong
Browse files

IBiometricsFingerprint uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: fingerprint works

Bug: 33844934
Change-Id: Ie5c03ff0e2fc38a1e41e2c292fc76b7592c33eb7
parent 2257285a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -97,7 +97,6 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
    static final String TAG = "FingerprintService";
    static final boolean DEBUG = true;
    private static final String FP_DATA_DIR = "fpdata";
    private static final String FINGERPRINT_HIDL = "fingerprint_hal";
    private static final int MSG_USER_SWITCHING = 10;
    private static final String ACTION_LOCKOUT_RESET =
            "com.android.server.fingerprint.ACTION_LOCKOUT_RESET";
@@ -219,7 +218,7 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
    public synchronized IBiometricsFingerprint getFingerprintDaemon() {
        if (mDaemon == null) {
            try {
                mDaemon = IBiometricsFingerprint.getService(FINGERPRINT_HIDL);
                mDaemon = IBiometricsFingerprint.getService();
            } catch (java.util.NoSuchElementException e) {
                // Service doesn't exist or cannot be opened. Logged below.
            } catch (RemoteException e) {