WO2018050095A1 - 一种屏幕显示方法及移动终端 - Google Patents

一种屏幕显示方法及移动终端 Download PDF

Info

Publication number
WO2018050095A1
WO2018050095A1 PCT/CN2017/101760 CN2017101760W WO2018050095A1 WO 2018050095 A1 WO2018050095 A1 WO 2018050095A1 CN 2017101760 W CN2017101760 W CN 2017101760W WO 2018050095 A1 WO2018050095 A1 WO 2018050095A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
screen
information
mobile terminal
displayed
Prior art date
Application number
PCT/CN2017/101760
Other languages
English (en)
French (fr)
Inventor
王斌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018050095A1 publication Critical patent/WO2018050095A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1438Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using more than one graphics controller

Definitions

  • the present disclosure relates to the field of mobile communications technologies, and in particular, to a screen display method and a mobile terminal.
  • the mainstream Android (Android) mobile phones basically adopt a single-screen straight board design.
  • one implementation is dual-screen display, and the so-called dual-screen display is the same time, and the same content is displayed on multiple display screens.
  • many mobile phones can simultaneously display the screen of a mobile phone, and can also output HDMI (High Definition Multimedia Interface). Since the displayed content is the same, the Android application layer and the Framework are basically not modified, as long as the different data formats are packaged in the final stage of the display processing.
  • Dual-screen display mode not only simple driver to mount multiple screens, but also need to adapt the Android framework and application modification, modify the task management mechanism of Android, and allow multiple applications to run at the same time in the foreground.
  • the displayed content needs to be extended by the framework of the Android JAVA layer to support the drawing of the display content of the second screen. This involves a lot of transformation of the Android window mechanism, expands the display interface, and supports drawing the content processing of two screens. This method is difficult to implement and the development cost is high.
  • the technical problem to be solved by the present disclosure is to provide a screen display method and a mobile terminal, which are used to solve the existing dual-screen display method which is not yet complete, and the display of the secondary screen in the dual screen is difficult to implement, and Conducive to cost savings.
  • an embodiment of the present disclosure provides a screen display method, which is applied to a mobile terminal, where the mobile terminal includes a first display screen and a second display screen, where the screen display method includes:
  • the display interface is displayed on the second display screen.
  • the information to be displayed includes at least one of status information of the application, network information of the mobile terminal, and system status information, where
  • the network information includes one or two of a network status and a network signal
  • the system status information includes one or more of a current time, an alarm reminder information of the mobile terminal, and an incoming call prompt information of the mobile terminal.
  • the step of acquiring information to be displayed on the second display screen of the mobile terminal includes:
  • the step of acquiring the information to be displayed on the second display screen by using the preset acquisition mechanism includes:
  • the step of acquiring the information to be displayed on the second display screen by using the preset acquisition mechanism includes:
  • the screen display method further includes:
  • the acquired information to be displayed is stored by creating a file or an attribute.
  • the step of drawing a display interface of the information to be displayed according to the second drawing mechanism includes:
  • the plurality of interfaces are combined to generate a display interface of the information to be displayed.
  • the screen display method further includes:
  • the display interface is cached.
  • An embodiment of the present disclosure provides a mobile terminal, including a first display screen and a second display screen, where the mobile terminal further includes:
  • An acquiring module configured to acquire information to be displayed on a second display screen of the mobile terminal
  • a drawing module configured to draw a display interface of the information to be displayed according to a second drawing mechanism, where the second drawing mechanism and the first drawing mechanism for drawing the display interface of the first display screen are different drawing mechanisms;
  • a display module configured to display the display interface on the second display screen.
  • the obtaining module includes:
  • an obtaining unit configured to acquire information to be displayed on the second display screen by using a preset acquisition mechanism.
  • the drawing module includes:
  • a drawing unit configured to draw multiple interfaces of the information to be displayed by calling a basic drawing application programming interface supported by a local layer service or a basic graphic control library;
  • a synthesizing unit configured to synthesize the plurality of interfaces to generate a display interface of the information to be displayed.
  • the display of the secondary screen of the mobile terminal is controlled in a manner different from the main screen, thereby avoiding rewriting of the mobile terminal system layer, and realizing the difference between the main and the secondary screens.
  • FIG. 1 is a schematic flow chart showing a screen display method according to Embodiment 1 of the present disclosure
  • FIG. 2 is a schematic flowchart showing an exemplary implementation process of step 12 of Embodiment 1 of the present disclosure
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to Embodiment 1 of the present disclosure.
  • FIG. 5 is a schematic diagram showing a first acquisition process of information to be displayed
  • FIG. 6 is a schematic diagram showing a second acquisition flow of information to be displayed
  • FIG. 7 is a schematic block diagram of a mobile terminal according to Embodiment 2 of the present disclosure.
  • the invention is directed to the existing dual-screen display method which is not yet complete, and the display of the secondary screen in the dual screen is difficult to implement, which is not conducive to cost saving, and provides a screen display method and a mobile terminal.
  • FIG. 1 is a schematic flowchart of a screen display method according to Embodiment 1 of the present disclosure.
  • a screen display method according to Embodiment 1 of the present disclosure is applied to a mobile terminal, where the mobile terminal includes a first display screen and a second display.
  • a screen wherein the screen display method comprises:
  • Step 11 Obtain information to be displayed on the second display screen of the mobile terminal.
  • the first display screen generally refers to the main screen (main display screen) of the mobile terminal
  • the second display screen is the secondary screen (sub display screen) of the mobile terminal
  • the information to be displayed on the second display screen Generally, it refers to at least one of status information of the application, network information of the mobile terminal, and system status information.
  • the status information of the application may be notification information of the application, for example, a message commonly used by WeChat or QQ.
  • the network information includes one or two of a network status and a network signal; the system status information includes one or more of a current time, an alarm reminder information of the mobile terminal, and an incoming call prompt information of the mobile terminal.
  • the secondary screen can display all the information on the main screen.
  • Step 12 Draw a display interface of the information to be displayed according to the second drawing mechanism
  • the second drawing mechanism and the first drawing mechanism for drawing the display interface of the first display screen are different drawing mechanisms.
  • the first drawing mechanism of the step 12 is to perform the drawing of the display interface of the first display screen by calling the application layer service
  • the second drawing mechanism is to perform the second display screen by calling the local layer service.
  • the display interface is drawn, and the application layer service and the local layer service respectively belong to different logical layers of the mobile terminal system.
  • the display interface of the secondary screen is drawn by calling a service different from the display interface of the main screen. The method does not affect the display of the main screen, and the individual control of the interface display can be performed independently of the main screen.
  • step 13 the display interface is displayed on the second display screen.
  • the main screen by displaying the display of the secondary screen of the mobile terminal separately from the main screen, the main screen is adopted. Different ways control the display of the secondary screen, avoiding the rewriting of the mobile terminal system layer, and realizing the difference between the main and secondary screens.
  • Step 11 may be implemented as follows:
  • the preset acquisition mechanism is different from the acquisition mechanism for acquiring the display information of the first display screen.
  • the obtaining of the information to be displayed on the second display screen may be implemented in the following manner:
  • the first method is to obtain information to be displayed on the second display screen of the mobile terminal by using a local layer service of the mobile terminal (it is required that the local layer service is a service located at a lower layer of the application layer) or a modem (MODEM) service.
  • a local layer service of the mobile terminal it is required that the local layer service is a service located at a lower layer of the application layer
  • MODEM modem
  • the second method is to obtain information to be displayed on the second display screen of the mobile terminal by using an application layer service of the mobile terminal or an application programming interface (API) of the application layer service.
  • API application programming interface
  • the mobile terminal stores the information to be displayed acquired in the application programming interface of the application layer service or the application layer service by creating a file or an attribute, so as to facilitate the use of the local layer service.
  • FIG. 2 is a schematic flowchart of an exemplary implementation process of step 12 of the first embodiment of the present disclosure. As shown in FIG. 2, when the foregoing step 12 is implemented, the method includes:
  • Step 121 Draw a plurality of interfaces of the information to be displayed by calling a basic drawing application programming interface supported by the local layer service or a basic graphic control library;
  • Step 122 Synthesize the plurality of interfaces to generate a display interface of the information to be displayed.
  • the interface is drawn by using the basic drawing application programming interface or the basic graphic control library in the local layer service, and the secondary screen interface is implemented without using the upper application layer service. Separate control with the main screen interface.
  • the screen display method further includes:
  • Step 123 Cache the display interface.
  • a set of sub-screen display flow and refresh mechanism are added to display time, signals, short message prompts, call prompts, GPS (Global Positioning System) signals, and alarm prompts, etc.
  • the main screen and the sub screen can be displayed at the same time, or the main screen does not display only the sub screen display.
  • the secondary screen is independently displayed, and the mobile terminal can respectively perform the closing and opening of the secondary screen and the primary screen, and the display switching of the two screens.
  • the content of the main screen is displayed by framebuffer1 (the first frame buffer), and the framebuffer2 (second frame buffer) is extended from the kernel level to specifically display the contents of the sub-screen.
  • the display of the secondary screen is completely independent of the Android layer, and is performed locally locally.
  • the UI (User Interface) of the secondary screen is displayed and used directly.
  • the display interface library of the NATIVE (local) layer is drawn, and the surfaceflinger mechanism of the Android layer is discarded.
  • the screen driver code is modified to complete and provide support for the sub-screen display and provide relevant display interfaces.
  • the mobile terminal 30 of the embodiment of the present disclosure mainly includes: a main screen display frame, that is, a processing module 31, configured to complete display processing of the main screen, and a secondary screen display.
  • the frame processing module 32 is configured to complete the display processing of the secondary screen, and the main screen display and the secondary screen display two sets of display mechanisms without interaction, and serve two independent display services.
  • FIG. 4 is a flow chart showing the display of the main and secondary screens of the mobile terminal. As shown in FIG. 4, the main display flow of the main screen is as follows:
  • Step 411 The main display UI interactively displays the drawing, and the mobile terminal draws the UI layout according to the design requirements;
  • Step 412 Calling the standard UI API of the Android JAVA layer for drawing
  • Step 413 The window manager of the JAVA layer is responsible for cutting and calculating the UI graphics
  • Step 414 Android layer display mechanism, responsible for display composition (compose) of each layer;
  • Step 415 The surfaceflinger finally synthesizes the displayed layers, and may synthesize the software or the hardware to generate the final display content.
  • Step 416 Put the final display content into framebuffer1;
  • Step 417 The display driver is responsible for taking out the content of the framebuffer1 and sending it to the main display for display;
  • Step 418 The main display screen displays the final display content drawn by the mobile terminal.
  • the main display flow of the secondary screen is:
  • Step 421 Add a secondary screen proxy service, and be responsible for displaying and displaying the secondary display screen, and starting the secondary screen proxy service by default;
  • Step 422 Start a display extension interface of the secondary screen or a proxy service to perform a drawing function of the secondary screen display interface
  • Step 423 Obtain a network status, time, signal, alarm, call, and the like;
  • Step 424 Perform a sub-display UI interface drawing
  • Step 425 Call NATIVE's API to display and draw;
  • Step 426 Synthesize the display content
  • Step 427 Put the synthesized display content into framebuffer2;
  • Step 428 The display driver is responsible for taking out the content of the framebuffer2 and sending it to the secondary display for display.
  • Step 429 The secondary display screen displays the display content synthesized by the terminal.
  • FIG. 5 is a schematic diagram of a first acquisition process of information to be displayed. As shown in FIG. 5, the first acquisition process of the information to be displayed is:
  • Step 51 The secondary screen displays an instruction that the proxy service program needs to obtain information such as the network or system status;
  • Step 52 NATIVE or a modem service provides information such as network or system status
  • Step 53 implement communication with the secondary display proxy service program through the NATIVE process communication mechanism
  • Step 54 The secondary screen displays the proxy service program to obtain information such as the network or system status according to the message in the communication mechanism.
  • FIG. 6 is a schematic diagram of a second acquisition process of the information to be displayed. As shown in FIG. 6, the second acquisition process of the information to be displayed is:
  • Step 61 The secondary screen displays an instruction that the proxy service program needs to obtain information such as the network or system status;
  • Step 62 Obtain information such as network or system status through the Android JAVA service or API;
  • Step 63 Store the obtained network or system status and other information by creating a file or an attribute.
  • Step 64 The secondary screen displays the proxy service program to query related attributes or the file node obtains information such as the network or system status.
  • the secondary screen can also display a more complex interface, and the secondary screen can also support text reading and other functions.
  • the secondary screen can select a relatively inexpensive LCD (Liquid Crystal Display), and does not require high display requirements like the main screen.
  • the elements that need to be displayed in the most basic terminal standby mode are explained.
  • the main screen is turned off, the secondary screen displays time incoming calls, and the status is rotten.
  • the display content of the sub-screen is drawn using the drawing displayed on the sub-screen of the design.
  • the main screen may not be displayed.
  • the elements displayed on the secondary screen call the basic drawing API supported by Android NAVITVE to draw the UI of the interface element, or the basic graphic control library (MINUI) is completely independent of the Android framework service.
  • the time, network status, alarm information, incoming calls and short messages of the Android system are not as convenient as the JAVA service on Android. It is necessary to independently extend a layer of the middle layer to provide the above information from the existing JAVA service of Android.
  • the layer informs the NATIVE layer by means of notification or query, so that the NATIVE layer performs UI element layout.
  • RIL support layer To interact or invoke the local NATIVE service, it should be noted that this implementation involves message notification and query between two or more NATIVE service layers.
  • the layout and drawing of the UI can be performed based on the data. Since the drawing is completely separate from the JAVA layer-based UI drawing mechanism of Android, it is required. Directly call NATIVE's drawing API, based on the C library's drawing API. For example, you can use MINUI's C graphics library to process API and other similar graphics libraries, draw good display content, directly write to the secondary screen framebuffer2, and then the driver is responsible for outputting The hardware of the secondary screen is displayed.
  • the dual-screen vision display function can be conveniently realized, the technical difficulty of the dual-screen display of the Android mobile phone is solved, and the complicated modification method of the framework brought by the traditional JAVA layer display is bypassed, and NATIVE is adopted. Display, not applicable to the surfaceflinger synthesis mechanism of Android, another way, for product differentiation Provides competitiveness.
  • FIG. 7 is a schematic diagram of a module of a mobile terminal according to Embodiment 2 of the present disclosure.
  • the embodiment of the present disclosure provides a mobile terminal, including a first display screen and a second display screen, where the mobile terminal further includes :
  • the obtaining module 71 is configured to acquire information to be displayed on the second display screen of the mobile terminal;
  • a drawing module 72 configured to draw a display interface of the information to be displayed according to a second drawing mechanism, where the second drawing mechanism and the first drawing mechanism for drawing the display interface of the first display screen are different drawing mechanisms;
  • the display module 73 is configured to display the display interface on the second display screen.
  • the mobile terminal in this embodiment may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or a vehicle-mounted computer.
  • PDA personal digital assistant
  • the information to be displayed includes at least one of status information of the application, network information of the mobile terminal, and system status information;
  • the network information includes one or two of a network status and a network signal
  • the system status information includes one or more of a current time, an alarm reminder information of the mobile terminal, and an incoming call prompt information of the mobile terminal.
  • the obtaining module 71 includes:
  • an obtaining unit configured to acquire information to be displayed on the second display screen by using a preset acquisition mechanism.
  • the acquiring unit is configured to acquire information to be displayed on the second display screen of the mobile terminal by using a local layer service or a modem service of the mobile terminal.
  • the obtaining unit is configured to:
  • the mobile terminal further includes:
  • a storage module configured to store the acquired information to be displayed by creating a file or an attribute.
  • the drawing module 72 includes:
  • a drawing unit configured to draw multiple interfaces of the information to be displayed by calling a basic drawing application programming interface supported by a local layer service or a basic graphic control library;
  • a synthesizing unit configured to synthesize the plurality of interfaces to generate a display interface of the information to be displayed.
  • the drawing module 72 further includes:
  • a cache unit configured to cache the display interface.
  • the mobile terminal in this embodiment is a mobile terminal corresponding to the screen display method in the first embodiment. All the implementation manners in the first embodiment are applicable to the embodiment, and the same technology as in the first embodiment can be achieved. effect.
  • the screen display method and the mobile terminal provided by the embodiment of the present disclosure control the display of the secondary screen by using the display of the secondary screen of the mobile terminal independently of the main screen, and the display of the secondary screen is controlled in a manner different from the main screen, thereby avoiding the system layer of the mobile terminal.
  • the rewriting has realized the difference between the main and the secondary screens.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Digital Computer Display Output (AREA)

Abstract

一种屏幕显示方法及移动终端,该屏幕显示方法应用于移动终端(30),所述移动终端包括第一显示屏幕和第二显示屏幕,其中,所述屏幕显示方法包括:获取移动终端第二显示屏幕上的待显示信息(11);根据第二绘制机制,绘制所述待显示信息的显示界面(12),所述第二绘制机制与绘制所述第一显示屏幕的显示界面的第一绘制机制为不同的绘制机制;将所述显示界面在所述第二显示屏幕上显示(13)。通过将移动终端的副屏的显示独立于主屏单独进行显示,采用与主屏不相同的方式控制副屏的显示,避免了对移动终端系统层的改写,实现了主副屏的异显。

Description

一种屏幕显示方法及移动终端 技术领域
本公开涉及移动通讯技术领域,特别涉及一种屏幕显示方法及移动终端。
背景技术
目前主流的Android(安卓)手机,基本采用的都是单屏直板设计。而对于现在的翻盖双屏的设计,一种实现方式为双屏同显,所谓双屏同显,就是同一时刻,多个显示屏幕上显示相同的内容。目前很多手机,都可以同时做手机屏幕的显示,还可以进行HDMI(High Definition Multimedia Interface,高清晰度多媒体接口)的输出。由于显示的内容是同一个,所以Android应用层和Framework(框架)基本不用做修改,只要在显示处理的最后阶段,打包不同数据格式即可。
但是上述双屏同显技术会给用户带来交互使用效果不好的问题,因此,还有一种双屏异显的实现方式,双屏异显即在不同的屏幕上显示不同的内容,此类双屏显示方式,不只是简单的驱动挂载多个屏幕,还需要对Android框架和应用做适配修改,对Android的任务管理机制进行修改,允许多个应用在前台同时运行。显示的内容需要通过Android JAVA层的框架进行扩展,以支持第二个屏幕的显示内容的绘制。这个涉及对Android窗口机制的大量改造,扩充显示接口,支持绘制两个屏幕的内容处理,此种方式实现难度较大,开发成本较高。
发明内容
本公开要解决的技术问题是提供一种屏幕显示方法及移动终端,用以解决现有的还没有完备的双屏异显方法,造成双屏中的副屏的显示实现起来难度较大,不利于节约成本的问题。
为了解决上述技术问题,本公开实施例提供一种屏幕显示方法,应用于移动终端,所述移动终端包括第一显示屏幕和第二显示屏幕,其中,所述屏幕显示方法包括:
获取移动终端第二显示屏幕上的待显示信息;
根据第二绘制机制,绘制所述待显示信息的显示界面,所述第二绘制机制与绘制所述第一显示屏幕的显示界面的第一绘制机制为不同的绘制机制;
将所述显示界面在所述第二显示屏幕上显示。
可选地,所述待显示信息包括:应用的状态信息、移动终端的网络信息和系统状态信息中的至少一者;其中,
所述网络信息包括网络状态和网络信号中的一种或两种;
所述系统状态信息包括:当前时间、移动终端的闹钟提醒信息和移动终端的来电提示信息中的一种或多种。
可选地,所述获取移动终端第二显示屏幕上的待显示信息的步骤包括:
通过预设获取机制获取第二显示屏幕上的待显示信息。
可选地,所述通过预设获取机制获取第二显示屏幕上的待显示信息的步骤包括:
通过移动终端的本地层服务或调制解调服务,获取移动终端第二显示屏幕上的待显示信息。
可选地,所述通过预设获取机制获取第二显示屏幕上的待显示信息的步骤包括:
通过移动终端的应用层服务或应用层服务的应用程序编程接口,获取移动终端第二显示屏幕上的待显示信息。
可选地,在通过移动终端的应用层服务或应用层服务的应用程序编程接口,获取移动终端第二显示屏幕上的待显示信息的步骤之后,所述屏幕显示方法还包括:
通过创建文件或属性的方式,存储获取的所述待显示信息。
可选地,所述根据第二绘制机制,绘制待显示信息的显示界面的步骤包括:
通过调用本地层服务支持的基础绘制应用程序编程接口或基础的图形控制库,绘制所述待显示信息的多个界面;
将所述多个界面进行合成,生成所述待显示信息的显示界面。
可选地,在所述将所述多个界面进行合成,生成所述待显示信息的显示界面的步骤之后,所述屏幕显示方法还包括:
将所述显示界面进行缓存。
本公开实施例提供一种移动终端,包括第一显示屏幕和第二显示屏幕,其中,所述移动终端还包括:
获取模块,用于获取移动终端第二显示屏幕上的待显示信息;
绘制模块,用于根据第二绘制机制,绘制所述待显示信息的显示界面,所述第二绘制机制与绘制所述第一显示屏幕的显示界面的第一绘制机制为不同的绘制机制;
显示模块,用于将所述显示界面在所述第二显示屏幕上显示。
可选地,所述获取模块包括:
获取单元,用于通过预设获取机制获取第二显示屏幕上的待显示信息。
可选地,所述绘制模块包括:
绘制单元,用于通过调用本地层服务支持的基础绘制应用程序编程接口或基础的图形控制库,绘制所述待显示信息的多个界面;
合成单元,用于将所述多个界面进行合成,生成所述待显示信息的显示界面。
本公开的有益效果是:
上述方案,通过将移动终端的副屏的显示独立于主屏单独进行显示,采用与主屏不相同的方式控制副屏的显示,避免了对移动终端系统层的改写,实现了主副屏的异显。
附图说明
图1表示本公开实施例一的屏幕显示方法的流程示意图;
图2表示本公开实施例一的步骤12的示例性实现流程示意图;
图3表示本公开实施例一的移动终端的结构示意图;
图4表示移动终端主、副屏的显示流程图;
图5表示待显示信息的第一种获取流程示意图;
图6表示待显示信息的第二种获取流程示意图;
图7表示本公开实施例二的移动终端的模块示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明进行详细描述。
本发明针对现有的还没有完备的双屏异显方法,造成双屏中的副屏的显示实现起来难度较大,不利于节约成本的问题,提供一种屏幕显示方法及移动终端。
实施例一
图1表示本公开实施例一的屏幕显示方法的流程示意图,如图1所示,本公开实施例一的屏幕显示方法,应用于移动终端,所述移动终端包括第一显示屏幕和第二显示屏幕,其中,所述屏幕显示方法包括:
步骤11,获取移动终端第二显示屏幕上的待显示信息;
需要说明的是,该第一显示屏幕通常指的是移动终端的主屏(主显示屏),第二显示屏幕为移动终端的副屏(副显示屏),且第二显示屏幕上的待显示信息通常指的是应用的状态信息、移动终端的网络信息和系统状态信息中的至少一者;其中,所述应用的状态信息可以为应用程序的通知信息,例如,现在常用的微信、QQ的消息通知;所述网络信息包括网络状态和网络信号中的一种或两种;所述系统状态信息包括:当前时间、移动终端的闹钟提醒信息和移动终端的来电提示信息中的一种或多种;需要说明的是,通常情况下,副屏可以实现主屏上所有信息的显示。
步骤12,根据第二绘制机制,绘制待显示信息的显示界面;
其中,所述第二绘制机制与绘制所述第一显示屏幕的显示界面的第一绘制机制为不同的绘制机制。
需要说明的是,该步骤12的第一绘制机制为通过调用应用层服务的方式进行第一显示屏幕的显示界面的绘制,而第二绘制机制为通过调用本地层服务的方式进行第二显示屏幕的显示界面的绘制,该应用层服务和本地层服务分别隶属于移动终端系统不同的逻辑层,步骤12中,通过调用与绘制主屏的显示界面不同的服务进行副屏的显示界面的绘制,此种方式不会对主屏的显示造成影响,同时可以独立于主屏进行界面显示的单独控制。
步骤13,将所述显示界面在所述第二显示屏幕上显示。
本公开实施例,通过将移动终端的副屏的显示独立于主屏单独进行显示,采用与主屏 不相同的方式控制副屏的显示,避免了对移动终端系统层的改写,实现了主副屏的异显。
可选地,因副屏的显示界面采用的是本地层服务进行绘制的,因此在获取待显示信息时与主屏的获取方式也会有所不同,步骤11在实现时可以为:
通过预设获取机制获取第二显示屏幕上的待显示信息。
需要说明的是,该预设获取机制与获取所述第一显示屏幕的显示信息的获取机制为不同的获取机制。
在一个实施例中,可以采用如下方式实现对第二显示屏幕上的待显示信息的获取:
方式一、通过移动终端的本地层服务(需要说明的是,本地层服务是位于应用层的下层的服务)或调制解调(MODEM)服务,获取移动终端第二显示屏幕上的待显示信息。
通过在本地层服务或调制解调服务中获取待显示信息,不需要与系统应用层服务进行频繁的信息交互,降低了交互复杂性。
方式二、通过移动终端的应用层服务或应用层服务的应用程序编程接口(API),获取移动终端第二显示屏幕上的待显示信息。
需要说明的是,有些待显示信息不能直接在本地层服务中获取,只能借助上层的应用层服务获取。
通常情况下,移动终端会将在应用层服务或应用层服务的应用程序编程接口中获取的待显示信息通过创建文件或属性的方式进行存储,以方便本地层服务的使用。
可选地,图2表示本公开实施例一的步骤12的示例性实现流程示意图,如图2所示,上述步骤12在实现时,包括:
步骤121,通过调用本地层服务支持的基础绘制应用程序编程接口或基础的图形控制库,绘制所述待显示信息的多个界面;
步骤122,将所述多个界面进行合成,生成所述待显示信息的显示界面。
需要说明的是,步骤12在实现时,主要是利用本地层服务中的基础绘制应用程序编程接口或基础的图形控制库进行界面的绘制,不需要借助上层的应用层服务,实现了副屏界面与主屏界面的分别控制。
在步骤122之后,该屏幕显示方法还包括:
步骤123,将所述显示界面进行缓存。
下面在实际用中,对本公开实施例举例说明如下:
本公开实施例在应用时,增加一套副屏显示的流程及刷新机制,用以显示如时间、信号、短信提示、呼叫提示、GPS(Global Positioning System,全球定位系统)信号和闹钟提示等,主屏和副屏可以同一时刻显示,或者主屏不显示只有副屏显示。
副屏独立显示,移动终端可以分别实现副屏与主屏的关闭及开启,以及两个屏幕的显示切换。主屏的内容通过framebuffer1(第一帧缓冲)进行显示,同时从kernel(核心)层面扩充framebuffer2(第二帧缓冲),专门用来显示副屏的内容。副屏的显示完全独立于Android层,在本地单独进行,副屏的UI(User Interface,用户界面)显示,直接使用 NATIVE(本地)层的显示接口库,进行绘制,抛弃Android层面的surfaceflinger(界面的投递者)机制对框架的大量改造。通过独立写一个本地层服务负责完成副屏的所有UI绘制,并调用驱动对famebuffer2进行操作,并和RIL(Radio Interface Layer,无线接口层)层进行通讯(通信机制需要重新开发),并获取网络信息,显示时间,网络状态,GPS信号,闹钟信息等。对屏幕驱动代码进行改造,完成并提供副屏显示的支持,并提供相关显示接口。
图3表示本公开实施例一的移动终端的结构示意图,如图3所示,本公开实施例的移动终端30主要包括:主屏显示框架即处理模块31用于完成主屏的显示处理,副屏显示框架即处理模块32用于完成副屏的显示处理,主屏显示和副屏显示两套显示机制无交互,为各自独立的两套显示服务。
图4表示移动终端主、副屏的显示流程图,如图4所示,主屏的主要显示流程为:
步骤411:主显示屏UI交互显示绘制,移动终端根据设计的需求绘制UI布局;
步骤412:调用Android JAVA层的标准UI API进行绘制;
步骤413:JAVA层的窗口管理器负责UI图形的裁剪及计算;
步骤414:Android的图层显示机制,负责各个图层的显示合成(compose);
步骤415:surfaceflinger最终将显示的图层进行合成,可以软件合成也可以硬件合成,生成最终的显示内容;
步骤416:将最终的显示内容放入framebuffer1;
步骤417:显示驱动负责将framebuffer1的内容取出,并送到主显示屏进行显示;
步骤418:主显示屏显示移动终端绘制的最终的显示内容。
副屏的主要显示流程为:
步骤421:增加副屏代理服务,负责副显示屏的显示绘制组织,并且开机默认启动该副屏代理服务;
步骤422:启动副屏的显示扩展接口或者代理服务进行副屏显示界面的绘制功能;
步骤423:获取网络状态、时间、信号、闹钟、来电等服务;
需要说明的是,因绘制UI界面的NATIVE层没有获取上述信息的接口和服务,所以需进行接口和服务的扩展。步骤424:进行副显示屏UI界面绘制;
步骤425:调用NATIVE的API进行显示绘制;
步骤426:将显示内容进行合成;
步骤427:将合成的显示内容放入framebuffer2;
步骤428:显示驱动负责将framebuffer2的内容取出送副显示屏进行显示。
步骤429:副显示屏显示终端合成的显示内容。
下面对副显示屏上的待显示信息的获取进行说明如下:
图5表示待显示信息的第一种获取流程示意图,如图5所示,该待显示信息的第一种获取流程为:
步骤51:副屏显示代理服务程序发送需要获取网络或者系统状态等信息的指令;
步骤52:NATIVE或者调制解调服务提供网络或者系统状态等信息;
步骤53:通过NATIVE进程通讯机制,实现与副屏显示代理服务程序的通讯;
步骤54:副屏显示代理服务程序根据通讯机制中的消息获取网络或者系统状态等信息。
图6表示待显示信息的第二种获取流程示意图,如图6所示,该待显示信息的第二种获取流程为:
步骤61:副屏显示代理服务程序发送需要获取网络或者系统状态等信息的指令;
步骤62:通过Android JAVA服务或者API获取网络或者系统状态等信息;
步骤63:将获取到的网络或者系统状态等信息通过创建文件或属性等方式存储;
步骤64:副屏显示代理服务程序查询相关属性或者文件节点获取网络或者系统状态等信息。
需要说明的是,双屏同时显示或者只有副屏显示的时候,以副屏只显示时钟、来电、信号、闹钟等为实施例进行介绍。副屏也可以显示比较复杂的界面,副屏也可以支持文本阅读等功能。应用场景中副屏可以选择比较廉价的LCD(Liquid Crystal Display,液晶显示器),并不要求像主屏一样对显示效果有较高的要求。
此处以最基本的终端待机模式需要显示的元素进行说明。比如用户待机的时候,主屏关闭,副屏显示时间来电,状态烂等信息。此时副屏的显示内容,使用设计的副屏显示的绘制进行绘制。此时主屏可以不显示。副屏显示的元素调用Android NAVITVE支持的基础绘制API进行界面元素UI的绘制,或者基础的图形控制库(MINUI)由于界面绘制的UI完全和Android framework服务无关。
此时获取Android系统的时间、网络状态及闹钟信息、来电及短消息等内容,就不像Android上的JAVA服务那么方便,需要独立扩展一层中间层,将上述信息从Android现有的JAVA服务层以通知或查询的方式,告知NATIVE层,使得NATIVE层进行UI元素的布局,这个是其中一种实现方案;第二种实现方案是直接在本地NATIVE层和Android的MODMEM(RIL的支撑层)进行交互或者调用本地NATIVE服务,需要说明的是,此实现方案涉及两个或多个NATIVE服务层之间的消息通知及查询。
将系统的时钟、网络状态、来电、短信等信息获取之后,就可以以此种数据为基础进行UI的布局和绘制,由于此时的绘制完全和Android的基于JAVA层的UI绘制机制分离,需要直接调用NATIVE的绘制API,基于C库的绘制API,比如可以使用MINUI的C图形库处理API等类似的图形库,绘制好的显示内容,直接写入副屏的framebuffer2,再由驱动负责输出到副屏的硬件进行显示。
通过本方案的副屏显示系统,可以方便地实现双屏异像显示功能,解决了Android手机双屏显示的技术难度,绕开了传统的JAVA层显示带来的框架复杂的修改方法,通过NATIVE显示,不适用用Android的surfaceflinger合成机制,另辟蹊径,为产品的差异化 提供了竞争力。
实施例二
图7表示本公开实施例二的移动终端的模块示意图,如图7所示,本公开实施例提供一种移动终端,包括第一显示屏幕和第二显示屏幕,其中,所述移动终端还包括:
获取模块71,用于获取移动终端第二显示屏幕上的待显示信息;
绘制模块72,用于根据第二绘制机制,绘制所述待显示信息的显示界面,所述第二绘制机制与绘制所述第一显示屏幕的显示界面的第一绘制机制为不同的绘制机制;
显示模块73,用于将所述显示界面在所述第二显示屏幕上显示。
需要说明的是,本实施例的移动终端可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)或车载电脑等。
在一个实施例中,所述待显示信息包括:应用的状态信息、移动终端的网络信息和系统状态信息中的至少一者;其中,
所述网络信息包括网络状态和网络信号中的一种或两种;
所述系统状态信息包括:当前时间、移动终端的闹钟提醒信息和移动终端的来电提示信息中的一种或多种。
可选地,所述获取模块71包括:
获取单元,用于通过预设获取机制获取第二显示屏幕上的待显示信息。
在一个实施例中,所述获取单元用于:通过移动终端的本地层服务或调制解调服务,获取移动终端第二显示屏幕上的待显示信息。
在一个实施例中,所述获取单元用于:
通过移动终端的应用层服务或应用层服务的应用程序编程接口,获取移动终端第二显示屏幕上的待显示信息。
可选地,所述移动终端还包括:
存储模块,用于通过创建文件或属性的方式,存储获取的所述待显示信息。
可选地,所述绘制模块72包括:
绘制单元,用于通过调用本地层服务支持的基础绘制应用程序编程接口或基础的图形控制库,绘制所述待显示信息的多个界面;
合成单元,用于将所述多个界面进行合成,生成所述待显示信息的显示界面。
可选地,所述绘制模块72还包括:
缓存单元,用于将所述显示界面进行缓存。
需要说明的是,本实施例的移动终端是与实施例一的屏幕显示方法对应的移动终端,实施例一的所有实现方式均适用于该实施例中,也能达到与实施例一相同的技术效果。
以上所述的是本公开的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本公开所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本公开的保护范围内。
工业实用性
本公开实施例所提供的屏幕显示方法及移动终端,通过将移动终端的副屏的显示独立于主屏单独进行显示,采用与主屏不相同的方式控制副屏的显示,避免了对移动终端系统层的改写,实现了主副屏的异显。

