diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp index de174b13a459e..e0662309f5714 100644 --- a/packages/SystemUI/Android.bp +++ b/packages/SystemUI/Android.bp @@ -86,7 +86,9 @@ filegroup { android_library { name: "SystemUI-tests", - manifest: "tests/AndroidManifest.xml", + manifest: "tests/AndroidManifest-base.xml", + additional_manifests: ["tests/AndroidManifest.xml"], + resource_dirs: [ "tests/res", "res-product", diff --git a/packages/SystemUI/tests/Android.mk b/packages/SystemUI/tests/Android.mk index e5f56d43f4d70..38da21e016ec6 100644 --- a/packages/SystemUI/tests/Android.mk +++ b/packages/SystemUI/tests/Android.mk @@ -46,6 +46,9 @@ LOCAL_AAPT_FLAGS := --extra-packages com.android.systemui # UI it doesn't own. This is necessary to allow screenshots to be taken LOCAL_CERTIFICATE := platform +LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest.xml +LOCAL_MANIFEST_FILE := AndroidManifest-base.xml + # Provide jack a list of classes to exclude from code coverage. # This is needed because the SystemUITests compile SystemUI source directly, rather than using # LOCAL_INSTRUMENTATION_FOR := SystemUI. diff --git a/packages/SystemUI/tests/AndroidManifest-base.xml b/packages/SystemUI/tests/AndroidManifest-base.xml new file mode 100644 index 0000000000000..f08d3d2f48d4f --- /dev/null +++ b/packages/SystemUI/tests/AndroidManifest-base.xml @@ -0,0 +1,21 @@ + + + + diff --git a/packages/SystemUI/tests/AndroidManifest.xml b/packages/SystemUI/tests/AndroidManifest.xml index c51624b0994b6..12c704881909e 100644 --- a/packages/SystemUI/tests/AndroidManifest.xml +++ b/packages/SystemUI/tests/AndroidManifest.xml @@ -18,7 +18,7 @@ xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" xmlns:tools="http://schemas.android.com/tools" android:sharedUserId="android.uid.system" - package="com.android.systemui.tests"> + package="com.android.systemui" > @@ -55,11 +55,6 @@ - - - diff --git a/packages/SystemUI/tests/src/com/android/systemui/screenshot/ScreenshotStubActivity.java b/packages/SystemUI/tests/src/com/android/systemui/screenshot/ScreenshotStubActivity.java deleted file mode 100644 index 0b871e433f5b0..0000000000000 --- a/packages/SystemUI/tests/src/com/android/systemui/screenshot/ScreenshotStubActivity.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2011 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.systemui.screenshot; - -import android.app.Activity; -import android.os.Bundle; - -import com.android.systemui.tests.R; - -/** - * A stub activity used in {@link ScreenshotTest}. - */ -public class ScreenshotStubActivity extends Activity { - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.main); - } -}