Search in sources :

Example 1 with PreviewInflater

use of com.android.systemui.statusbar.policy.PreviewInflater in project platform_frameworks_base by android.

the class KeyguardBottomAreaView method onFinishInflate.

@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mLockPatternUtils = new LockPatternUtils(mContext);
    mPreviewContainer = (ViewGroup) findViewById(R.id.preview_container);
    mCameraImageView = (KeyguardAffordanceView) findViewById(R.id.camera_button);
    mLeftAffordanceView = (KeyguardAffordanceView) findViewById(R.id.left_button);
    mLockIcon = (LockIcon) findViewById(R.id.lock_icon);
    mIndicationText = (TextView) findViewById(R.id.keyguard_indication_text);
    watchForCameraPolicyChanges();
    updateCameraVisibility();
    mUnlockMethodCache = UnlockMethodCache.getInstance(getContext());
    mUnlockMethodCache.addListener(this);
    mLockIcon.update();
    setClipChildren(false);
    setClipToPadding(false);
    mPreviewInflater = new PreviewInflater(mContext, new LockPatternUtils(mContext));
    inflateCameraPreview();
    mLockIcon.setOnClickListener(this);
    mLockIcon.setOnLongClickListener(this);
    mCameraImageView.setOnClickListener(this);
    mLeftAffordanceView.setOnClickListener(this);
    initAccessibility();
}
Also used : PreviewInflater(com.android.systemui.statusbar.policy.PreviewInflater) LockPatternUtils(com.android.internal.widget.LockPatternUtils)

Example 2 with PreviewInflater

use of com.android.systemui.statusbar.policy.PreviewInflater in project android_frameworks_base by AOSPA.

the class KeyguardBottomAreaView method onFinishInflate.

@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mLockPatternUtils = new LockPatternUtils(mContext);
    mPreviewContainer = (ViewGroup) findViewById(R.id.preview_container);
    mEmergencyButton = (EmergencyButton) findViewById(R.id.emergency_call_button);
    mCameraImageView = (KeyguardAffordanceView) findViewById(R.id.camera_button);
    mLeftAffordanceView = (KeyguardAffordanceView) findViewById(R.id.left_button);
    mLockIcon = (LockIcon) findViewById(R.id.lock_icon);
    mIndicationText = (TextView) findViewById(R.id.keyguard_indication_text);
    watchForCameraPolicyChanges();
    updateCameraVisibility();
    mUnlockMethodCache = UnlockMethodCache.getInstance(getContext());
    mUnlockMethodCache.addListener(this);
    mLockIcon.update();
    updateEmergencyButton();
    setClipChildren(false);
    setClipToPadding(false);
    mPreviewInflater = new PreviewInflater(mContext, new LockPatternUtils(mContext));
    inflateCameraPreview();
    mLockIcon.setOnClickListener(this);
    mLockIcon.setOnLongClickListener(this);
    mCameraImageView.setOnClickListener(this);
    mLeftAffordanceView.setOnClickListener(this);
    initAccessibility();
}
Also used : PreviewInflater(com.android.systemui.statusbar.policy.PreviewInflater) LockPatternUtils(com.android.internal.widget.LockPatternUtils)

Example 3 with PreviewInflater

use of com.android.systemui.statusbar.policy.PreviewInflater in project android_frameworks_base by crdroidandroid.

the class KeyguardBottomAreaView method onFinishInflate.

@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mLockPatternUtils = new LockPatternUtils(mContext);
    mPreviewContainer = (ViewGroup) findViewById(R.id.preview_container);
    mCameraImageView = (KeyguardAffordanceView) findViewById(R.id.camera_button);
    mLeftAffordanceView = (KeyguardAffordanceView) findViewById(R.id.left_button);
    mLockIcon = (LockIcon) findViewById(R.id.lock_icon);
    mIndicationText = (TextView) findViewById(R.id.keyguard_indication_text);
    mShortcutHelper = new LockscreenShortcutsHelper(mContext, this);
    watchForCameraPolicyChanges();
    updateCameraVisibility();
    updateLeftButtonVisibility();
    mUnlockMethodCache = UnlockMethodCache.getInstance(getContext());
    mUnlockMethodCache.addListener(this);
    mLockIcon.update();
    setClipChildren(false);
    setClipToPadding(false);
    mPreviewInflater = new PreviewInflater(mContext, new LockPatternUtils(mContext));
    mLockIcon.setOnClickListener(this);
    mLockIcon.setOnLongClickListener(this);
    mCameraImageView.setOnClickListener(this);
    mLeftAffordanceView.setOnClickListener(this);
    initAccessibility();
    updateCustomShortcuts();
}
Also used : PreviewInflater(com.android.systemui.statusbar.policy.PreviewInflater) LockPatternUtils(com.android.internal.widget.LockPatternUtils) LockscreenShortcutsHelper(com.android.systemui.cm.LockscreenShortcutsHelper)

