From 637e40fba514be93fbfbfc0073d56d62e3e114a8 Mon Sep 17 00:00:00 2001 From: Luis Vidal Date: Fri, 11 Dec 2015 13:16:31 -0800 Subject: [PATCH] Introduce KeyguardExternalView For now, this class is used only to expose the category that must be used by the activity requesting permissions in the keyguard and the name of the extra argument provided in the intent used to start such activity Change-Id: Ib978d192110ebab65691c6c3e03f977df2ab47d3 --- .../externalviews/KeyguardExternalView.java | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/java/cyanogenmod/externalviews/KeyguardExternalView.java diff --git a/src/java/cyanogenmod/externalviews/KeyguardExternalView.java b/src/java/cyanogenmod/externalviews/KeyguardExternalView.java new file mode 100644 index 0000000..07098a9 --- /dev/null +++ b/src/java/cyanogenmod/externalviews/KeyguardExternalView.java @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2015 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cyanogenmod.externalviews; + +import android.content.Context; +import android.content.ComponentName; +import android.util.AttributeSet; + +public final class KeyguardExternalView extends ExternalView { + + public static final String EXTRA_PERMISSION_LIST = "permissions_list"; + public static final String CATEGORY_KEYGUARD_GRANT_PERMISSION + = "org.cyanogenmod.intent.category.KEYGUARD_GRANT_PERMISSION"; + + public KeyguardExternalView(Context context, AttributeSet attrs) { + super(context,attrs); + } + + public KeyguardExternalView(Context context, AttributeSet attrs, int defStyleAttr) { + super(context,attrs,defStyleAttr); + } + + public KeyguardExternalView(Context context, AttributeSet attrs, int defStyleAttr, + int defStyleRes) { + super(context,attrs,defStyleAttr,defStyleRes); + } + + public KeyguardExternalView(Context context, AttributeSet attributeSet, + ComponentName componentName) { + super(context,attributeSet,componentName); + } + +}