Claims (12)

  1. 一种屏幕显示方法,应用于移动终端,所述移动终端包括第一显示屏幕和第二显示屏幕,其中,所述屏幕显示方法包括:
    获取移动终端第二显示屏幕上的待显示信息;
    根据第二绘制机制,绘制所述待显示信息的显示界面,所述第二绘制机制与绘制所述第一显示屏幕的显示界面的第一绘制机制为不同的绘制机制;
    将所述显示界面在所述第二显示屏幕上显示。
  2. 根据权利要求1所述的屏幕显示方法,其中,所述待显示信息包括:应用的状态信息、移动终端的网络信息和系统状态信息中的至少一者;其中,
    所述网络信息包括网络状态和网络信号中的一种或两种;
    所述系统状态信息包括:当前时间、移动终端的闹钟提醒信息和移动终端的来电提示信息中的一种或多种。
  3. 根据权利要求1所述的屏幕显示方法,其中,所述获取移动终端第二显示屏幕上的待显示信息的步骤包括:
    通过预设获取机制获取第二显示屏幕上的待显示信息。
  4. 根据权利要求3所述的屏幕显示方法,其中,所述通过预设获取机制获取第二显示屏幕上的待显示信息的步骤包括:
    通过移动终端的本地层服务或调制解调服务,获取移动终端第二显示屏幕上的待显示信息。
  5. 根据权利要求3所述的屏幕显示方法,其中,所述通过预设获取机制获取第二显示屏幕上的待显示信息的步骤包括:
    通过移动终端的应用层服务或应用层服务的应用程序编程接口,获取移动终端第二显示屏幕上的待显示信息。
  6. 根据权利要求5所述的屏幕显示方法,其中,在通过移动终端的应用层服务或应用层服务的应用程序编程接口,获取移动终端第二显示屏幕上的待显示信息的步骤之后,所述屏幕显示方法还包括:
    通过创建文件或属性的方式,存储获取的所述待显示信息。
  7. 根据权利要求1所述的屏幕显示方法,其中,所述根据第二绘制机制,绘制待显示信息的显示界面的步骤包括:
    通过调用本地层服务支持的基础绘制应用程序编程接口或基础的图形控制库,绘制所述待显示信息的多个界面;
    将所述多个界面进行合成,生成所述待显示信息的显示界面。
  8. 根据权利要求7所述的屏幕显示方法,其中,在所述将所述多个界面进行合成,生成所述待显示信息的显示界面的步骤之后,所述屏幕显示方法还包括:
    将所述显示界面进行缓存。
  9. 一种移动终端,包括第一显示屏幕和第二显示屏幕,其中,所述移动终端还包括:
    获取模块,设置为获取移动终端第二显示屏幕上的待显示信息;
    绘制模块,设置为根据第二绘制机制,绘制所述待显示信息的显示界面,所述第二绘制机制与绘制所述第一显示屏幕的显示界面的第一绘制机制为不同的绘制机制;
    显示模块,设置为将所述显示界面在所述第二显示屏幕上显示。
  10. 根据权利要求9所述的移动终端,其中,所述获取模块包括:
    获取单元,设置为通过预设获取机制获取第二显示屏幕上的待显示信息。
  11. 根据权利要求9所述的移动终端,其中,所述绘制模块包括:
    绘制单元,设置为通过调用本地层服务支持的基础绘制应用程序编程接口或基础的图形控制库,绘制所述待显示信息的多个界面;
    合成单元,设置为将所述多个界面进行合成,生成所述待显示信息的显示界面。
  12. 一种存储介质,用于存储程序代码,所述程序代码用于执行权利要求1-8任一项所述的屏幕显示方法。
