Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 6234739e7b0bad1eba19e29ca09b9e25d87e3e68
Author: Peter Cai <peter@typeblog.net>
Date:   Tue Jul 2 15:48:07 2019 +0800

    FODCircleView: Refactor position / size / color configuration

    * Expose color as a configurable attribute so that it can be configured
      in device-specific overlays.
    * Fetch position and size directly from FOD HAL. These are all
      hardware-specific properties, and there is no need to rely on system
      properties.

    Change-Id: Ic4a33b27ab419e1e92e2af814f5088c972872098

commit 2994e7013fd0052e4ef4edbc1a6d86b1b518731a
Author: Peter Cai <peter@typeblog.net>
Date:   Mon Jul 1 19:03:13 2019 +0800

    FODCircleView: Move randomly to prevent burn-in

    * The FOD icon is always located on the same spot in Always-on Display
      mode. This poses a potential threat of burn-in since all devices with
      FOD are using OLED panels.
    * As a counter measure, we move the icon around just as how all the
      other elements in AOD move around. We set the maximum offset to 10% of
      the size of the icon so that it is within the margin of error for pretty
      much every possible sensor.

    Change-Id: I17204326d36e88425312f15cbc318bd01dda1e9c

commit 7868c9f0c6810369dbd8c2db4be9696928f7d0e9
Author: LuK1337 <priv.luk@gmail.com>
Date:   Sun Jun 30 15:42:46 2019 +0200

    FODCircleView: Support finger down/up callbacks from HAL

    * These are used when device is in AOD mode.

    Change-Id: Icb11072bc9759649d6453ee259756ae10357c37d

commit 2e27105607fad9851de62c8f31fcad268c27f8c7
Author: Peter Cai <peter@typeblog.net>
Date:   Fri Jun 28 20:52:42 2019 +0800

    FODCircleView: Support all screen orientations

    * When the screen is rotated, the FODCircleView has to move its
      on-screen coordinates in order to keep it always over the fingerprint
      scanner.

    Change-Id: I32a8114d3a7b24d355ff04ceda8abd3a08a7720a

commit 67e4bf0a3ec5e2499be487e3320dd339f1732000
Author: Peter Cai <peter@typeblog.net>
Date:   Fri Apr 5 16:44:18 2019 +0200

    Initial support for in-display fingerprint sensors

    Change-Id: I52beaf6492b9daa012b5d42b858d552d1e378a2c

Change-Id: I4c8fb53291ad084ee2cf50c125af857e50ab46bc
  • Loading branch information
PeterCxy authored and AndroPlus-org committed Jul 7, 2019
1 parent b560df1 commit 33553fb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
26 changes: 26 additions & 0 deletions packages/SystemUI/res/drawable/fod_icon_default.xml
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 The LineageOS 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="120dp"
android:height="120dp"
android:viewportWidth="100"
android:viewportHeight="100">
<path
android:fillColor="#bf7f7f7f"
android:fillType="evenOdd"
android:pathData="M50,100C77.614,100 100,77.614 100,50C100,22.386 77.614,0 50,0C22.386,0 0,22.386 0,50C0,77.614 22.386,100 50,100ZM70.499,22.676C70.751,22.82 71.039,22.892 71.327,22.892C71.975,22.892 72.587,22.532 72.911,21.884C73.379,21.02 73.055,19.94 72.155,19.472C64.811,15.692 58.115,14 50.447,14C42.707,14 35.363,15.872 28.667,19.508C27.803,19.976 27.479,21.092 27.947,21.956C28.451,22.82 29.531,23.144 30.395,22.676C36.551,19.292 43.319,17.6 50.447,17.6C57.611,17.6 63.587,19.112 70.499,22.676ZM18.767,41.468C19.091,41.684 19.451,41.792 19.811,41.792C20.387,41.792 20.927,41.54 21.215,41.036C24.455,36.5 28.559,32.9 33.455,30.38C43.751,25.052 56.963,25.052 67.295,30.344C72.155,32.828 76.259,36.392 79.499,40.928C80.075,41.756 81.191,41.936 82.019,41.36C82.847,40.784 83.027,39.632 82.451,38.84C78.887,33.836 74.351,29.912 68.951,27.14C57.611,21.308 43.139,21.344 31.835,27.176C26.435,29.948 21.899,33.908 18.335,38.948C17.759,39.776 17.939,40.892 18.767,41.468ZM41.051,84.704C41.375,85.064 41.843,85.244 42.311,85.244C42.779,85.244 43.247,85.064 43.643,84.704C44.327,83.984 44.327,82.868 43.643,82.148C40.871,79.34 39.287,77.576 36.983,73.436C34.787,69.548 33.635,64.76 33.635,59.576C33.635,50.864 41.159,43.772 50.411,43.772C59.663,43.772 67.187,50.864 67.187,59.576C67.187,60.584 67.979,61.376 68.987,61.376C69.995,61.376 70.787,60.584 70.787,59.576C70.787,48.884 61.643,40.172 50.411,40.172C39.179,40.172 30.035,48.884 30.035,59.576C30.035,65.372 31.331,70.772 33.815,75.2C36.227,79.556 37.919,81.572 41.051,84.704ZM56.963,75.38C60.059,77.504 63.839,78.584 68.123,78.584C68.627,78.584 70.427,78.548 72.479,78.152C73.487,77.972 74.135,77.036 73.955,76.064C73.775,75.056 72.839,74.408 71.867,74.588C70.427,74.84 68.987,74.948 68.123,74.948C64.523,74.948 61.535,74.12 58.979,72.392C54.587,69.44 51.995,64.652 51.995,59.576C51.995,58.568 51.203,57.776 50.195,57.776C49.187,57.776 48.395,58.568 48.395,59.576C48.395,65.84 51.599,71.744 56.963,75.38ZM60.419,85.928C60.563,85.964 60.743,86 60.887,86C61.643,86 62.399,85.46 62.579,84.632C62.831,83.696 62.291,82.688 61.319,82.436C56.243,81.032 52.967,79.16 49.547,75.776C45.191,71.456 42.815,65.696 42.815,59.54C42.815,55.688 46.163,52.556 50.303,52.556C54.443,52.556 57.791,55.688 57.791,59.54C57.791,65.372 62.759,70.124 68.879,70.124C74.999,70.124 79.967,65.372 79.967,59.54C79.967,43.988 66.647,31.352 50.267,31.352C38.639,31.352 28.019,37.868 23.231,47.912C21.611,51.332 20.783,55.256 20.783,59.576C20.783,64.436 21.647,69.116 23.411,73.832C23.735,74.732 24.779,75.236 25.715,74.876C26.651,74.552 27.119,73.508 26.759,72.572C24.599,66.812 24.347,62.384 24.347,59.576C24.347,55.832 25.067,52.412 26.471,49.496C30.683,40.676 40.043,34.988 50.267,34.988C64.667,34.988 76.367,46.004 76.367,59.576C76.367,63.428 73.019,66.56 68.879,66.56C64.739,66.56 61.391,63.428 61.391,59.576C61.391,53.744 56.423,48.992 50.303,48.992C44.183,48.992 39.215,53.744 39.215,59.576C39.215,66.704 41.987,73.364 47.027,78.368C50.951,82.22 54.695,84.344 60.419,85.928Z" />
</vector>

0 comments on commit 33553fb

Please sign in to comment.