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 {
7575 static final String KEYGUARD_DISABLE_SECURE_NOTIFICATIONS =
7676 "keyguard_disable_secure_notifications" ;
7777 static final String KEYGUARD_DISABLE_SHORTCTUS = "keyguard_disable_shortcuts" ;
78+ static final String KEYGUARD_DISABLE_WIDGETS_ALL = "keyguard_disable_widgets_all" ;
7879 static final String KEYGUARD_DISABLE_TRUST_AGENTS = "keyguard_disable_trust_agents" ;
7980 static final String KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS =
8081 "keyguard_disable_unredacted_notifications" ;
@@ -117,6 +118,9 @@ abstract static class Keys {
117118
118119 KEYGUARD_FEATURES .put (
119120 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 );
120124 }
121125
122126 @ Override
Original file line number Diff line number Diff line change 944944 <string name =" keyguard_disable_fingerprint" >Disable fingerprint</string >
945945 <string name =" keyguard_disable_remote_input" >Disable text entry in secure keyguard screen</string >
946946 <string name =" keyguard_disable_shortcuts" >Disable shortcuts</string >
947+ <string name =" keyguard_disable_widgets_all" >Disable widgets</string >
947948 <string name =" cannot_disable_shortcuts_on_work_profile" >Can\'t disable shortcuts on work profile. Please switch to personal profile tab.</string >
948949
949950 <!-- Trust agent features -->
Original file line number Diff line number Diff line change 104104 android : key =" keyguard_disable_shortcuts"
105105 android : title =" @string/keyguard_disable_shortcuts"
106106 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" />
107111 </PreferenceCategory >
108112
109113 <PreferenceCategory android : title =" @string/trust_agent_features" >
You can’t perform that action at this time.
0 commit comments