Home
last modified time | relevance | path

Searched refs:isDeviceSecure (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowKeyguardManager.java31 private static boolean isDeviceSecure; field in ShadowKeyguardManager
148 protected boolean isDeviceSecure() { in isDeviceSecure() method in ShadowKeyguardManager
149 return isDeviceSecure; in isDeviceSecure()
157 public void setIsDeviceSecure(boolean isDeviceSecure) { in setIsDeviceSecure() argument
158 this.isDeviceSecure = isDeviceSecure; in setIsDeviceSecure()
168 protected boolean isDeviceSecure(int userId) { in isDeviceSecure() method in ShadowKeyguardManager
177 public void setIsDeviceSecure(int userId, boolean isDeviceSecure) { in setIsDeviceSecure() argument
178 if (isDeviceSecure) { in setIsDeviceSecure()
269 isDeviceSecure = false; in reset()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowKeyguardManagerTest.java76 public void isDeviceSecure() { in isDeviceSecure() method in ShadowKeyguardManagerTest
77 assertThat(manager.isDeviceSecure()).isFalse(); in isDeviceSecure()
82 assertThat(manager.isDeviceSecure()).isTrue(); in isDeviceSecure()
88 assertThat(manager.isDeviceSecure(USER_ID)).isFalse(); in isDeviceSecureByUserId()
93 assertThat(manager.isDeviceSecure(USER_ID)).isTrue(); in isDeviceSecureByUserId()
94 assertThat(manager.isDeviceSecure(USER_ID + 1)).isFalse(); in isDeviceSecureByUserId()
97 assertThat(manager.isDeviceSecure(USER_ID)).isFalse(); in isDeviceSecureByUserId()