Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45f5b0f9 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

ISession#detectInteraction should be an optional feature

Bug: 178165973
Test: m android.hardware.biometrics.fingerprint-update-api
Test: m android.hardware.biometrics.face-update-api
Change-Id: I4b07b523735e25f233dfec79b787ec536a57660a
parent c2954f4e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -41,4 +41,5 @@ parcelable SensorProps {
  float enrollTranslationX;
  float enrollTranslationY;
  float enrollPreviewScale;
  boolean supportsDetectInteraction;
}
+3 −1
Original line number Diff line number Diff line
@@ -196,7 +196,9 @@ interface ISession {
    /**
     * detectInteraction:
     *
     * A request to start looking for faces without performing matching.
     * A request to start looking for faces without performing matching. Must only be called if
     * SensorProps#supportsDetectInteraction is true. If invoked on implementations that do not
     * support this functionality, the HAL must respond with ISession#onError(UNABLE_TO_PROCESS, 0).
     *
     * Once the HAL is able to start processing this request, it must notify the framework via
     * ISessionCallback#onStateChanged with SessionState::DETECTING_INTERACTION.
+5 −0
Original line number Diff line number Diff line
@@ -70,5 +70,10 @@ parcelable SensorProps {
     * be applied when configuring the preview texture.
     */
    float enrollPreviewScale;

    /**
     * Specifies whether or not the implementation supports ISession#detectInteraction.
     */
    boolean supportsDetectInteraction;
}
+15 −1
Original line number Diff line number Diff line
///////////////////////////////////////////////////////////////////////////////
/*
 * Copyright (C) 2020 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *////////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

+15 −1
Original line number Diff line number Diff line
///////////////////////////////////////////////////////////////////////////////
/*
 * Copyright (C) 2020 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *////////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

Loading