Jim Miller | ba7d94b | 2014-02-05 17:30:50 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 17 | package com.android.keyguard; |
| 18 | |
| 19 | import android.content.Context; |
Jim Miller | 5e612cf | 2014-02-03 17:57:23 -0800 | [diff] [blame] | 20 | import android.os.Bundle; |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 21 | import android.util.AttributeSet; |
Jim Miller | 5e612cf | 2014-02-03 17:57:23 -0800 | [diff] [blame] | 22 | import android.view.MotionEvent; |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 23 | |
| 24 | public class KeyguardSimpleHostView extends KeyguardViewBase { |
| 25 | |
| 26 | public KeyguardSimpleHostView(Context context, AttributeSet attrs) { |
| 27 | super(context, attrs); |
| 28 | } |
| 29 | |
| 30 | @Override |
Jim Miller | 5e612cf | 2014-02-03 17:57:23 -0800 | [diff] [blame] | 31 | protected void showBouncer(boolean show) { |
| 32 | super.showBouncer(show); |
| 33 | if (show) { |
| 34 | getSecurityContainer().showBouncer(250); |
| 35 | } else { |
| 36 | getSecurityContainer().hideBouncer(250); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | @Override |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 41 | public void verifyUnlock() { |
| 42 | // TODO Auto-generated method stub |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public void cleanUp() { |
| 47 | // TODO Auto-generated method stub |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public long getUserActivityTimeout() { |
Jim Miller | 5e612cf | 2014-02-03 17:57:23 -0800 | [diff] [blame] | 52 | return -1; // not used |
| 53 | } |
| 54 | |
| 55 | @Override |
| 56 | protected void onUserSwitching(boolean switching) { |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 57 | // TODO Auto-generated method stub |
Jim Miller | 5e612cf | 2014-02-03 17:57:23 -0800 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | @Override |
| 61 | protected void onCreateOptions(Bundle options) { |
| 62 | // TODO Auto-generated method stub |
| 63 | } |
| 64 | |
| 65 | @Override |
| 66 | protected void onExternalMotionEvent(MotionEvent event) { |
| 67 | // TODO Auto-generated method stub |
Jim Miller | 3eb4971 | 2014-01-28 18:22:42 -0800 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | } |