aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2015-12-11 13:16:31 -0800
committerClark Scheff <clark@cyngn.com>2015-12-18 16:14:13 -0800
commit637e40fba514be93fbfbfc0073d56d62e3e114a8 (patch)
tree97ec28a6d9775c1b1e6ac369a074f4f00e93d700 /src
parentb9d7733a67b7790dcf19d4b52af4d60c9becb8f1 (diff)
downloadvendor_cmsdk-637e40fba514be93fbfbfc0073d56d62e3e114a8.tar.gz
vendor_cmsdk-637e40fba514be93fbfbfc0073d56d62e3e114a8.tar.bz2
vendor_cmsdk-637e40fba514be93fbfbfc0073d56d62e3e114a8.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/java/cyanogenmod/externalviews/KeyguardExternalView.java46
1 files changed, 46 insertions, 0 deletions
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);
+ }
+
+}