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

Commit 06e658f3 authored by Jim Miller's avatar Jim Miller
Browse files

Hide IFingerprintService and IFingerprintServiceReceiver

The @hide was being ignored because they were being used by the
constructor.  Fixed by making the FingerprintManager constructor
hidden.

Change-Id: I3cd409df5055579f5004b08d00d5d951b8e5afd3
parent cd589bab
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -26020,7 +26020,6 @@ package android.service.dreams {
package android.service.fingerprint {
  public class FingerprintManager {
    ctor public FingerprintManager(android.content.Context, android.service.fingerprint.IFingerprintService);
    method public void enroll(long);
    method public void enrollCancel();
    method public boolean enrolledAndEnabled();
@@ -26061,22 +26060,6 @@ package android.service.fingerprint {
    method public static boolean removeFingerprintIdForUser(int, android.content.ContentResolver, int);
  }
  public abstract interface IFingerprintService implements android.os.IInterface {
    method public abstract void enroll(android.os.IBinder, long, int) throws android.os.RemoteException;
    method public abstract void enrollCancel(android.os.IBinder, int) throws android.os.RemoteException;
    method public abstract void remove(android.os.IBinder, int, int) throws android.os.RemoteException;
    method public abstract void startListening(android.os.IBinder, android.service.fingerprint.IFingerprintServiceReceiver, int) throws android.os.RemoteException;
    method public abstract void stopListening(android.os.IBinder, int) throws android.os.RemoteException;
  }
  public abstract interface IFingerprintServiceReceiver implements android.os.IInterface {
    method public abstract void onAcquired(int) throws android.os.RemoteException;
    method public abstract void onEnrollResult(int, int) throws android.os.RemoteException;
    method public abstract void onError(int) throws android.os.RemoteException;
    method public abstract void onProcessed(int) throws android.os.RemoteException;
    method public abstract void onRemoved(int) throws android.os.RemoteException;
  }
}
package android.service.notification {
+2 −2
Original line number Diff line number Diff line
@@ -694,8 +694,8 @@ class ContextImpl extends Context {

        registerService(FINGERPRINT_SERVICE, new ServiceFetcher() {
            public Object createService(ContextImpl ctx) {
                IBinder b = ServiceManager.getService(FINGERPRINT_SERVICE);
                IFingerprintService service = IFingerprintService.Stub.asInterface(b);
                IBinder binder = ServiceManager.getService(FINGERPRINT_SERVICE);
                IFingerprintService service = IFingerprintService.Stub.asInterface(binder);
                return new FingerprintManager(ctx.getOuterContext(), service);
            }
        });
+3 −0
Original line number Diff line number Diff line
@@ -96,6 +96,9 @@ public class FingerprintManager {
        }
    };

    /**
     * @hide
     */
    public FingerprintManager(Context context, IFingerprintService service) {
        mContext = context;
        mService = service;
+0 −1
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ import android.os.SystemClock;
import android.os.SystemProperties;
import android.os.UserHandle;
import android.service.dreams.DreamService;
import android.service.fingerprint.FingerprintManager;
import android.util.DisplayMetrics;
import android.util.EventLog;
import android.util.Log;