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

Commit 4a3d1a0b authored by Sasha Smundak's avatar Sasha Smundak
Browse files

Convert tests/**/Android.mk files to Android.bp, part II

See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger
Change-Id: I886b6536a0ef1c8d21f15ec7ff9fdb9784d5b865
Merged-In: I886b6536a0ef1c8d21f15ec7ff9fdb9784d5b865
parent 96f51fd9
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
// Copyright (C) 2018 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: "ActivityManagerPerfTestsTestApp",
    srcs: ["src/**/*.java"],
    static_libs: ["ActivityManagerPerfTestsUtils"],
    min_sdk_version: "25",
    sdk_version: "current",
}
+0 −31
Original line number Diff line number Diff line
# Copyright (C) 2018 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.

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_SRC_FILES := \
    $(call all-java-files-under, src)

LOCAL_STATIC_JAVA_LIBRARIES := \
    ActivityManagerPerfTestsUtils

LOCAL_MIN_SDK_VERSION := 25

LOCAL_PACKAGE_NAME := ActivityManagerPerfTestsTestApp
LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)
+27 −0
Original line number Diff line number Diff line
// Copyright (C) 2018 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: "ActivityManagerPerfTests",
    srcs: ["src/**/*.java"],
    static_libs: [
        "android-support-test",
        "apct-perftests-utils",
        "ActivityManagerPerfTestsUtils",
    ],
    platform_apis: true,
    min_sdk_version: "25",
    // For android.permission.FORCE_STOP_PACKAGES permission
    certificate: "platform",
}
+0 −36
Original line number Diff line number Diff line
# Copyright (C) 2018 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.

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_SRC_FILES := \
    $(call all-java-files-under, src)

LOCAL_STATIC_JAVA_LIBRARIES := \
    android-support-test \
    apct-perftests-utils \
    ActivityManagerPerfTestsUtils

LOCAL_PACKAGE_NAME := ActivityManagerPerfTests
LOCAL_PRIVATE_PLATFORM_APIS := true

LOCAL_MIN_SDK_VERSION := 25

# For android.permission.FORCE_STOP_PACKAGES permission
LOCAL_CERTIFICATE := platform

include $(BUILD_PACKAGE)
+27 −0
Original line number Diff line number Diff line
// Copyright (C) 2018 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.

java_test {
    name: "ActivityManagerPerfTestsUtils",
    sdk_version: "current",
    srcs: [
        "src/**/*.java",
        "src/com/android/frameworks/perftests/am/util/ITimeReceiverCallback.aidl",
    ],
    static_libs: [
        "android-support-test",
        "junit",
        "ub-uiautomator",
    ],
}
Loading