Merge "Convert tests/**/Android.mk files to Android.bp" am: 40ff4f7d83
am: c33506ce2f
Change-Id: Ia1a6c26f4f786f22763ebde95b238887914951f4
This commit is contained in:
9
tests/AccessibilityEventsLogger/Android.bp
Normal file
9
tests/AccessibilityEventsLogger/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
android_test {
|
||||||
|
name: "AccessibilityEventsLogger",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
certificate: "platform",
|
||||||
|
optimize: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := AccessibilityEventsLogger
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_ENABLED := disabled
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# Copyright (C) 2013 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 $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
20
tests/AccessoryDisplay/common/Android.bp
Normal file
20
tests/AccessoryDisplay/common/Android.bp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2013 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.
|
||||||
|
|
||||||
|
// Build the application.
|
||||||
|
java_library_static {
|
||||||
|
name: "AccessoryDisplayCommon",
|
||||||
|
sdk_version: "current",
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
}
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Copyright (C) 2013 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)
|
|
||||||
|
|
||||||
# Build the application.
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := AccessoryDisplayCommon
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
||||||
22
tests/AccessoryDisplay/sink/Android.bp
Normal file
22
tests/AccessoryDisplay/sink/Android.bp
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// Copyright (C) 2013 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.
|
||||||
|
|
||||||
|
// Build the application.
|
||||||
|
android_test {
|
||||||
|
name: "AccessoryDisplaySink",
|
||||||
|
sdk_version: "current",
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
resource_dirs: ["res"],
|
||||||
|
static_libs: ["AccessoryDisplayCommon"],
|
||||||
|
}
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# Copyright (C) 2013 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)
|
|
||||||
|
|
||||||
# Build the application.
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_PACKAGE_NAME := AccessoryDisplaySink
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
LOCAL_RESOURCE_DIR = $(LOCAL_PATH)/res
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := AccessoryDisplayCommon
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
22
tests/AccessoryDisplay/source/Android.bp
Normal file
22
tests/AccessoryDisplay/source/Android.bp
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// Copyright (C) 2013 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.
|
||||||
|
|
||||||
|
// Build the application.
|
||||||
|
android_test {
|
||||||
|
name: "AccessoryDisplaySource",
|
||||||
|
sdk_version: "current",
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
resource_dirs: ["res"],
|
||||||
|
static_libs: ["AccessoryDisplayCommon"],
|
||||||
|
}
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# Copyright (C) 2013 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)
|
|
||||||
|
|
||||||
# Build the application.
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_PACKAGE_NAME := AccessoryDisplaySource
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
LOCAL_RESOURCE_DIR = $(LOCAL_PATH)/res
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := AccessoryDisplayCommon
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
6
tests/ActivityTests/Android.bp
Normal file
6
tests/ActivityTests/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_test {
|
||||||
|
name: "ActivityTest",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := ActivityTest
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
LOCAL_USE_AAPT2 := true
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
23
tests/AmSlam/Android.bp
Normal file
23
tests/AmSlam/Android.bp
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2016 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: "AmSlam",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
min_sdk_version: "21",
|
||||||
|
java_version: "1.8",
|
||||||
|
}
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2016 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_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := AmSlam
|
|
||||||
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_MIN_SDK_VERSION := 21
|
|
||||||
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
5
tests/Assist/Android.bp
Normal file
5
tests/Assist/Android.bp
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
android_test {
|
||||||
|
name: "Assist",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := Assist
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
21
tests/BandwidthTests/Android.bp
Normal file
21
tests/BandwidthTests/Android.bp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// 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.
|
||||||
|
//
|
||||||
|
|
||||||
|
android_test {
|
||||||
|
name: "BandwidthEnforcementTest",
|
||||||
|
platform_apis: true,
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
}
|
||||||
@@ -1,25 +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.
|
|
||||||
#
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := BandwidthEnforcementTest
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
6
tests/BatteryWaster/Android.bp
Normal file
6
tests/BatteryWaster/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_test {
|
||||||
|
name: "BatteryWaster",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := BatteryWaster
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
23
tests/BiDiTests/Android.bp
Normal file
23
tests/BiDiTests/Android.bp
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
// 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.
|
||||||
|
|
||||||
|
android_test {
|
||||||
|
name: "BiDiTests",
|
||||||
|
// Only compile source java files in this apk.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
optimize: {
|
||||||
|
proguard_flags_files: ["proguard.flags"],
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,28 +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.
|
|
||||||
|
|
||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
# Only compile source java files in this apk.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := BiDiTests
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
26
tests/BrowserPowerTest/Android.bp
Normal file
26
tests/BrowserPowerTest/Android.bp
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
// Copyright 2008, 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: "BrowserPowerTests",
|
||||||
|
libs: [
|
||||||
|
"android.test.runner",
|
||||||
|
"android.test.base",
|
||||||
|
],
|
||||||
|
static_libs: ["junit"],
|
||||||
|
// Include all test java files.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
//LOCAL_INSTRUMENTATION_FOR := browserpowertest
|
||||||
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# Copyright 2008, 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)
|
|
||||||
|
|
||||||
# We only want this apk build for tests.
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := junit
|
|
||||||
|
|
||||||
# Include all test java files.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := BrowserPowerTests
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
#LOCAL_INSTRUMENTATION_FOR := browserpowertest
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
include $(call all-subdir-makefiles)
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Copyright 2013 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.
|
|
||||||
include $(call all-subdir-makefiles)
|
|
||||||
@@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
cc_test_library {
|
cc_test_library {
|
||||||
name: "libsmartcamera_jni",
|
name: "libsmartcamera_jni",
|
||||||
|
|
||||||
sdk_version: "14",
|
sdk_version: "14",
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"contrast.cpp",
|
"contrast.cpp",
|
||||||
"brightness.cpp",
|
"brightness.cpp",
|
||||||
@@ -29,13 +27,11 @@ cc_test_library {
|
|||||||
"sobeloperator.cpp",
|
"sobeloperator.cpp",
|
||||||
"stats_scorer.cpp",
|
"stats_scorer.cpp",
|
||||||
],
|
],
|
||||||
|
|
||||||
cflags: [
|
cflags: [
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-Wextra",
|
"-Wextra",
|
||||||
"-Werror",
|
"-Werror",
|
||||||
"-Wno-unused-parameter",
|
"-Wno-unused-parameter",
|
||||||
],
|
],
|
||||||
|
|
||||||
stl: "c++_static",
|
stl: "c++_static",
|
||||||
}
|
}
|
||||||
|
|||||||
6
tests/CameraPrewarmTest/Android.bp
Normal file
6
tests/CameraPrewarmTest/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_test {
|
||||||
|
name: "CameraPrewarmTest",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := CameraPrewarmTest
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
include $(call all-subdir-makefiles)
|
|
||||||
|
|
||||||
11
tests/CoreTests/android/Android.bp
Normal file
11
tests/CoreTests/android/Android.bp
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
android_test {
|
||||||
|
name: "LegacyCoreTests",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
libs: [
|
||||||
|
"android.test.runner.stubs",
|
||||||
|
"org.apache.http.legacy",
|
||||||
|
"android.test.base.stubs",
|
||||||
|
],
|
||||||
|
sdk_version: "current",
|
||||||
|
static_libs: ["junit"],
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
$(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES := \
|
|
||||||
android.test.runner.stubs \
|
|
||||||
org.apache.http.legacy \
|
|
||||||
android.test.base.stubs \
|
|
||||||
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := junit
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := LegacyCoreTests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
28
tests/DataIdleTest/Android.bp
Normal file
28
tests/DataIdleTest/Android.bp
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
//
|
||||||
|
// 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.
|
||||||
|
//
|
||||||
|
|
||||||
|
android_test {
|
||||||
|
name: "DataIdleTest",
|
||||||
|
platform_apis: true,
|
||||||
|
libs: [
|
||||||
|
"android.test.runner",
|
||||||
|
"android.test.base",
|
||||||
|
],
|
||||||
|
static_libs: ["junit"],
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
// We need to sign it to get access to the network usage history.
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,31 +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.
|
|
||||||
#
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# We only want this apk build for tests.
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := DataIdleTest
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := junit
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
# We need to sign it to get access to the network usage history.
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
6
tests/DozeTest/Android.bp
Normal file
6
tests/DozeTest/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_app {
|
||||||
|
name: "DozeTest",
|
||||||
|
// Only compile source java files in this apk.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
}
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
# Only compile source java files in this apk.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := DozeTest
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
|
|
||||||
# Use the following include to make our test apk.
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
9
tests/DpiTest/Android.bp
Normal file
9
tests/DpiTest/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
android_test {
|
||||||
|
name: "DensityTest",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
aaptflags: [
|
||||||
|
"-c",
|
||||||
|
"120dpi,240dpi,160dpi,nodpi",
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := DensityTest
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_AAPT_FLAGS = -c 120dpi,240dpi,160dpi,nodpi
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
22
tests/FeatureSplit/base/Android.bp
Normal file
22
tests/FeatureSplit/base/Android.bp
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2014 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_helper_app {
|
||||||
|
name: "FeatureSplitBase",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
export_package_resources: true,
|
||||||
|
}
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2014 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_USE_AAPT2 := true
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
LOCAL_PACKAGE_NAME := FeatureSplitBase
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_EXPORT_PACKAGE_RESOURCES := true
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
29
tests/FeatureSplit/feature1/Android.bp
Normal file
29
tests/FeatureSplit/feature1/Android.bp
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2014 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: "FeatureSplit1",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
libs: ["FeatureSplitBase"],
|
||||||
|
aaptflags: [
|
||||||
|
"--package-id",
|
||||||
|
"0x80",
|
||||||
|
] + [
|
||||||
|
"--custom-package",
|
||||||
|
"com.android.test.split.feature.one",
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2014 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_USE_AAPT2 := true
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
LOCAL_PACKAGE_NAME := FeatureSplit1
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_APK_LIBRARIES := FeatureSplitBase
|
|
||||||
LOCAL_RES_LIBRARIES := FeatureSplitBase
|
|
||||||
|
|
||||||
LOCAL_AAPT_FLAGS += --package-id 0x80
|
|
||||||
LOCAL_AAPT_FLAGS += --custom-package com.android.test.split.feature.one
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
28
tests/FeatureSplit/feature2/Android.bp
Normal file
28
tests/FeatureSplit/feature2/Android.bp
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2014 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: "FeatureSplit2",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
libs: ["FeatureSplitBase"],
|
||||||
|
aaptflags: [
|
||||||
|
"--package-id",
|
||||||
|
"0x81",
|
||||||
|
"--custom-package",
|
||||||
|
"com.android.test.split.feature.two",
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2014 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_USE_AAPT2 := true
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
LOCAL_PACKAGE_NAME := FeatureSplit2
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_APK_LIBRARIES := FeatureSplitBase
|
|
||||||
LOCAL_RES_LIBRARIES := FeatureSplitBase
|
|
||||||
|
|
||||||
LOCAL_AAPT_FLAGS += --package-id 0x81
|
|
||||||
LOCAL_AAPT_FLAGS += --custom-package com.android.test.split.feature.two
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
6
tests/FixVibrateSetting/Android.bp
Normal file
6
tests/FixVibrateSetting/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_app {
|
||||||
|
name: "FixVibrateSetting",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := FixVibrateSetting
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
14
tests/FrameworkPerf/Android.bp
Normal file
14
tests/FrameworkPerf/Android.bp
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
android_test {
|
||||||
|
name: "FrameworkPerf",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
libs: [
|
||||||
|
"android.test.runner",
|
||||||
|
"android.test.base",
|
||||||
|
],
|
||||||
|
static_libs: ["junit"],
|
||||||
|
aaptflags: [
|
||||||
|
"-c",
|
||||||
|
"120dpi,240dpi,160dpi,161dpi,320dpi,nodpi",
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := FrameworkPerf
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := junit
|
|
||||||
|
|
||||||
LOCAL_AAPT_FLAGS = -c 120dpi,240dpi,160dpi,161dpi,320dpi,nodpi
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
21
tests/GridLayoutTest/Android.bp
Normal file
21
tests/GridLayoutTest/Android.bp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2010 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: "GridLayoutTest",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2010 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_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := GridLayoutTest
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
10
tests/HierarchyViewerTest/Android.bp
Normal file
10
tests/HierarchyViewerTest/Android.bp
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
android_test {
|
||||||
|
name: "HierarchyViewerTest",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
libs: [
|
||||||
|
"android.test.runner.stubs",
|
||||||
|
"android.test.base.stubs",
|
||||||
|
],
|
||||||
|
static_libs: ["junit"],
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := HierarchyViewerTest
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := junit
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
9
tests/HugeBackup/Android.bp
Normal file
9
tests/HugeBackup/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
android_test {
|
||||||
|
name: "HugeBackup",
|
||||||
|
// Only compile source java files in this apk.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
optimize: {
|
||||||
|
proguard_flags_files: ["proguard.flags"],
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
# Only compile source java files in this apk.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := HugeBackup
|
|
||||||
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
9
tests/JobSchedulerTestApp/Android.bp
Normal file
9
tests/JobSchedulerTestApp/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
android_app {
|
||||||
|
name: "JobSchedulerTestApp",
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
resource_dirs: ["res"],
|
||||||
|
sdk_version: "current",
|
||||||
|
optimize: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := JobSchedulerTestApp
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_ENABLED := disabled
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
|
|
||||||
6
tests/LargeAssetTest/Android.bp
Normal file
6
tests/LargeAssetTest/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_app {
|
||||||
|
name: "LargeAssetTest",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := LargeAssetTest
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
6
tests/LegacyAssistant/Android.bp
Normal file
6
tests/LegacyAssistant/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_test {
|
||||||
|
name: "LegacyAssistant",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := LegacyAssistant
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
5
tests/LocationTracker/Android.bp
Normal file
5
tests/LocationTracker/Android.bp
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
android_test {
|
||||||
|
name: "LocationTracker",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := LocationTracker
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
9
tests/LotsOfApps/Android.bp
Normal file
9
tests/LotsOfApps/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
android_app {
|
||||||
|
name: "LotsOfApps",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
certificate: "platform",
|
||||||
|
optimize: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := LotsOfApps
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_ENABLED := disabled
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
20
tests/LowStorageTest/Android.bp
Normal file
20
tests/LowStorageTest/Android.bp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2009 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: "lowstoragetest",
|
||||||
|
certificate: "platform",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
# Copyright (C) 2009 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_CERTIFICATE := platform
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := lowstoragetest
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
12
tests/MemoryUsage/Android.bp
Normal file
12
tests/MemoryUsage/Android.bp
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
android_test {
|
||||||
|
name: "MemoryUsage",
|
||||||
|
// Only compile source java files in this apk.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
certificate: "platform",
|
||||||
|
libs: [
|
||||||
|
"android.test.runner",
|
||||||
|
"android.test.base",
|
||||||
|
],
|
||||||
|
static_libs: ["junit"],
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
# Only compile source java files in this apk.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := MemoryUsage
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := junit
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
|
|
||||||
# Use the following include to make our test apk.
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
12
tests/NetworkSecurityConfigTest/Android.bp
Normal file
12
tests/NetworkSecurityConfigTest/Android.bp
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
android_test {
|
||||||
|
name: "NetworkSecurityConfigTests",
|
||||||
|
certificate: "platform",
|
||||||
|
libs: [
|
||||||
|
"android.test.runner",
|
||||||
|
"android.test.base",
|
||||||
|
],
|
||||||
|
static_libs: ["junit"],
|
||||||
|
// Include all test java files.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# We only want this apk build for tests.
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES := \
|
|
||||||
android.test.runner \
|
|
||||||
android.test.base \
|
|
||||||
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := junit
|
|
||||||
|
|
||||||
# Include all test java files.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := NetworkSecurityConfigTests
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
20
tests/OdmApps/Android.bp
Normal file
20
tests/OdmApps/Android.bp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// 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_host {
|
||||||
|
name: "OdmAppsTest",
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
libs: ["tradefed"],
|
||||||
|
test_suites: ["device-tests"],
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
# 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 := OdmAppsTest
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
LOCAL_JAVA_LIBRARIES := tradefed
|
|
||||||
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
||||||
include $(BUILD_HOST_JAVA_LIBRARY)
|
|
||||||
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
19
tests/OdmApps/app/Android.bp
Normal file
19
tests/OdmApps/app/Android.bp
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// 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: "TestOdmApp",
|
||||||
|
test_suites: ["device-tests"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# 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_PACKAGE_NAME := TestOdmApp
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
19
tests/OdmApps/priv-app/Android.bp
Normal file
19
tests/OdmApps/priv-app/Android.bp
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// 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: "TestOdmPrivApp",
|
||||||
|
test_suites: ["device-tests"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# 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_PACKAGE_NAME := TestOdmPrivApp
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
13
tests/OneMedia/Android.bp
Normal file
13
tests/OneMedia/Android.bp
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
android_app {
|
||||||
|
name: "OneMedia",
|
||||||
|
srcs: [
|
||||||
|
"**/*.java",
|
||||||
|
"src/**/I*.aidl",
|
||||||
|
],
|
||||||
|
platform_apis: true,
|
||||||
|
certificate: "platform",
|
||||||
|
libs: ["org.apache.http.legacy"],
|
||||||
|
optimize: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files) \
|
|
||||||
$(call all-Iaidl-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := OneMedia
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES += org.apache.http.legacy
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_ENABLED := disabled
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
23
tests/RemoteDisplayProvider/Android.bp
Normal file
23
tests/RemoteDisplayProvider/Android.bp
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
// Copyright (C) 2013 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.
|
||||||
|
|
||||||
|
// Build the application.
|
||||||
|
android_test {
|
||||||
|
name: "RemoteDisplayProviderTest",
|
||||||
|
sdk_version: "system_current",
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
resource_dirs: ["res"],
|
||||||
|
libs: ["com.android.media.remotedisplay"],
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
# Copyright (C) 2013 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)
|
|
||||||
|
|
||||||
# Build the application.
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_PACKAGE_NAME := RemoteDisplayProviderTest
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
LOCAL_SDK_VERSION := system_current
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
LOCAL_RESOURCE_DIR = $(LOCAL_PATH)/res
|
|
||||||
LOCAL_JAVA_LIBRARIES := com.android.media.remotedisplay
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
10
tests/RenderThreadTest/Android.bp
Normal file
10
tests/RenderThreadTest/Android.bp
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
android_test {
|
||||||
|
name: "RenderThreadTest",
|
||||||
|
// Only compile source java files in this apk.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
static_libs: ["android-common"],
|
||||||
|
optimize: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
# Only compile source java files in this apk.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := RenderThreadTest
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES += android-common
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_ENABLED := disabled
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
|
|
||||||
# Use the following include to make our test apk.
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
21
tests/SerialChat/Android.bp
Normal file
21
tests/SerialChat/Android.bp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// 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.
|
||||||
|
//
|
||||||
|
|
||||||
|
android_test {
|
||||||
|
name: "SerialChat",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
}
|
||||||
@@ -1,27 +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.
|
|
||||||
#
|
|
||||||
|
|
||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := SerialChat
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
6
tests/SharedLibrary/client/Android.bp
Normal file
6
tests/SharedLibrary/client/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_test {
|
||||||
|
name: "SharedLibraryClient",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
libs: ["SharedLibrary"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_USE_AAPT2 := true
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_RES_LIBRARIES := SharedLibrary
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := SharedLibraryClient
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
11
tests/SharedLibrary/lib/Android.bp
Normal file
11
tests/SharedLibrary/lib/Android.bp
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
android_app {
|
||||||
|
name: "SharedLibrary",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
aaptflags: ["--shared-lib"],
|
||||||
|
sdk_version: "current",
|
||||||
|
export_package_resources: true,
|
||||||
|
privileged: true,
|
||||||
|
optimize: {
|
||||||
|
proguard_flags_files: ["proguard.proguard"],
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_USE_AAPT2 := true
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_AAPT_FLAGS := --shared-lib
|
|
||||||
LOCAL_PACKAGE_NAME := SharedLibrary
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_EXPORT_PACKAGE_RESOURCES := true
|
|
||||||
LOCAL_PRIVILEGED_MODULE := true
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_PROGUARD_FLAG_FILES := proguard.proguard
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
5
tests/ShowWhenLockedApp/Android.bp
Normal file
5
tests/ShowWhenLockedApp/Android.bp
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
android_test {
|
||||||
|
name: "ShowWhenLocked",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := ShowWhenLocked
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
6
tests/SmokeTest/Android.bp
Normal file
6
tests/SmokeTest/Android.bp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
android_test {
|
||||||
|
name: "SmokeTestApp",
|
||||||
|
// This builds "SmokeTestApp"
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
sdk_version: "8",
|
||||||
|
}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
# This builds "SmokeTestApp"
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := SmokeTestApp
|
|
||||||
|
|
||||||
LOCAL_SDK_VERSION := 8
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
|
|
||||||
# This builds "SmokeTest"
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
10
tests/SmokeTest/tests/Android.bp
Normal file
10
tests/SmokeTest/tests/Android.bp
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
android_test {
|
||||||
|
name: "SmokeTest",
|
||||||
|
// Include all test java files.
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
// Notice that we don't have to include the src files of SmokeTestApp because, by
|
||||||
|
// running the tests using an instrumentation targeting SmokeTestApp, we
|
||||||
|
// automatically get all of its classes loaded into our environment.
|
||||||
|
instrumentation_for: "SmokeTestApp",
|
||||||
|
sdk_version: "8",
|
||||||
|
}
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
# We only want this apk build for tests.
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
# Include all test java files.
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
# Notice that we don't have to include the src files of SmokeTestApp because, by
|
|
||||||
# running the tests using an instrumentation targeting SmokeTestApp, we
|
|
||||||
# automatically get all of its classes loaded into our environment.
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := SmokeTest
|
|
||||||
|
|
||||||
LOCAL_INSTRUMENTATION_FOR := SmokeTestApp
|
|
||||||
|
|
||||||
LOCAL_SDK_VERSION := 8
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
|
|
||||||
5
tests/SmokeTestApps/Android.bp
Normal file
5
tests/SmokeTestApps/Android.bp
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
android_test {
|
||||||
|
name: "SmokeTestTriggerApps",
|
||||||
|
srcs: ["src/**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := SmokeTestTriggerApps
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
7
tests/SoundTriggerTestApp/Android.bp
Normal file
7
tests/SoundTriggerTestApp/Android.bp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
android_app {
|
||||||
|
name: "SoundTriggerTestApp",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
privileged: true,
|
||||||
|
certificate: "platform",
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_NAME := SoundTriggerTestApp
|
|
||||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_PRIVILEGED_MODULE := true
|
|
||||||
LOCAL_CERTIFICATE := platform
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
27
tests/Split/Android.bp
Normal file
27
tests/Split/Android.bp
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2014 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: "Split",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
sdk_version: "current",
|
||||||
|
package_splits: [
|
||||||
|
"mdpi-v4",
|
||||||
|
"hdpi-v4",
|
||||||
|
"xhdpi-v4",
|
||||||
|
"xxhdpi-v4",
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2014 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_SRC_FILES := $(call all-subdir-java-files)
|
|
||||||
LOCAL_PACKAGE_NAME := Split
|
|
||||||
LOCAL_SDK_VERSION := current
|
|
||||||
|
|
||||||
LOCAL_PACKAGE_SPLITS := mdpi-v4 hdpi-v4 xhdpi-v4 xxhdpi-v4
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := tests
|
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
|
||||||
9
tests/StatusBar/Android.bp
Normal file
9
tests/StatusBar/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
android_test {
|
||||||
|
name: "StatusBarTest",
|
||||||
|
srcs: ["**/*.java"],
|
||||||
|
platform_apis: true,
|
||||||
|
certificate: "platform",
|
||||||
|
optimize: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user