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

Commit 3b53d6fe authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Update BiometricPrompt icons

Adds pulsing animation for face dialog. Pulsing starts when the dialog
is done animating in.

Bug: 130191600

Test: manual
Test: no change to fingerprint

Change-Id: Icb3a78e32f8f78b0def063a4b48d6266c653375e
parent 58bb67ab
Loading
Loading
Loading
Loading
+55 −63
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (C) 2018 The Android Open Source Project
<!--
  ~ Copyright (C) 2019 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.
@@ -23,14 +23,7 @@
            android:viewportWidth="60"
            android:viewportHeight="60">
            <group android:name="_R_G">
                <group
                    android:name="_R_G_L_0_G_N_1_T_0"
                    android:translateX="30"
                    android:translateY="30">
                    <group
                        android:name="_R_G_L_0_G"
                        android:translateX="-30"
                        android:translateY="-30">
                <group android:name="_R_G_L_0_G">
                    <path
                        android:name="_R_G_L_0_G_D_0_P_0"
                        android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c "
@@ -88,7 +81,6 @@
                    </group>
                </group>
            </group>
            </group>
            <group android:name="time_group" />
        </vector>
    </aapt:attr>
@@ -505,7 +497,7 @@
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="233"
                    android:duration="267"
                    android:propertyName="translateX"
                    android:startOffset="0"
                    android:valueFrom="0"
+0 −637

File deleted.

Preview size limit exceeded, changes collapsed.

+183 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (C) 2019 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
  -->

<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:aapt="http://schemas.android.com/aapt">
    <aapt:attr name="android:drawable">
        <vector
            android:width="60dp"
            android:height="60dp"
            android:viewportHeight="60"
            android:viewportWidth="60">
            android:viewportWidth="60"
            android:viewportHeight="60">
            <group android:name="_R_G">
                <group
                    android:name="_R_G_L_0_G_N_1_T_0"
                    android:translateX="30"
                    android:translateY="30">
                <group
                    android:name="_R_G_L_0_G"
                        android:translateX="-30"
                        android:translateY="-30">
                    android:pivotX="30"
                    android:pivotY="30"
                    android:scaleX="1"
                    android:scaleY="1">
                    <path
                        android:name="_R_G_L_0_G_D_0_P_0"
                        android:pathData=" M30 6.2 C16.9,6.2 6.3,16.8 6.3,30 C6.3,43.2 16.9,53.8 30,53.8 C43.1,53.8 53.8,43.2 53.8,30 C53.8,16.8 43.1,6.2 30,6.2c "
                            android:strokeAlpha="1"
                            android:strokeColor="@color/biometric_face_icon_gray"
                            android:strokeLineCap="round"
                            android:strokeLineJoin="round"
                        android:strokeWidth="2.5"
                        android:strokeAlpha="1"
                        android:strokeColor="?android:attr/colorAccent"
                        android:trimPathStart="0"
                        android:trimPathEnd="1"
                            android:trimPathOffset="0"
                            android:trimPathStart="0" />
                        android:trimPathOffset="0" />
                    <path
                        android:name="_R_G_L_0_G_D_1_P_0"
                            android:pathData=" M33.75 42.75 C32.75,43.76 31.37,44.39 29.83,44.39 C26.8,44.39 24.34,41.93 24.34,38.9 "
                            android:strokeAlpha="1"
                            android:strokeColor="@color/biometric_face_icon_gray"
                            android:strokeLineCap="round"
                            android:strokeLineJoin="round"
                        android:pathData=" M33.75 42.75 C32.75,43.77 31.37,44.39 29.83,44.39 C26.8,44.39 24.34,41.93 24.34,38.9 "
                        android:strokeWidth="2"
                        android:strokeAlpha="1"
                        android:strokeColor="?android:attr/colorAccent"
                        android:trimPathStart="0"
                        android:trimPathEnd="1"
                            android:trimPathOffset="0"
                            android:trimPathStart="0" />
                        android:trimPathOffset="0" />
                    <path
                        android:name="_R_G_L_0_G_D_2_P_0"
                        android:fillAlpha="1"
                            android:fillColor="@color/biometric_face_icon_gray"
                        android:fillColor="?android:attr/colorAccent"
                        android:fillType="nonZero"
                        android:pathData=" M39 23.8 C39,25 39.9,25.9 41.1,25.9 C42.2,25.9 43.2,25 43.2,23.8 C43.2,22.6 42.3,21.7 41.1,21.7 C39.9,21.7 39,22.6 39,23.8c " />
                    <path
                        android:name="_R_G_L_0_G_D_3_P_0"
                        android:fillAlpha="1"
                            android:fillColor="@color/biometric_face_icon_gray"
                        android:fillColor="?android:attr/colorAccent"
                        android:fillType="nonZero"
                        android:pathData=" M16.5 23.8 C16.5,25 17.4,25.9 18.6,25.9 C19.8,25.9 20.7,25 20.7,23.8 C20.7,22.6 19.8,21.7 18.6,21.7 C17.4,21.7 16.5,22.6 16.5,23.8c " />
                    <path
                        android:name="_R_G_L_0_G_D_4_P_0"
                        android:fillAlpha="1"
                            android:fillColor="@color/biometric_face_icon_gray"
                        android:fillColor="?android:attr/colorAccent"
                        android:fillType="nonZero"
                            android:pathData=" M32.9 34.7 C32.9,34.7 27.7,34.7 27.7,34.7 C27.7,34.7 27.7,32.7 27.7,32.7 C27.7,32.7 30.9,32.7 30.9,32.7 C30.9,32.7 30.9,28.2 30.9,28.2 C30.9,28.2 32.9,28.2 32.9,28.2 C32.9,28.2 32.9,34.7 32.9,34.7c " />
                    </group>
                        android:pathData=" M33.33 34.95 C33.33,34.95 28.13,34.95 28.13,34.95 C28.13,34.95 28.13,32.95 28.13,32.95 C28.13,32.95 31.33,32.95 31.33,32.95 C31.33,32.95 31.33,28.45 31.33,28.45 C31.33,28.45 33.33,28.45 33.33,28.45 C33.33,28.45 33.33,34.95 33.33,34.95c " />
                </group>
            </group>
            <group android:name="time_group" />
@@ -81,14 +58,14 @@
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="33"
                    android:propertyName="strokeColor"
                    android:duration="333"
                    android:propertyName="strokeAlpha"
                    android:startOffset="0"
                    android:valueFrom="@color/biometric_face_icon_gray"
                    android:valueTo="?android:attr/colorAccent"
                    android:valueType="colorType">
                    android:valueFrom="1"
                    android:valueTo="0.5"
                    android:valueType="floatType">
                    <aapt:attr name="android:interpolator">
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.167,0.167 0.833,0.833 1.0,1.0" />
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.317,0 0.287,1 1.0,1.0" />
                    </aapt:attr>
                </objectAnimator>
            </set>
@@ -98,14 +75,14 @@
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="33"
                    android:propertyName="strokeColor"
                    android:duration="333"
                    android:propertyName="strokeAlpha"
                    android:startOffset="0"
                    android:valueFrom="@color/biometric_face_icon_gray"
                    android:valueTo="?android:attr/colorAccent"
                    android:valueType="colorType">
                    android:valueFrom="1"
                    android:valueTo="0.5"
                    android:valueType="floatType">
                    <aapt:attr name="android:interpolator">
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.167,0.167 0.833,0.833 1.0,1.0" />
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.317,0 0.287,1 1.0,1.0" />
                    </aapt:attr>
                </objectAnimator>
            </set>
@@ -115,14 +92,14 @@
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="33"
                    android:propertyName="fillColor"
                    android:duration="333"
                    android:propertyName="fillAlpha"
                    android:startOffset="0"
                    android:valueFrom="@color/biometric_face_icon_gray"
                    android:valueTo="?android:attr/colorAccent"
                    android:valueType="colorType">
                    android:valueFrom="1"
                    android:valueTo="0.5"
                    android:valueType="floatType">
                    <aapt:attr name="android:interpolator">
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.167,0.167 0.833,0.833 1.0,1.0" />
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.317,0 0.287,1 1.0,1.0" />
                    </aapt:attr>
                </objectAnimator>
            </set>
@@ -132,14 +109,14 @@
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="33"
                    android:propertyName="fillColor"
                    android:duration="333"
                    android:propertyName="fillAlpha"
                    android:startOffset="0"
                    android:valueFrom="@color/biometric_face_icon_gray"
                    android:valueTo="?android:attr/colorAccent"
                    android:valueType="colorType">
                    android:valueFrom="1"
                    android:valueTo="0.5"
                    android:valueType="floatType">
                    <aapt:attr name="android:interpolator">
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.167,0.167 0.833,0.833 1.0,1.0" />
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.317,0 0.287,1 1.0,1.0" />
                    </aapt:attr>
                </objectAnimator>
            </set>
@@ -149,14 +126,42 @@
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="33"
                    android:propertyName="fillColor"
                    android:duration="333"
                    android:propertyName="fillAlpha"
                    android:startOffset="0"
                    android:valueFrom="1"
                    android:valueTo="0.5"
                    android:valueType="floatType">
                    <aapt:attr name="android:interpolator">
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.333,0 0.667,1 1.0,1.0" />
                    </aapt:attr>
                </objectAnimator>
            </set>
        </aapt:attr>
    </target>
    <target android:name="_R_G_L_0_G">
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="333"
                    android:propertyName="scaleX"
                    android:startOffset="0"
                    android:valueFrom="1"
                    android:valueTo="1.03"
                    android:valueType="floatType">
                    <aapt:attr name="android:interpolator">
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.317,0 0.287,1 1.0,1.0" />
                    </aapt:attr>
                </objectAnimator>
                <objectAnimator
                    android:duration="333"
                    android:propertyName="scaleY"
                    android:startOffset="0"
                    android:valueFrom="@color/biometric_face_icon_gray"
                    android:valueTo="?android:attr/colorAccent"
                    android:valueType="colorType">
                    android:valueFrom="1"
                    android:valueTo="1.03"
                    android:valueType="floatType">
                    <aapt:attr name="android:interpolator">
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.167,0.167 0.833,0.833 1.0,1.0" />
                        <pathInterpolator android:pathData="M 0.0,0.0 c0.317,0 0.287,1 1.0,1.0" />
                    </aapt:attr>
                </objectAnimator>
            </set>
@@ -166,7 +171,7 @@
        <aapt:attr name="android:animation">
            <set android:ordering="together">
                <objectAnimator
                    android:duration="50"
                    android:duration="350"
                    android:propertyName="translateX"
                    android:startOffset="0"
                    android:valueFrom="0"
Loading