CN112188271B - 一种智能电视的窗口层级配置方法 - Google Patents

一种智能电视的窗口层级配置方法 Download PDF

Info

Publication number
CN112188271B
CN112188271B CN202011269115.2A CN202011269115A CN112188271B CN 112188271 B CN112188271 B CN 112188271B CN 202011269115 A CN202011269115 A CN 202011269115A CN 112188271 B CN112188271 B CN 112188271B
Authority
CN
China
Prior art keywords
window
configuration
package name
level configuration
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011269115.2A
Other languages
English (en)
Other versions
CN112188271A (zh
Inventor
黄蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202011269115.2A priority Critical patent/CN112188271B/zh
Publication of CN112188271A publication Critical patent/CN112188271A/zh
Application granted granted Critical
Publication of CN112188271B publication Critical patent/CN112188271B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Abstract

本发明公开了一种智能电视的窗口层级配置方法,包括以下步骤:A、在LayoutParams类中新增n个窗口类型;B、在WindowManagerPolicy类中设置这n个窗口类型的窗口层级,且所述窗口层级均高于安卓原生的最大窗口层级;C、从云端获取窗口层级配置,若失败则使用本地的窗口层级配置;D、在WindowManagerGlobal类添加窗口的地方,判断当前添加窗口是否在窗口层级配置中;若是,则根据窗口层级配置,设置当前添加窗口的窗口类型;若不是,不做处理。本发明能够让智能电视的系统窗口在配置窗口层级之后不被第三方应用窗口遮挡,保证系统窗口的优先位置。并且窗口层级的配置可从云端获取,具有一定灵活性,便于电视厂商管控系统中的窗口。

Description

一种智能电视的窗口层级配置方法
技术领域
本发明涉及安卓智能电视技术领域,更具体的说是涉及一种智能电视的窗口层级配置方法。
背景技术
在安卓系统中,只要应用获取了相应权限,其能添加的窗口类型就和系统应用一样。这就导致第三方应用添加的窗口可以遮挡系统窗口;而系统窗口都是比较重要的系统功能或提示,不应该被第三方应用遮挡。
发明内容
本发明的目的在于提供一种智能电视的窗口层级配置方法,以期解决背景技术中存在的技术问题。为系统及系统应用提供高于安卓原生的窗口层级,配置之后,系统窗口不会被第三方应用窗口遮挡,系统中的窗口层级可控可调整。
为了实现上述目的,本发明采用以下技术方案:
一种智能电视的窗口层级配置方法,包括以下步骤:
A、在LayoutParams类中新增n个窗口类型;
B、在WindowManagerPolicy类中设置这n个窗口类型的窗口层级,且所述窗口层级均高于安卓原生的最大窗口层级;
C、从云端获取窗口层级配置,若失败则使用本地的窗口层级配置;
D、在WindowManagerGlobal类添加窗口的地方,判断当前添加窗口是否在窗口层级配置中;若是,则根据窗口层级配置,设置当前添加窗口的窗口类型;若不是,不做处理。
所述步骤C中,窗口层级配置包括两种:一种是包名与新增窗口类型的对应关系配置,另一种是窗口标题与新增窗口类型的对应关系配置。
所述步骤D中,判断当前添加窗口是否在窗口层级配置中的具体方法为:
遍历包名配置,判断当前添加窗口的包名是否与其中包名吻合;若吻合,则当前添加窗口处于包名配置中,退出遍历;
若遍历包名配置后,无包名与当前添加窗口的包名吻合,则遍历窗口标题配置,判断当前添加窗口的窗口标题是否与其中窗口标题吻合;若吻合,则当前添加窗口处于窗口标题配置中,退出遍历;
若遍历包名配置和窗口标题配置都没有吻合项,则当前添加窗口不在窗口层级配置中。
本发明与现有技术相比具有的有益效果是:
本发明能够让智能电视的系统窗口在配置窗口层级之后不被第三方应用窗口遮挡,保证系统窗口的优先位置。并且窗口层级的配置可从云端获取,具有一定灵活性,便于电视厂商管控系统中的窗口。
附图说明
图1为本发明提出的智能电视窗口层级配置方法的流程图。
具体实施方式
下面结合实施例对本发明作进一步的描述,所描述的实施例仅仅是本发明一部分实施例,并不是全部的实施例。基于本发明中的实施例,本领域的普通技术人员在没有做出创造性劳动前提下所获得的其他所用实施例,都属于本发明的保护范围。
实施例1:
如图1所示,一种智能电视的窗口层级配置方法,其中,包括步骤:
A.在LayoutParams类中新增n个窗口类型。
B.在WindowManagerPolicy类中设置这n个窗口类型的窗口层级,这些层级均高于安卓原生的最大窗口层级。
C.尝试从云端获取窗口层级配置,若失败则使用本地的窗口层级配置。
所述步骤C中的窗口层级配置包括两种配置:一种是包名与新增窗口类型的对应关系配置(简称包名配置),另一种是窗口标题与新增窗口类型的对应关系配置(简称窗口标题配置)。
D.在WindowManagerGlobal类添加窗口的地方,判断当前添加窗口是否在窗口层级配置中。若是,则根据窗口层级配置,设置当前添加窗口的窗口类型;若不是,不做处理。
所述步骤D中,判断当前添加窗口是否在窗口层级配置中的具体方法为:
首先,遍历包名配置,判断当前添加窗口的包名是否与其中包名吻合;若吻合,则当前添加窗口处于包名配置中,退出遍历。若遍历包名配置后,无包名与当前添加窗口的包名吻合,则遍历窗口标题配置,判断当前添加窗口的窗口标题是否与其中窗口标题吻合;若吻合,则当前添加窗口处于窗口标题配置中,退出遍历。若遍历包名配置和窗口标题配置都没有吻合项,则当前添加窗口不在窗口层级配置中。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (2)

1.一种智能电视的窗口层级配置方法,其特征在于,为系统及系统应用提供高于安卓原生的窗口层级,包括以下步骤:
A、在LayoutParams类中新增n个窗口类型;
B、在WindowManagerPolicy类中设置这n个窗口类型的窗口层级,且所述窗口层级均高于安卓原生的最大窗口层级;
C、从云端获取窗口层级配置,若失败则使用本地的窗口层级配置;
D、在WindowManagerGlobal类添加窗口的地方,判断当前添加窗口是否在窗口层级配置中;若是,则根据窗口层级配置,设置当前添加窗口的窗口类型;若不是,不做处理;
所述步骤D中,判断当前添加窗口是否在窗口层级配置中的具体方法为:
遍历包名配置,判断当前添加窗口的包名是否与其中包名吻合;若吻合,则当前添加窗口处于包名配置中,退出遍历;
若遍历包名配置后,无包名与当前添加窗口的包名吻合,则遍历窗口标题配置,判断当前添加窗口的窗口标题是否与其中窗口标题吻合;若吻合,则当前添加窗口处于窗口标题配置中,退出遍历;
若遍历包名配置和窗口标题配置都没有吻合项,则当前添加窗口不在窗口层级配置中。
2.根据权利要求1所述的一种智能电视的窗口层级配置方法,其特征在于,所述步骤C中,窗口层级配置包括两种:一种是包名与新增窗口类型的对应关系配置,另一种是窗口标题与新增窗口类型的对应关系配置。
CN202011269115.2A 2020-11-13 2020-11-13 一种智能电视的窗口层级配置方法 Active CN112188271B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011269115.2A CN112188271B (zh) 2020-11-13 2020-11-13 一种智能电视的窗口层级配置方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011269115.2A CN112188271B (zh) 2020-11-13 2020-11-13 一种智能电视的窗口层级配置方法

Publications (2)

Publication Number Publication Date
CN112188271A CN112188271A (zh) 2021-01-05
CN112188271B true CN112188271B (zh) 2021-08-06

Family

ID=73918459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011269115.2A Active CN112188271B (zh) 2020-11-13 2020-11-13 一种智能电视的窗口层级配置方法

Country Status (1)

Country Link
CN (1) CN112188271B (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779042A (zh) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 支持移动终端快捷操作的系统及方法
CN108205458A (zh) * 2018-01-02 2018-06-26 武汉斗鱼网络科技有限公司 会话框实现方法、装置及可读存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011101845A1 (en) * 2010-02-16 2011-08-25 Screenovate Technologies Ltd. Modified operating systems allowing mobile devices to accommodate io devices more convenient than their own inherent io devices and methods for generating such systems
CN106919406A (zh) * 2015-12-24 2017-07-04 阿里巴巴集团控股有限公司 一种桌面应用组件发布、更新方法及装置
CN109246466B (zh) * 2018-10-30 2021-06-11 北京达佳互联信息技术有限公司 视频播放方法、装置及电子设备
CN110377254B (zh) * 2019-07-05 2023-11-14 北京达佳互联信息技术有限公司 一种显示亮度调节方法、装置、电子设备及存储介质
CN111787376B (zh) * 2020-07-22 2022-10-14 聚好看科技股份有限公司 一种显示设备、服务器及视频推荐的方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779042A (zh) * 2012-06-26 2012-11-14 奇智软件(北京)有限公司 支持移动终端快捷操作的系统及方法
CN108205458A (zh) * 2018-01-02 2018-06-26 武汉斗鱼网络科技有限公司 会话框实现方法、装置及可读存储介质

Also Published As

Publication number Publication date
CN112188271A (zh) 2021-01-05

Similar Documents

Publication Publication Date Title
US11258801B2 (en) Method of performing smart hybrid acceleration on resources, device, medium and apparatus
KR101994386B1 (ko) 프리앰블 시퀀스를 전송하기 위한 방법 및 사용자 장비
US10152590B2 (en) Implementing a WebSocket server to circumvent access controls, by a web browser, on a web application
EP3269146B1 (en) Permissions management for watermarked data in a broadcast environment
US20170310720A1 (en) Non-DSG Mechanisms for Aligning Client Devices with Their Multicast Data Flows in a DOCSIS Network Environment
US20170102935A1 (en) Mobile application processing
CN103595547A (zh) 智能设备的广播拦截方法和装置
US20160162435A1 (en) Subscriber station for a bus system and method for improving the error tolerance of a subscriber station of a bus system
CN111355678B (zh) 自动增益控制方法、装置、存储介质和电子设备
US9948393B2 (en) Visible light communication system and method and related device
US20160036815A1 (en) Regulating Communication of Audio Data From a Client Device Based on a Privacy Setting Stored by the Client Device
US11388706B2 (en) Information acquiring method, terminal, base station, and system
CN108363588B (zh) 实现web与原生功能交互的方法、电子装置及可读存储介质
US20180347842A1 (en) Energy operations across domains
WO2015143934A1 (en) Information sending method and information sending apparatus
CN110084038B (zh) 防止第三方JavaScript漏洞
CN111314794A (zh) 一种流媒体播放地址生成方法
CN112188271B (zh) 一种智能电视的窗口层级配置方法
CN111970539B (zh) 基于深度学习和云计算服务的数据编码方法及大数据平台
CN1153483C (zh) 用于信道译码器的软归一化器
US10009651B2 (en) Method for processing global key of smart television and system thereof
CN104036042A (zh) 信息投放方法、装置及系统
WO2017035938A1 (zh) 带宽设置切换方法及装置
US20210373874A1 (en) Internet of things device, a server, and a software updating method
CN111294173A (zh) 一种速率匹配方法及装置

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant