Merge "Fix errorprone warnings that should be errors"

This commit is contained in:
Treehugger Robot
2022-11-20 01:56:29 +00:00
committed by Gerrit Code Review

View File

@@ -102,7 +102,8 @@ public class Face10Test {
FaceSensorProperties.TYPE_UNKNOWN, supportsFaceDetection, supportsSelfIllumination,
resetLockoutRequiresChallenge);
Face10.sSystemClock = Clock.fixed(Instant.ofEpochMilli(100), ZoneId.of("PST"));
Face10.sSystemClock = Clock.fixed(
Instant.ofEpochMilli(100), ZoneId.of("America/Los_Angeles"));
mFace10 = new Face10(mContext, sensorProps, mLockoutResetDispatcher, mHandler, mScheduler,
mBiometricContext);
mBinder = new Binder();
@@ -112,7 +113,7 @@ public class Face10Test {
waitForIdle();
Face10.sSystemClock = Clock.fixed(Instant.ofEpochSecond(
Face10.sSystemClock.instant().getEpochSecond() + seconds),
ZoneId.of("PST"));
ZoneId.of("America/Los_Angeles"));
}
@Test