File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
java/com/afwsamples/testdpc/policy/keyguard Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ abstract static class Keys {
75
75
static final String KEYGUARD_DISABLE_SECURE_NOTIFICATIONS =
76
76
"keyguard_disable_secure_notifications" ;
77
77
static final String KEYGUARD_DISABLE_SHORTCTUS = "keyguard_disable_shortcuts" ;
78
+ static final String KEYGUARD_DISABLE_WIDGETS_ALL = "keyguard_disable_widgets_all" ;
78
79
static final String KEYGUARD_DISABLE_TRUST_AGENTS = "keyguard_disable_trust_agents" ;
79
80
static final String KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS =
80
81
"keyguard_disable_unredacted_notifications" ;
@@ -117,6 +118,9 @@ abstract static class Keys {
117
118
118
119
KEYGUARD_FEATURES .put (
119
120
Keys .KEYGUARD_DISABLE_SHORTCTUS , DevicePolicyManager .KEYGUARD_DISABLE_SHORTCUTS_ALL );
121
+
122
+ KEYGUARD_FEATURES .put (
123
+ Keys .KEYGUARD_DISABLE_WIDGETS_ALL , DevicePolicyManager .KEYGUARD_DISABLE_WIDGETS_ALL );
120
124
}
121
125
122
126
@ Override
Original file line number Diff line number Diff line change 944
944
<string name =" keyguard_disable_fingerprint" >Disable fingerprint</string >
945
945
<string name =" keyguard_disable_remote_input" >Disable text entry in secure keyguard screen</string >
946
946
<string name =" keyguard_disable_shortcuts" >Disable shortcuts</string >
947
+ <string name =" keyguard_disable_widgets_all" >Disable widgets</string >
947
948
<string name =" cannot_disable_shortcuts_on_work_profile" >Can\'t disable shortcuts on work profile. Please switch to personal profile tab.</string >
948
949
949
950
<!-- Trust agent features -->
Original file line number Diff line number Diff line change 104
104
android : key =" keyguard_disable_shortcuts"
105
105
android : title =" @string/keyguard_disable_shortcuts"
106
106
testdpc : minSdkVersion =" U" />
107
+ <com .afwsamples.testdpc.common.preference.DpcSwitchPreference
108
+ android : key =" keyguard_disable_widgets_all"
109
+ android : title =" @string/keyguard_disable_widgets_all"
110
+ testdpc : minSdkVersion =" L" />
107
111
</PreferenceCategory >
108
112
109
113
<PreferenceCategory android : title =" @string/trust_agent_features" >
You can’t perform that action at this time.
0 commit comments