diff options
| author | 2020-02-07 16:48:14 -0800 | |
|---|---|---|
| committer | 2020-02-20 03:07:52 +0000 | |
| commit | eb18d3986fcba3904b3b9ca6f5f7f0dcac433ccb (patch) | |
| tree | 47df7d617c49296ba9fabfa8767f3c9af32931d4 | |
| parent | 80def300765428bcfc2e96e1afed23dcf8a2dd4f (diff) | |
Separating packageName from the AndroidManifest
Test: Verified everything builds
Change-Id: Icd425e004d8420b8c7a5d221ef98ffbc22723f04
| -rw-r--r-- | packages/SystemUI/Android.bp | 4 | ||||
| -rw-r--r-- | packages/SystemUI/tests/Android.mk | 3 | ||||
| -rw-r--r-- | packages/SystemUI/tests/AndroidManifest-base.xml | 21 | ||||
| -rw-r--r-- | packages/SystemUI/tests/AndroidManifest.xml | 7 | ||||
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/systemui/screenshot/ScreenshotStubActivity.java | 33 |
5 files changed, 28 insertions, 40 deletions
diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp index de174b13a459..e0662309f571 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 e5f56d43f4d7..38da21e016ec 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 000000000000..f08d3d2f48d4 --- /dev/null +++ b/packages/SystemUI/tests/AndroidManifest-base.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- 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. +--> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + 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" /> diff --git a/packages/SystemUI/tests/AndroidManifest.xml b/packages/SystemUI/tests/AndroidManifest.xml index c51624b0994b..12c704881909 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" > <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <uses-permission android:name="android.permission.ACCESS_VOICE_INTERACTION_SERVICE" /> @@ -55,11 +55,6 @@ <application android:debuggable="true" android:largeHeap="true"> <uses-library android:name="android.test.runner" /> - <activity android:name="com.android.systemui.screenshot.ScreenshotStubActivity" /> - - <service - android:name="com.android.systemui.qs.external.TileLifecycleManagerTests$FakeTileService" - android:process=":killable" /> <receiver android:name="com.android.systemui.SliceBroadcastRelayHandlerTest$Receiver"> <intent-filter> 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 0b871e433f5b..000000000000 --- 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); - } -} |