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

Commit 21f32069 authored by Nick Chameyev's avatar Nick Chameyev
Browse files

Extract FoldableDeviceStateProvider to a library

Moves FoldableDeviceStateProvider to a separate
java library, so it could shared between
physical devices and cuttlefish devices.
Also makes it public (moves to AOSP).
No changes are made to the functionality,
this is just a move.

Bug: 284266229
Test: manual compile and check on a physical device
Test: presubmit
Flag: none
Change-Id: Ie7f7d334a4904bfbb19baa5dc814291828a8c9eb
parent 7463f004
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
package {
    default_applicable_licenses: ["frameworks_base_license"],
}

java_library {
    name: "foldable-device-state-provider",
    srcs: [
        "src/**/*.java"
    ],
    libs: [
        "services",
    ],
}
+3 −0
Original line number Diff line number Diff line
# Foldable Device State Provider library

This library provides foldable-specific classes that could be used to implement a custom DeviceStateProvider.
 No newline at end of file
+12 −0
Original line number Diff line number Diff line
{
  "presubmit": [
    {
      "name": "foldable-services-tests",
      "options": [
        {
          "exclude-annotation": "androidx.test.filters.FlakyTest"
        }
      ]
    }
  ]
}
+537 −0

File added.

Preview size limit exceeded, changes collapsed.

+30 −0
Original line number Diff line number Diff line
package {
    default_applicable_licenses: ["frameworks_base_license"],
}

android_test {
    name: "foldable-device-state-provider-tests",
    srcs: ["src/**/*.java"],
    libs: [
        "android.test.runner",
        "android.test.base",
        "android.test.mock",
    ],
    jni_libs: [
        "libdexmakerjvmtiagent",
        "libmultiplejvmtiagentsinterferenceagent",
        "libstaticjvmtiagent",
    ],
    static_libs: [
        "services",
        "foldable-device-state-provider",
        "androidx.test.rules",
        "junit",
        "truth-prebuilt",
        "mockito-target-extended-minus-junit4",
        "androidx.test.uiautomator_uiautomator",
        "androidx.test.ext.junit",
        "testables",
    ],
    test_suites: ["device-tests"]
}
Loading