예제 #1
0
  public void onScreenTurnedOff() {
    mKeyguardViewHost.onScreenTurnedOff();
    mKeyguardWallpaperManager.onScreenTurnedOff();
    finishStatistics();

    cancelFingerIdentify();

    DebugLog.d(
        TAG, "KeyguardViewHostManager systemui versionName:" + NavilSettings.getVersionName());
  }
예제 #2
0
  public void hide() {
    DebugLog.d(TAG, "hide");
    DataStatistics.getInstance().unlockScreenWhenHasNotification(mContext);
    destroyAcivityIfNeed();
    mKeyguardViewHost.hide();
    setSkylightHidden();

    finishStatistics();
    Wallpaper wallpaper = UIController.getInstance().getmCurrentWallpaper();
    WallpaperStatisticsPolicy.onWallpaperNotShown(wallpaper);
    updateNotifiOnkeyguard(false);
    releaseCache();
    mContainer.reset();
    UIController.getInstance().securityViewAlphaAnimationUpdating(1f);
    UIController.getInstance().dismissNetworkDialog();
    cancelFingerIdentify();
  }
예제 #3
0
  private void handleShowSkylight() {

    if (SkylightUtil.getIsHallOpen(mContext)) {
      return;
    }

    cancelFingerIdentify();
    if (DEBUG) {
      DebugLog.d(LOG_TAG, "showSkylight  skylight is null? " + (mSkylightHost == null));
    }
    mViewMediatorCallback.userActivity();
    if (mSkylightHost != null) {
      mSkylightHost.showSkylight();
      mSkylightHost.setVisibility(View.VISIBLE);
      mKeyguardViewHost.resetHostYToHomePosition();
      startActivityIfNeed();
      mIsSkylightShown = true;
      mViewMediatorCallback.adjustStatusBarLocked();
    }

    finishStatistics();
    // Don't clear cache when skylight be shown
    // releaseCache();
  }