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

Commit e8eef8ae authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents f85bf680 89414e1e
Loading
Loading
Loading
Loading
+21 −0
Original line number Original line 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 Original line 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 Original line 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: [
        "androidx.test.rules",
        "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 Original line 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 := \
    androidx.test.rules \
    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 Original line 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: [
        "androidx.test.rules",
        "junit",
        "ub-uiautomator",
    ],
}
Loading