Loading media/lib/remotedisplay/Android.mk +21 −0 Original line number Diff line number Diff line Loading @@ -42,3 +42,24 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions LOCAL_SRC_FILES := $(LOCAL_MODULE) include $(BUILD_PREBUILT) include $(CLEAR_VARS) LOCAL_MODULE := com.android.media.remotedisplay.stubs-gen LOCAL_MODULE_CLASS := JAVA_LIBRARIES LOCAL_SRC_FILES := $(call all-java-files-under,java) LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/com.android.media.remotedisplay.stubs_intermediates/src LOCAL_DROIDDOC_OPTIONS:= \ -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \ -stubpackages com.android.media.remotedisplay \ -nodocs LOCAL_UNINSTALLABLE_MODULE := true include $(BUILD_DROIDDOC) com_android_media_remotedisplay_gen_stamp := $(full_target) include $(CLEAR_VARS) LOCAL_MODULE := com.android.media.remotedisplay.stubs LOCAL_SDK_VERSION := current LOCAL_SOURCE_FILES_ALL_GENERATED := true LOCAL_ADDITIONAL_DEPENDENCIES := $(com_android_media_remotedisplay_gen_stamp) com_android_media_remotedisplay_gen_stamp := include $(BUILD_STATIC_JAVA_LIBRARY) media/lib/remotedisplay/README.txt +11 −2 Original line number Diff line number Diff line This library (com.android.media.remotedisplay.jar) is a shared java library There are two libraries defined in this directory: First, com.android.media.remotedisplay.jar is a shared java library containing classes required by unbundled remote display providers. Second, com.android.media.remotedisplay.stubs.jar is a stub for the shared library which provides build-time APIs to the unbundled clients. At runtime, the shared library is added to the classloader of the app via the <uses-library> tag. And since Java always tries to load a class from the parent classloader, regardless of whether the stub library is linked to the app statically or dynamically, the real classes are loaded from the shared library. --- Rules of this library --- o This library is effectively a PUBLIC API for unbundled remote display providers o The stub library is effectively a PUBLIC API for unbundled remote display providers that may be distributed outside the system image. So it MUST BE API STABLE. You can add but not remove. The rules are the same as for the public platform SDK API. Loading tests/RemoteDisplayProvider/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,6 @@ LOCAL_MODULE_TAGS := tests LOCAL_SDK_VERSION := current LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_RESOURCE_DIR = $(LOCAL_PATH)/res LOCAL_JAVA_LIBRARIES := com.android.media.remotedisplay LOCAL_JAVA_LIBRARIES := com.android.media.remotedisplay.stubs LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) Loading
media/lib/remotedisplay/Android.mk +21 −0 Original line number Diff line number Diff line Loading @@ -42,3 +42,24 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions LOCAL_SRC_FILES := $(LOCAL_MODULE) include $(BUILD_PREBUILT) include $(CLEAR_VARS) LOCAL_MODULE := com.android.media.remotedisplay.stubs-gen LOCAL_MODULE_CLASS := JAVA_LIBRARIES LOCAL_SRC_FILES := $(call all-java-files-under,java) LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/com.android.media.remotedisplay.stubs_intermediates/src LOCAL_DROIDDOC_OPTIONS:= \ -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 \ -stubpackages com.android.media.remotedisplay \ -nodocs LOCAL_UNINSTALLABLE_MODULE := true include $(BUILD_DROIDDOC) com_android_media_remotedisplay_gen_stamp := $(full_target) include $(CLEAR_VARS) LOCAL_MODULE := com.android.media.remotedisplay.stubs LOCAL_SDK_VERSION := current LOCAL_SOURCE_FILES_ALL_GENERATED := true LOCAL_ADDITIONAL_DEPENDENCIES := $(com_android_media_remotedisplay_gen_stamp) com_android_media_remotedisplay_gen_stamp := include $(BUILD_STATIC_JAVA_LIBRARY)
media/lib/remotedisplay/README.txt +11 −2 Original line number Diff line number Diff line This library (com.android.media.remotedisplay.jar) is a shared java library There are two libraries defined in this directory: First, com.android.media.remotedisplay.jar is a shared java library containing classes required by unbundled remote display providers. Second, com.android.media.remotedisplay.stubs.jar is a stub for the shared library which provides build-time APIs to the unbundled clients. At runtime, the shared library is added to the classloader of the app via the <uses-library> tag. And since Java always tries to load a class from the parent classloader, regardless of whether the stub library is linked to the app statically or dynamically, the real classes are loaded from the shared library. --- Rules of this library --- o This library is effectively a PUBLIC API for unbundled remote display providers o The stub library is effectively a PUBLIC API for unbundled remote display providers that may be distributed outside the system image. So it MUST BE API STABLE. You can add but not remove. The rules are the same as for the public platform SDK API. Loading
tests/RemoteDisplayProvider/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,6 @@ LOCAL_MODULE_TAGS := tests LOCAL_SDK_VERSION := current LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_RESOURCE_DIR = $(LOCAL_PATH)/res LOCAL_JAVA_LIBRARIES := com.android.media.remotedisplay LOCAL_JAVA_LIBRARIES := com.android.media.remotedisplay.stubs LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE)