From d31f2155237aa65cee1cb6ce1d39c48191663226 Mon Sep 17 00:00:00 2001 From: panlili2024 <14743743+panlili2024@user.noreply.gitee.com> Date: 星期五, 21 二月 2025 18:02:41 +0800 Subject: [PATCH] 新增source屏接口及房间及绑定关系接口 --- HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/sourceos/Rk3566Manager.java | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/sourceos/Rk3566Manager.java b/HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/sourceos/Rk3566Manager.java new file mode 100644 index 0000000..ba0fdcb --- /dev/null +++ b/HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/sourceos/Rk3566Manager.java @@ -0,0 +1,59 @@ +package com.hdl.sdk.sourceos; + +import android.annotation.SuppressLint; +import android.app.HdlSystemManager; +import android.content.Context; + +/** + * Created by panlili on 2025/2/14 + * description: + */ +public class Rk3566Manager { + private static final String TAG = "Rk3566Manager"; + private Context context; + private HdlSystemManager manager; + + private Rk3566Manager() { + } + + public static Rk3566Manager getInstance() { + return Rk3566Manager.SingletonInstance.INSTANCE; + } + + @SuppressLint({"WrongConstant"}) + public void init(Context context) { + this.context = context; + + try { + this.manager = (HdlSystemManager) context.getSystemService("hdl"); + } catch (Exception e) { + e.printStackTrace(); + } + + } + + public Context getContext() { + return this.context; + } + + public void setContext(Context context) { + this.context = context; + } + + @SuppressLint({"WrongConstant"}) + public HdlSystemManager getManager() { + return this.manager; + } + + public void setManager(HdlSystemManager manager) { + this.manager = manager; + } + + private static class SingletonInstance { + private static final Rk3566Manager INSTANCE = new Rk3566Manager(); + + private SingletonInstance() { + } + } + +} -- Gitblit v1.8.0