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

Commit df42638f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Change screen rotation animation""

parents 96fe7c66 c17f3924
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ message AnimationSpecProto {
    optional WindowAnimationSpecProto window = 1;
    optional MoveAnimationSpecProto move = 2;
    optional AlphaAnimationSpecProto alpha = 3;
    optional RotationAnimationSpecProto rotate = 4;
}

/* represents WindowAnimationSpec */
@@ -77,12 +76,3 @@ message AlphaAnimationSpecProto {
    optional float to = 2;
    optional int64 duration_ms = 3;
}

/* represents RotationAnimationSpec */
message RotationAnimationSpecProto {
    option (.android.msg_privacy).dest = DEST_AUTOMATIC;

    optional float start_luma = 1;
    optional float end_luma = 2;
    optional int64 duration_ms = 3;
}
+20 −20
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.
/*
** Copyright 2010, 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.
*/
-->

<set xmlns:android="http://schemas.android.com/apk/res/android"
        android:shareInterpolator="false">
    <alpha android:fromAlpha="0.0" android:toAlpha="1.0"
        android:interpolator="@interpolator/screen_rotation_alpha_in"
        android:fillEnabled="true"
        android:fillBefore="true" android:fillAfter="true"
        android:duration="@android:integer/config_screen_rotation_fade_in" />
    <alpha android:fromAlpha="1.0" android:toAlpha="1.0"
            android:interpolator="@interpolator/decelerate_quint"
            android:duration="@android:integer/config_shortAnimTime" />
</set>
+17 −20
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.
/*
** Copyright 2010, 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.
*/
-->

<set xmlns:android="http://schemas.android.com/apk/res/android"
        android:shareInterpolator="false">
    <alpha android:fromAlpha="1.0" android:toAlpha="0.0"
        android:interpolator="@interpolator/screen_rotation_alpha_out"
        android:fillEnabled="true"
        android:fillBefore="true" android:fillAfter="true"
        android:duration="@android:integer/config_screen_rotation_fade_out" />
</set>
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2012, 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.
*/
-->

<set xmlns:android="http://schemas.android.com/apk/res/android"
        android:shareInterpolator="false">
    <alpha android:fromAlpha="1.0" android:toAlpha="1.0"
            android:interpolator="@interpolator/decelerate_quint"
            android:duration="@android:integer/config_shortAnimTime" />
</set>
+6 −6
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@
        android:shareInterpolator="false">
    <rotate android:fromDegrees="180" android:toDegrees="0"
            android:pivotX="50%" android:pivotY="50%"
            android:interpolator="@interpolator/decelerate_quint"
            android:fillEnabled="true"
            android:fillBefore="true" android:fillAfter="true"
        android:interpolator="@interpolator/fast_out_slow_in"
        android:duration="@android:integer/config_screen_rotation_total_180" />
            android:duration="@android:integer/config_mediumAnimTime" />
</set>
Loading