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

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

Snap for 13453734 from 9a1b9bbb to 25Q3-release

Change-Id: I0909f030d2058df02c5a496256e15d1e95e07300
parents cf9ebf8c 9a1b9bbb
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -17,13 +17,6 @@ package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

filegroup {
    name: "mechanics-srcs",
    srcs: [
        "src/**/*.kt",
    ],
}

android_library {
    name: "mechanics",
    manifest: "AndroidManifest.xml",
@@ -36,7 +29,7 @@ android_library {
        "androidx.compose.foundation_foundation-layout",
    ],
    srcs: [
        ":mechanics-srcs",
        "src/**/*.kt",
    ],
    kotlincflags: ["-Xjvm-default=all"],
}
+6 −11
Original line number Diff line number Diff line
@@ -25,23 +25,15 @@ android_test {

    srcs: [
        "src/**/*.kt",

        // TODO(b/240432457): Depend on mechanics directly
        ":mechanics-srcs",
    ],

    static_libs: [
        // ":mechanics" dependencies
        "androidx.compose.runtime_runtime",
        "androidx.compose.material3_material3",
        "androidx.compose.ui_ui-util",
        "androidx.compose.foundation_foundation-layout",

        // ":mechanics_tests" dependencies
        "//frameworks/libs/systemui/mechanics:mechanics",
        "//frameworks/libs/systemui/mechanics:mechanics-testing",
        "androidx.compose.animation_animation-core",
        "platform-test-annotations",
        "PlatformMotionTestingCompose",
        "androidx.compose.runtime_runtime",
        "androidx.compose.animation_animation-core",
        "androidx.compose.ui_ui-test-junit4",
        "androidx.compose.ui_ui-test-manifest",
        "androidx.test.runner",
@@ -50,6 +42,9 @@ android_test {
        "testables",
        "truth",
    ],
    associates: [
        "mechanics",
    ],
    asset_dirs: ["goldens"],
    kotlincflags: ["-Xjvm-default=all"],
}
+2 −2
Original line number Diff line number Diff line
@@ -27,13 +27,13 @@ public object ListenersTracing {
     * listeners.forEach { it.dispatch(state) }
     * ```
     *
     * often it's tricky to udnerstand which listener is causing delays. This can be used instead to
     * often it's tricky to understand which listener is causing delays. This can be used instead to
     * log how much each listener is taking:
     * ```
     * listeners.forEachTraced(TAG) { it.dispatch(state) }
     * ```
     */
    public inline fun <T : Any> List<T>.forEachTraced(tag: String = "", f: (T) -> Unit) {
    public inline fun <T : Any> Iterable<T>.forEachTraced(tag: String = "", f: (T) -> Unit) {
        forEach { traceSection({ "$tag#${it::javaClass.get().name}" }) { f(it) } }
    }
}