public boolean openFingerPrintOrNot() {
    KeyguardViewHostManager manager = KeyguardViewHostManager.getInstance();
    if (manager == null) {
      return false;
    }
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSecureFrozen: " + isSecureFrozen());
    if (isSecureFrozen()) {
      return false;
    }

    boolean isSecure = manager.isSecure();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSecure: " + isSecure);
    if (!isSecure) {
      return false;
    }
    boolean isSkylightShown = manager.getIsSkylightShown();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSkylightShown: " + isSkylightShown);
    if (isSkylightShown) {
      return false;
    }
    boolean isKeyguardShown = manager.isShowingAndNotOccluded();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isKeyguardShown: " + isKeyguardShown);
    if (!isKeyguardShown) {
      return false;
    }

    boolean isSimRequired = manager.needsFullscreenBouncer();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSimRequired: " + isSimRequired);
    if (isSimRequired) {
      return false;
    }
    return true;
  }
  private boolean isActiveFingerPrint() {
    KeyguardViewHostManager manager = KeyguardViewHostManager.getInstance();
    if (manager == null) {
      return false;
    }
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSecureFrozen: " + isSecureFrozen());
    if (isSecureFrozen()) {
      return false;
    }
    boolean isSupportFinger = KeyguardViewHostManager.isSuppotFinger();
    if (!isSupportFinger) {
      return false;
    }
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  switchOpen: " + mFingerprintSwitchOpen);
    if (!mFingerprintSwitchOpen) {
      return false;
    }
    boolean isSecure = manager.isSecure();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSecure: " + isSecure);
    if (!isSecure) {
      return false;
    }
    boolean isSkylightShown = manager.getIsSkylightShown();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSkylightShown: " + isSkylightShown);
    if (isSkylightShown) {
      return false;
    }
    boolean isKeyguardShown = manager.isShowingAndNotOccluded();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isKeyguardShown: " + isKeyguardShown);
    if (!isKeyguardShown) {
      return false;
    }
    boolean isScreenOn = manager.isScreenOn();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isScreenOn: " + isScreenOn);
    if (!isScreenOn) {
      return false;
    }

    boolean isSimRequired = manager.needsFullscreenBouncer();
    DebugLog.d(LOG_TAG, "isActiveFingerPrint  isSimRequired: " + isSimRequired);
    if (isSimRequired) {
      return false;
    }
    return true;
  }