diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp index 4fb3be2d588fe..c238d7d49f9b0 100644 --- a/packages/SystemUI/Android.bp +++ b/packages/SystemUI/Android.bp @@ -42,6 +42,7 @@ android_library { "res", ], static_libs: [ + "WindowManager-Shell", "SystemUIPluginLib", "SystemUISharedLib", "SettingsLib", diff --git a/packages/WindowManager/OWNERS b/packages/WindowManager/OWNERS new file mode 100644 index 0000000000000..063d4594f2fa3 --- /dev/null +++ b/packages/WindowManager/OWNERS @@ -0,0 +1,3 @@ +set noparent + +include ../../services/core/java/com/android/server/wm/OWNERS \ No newline at end of file diff --git a/packages/WindowManager/Shell/Android.bp b/packages/WindowManager/Shell/Android.bp new file mode 100644 index 0000000000000..b8934dc8c583c --- /dev/null +++ b/packages/WindowManager/Shell/Android.bp @@ -0,0 +1,29 @@ +// 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. + +android_library { + name: "WindowManager-Shell", + srcs: [ + "src/**/*.java", + "src/**/I*.aidl", + ], + resource_dirs: [ + "res", + ], + manifest: "AndroidManifest.xml", + + platform_apis: true, + sdk_version: "current", + min_sdk_version: "system_current", +} diff --git a/packages/WindowManager/Shell/AndroidManifest.xml b/packages/WindowManager/Shell/AndroidManifest.xml new file mode 100644 index 0000000000000..ea8a5c3050298 --- /dev/null +++ b/packages/WindowManager/Shell/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/packages/WindowManager/Shell/OWNERS b/packages/WindowManager/Shell/OWNERS new file mode 100644 index 0000000000000..4390004f5f937 --- /dev/null +++ b/packages/WindowManager/Shell/OWNERS @@ -0,0 +1,4 @@ +# sysui owners +hwwang@google.com +mrenouf@google.com +winsonc@google.com \ No newline at end of file diff --git a/packages/WindowManager/Shell/res/values/config.xml b/packages/WindowManager/Shell/res/values/config.xml new file mode 100644 index 0000000000000..c894eb0133b51 --- /dev/null +++ b/packages/WindowManager/Shell/res/values/config.xml @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/packages/WindowManager/Shell/src/com/android/wm/shell/WindowManagerShell.java b/packages/WindowManager/Shell/src/com/android/wm/shell/WindowManagerShell.java new file mode 100644 index 0000000000000..273bd27a221be --- /dev/null +++ b/packages/WindowManager/Shell/src/com/android/wm/shell/WindowManagerShell.java @@ -0,0 +1,23 @@ +/* + * 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. + */ + +package com.android.wm.shell; + +/** + * Interface for the shell. + */ +public class WindowManagerShell { +} diff --git a/packages/WindowManager/Shell/tests/Android.bp b/packages/WindowManager/Shell/tests/Android.bp new file mode 100644 index 0000000000000..78fa45ebdf949 --- /dev/null +++ b/packages/WindowManager/Shell/tests/Android.bp @@ -0,0 +1,45 @@ +// 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. + +android_test { + name: "WindowManagerShellTests", + + srcs: ["**/*.java"], + + static_libs: [ + "WindowManager-Shell", + "junit", + "androidx.test.runner", + "androidx.test.rules", + "androidx.test.ext.junit", + "mockito-target-extended-minus-junit4", + "truth-prebuilt", + ], + libs: [ + "android.test.mock", + "android.test.base", + "android.test.runner", + ], + jni_libs: [ + "libdexmakerjvmtiagent", + "libstaticjvmtiagent", + ], + + sdk_version: "current", + platform_apis: true, + + optimize: { + enabled: false, + }, +} diff --git a/packages/WindowManager/Shell/tests/AndroidManifest.xml b/packages/WindowManager/Shell/tests/AndroidManifest.xml new file mode 100644 index 0000000000000..a8f795ec8a8d9 --- /dev/null +++ b/packages/WindowManager/Shell/tests/AndroidManifest.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + diff --git a/packages/WindowManager/Shell/tests/AndroidTest.xml b/packages/WindowManager/Shell/tests/AndroidTest.xml new file mode 100644 index 0000000000000..4dce4db360e4c --- /dev/null +++ b/packages/WindowManager/Shell/tests/AndroidTest.xml @@ -0,0 +1,31 @@ + + + + + + + diff --git a/packages/WindowManager/Shell/tests/res/values/config.xml b/packages/WindowManager/Shell/tests/res/values/config.xml new file mode 100644 index 0000000000000..c894eb0133b51 --- /dev/null +++ b/packages/WindowManager/Shell/tests/res/values/config.xml @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/packages/WindowManager/Shell/tests/src/com/android/wm/shell/tests/WindowManagerShellTest.java b/packages/WindowManager/Shell/tests/src/com/android/wm/shell/tests/WindowManagerShellTest.java new file mode 100644 index 0000000000000..376875b143a12 --- /dev/null +++ b/packages/WindowManager/Shell/tests/src/com/android/wm/shell/tests/WindowManagerShellTest.java @@ -0,0 +1,40 @@ +/* + * 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. + */ + +package com.android.wm.shell.tests; + +import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.filters.SmallTest; + +import com.android.wm.shell.WindowManagerShell; + +import org.junit.Test; +import org.junit.runner.RunWith; + +/** + * Tests for the shell. + */ +@SmallTest +@RunWith(AndroidJUnit4.class) +public class WindowManagerShellTest { + + WindowManagerShell mShell; + + @Test + public void testNothing() { + // Do nothing + } +}