Merge "Convert packages/Shell/**/Android.mk file to Android.bp"

am: 355f9f77a9

Change-Id: I7c869c798b4836485daee9113b83100fc36ee862
This commit is contained in:
Sasha Smundak
2019-05-03 09:20:52 -07:00
committed by android-build-merger
4 changed files with 33 additions and 51 deletions

14
packages/Shell/Android.bp Normal file
View File

@@ -0,0 +1,14 @@
android_app {
name: "Shell",
srcs: ["src/**/*.java",":dumpstate_aidl"],
aidl: {
include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
},
static_libs: ["androidx.legacy_legacy-support-v4"],
platform_apis: true,
certificate: "platform",
privileged: true,
jacoco: {
include_filter: ["com.android.shell.*"],
},
}

View File

@@ -1,27 +0,0 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += \
../../../native/cmds/dumpstate/binder/android/os/IDumpstate.aidl \
../../../native/cmds/dumpstate/binder/android/os/IDumpstateListener.aidl \
../../../native/cmds/dumpstate/binder/android/os/IDumpstateToken.aidl
LOCAL_AIDL_INCLUDES = frameworks/native/cmds/dumpstate/binder
LOCAL_STATIC_ANDROID_LIBRARIES := androidx.legacy_legacy-support-v4
LOCAL_USE_AAPT2 := true
LOCAL_PACKAGE_NAME := Shell
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.shell.*
include $(BUILD_PACKAGE)
include $(LOCAL_PATH)/tests/Android.mk

View File

@@ -0,0 +1,19 @@
android_test {
name: "ShellTests",
srcs: ["src/**/*.java"],
libs: [
"android.test.runner",
"android.test.base",
"android.test.mock",
],
static_libs: [
"androidx.test.rules",
"mockito-target-minus-junit4",
"ub-uiautomator",
"junit",
],
platform_apis: true,
test_suites: ["device-tests"],
instrumentation_for: "Shell",
certificate: "platform",
}

View File

@@ -1,24 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base android.test.mock
LOCAL_STATIC_JAVA_LIBRARIES := \
androidx.test.rules \
mockito-target-minus-junit4 \
ub-uiautomator \
junit \
LOCAL_PACKAGE_NAME := ShellTests
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_COMPATIBILITY_SUITE := device-tests
LOCAL_INSTRUMENTATION_FOR := Shell
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)