Merge "com.android.media.tv.remoteprovider is built with java_sdk_library"

This commit is contained in:
Treehugger Robot
2018-06-04 04:54:27 +00:00
committed by Gerrit Code Review
9 changed files with 45 additions and 66 deletions

View File

@@ -0,0 +1,24 @@
//
// 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_sdk_library {
name: "com.android.media.tv.remoteprovider",
srcs: ["java/**/*.java"],
api_packages: ["com.android.media.tv.remoteprovider"],
dex_preopt: {
enabled: false,
}
}

View File

@@ -1,46 +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)
# the tvremoteprovider library
# ============================================================
include $(CLEAR_VARS)
LOCAL_MODULE:= com.android.media.tv.remoteprovider
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, java)
LOCAL_DEX_PREOPT := false
include $(BUILD_JAVA_LIBRARY)
# ==== com.android.media.tvremote.xml lib def ========================
include $(CLEAR_VARS)
LOCAL_MODULE := com.android.media.tv.remoteprovider.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
# This will install the file in /system/etc/permissions
#
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)

View File

@@ -0,0 +1,21 @@
package com.android.media.tv.remoteprovider {
public abstract class TvRemoteProvider {
ctor public TvRemoteProvider(android.content.Context);
method public void clearInputBridge(android.os.IBinder) throws java.lang.RuntimeException;
method public void closeInputBridge(android.os.IBinder) throws java.lang.RuntimeException;
method public android.os.IBinder getBinder();
method public final android.content.Context getContext();
method public void onInputBridgeConnected(android.os.IBinder);
method public void openRemoteInputBridge(android.os.IBinder, java.lang.String, int, int, int) throws java.lang.RuntimeException;
method public void sendKeyDown(android.os.IBinder, int) throws java.lang.RuntimeException;
method public void sendKeyUp(android.os.IBinder, int) throws java.lang.RuntimeException;
method public void sendPointerDown(android.os.IBinder, int, int, int) throws java.lang.RuntimeException;
method public void sendPointerSync(android.os.IBinder) throws java.lang.RuntimeException;
method public void sendPointerUp(android.os.IBinder, int) throws java.lang.RuntimeException;
method public void sendTimestamp(android.os.IBinder, long) throws java.lang.RuntimeException;
field public static final java.lang.String SERVICE_INTERFACE = "com.android.media.tv.remoteprovider.TvRemoteProvider";
}
}

View File

View File

View File

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 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.
-->
<permissions>
<library name="com.android.media.tv.remoteprovider"
file="/system/framework/com.android.media.tv.remoteprovider.jar" />
</permissions>