use of com.android.settings.password.ChooseLockPattern.ChooseLockPatternFragment in project android_packages_apps_Settings by DirtyUnicorns.
the class ChooseLockPatternTest method assertThat_chooseLockIconChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconChanged_WhenFingerprintExtraSet() {
ChooseLockPattern activity = createActivity(true);
ChooseLockPatternFragment fragment = (ChooseLockPatternFragment) activity.getFragmentManager().findFragmentById(R.id.main_content);
ShadowDrawable drawable = Shadows.shadowOf(((GlifLayout) fragment.getView()).getIcon());
assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
}
use of com.android.settings.password.ChooseLockPattern.ChooseLockPatternFragment in project android_packages_apps_Settings by SudaMod.
the class ChooseLockPatternTest method assertThat_chooseLockIconChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconChanged_WhenFingerprintExtraSet() {
ChooseLockPattern activity = createActivity(true);
ChooseLockPatternFragment fragment = (ChooseLockPatternFragment) activity.getFragmentManager().findFragmentById(R.id.main_content);
ShadowDrawable drawable = Shadows.shadowOf(((GlifLayout) fragment.getView()).getIcon());
assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
}
use of com.android.settings.password.ChooseLockPattern.ChooseLockPatternFragment in project platform_packages_apps_Settings by BlissRoms.
the class ChooseLockPatternTest method assertThat_chooseLockIconChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconChanged_WhenFingerprintExtraSet() {
ChooseLockPattern activity = createActivity(true);
ChooseLockPatternFragment fragment = (ChooseLockPatternFragment) activity.getFragmentManager().findFragmentById(R.id.main_content);
ShadowDrawable drawable = Shadows.shadowOf(((GlifLayout) fragment.getView()).getIcon());
assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
}
use of com.android.settings.password.ChooseLockPattern.ChooseLockPatternFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class ChooseLockPatternTest method fingerprintExtraSet_shouldDisplayFingerprintIcon.
@Config(qualifiers = "sw400dp")
@Test
public void fingerprintExtraSet_shouldDisplayFingerprintIcon() {
ChooseLockPattern activity = createActivity(true);
ChooseLockPatternFragment fragment = (ChooseLockPatternFragment) activity.getSupportFragmentManager().findFragmentById(R.id.main_content);
DrawableTestHelper.assertDrawableResId(((GlifLayout) fragment.getView()).getIcon(), R.drawable.ic_fingerprint_header);
}
Aggregations