Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java445 FaceManager mockFaceManager = mock(FaceManager.class); in isFaceNotConvenienceBiometric_faceStrengthStrong_shouldReturnTrue() local
446 when(mContext.getSystemService(Context.FACE_SERVICE)).thenReturn(mockFaceManager); in isFaceNotConvenienceBiometric_faceStrengthStrong_shouldReturnTrue()
457 doReturn(props).when(mockFaceManager).getSensorPropertiesInternal(); in isFaceNotConvenienceBiometric_faceStrengthStrong_shouldReturnTrue()
464 FaceManager mockFaceManager = mock(FaceManager.class); in isFaceNotConvenienceBiometric_faceStrengthWeak_shouldReturnTrue() local
465 when(mContext.getSystemService(Context.FACE_SERVICE)).thenReturn(mockFaceManager); in isFaceNotConvenienceBiometric_faceStrengthWeak_shouldReturnTrue()
476 doReturn(props).when(mockFaceManager).getSensorPropertiesInternal(); in isFaceNotConvenienceBiometric_faceStrengthWeak_shouldReturnTrue()
483 FaceManager mockFaceManager = mock(FaceManager.class); in isFaceNotConvenienceBiometric_faceStrengthConvenience_shouldReturnFalse() local
484 when(mContext.getSystemService(Context.FACE_SERVICE)).thenReturn(mockFaceManager); in isFaceNotConvenienceBiometric_faceStrengthConvenience_shouldReturnFalse()
495 doReturn(props).when(mockFaceManager).getSensorPropertiesInternal(); in isFaceNotConvenienceBiometric_faceStrengthConvenience_shouldReturnFalse()