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

Commit cbd52405 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13355977 from 76ac1cf8 to 25Q3-release

Change-Id: If37f483622215c2abfbb1b67597b3ecc158ada62
parents 2e1b9ac7 76ac1cf8
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -64,6 +64,8 @@ public class FastBitmapDrawable extends Drawable implements Drawable.Callback {

    private static boolean sFlagHoverEnabled = false;

    private boolean mAnimationEnabled = true;

    protected final Paint mPaint = new Paint(Paint.FILTER_BITMAP_FLAG | Paint.ANTI_ALIAS_FLAG);
    public final BitmapInfo mBitmapInfo;

@@ -255,6 +257,10 @@ public class FastBitmapDrawable extends Drawable implements Drawable.Callback {

    @Override
    protected boolean onStateChange(int[] state) {
        if (!mAnimationEnabled) {
            return false;
        }

        boolean isPressed = false;
        boolean isHovered = false;
        for (int s : state) {
@@ -430,6 +436,14 @@ public class FastBitmapDrawable extends Drawable implements Drawable.Callback {
        mHoverScaleEnabledForDisplay = hoverScaleEnabledForDisplay;
    }

    public boolean isAnimationEnabled() {
        return mAnimationEnabled;
    }

    public void setAnimationEnabled(boolean animationEnabled) {
        mAnimationEnabled = animationEnabled;
    }

    public static class FastBitmapConstantState extends ConstantState {
        protected final BitmapInfo mBitmapInfo;

+25 −6
Original line number Diff line number Diff line
@@ -3,12 +3,31 @@
    {
      "name": "mechanics_tests",
      "options": [
        {"exclude-annotation": "org.junit.Ignore"},
        {"exclude-annotation": "androidx.test.filters.FlakyTest"}
      ]
    },
    {
          "exclude-annotation": "org.junit.Ignore"
      "name": "SystemUIGoogleTests",
      "options": [
        {"exclude-annotation": "org.junit.Ignore"},
        {"exclude-annotation": "androidx.test.filters.FlakyTest"}
      ]
    },
    {
          "exclude-annotation": "androidx.test.filters.FlakyTest"
      "name": "WMShellUnitTests",
      "options": [
        {"exclude-annotation": "org.junit.Ignore"},
        {"exclude-annotation": "androidx.test.filters.FlakyTest"}
      ]
    }
  ],
  "presubmit-large": [
    {
      "name": "SystemUITests",
      "options": [
        {"exclude-annotation": "org.junit.Ignore"},
        {"exclude-annotation": "androidx.test.filters.FlakyTest"}
      ]
    }
  ]
+13 −0
Original line number Diff line number Diff line
*.iml
.project
.classpath
.project.properties
gen/
bin/
.idea/
.gradle/
local.properties
gradle/
build/
gradlew*
.DS_Store
+71 −0
Original line number Diff line number Diff line
// Copyright (C) 2025 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.

package {
    // See: http://go/android-license-faq
    default_applicable_licenses: ["Android-Apache-2.0"],
}

android_library {
    name: "widget_picker_dagger_annotations",
    srcs: [
        "src/com/android/widgetpicker/WidgetPickerSingleton.kt",
    ],
    static_libs: [
        "androidx.annotation_annotation",
        "jsr330",
    ],
}

android_library {
    name: "widget_picker_component",
    srcs: [
        "src/com/android/widgetpicker/WidgetPickerModule.kt",
        "src/com/android/widgetpicker/WidgetPickerComponent.kt",
    ],
    static_libs: [
        "dagger2",
        "widget_picker_dagger_annotations",
    ],
}

// Data types that are accessible & potentially provided by hosts using the widget picker library
android_library {
    name: "widget_picker_shared_data_types",
    srcs: [
        "src/com/android/widgetpicker/shared/model/PickableWidget.kt",
        "src/com/android/widgetpicker/shared/model/WidgetAppIcon.kt",
        "src/com/android/widgetpicker/shared/model/WidgetAppId.kt",
        "src/com/android/widgetpicker/shared/model/WidgetId.kt",
        "src/com/android/widgetpicker/shared/model/WidgetPreview.kt",
        "src/com/android/widgetpicker/shared/model/WidgetUserProfiles.kt",
    ],
}

android_library {
    name: "widget_picker_data_repositories",
    srcs: [
        "src/com/android/widgetpicker/data/repository/WidgetAppIconsRepository.kt",
        "src/com/android/widgetpicker/data/repository/WidgetPreviewRepository.kt",
        "src/com/android/widgetpicker/data/repository/WidgetRecommendationsRepository.kt",
        "src/com/android/widgetpicker/data/repository/WidgetsRepository.kt",
        "src/com/android/widgetpicker/data/repository/WidgetUsersRepository.kt",
    ],
    static_libs: [
        "widget_picker_shared_data_types",
        "kotlinx_coroutines_android",
        "kotlinx_coroutines",
    ],

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

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.widgetpicker">
</manifest>
Loading