summaryrefslogtreecommitdiff
authorXindong Xu <xindong.xu@amlogic.com>2018-02-23 09:14:39 (GMT)
committer Xindong Xu <xindong.xu@amlogic.com>2018-02-23 09:14:39 (GMT)
commit394c91ad1ba3eb56b8363ad175fbca07f07bea4c (patch)
tree9a7d9b06114b3e39a0d36f0d6f36712ca5c8c8b2
parentbe79c84665e01412fb260b60b1d1bc56a08de924 (diff)
downloadampere-394c91ad1ba3eb56b8363ad175fbca07f07bea4c.zip
ampere-394c91ad1ba3eb56b8363ad175fbca07f07bea4c.tar.gz
ampere-394c91ad1ba3eb56b8363ad175fbca07f07bea4c.tar.bz2
TvControlManager: abandoned processCmd [1/1]
PD# 160487 hwbinder not support this way, we need use HIDL architecture to re-write TV APIs Change-Id: I918cde75eb925bef8b4731f637f87e5e14dca978
Diffstat
-rw-r--r--tv/frameworks/core/java/com/droidlogic/app/tv/TvControlManager.java42
1 files changed, 24 insertions, 18 deletions
diff --git a/tv/frameworks/core/java/com/droidlogic/app/tv/TvControlManager.java b/tv/frameworks/core/java/com/droidlogic/app/tv/TvControlManager.java
index e8416d9..9f1734a 100644
--- a/tv/frameworks/core/java/com/droidlogic/app/tv/TvControlManager.java
+++ b/tv/frameworks/core/java/com/droidlogic/app/tv/TvControlManager.java
@@ -162,18 +162,20 @@ public class TvControlManager {
}
private int sendCmdToTv(Parcel p, Parcel r) {
- p.setDataPosition(0);
+ Log.i(TAG, "sendCmdToTv is abandoned in Android O, please use cmd HIDL way!!cmd:" + p.readInt());
- Log.i(TAG, "sendCmdToTv cmd:" + p.readInt());
+ return -1;
+ /*p.setDataPosition(0);
int ret = processCmd(p, r);
r.setDataPosition(0);
- return ret;
+ return ret;*/
}
public int sendCmd(int cmd) {
- Log.i(TAG, "sendCmd cmd:" + cmd);
- libtv_log_open();
+ Log.i(TAG, "sendCmd is abandoned in Android O, please use cmd HIDL way!!cmd:" + cmd);
+ return -1;
+ /*libtv_log_open();
Parcel request = Parcel.obtain();
Parcel reply = Parcel.obtain();
request.writeInt(cmd);
@@ -184,12 +186,13 @@ public class TvControlManager {
request.recycle();
reply.recycle();
- return ret;
+ return ret;*/
}
public int sendCmdIntArray(int cmd, int[] values) {
- Log.i(TAG, "sendCmdIntArray cmd:" + cmd);
- libtv_log_open();
+ Log.i(TAG, "sendCmdIntArray is abandoned in Android O, please use cmd HIDL way!!cmd:" + cmd);
+ return -1;
+ /*libtv_log_open();
Parcel request = Parcel.obtain();
Parcel reply = Parcel.obtain();
request.writeInt(cmd);
@@ -203,12 +206,13 @@ public class TvControlManager {
request.recycle();
reply.recycle();
- return ret;
+ return ret;*/
}
public int sendCmdFloatArray(int cmd, float[] values) {
- Log.i(TAG, "sendCmdFloatArray cmd:" + cmd);
- libtv_log_open();
+ Log.i(TAG, "sendCmdFloatArray is abandoned in Android O, please use cmd HIDL way!!cmd:" + cmd);
+ return -1;
+ /*libtv_log_open();
Parcel request = Parcel.obtain();
Parcel reply = Parcel.obtain();
request.writeInt(cmd);
@@ -223,12 +227,13 @@ public class TvControlManager {
request.recycle();
reply.recycle();
- return ret;
+ return ret;*/
}
public int sendCmdStringArray(int cmd, String[] values) {
- Log.i(TAG, "sendCmdStringArray cmd:" + cmd);
- libtv_log_open();
+ Log.i(TAG, "sendCmdStringArray is abandoned in Android O, please use cmd HIDL way!!cmd:" + cmd);
+ return -1;
+ /*libtv_log_open();
Parcel request = Parcel.obtain();
Parcel reply = Parcel.obtain();
request.writeInt(cmd);
@@ -243,12 +248,13 @@ public class TvControlManager {
request.recycle();
reply.recycle();
- return ret;
+ return ret;*/
}
public int sendCmdStringArray(int cmd, int id, String[] values) {
- Log.i(TAG, "sendCmdStringArray cmd:" + cmd + " id:" + id);
- libtv_log_open();
+ Log.i(TAG, "sendCmdStringArray is abandoned in Android O, please use cmd HIDL way!!cmd:" + cmd + " id:" + id);
+ return -1;
+ /*libtv_log_open();
Parcel request = Parcel.obtain();
Parcel reply = Parcel.obtain();
request.writeInt(cmd);
@@ -264,7 +270,7 @@ public class TvControlManager {
request.recycle();
reply.recycle();
- return ret;
+ return ret;*/
}
class EventHandler extends Handler {