@Test public void test_noChangeOneKeyguardFeaturesDisabled() throws Exception { int result = KeyguardFeatures.setFingerprintDisabled( DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS, false); assertEquals(DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS, result); }
static int setFingerprintDisabled( int currentDisabledFeatures, boolean fingerprintDisabled) { int keyguardDisabledFeatures; if(fingerprintDisabled){ keyguardDisabledFeatures = currentDisabledFeatures | DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; } else { keyguardDisabledFeatures = currentDisabledFeatures & (~DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT); } return keyguardDisabledFeatures; }
KeyguardFeatures { static int setFingerprintDisabled( int currentDisabledFeatures, boolean fingerprintDisabled) { int keyguardDisabledFeatures; if(fingerprintDisabled){ keyguardDisabledFeatures = currentDisabledFeatures | DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; } else { keyguardDisabledFeatures = currentDisabledFeatures & (~DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT); } return keyguardDisabledFeatures; } }
KeyguardFeatures { static int setFingerprintDisabled( int currentDisabledFeatures, boolean fingerprintDisabled) { int keyguardDisabledFeatures; if(fingerprintDisabled){ keyguardDisabledFeatures = currentDisabledFeatures | DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; } else { keyguardDisabledFeatures = currentDisabledFeatures & (~DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT); } return keyguardDisabledFeatures; }  }
KeyguardFeatures { static int setFingerprintDisabled( int currentDisabledFeatures, boolean fingerprintDisabled) { int keyguardDisabledFeatures; if(fingerprintDisabled){ keyguardDisabledFeatures = currentDisabledFeatures | DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; } else { keyguardDisabledFeatures = currentDisabledFeatures & (~DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT); } return keyguardDisabledFeatures; }   }
KeyguardFeatures { static int setFingerprintDisabled( int currentDisabledFeatures, boolean fingerprintDisabled) { int keyguardDisabledFeatures; if(fingerprintDisabled){ keyguardDisabledFeatures = currentDisabledFeatures | DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; } else { keyguardDisabledFeatures = currentDisabledFeatures & (~DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT); } return keyguardDisabledFeatures; }    }