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

Commit 37fc8a84 authored by Xin Li's avatar Xin Li
Browse files

Merge Android 14 QPR1

Merged-In: Ia4da4896800883bda713052a8d084324bbaa6395
Bug: 315507370
Change-Id: I0425780ba3a037910b4df81d52e09d6b6ab90cdf
parents 691db5e2 e9fcd8b8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -36,6 +36,14 @@ license {
    ],
}

cc_library_headers {
    name: "native_headers",
    host_supported: true,
    export_include_dirs: [
        "include/",
    ],
}

ndk_headers {
    name: "libandroid_headers",
    from: "include/android",
+12 −3
Original line number Diff line number Diff line
@@ -3,12 +3,21 @@ package {
}

filegroup {
    name: "motion_predictor_model.fb",
    srcs: ["motion_predictor_model.fb"],
    name: "motion_predictor_model",
    srcs: [
        "motion_predictor_model.tflite",
        "motion_predictor_config.xml",
    ],
}

prebuilt_etc {
    name: "motion_predictor_model_prebuilt",
    filename_from_src: true,
    src: "motion_predictor_model.fb",
    src: "motion_predictor_model.tflite",
}

prebuilt_etc {
    name: "motion_predictor_model_config",
    filename_from_src: true,
    src: "motion_predictor_config.xml",
}
+35 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2023 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.
-->
<motion-predictor>
  <!-- The time interval (ns) between the model's predictions. -->
  <prediction-interval>4166666</prediction-interval>  <!-- 4.167 ms = ~240 Hz -->
  <!-- The noise floor (px) for predicted distances.

       As the model is trained stochastically, there is some expected minimum
       variability in its output. This can be a UX issue when the input device
       is moving slowly and the variability is large relative to the magnitude
       of the motion. In these cases, it is better to inhibit the prediction,
       rather than show noisy predictions (and there is little benefit to
       prediction anyway).

       The value for this parameter should at least be close to the maximum
       predicted distance when the input device is held stationary (i.e. the
       expected minimum variability), and perhaps a little larger to capture
       the UX issue mentioned above.
  -->
  <distance-noise-floor>0.2</distance-noise-floor>
</motion-predictor>
−33.3 KiB

File deleted.

+175 KiB

File added.

No diff preview for this file type.

Loading