PCT/CN2017/101760 2016-09-14 2017-09-14 一种屏幕显示方法及移动终端 WO2018050095A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610826445.4 2016-09-14
CN201610826445.4A CN107817960A (zh) 2016-09-14 2016-09-14 一种屏幕显示方法及移动终端

Publications (1)

Publication Number Publication Date
WO2018050095A1 true WO2018050095A1 (zh) 2018-03-22

Family

ID=61600774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101760 WO2018050095A1 (zh) 2016-09-14 2017-09-14 一种屏幕显示方法及移动终端

Country Status (2)

Country Link
CN (1) CN107817960A (zh)
WO (1) WO2018050095A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163344A (zh) * 2020-02-24 2020-05-15 深圳鑫扬明科技有限公司 一种长距离双屏互动娱乐信息处理系统
WO2023116542A1 (zh) * 2021-12-21 2023-06-29 Oppo广东移动通信有限公司 应用分屏显示的方法、装置、终端设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614063B (zh) * 2018-12-07 2021-11-09 江西洪都航空工业集团有限责任公司 一种航电系统显示画面的控制方法
CN111182356A (zh) * 2019-12-31 2020-05-19 珠海六点智能科技有限公司 一种Android视频播放的双屏异显实现方法及系统
CN112099751A (zh) * 2020-09-25 2020-12-18 深圳市创维群欣安防科技股份有限公司 双屏异步显示处理方法、装置、双屏显示智能终端

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768621A (zh) * 2011-11-14 2012-11-07 深圳市三索科技发展有限公司 双屏电子设备的显示方法及系统
CN103106058A (zh) * 2013-01-25 2013-05-15 Tcl集团股份有限公司 一种基于Android系统的双屏显示方法及智能显示终端
CN104123110A (zh) * 2013-04-26 2014-10-29 上海赤炫信息科技有限公司 一种Android双屏异像显示方法
CN204203947U (zh) * 2014-11-07 2015-03-11 深圳市粤创科技有限公司 双屏异显同显的安卓终端
CN105933452A (zh) * 2016-06-30 2016-09-07 努比亚技术有限公司 一种信息推送、显示方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9052800B2 (en) * 2010-10-01 2015-06-09 Z124 User interface with stacked application management
CN105677107B (zh) * 2016-01-11 2018-07-17 福州瑞芯微电子股份有限公司 屏幕手写跟随性的优化方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768621A (zh) * 2011-11-14 2012-11-07 深圳市三索科技发展有限公司 双屏电子设备的显示方法及系统
CN103106058A (zh) * 2013-01-25 2013-05-15 Tcl集团股份有限公司 一种基于Android系统的双屏显示方法及智能显示终端
CN104123110A (zh) * 2013-04-26 2014-10-29 上海赤炫信息科技有限公司 一种Android双屏异像显示方法
CN204203947U (zh) * 2014-11-07 2015-03-11 深圳市粤创科技有限公司 双屏异显同显的安卓终端
CN105933452A (zh) * 2016-06-30 2016-09-07 努比亚技术有限公司 一种信息推送、显示方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163344A (zh) * 2020-02-24 2020-05-15 深圳鑫扬明科技有限公司 一种长距离双屏互动娱乐信息处理系统
WO2023116542A1 (zh) * 2021-12-21 2023-06-29 Oppo广东移动通信有限公司 应用分屏显示的方法、装置、终端设备及存储介质