Example 4 with PreviewInflater

use of com.android.systemui.statusbar.policy.PreviewInflater in project android_frameworks_base by DirtyUnicorns.

the class KeyguardBottomAreaView method onFinishInflate.

@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mLockPatternUtils = new LockPatternUtils(mContext);
    mPreviewContainer = (ViewGroup) findViewById(R.id.preview_container);
    mCameraImageView = (KeyguardAffordanceView) findViewById(R.id.camera_button);
    mLeftAffordanceView = (KeyguardAffordanceView) findViewById(R.id.left_button);
    mLockIcon = (LockIcon) findViewById(R.id.lock_icon);
    mIndicationText = (TextView) findViewById(R.id.keyguard_indication_text);
    watchForCameraPolicyChanges();
    updateCameraVisibility();
    mUnlockMethodCache = UnlockMethodCache.getInstance(getContext());
    mUnlockMethodCache.addListener(this);
    mLockIcon.update();
    setClipChildren(false);
    setClipToPadding(false);
    mPreviewInflater = new PreviewInflater(mContext, new LockPatternUtils(mContext));
    inflateCameraPreview();
    mLockIcon.setOnClickListener(this);
    mLockIcon.setOnLongClickListener(this);
    mCameraImageView.setOnClickListener(this);
    mLeftAffordanceView.setOnClickListener(this);
    initAccessibility();
}
Also used : PreviewInflater(com.android.systemui.statusbar.policy.PreviewInflater) LockPatternUtils(com.android.internal.widget.LockPatternUtils)

Example 5 with PreviewInflater

use of com.android.systemui.statusbar.policy.PreviewInflater in project android_frameworks_base by ResurrectionRemix.

the class KeyguardBottomAreaView method onFinishInflate.

@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mLockPatternUtils = new LockPatternUtils(mContext);
    mPreviewContainer = (ViewGroup) findViewById(R.id.preview_container);
    mCameraImageView = (KeyguardAffordanceView) findViewById(R.id.camera_button);
    mLeftAffordanceView = (KeyguardAffordanceView) findViewById(R.id.left_button);
    mLockIcon = (LockIcon) findViewById(R.id.lock_icon);
    mIndicationText = (TextView) findViewById(R.id.keyguard_indication_text);
    mShortcutHelper = new LockscreenShortcutsHelper(mContext, this);
    watchForCameraPolicyChanges();
    updateCameraVisibility();
    updateLeftButtonVisibility();
    mUnlockMethodCache = UnlockMethodCache.getInstance(getContext());
    mUnlockMethodCache.addListener(this);
    updateCameraIconColor();
    updatePhoneIconColor();
    updateLockIconColor();
    updateIndicationTextColor();
    mLockIcon.update();
    setClipChildren(false);
    setClipToPadding(false);
    mPreviewInflater = new PreviewInflater(mContext, new LockPatternUtils(mContext));
    mLockIcon.setOnClickListener(this);
    mLockIcon.setOnLongClickListener(this);
    mCameraImageView.setOnClickListener(this);
    mLeftAffordanceView.setOnClickListener(this);
    initAccessibility();
    updateCustomShortcuts();
}
Also used : PreviewInflater(com.android.systemui.statusbar.policy.PreviewInflater) LockPatternUtils(com.android.internal.widget.LockPatternUtils) LockscreenShortcutsHelper(com.android.systemui.cm.LockscreenShortcutsHelper)

Aggregations

LockPatternUtils (com.android.internal.widget.LockPatternUtils)5 PreviewInflater (com.android.systemui.statusbar.policy.PreviewInflater)5 LockscreenShortcutsHelper (com.android.systemui.cm.LockscreenShortcutsHelper)2