本文整理汇总了Java中android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL属性的典型用法代码示例。如果您正苦于以下问题:Java DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL属性的具体用法?Java DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL怎么用?Java DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.app.admin.DevicePolicyManager
的用法示例。
在下文中一共展示了DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createKeyguardDisabledFlag
int createKeyguardDisabledFlag() {
int flags = DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
flags |= mDisableKeyguardWidgetsCheckbox.isChecked() ?
DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL : 0;
flags |= mDisableKeyguardSecureCameraCheckbox.isChecked() ?
DevicePolicyManager.KEYGUARD_DISABLE_SECURE_CAMERA : 0;
flags |= mDisableKeyguardNotificationCheckbox.isChecked() ?
DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS : 0;
flags |= mDisableKeyguardUnredactedCheckbox.isChecked() ?
DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS : 0;
flags |= mDisableKeyguardTrustAgentCheckbox.isChecked() ?
DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS : 0;
return flags;
}
示例2: createKeyguardDisabledFlag
int createKeyguardDisabledFlag() {
int flags = DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
flags |= mDisableKeyguardWidgetsCheckbox.isChecked() ?
DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL : 0;
flags |= mDisableKeyguardSecureCameraCheckbox.isChecked() ?
DevicePolicyManager.KEYGUARD_DISABLE_SECURE_CAMERA : 0;
return flags;
}