Also Published As

Publication number Publication date
CN107817960A (zh) 2018-03-20

Similar Documents

Publication Publication Date Title
WO2018050095A1 (zh) 一种屏幕显示方法及移动终端
CN113553014B (zh) 多窗口投屏场景下的应用界面显示方法及电子设备
US20220100354A1 (en) User interface display method and apparatus, device, and storage medium
USRE48911E1 (en) Application programming interface for providing native and non-native display utility
US10031712B2 (en) System and method for display mirroring
CN106933587B (zh) 一种图层绘制控制方法、装置及移动终端
ES2963938T3 (es) Procedimiento de división de áreas de pantalla y terminal móvil que lo emplea
CN112346804A (zh) 一种linux-android双系统终端的状态栏显示系统及方法
KR100695080B1 (ko) 화면 분할 기능을 갖는 이동통신 단말
CN117492893A (zh) 悬浮窗功能的实现方法、装置和计算机设备
US8904301B2 (en) Mobile terminal data refreshing method and mobile terminal
US20150007059A1 (en) User interface with scrolling for multimodal communication framework
CN113096054A (zh) 图像帧合成方法、装置及存储介质
WO2023284625A1 (zh) 应用的跨平台显示方法、可读介质和电子设备
CN116680019B (zh) 一种屏幕图标移动方法、电子设备及存储介质
US20240354128A1 (en) Display method and apparatus, device, and storage medium
JP2024528868A (ja) 動画マスクレイヤ表示方法、装置、機器及び媒体
CN114489423A (zh) 图片显示方法及终端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850297

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850297

Country of ref document: EP

Kind code of ref document: A1