diff options
author | Andres Morales <anmorales@google.com> | 2014-05-20 23:40:37 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-20 23:40:37 +0000 |
commit | 94a17b5f184a4443e320aa2bf66d959119d8bfef (patch) | |
tree | afb75af5c9ed799fa110ab95dbd58ad53923db9f /packages/Keyguard | |
parent | 47a7d61e70230bbed030e8795a17bf43c479616f (diff) | |
parent | 62b25a5bf0750483f36ac79c88177ee2ab630f8e (diff) | |
download | frameworks_base-94a17b5f184a4443e320aa2bf66d959119d8bfef.zip frameworks_base-94a17b5f184a4443e320aa2bf66d959119d8bfef.tar.gz frameworks_base-94a17b5f184a4443e320aa2bf66d959119d8bfef.tar.bz2 |
Merge "Revert "Adding INfcUnlockSettings and NfcUnlock interface class.""
Diffstat (limited to 'packages/Keyguard')
3 files changed, 1 insertions, 42 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java index f85e29f..2685447 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java @@ -16,8 +16,6 @@ package com.android.keyguard; -import android.nfc.NfcUnlock; - import com.android.internal.widget.LockPatternUtils; import com.android.keyguard.KeyguardSecurityModel.SecurityMode; import com.android.keyguard.KeyguardUpdateMonitor.DisplayClientState; @@ -46,6 +44,7 @@ import android.os.UserManager; import android.provider.Settings; import android.util.AttributeSet; import android.util.Log; +import android.util.Slog; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; @@ -264,12 +263,6 @@ public class KeyguardHostView extends KeyguardViewBase { } } } - @Override - public void onNfcUnlock() { - if (NfcUnlock.getPropertyEnabled()) { - dismiss(true); - } - } }; private static final boolean isMusicPlaying(int playbackState) { diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java index d6351df..0bcd916 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java @@ -37,7 +37,6 @@ import static android.os.BatteryManager.EXTRA_LEVEL; import static android.os.BatteryManager.EXTRA_HEALTH; import android.media.AudioManager; import android.media.IRemoteControlDisplay; -import android.nfc.NfcUnlock; import android.os.BatteryManager; import android.os.Bundle; import android.os.Handler; @@ -98,7 +97,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { protected static final int MSG_REPORT_EMERGENCY_CALL_ACTION = 318; private static final int MSG_SCREEN_TURNED_ON = 319; private static final int MSG_SCREEN_TURNED_OFF = 320; - private static final int MSG_NFC_UNLOCK = 321; private static final int MSG_KEYGUARD_BOUNCER_CHANGED = 322; private static KeyguardUpdateMonitor sInstance; @@ -204,9 +202,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { case MSG_SCREEN_TURNED_ON: handleScreenTurnedOn(); break; - case MSG_NFC_UNLOCK: - handleNfcUnlock(); - break; } } }; @@ -356,15 +351,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } }; - private final BroadcastReceiver mNfcUnlockReceiver = new BroadcastReceiver() { - @Override - public void onReceive(Context context, Intent intent) { - if (NfcUnlock.ACTION_NFC_UNLOCK.equals(intent.getAction())) { - mHandler.sendEmptyMessage(MSG_NFC_UNLOCK); - } - } - } - ; /** * When we receive a * {@link com.android.internal.telephony.TelephonyIntents#ACTION_SIM_STATE_CHANGED} broadcast, @@ -549,15 +535,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } } - private void handleNfcUnlock() { - for (int i = 0; i < mCallbacks.size(); i++) { - KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); - if (cb != null) { - cb.onNfcUnlock(); - } - } - } - private KeyguardUpdateMonitor(Context context) { mContext = context; @@ -587,11 +564,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { filter.addAction(Intent.ACTION_USER_REMOVED); context.registerReceiver(mBroadcastReceiver, filter); - final IntentFilter nfcUnlockIntentFilter = new IntentFilter(); - nfcUnlockIntentFilter.addAction(NfcUnlock.ACTION_NFC_UNLOCK); - context.registerReceiver(mNfcUnlockReceiver, nfcUnlockIntentFilter, - NfcUnlock.NFC_UNLOCK_PERMISSION, null /* run on default scheduler */); - final IntentFilter bootCompleteFilter = new IntentFilter(); bootCompleteFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); bootCompleteFilter.addAction(Intent.ACTION_BOOT_COMPLETED); diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java index 91a024f..76206f7 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java @@ -179,10 +179,4 @@ public class KeyguardUpdateMonitorCallback { * {@link WindowManagerPolicy#OFF_BECAUSE_OF_TIMEOUT}. */ public void onScreenTurnedOff(int why) { } - - /** - * Called when the NFC Service has found a tag that is registered for NFC unlock. - */ - public void onNfcUnlock() { } - } |