Merge "Moved c.a.i.u.Predicate[s] into legacy-test"

This commit is contained in:
Paul Duffin
2017-05-15 18:58:45 +00:00
committed by Gerrit Code Review
5 changed files with 24 additions and 4 deletions

View File

@@ -17,7 +17,8 @@ LOCAL_JNI_SHARED_LIBRARIES := libmemoryintarraytest libcutils libc++
LOCAL_STATIC_JAVA_LIBRARIES := \ LOCAL_STATIC_JAVA_LIBRARIES := \
android-support-test \ android-support-test \
frameworks-base-testutils \ frameworks-base-testutils \
mockito-target mockito-target \
legacy-android-tests
LOCAL_JAVA_LIBRARIES := android.test.runner LOCAL_JAVA_LIBRARIES := android.test.runner
@@ -27,4 +28,4 @@ LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE) include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH)) include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -20,9 +20,11 @@ LOCAL_PATH:= $(call my-dir)
# ============================= # =============================
# This contains the junit.framework and android.test classes that were in # This contains the junit.framework and android.test classes that were in
# Android API level 25 excluding those from android.test.runner. # Android API level 25 excluding those from android.test.runner.
# Also contains the com.android.internal.util.Predicate[s] classes.
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_MODULE := legacy-test LOCAL_MODULE := legacy-test
LOCAL_NO_STANDARD_LIBRARIES := true LOCAL_NO_STANDARD_LIBRARIES := true
LOCAL_JAVA_LIBRARIES := core-oj core-libart framework LOCAL_JAVA_LIBRARIES := core-oj core-libart framework
@@ -30,20 +32,35 @@ LOCAL_JAVA_LIBRARIES := core-oj core-libart framework
include $(BUILD_JAVA_LIBRARY) include $(BUILD_JAVA_LIBRARY)
# Build the legacy-android-test library # Build the legacy-android-test library
# ============================= # =====================================
# This contains the android.test classes that were in Android API level 25, # This contains the android.test classes that were in Android API level 25,
# including those from android.test.runner. # including those from android.test.runner.
# Also contains the com.android.internal.util.Predicate[s] classes.
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_SRC_FILES := \ LOCAL_SRC_FILES := \
$(call all-java-files-under, src/android) \ $(call all-java-files-under, src/android) \
$(call all-java-files-under, ../test-runner/src/android) $(call all-java-files-under, ../test-runner/src/android) \
$(call all-java-files-under, src/com)
LOCAL_MODULE := legacy-android-test LOCAL_MODULE := legacy-android-test
LOCAL_NO_STANDARD_LIBRARIES := true LOCAL_NO_STANDARD_LIBRARIES := true
LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit
include $(BUILD_STATIC_JAVA_LIBRARY) include $(BUILD_STATIC_JAVA_LIBRARY)
# Build the legacy-android-tests library
# ======================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
$(call all-java-files-under, tests)
LOCAL_MODULE := legacy-android-tests
LOCAL_NO_STANDARD_LIBRARIES := true
LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit
LOCAL_STATIC_JAVA_LIBRARIES := legacy-android-test
include $(BUILD_STATIC_JAVA_LIBRARY)
ifeq ($(HOST_OS),linux) ifeq ($(HOST_OS),linux)
# Build the legacy-performance-test-hostdex library # Build the legacy-performance-test-hostdex library
# ================================================= # =================================================

View File

@@ -21,6 +21,8 @@ import java.util.Arrays;
/** /**
* Predicates contains static methods for creating the standard set of * Predicates contains static methods for creating the standard set of
* {@code Predicate} objects. * {@code Predicate} objects.
*
* @hide
*/ */
public class Predicates { public class Predicates {