use of android.hardware.fingerprint.FingerprintSensorPropertiesInternal in project android_packages_apps_Settings by omnirom.
the class SetupFingerprintEnrollIntroductionTest method setUp.
@Before
public void setUp() {
Shadows.shadowOf(application.getPackageManager()).setSystemFeature(PackageManager.FEATURE_FINGERPRINT, true);
final List<ComponentInfoInternal> componentInfo = new ArrayList<>();
componentInfo.add(new ComponentInfoInternal("faceSensor", /* componentId */
"vendor/model/revision", /* hardwareVersion */
"1.01", /* firmwareVersion */
"00000001", /* serialNumber */
""));
componentInfo.add(new ComponentInfoInternal("matchingAlgorithm", /* componentId */
"", /* hardwareVersion */
"", /* firmwareVersion */
"", /* serialNumber */
"vendor/version/revision"));
final FingerprintSensorPropertiesInternal prop = new FingerprintSensorPropertiesInternal(0, /* sensorId */
SensorProperties.STRENGTH_STRONG, 5, /* maxEnrollmentsPerUser */
componentInfo, FingerprintSensorProperties.TYPE_REAR, true);
final ArrayList<FingerprintSensorPropertiesInternal> props = new ArrayList<>();
props.add(prop);
ShadowFingerprintManager.setSensorProperties(props);
FakeFeatureFactory.setupForTest();
final Intent intent = new Intent();
mController = Robolectric.buildActivity(SetupFingerprintEnrollIntroduction.class, intent);
}
Aggregations