CN106354458B - Double-screen display method and device - Google Patents
Double-screen display method and device Download PDFInfo
- Publication number
- CN106354458B CN106354458B CN201610735856.2A CN201610735856A CN106354458B CN 106354458 B CN106354458 B CN 106354458B CN 201610735856 A CN201610735856 A CN 201610735856A CN 106354458 B CN106354458 B CN 106354458B
- Authority
- CN
- China
- Prior art keywords
- display screen
- screen
- terminal
- display
- double
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital 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
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)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a kind of double-screen display method and devices, which comprises whether detection terminal supports that shuangping san, double screen include main display and secondary display screen;If the terminal supports the shuangping san, HDMI equipment addition event is generated;Event is added according to the HDMI equipment, is initialized using the secondary display screen as the HDMI equipment;Shuangping san is carried out after the secondary display screen initialization.The present invention solves the problems, such as that the development of double-screen display method in the prior art is huge and compatible poor;Reach and secondary display screen is modeled to HDMI equipment, the display of vice screen is realized using HDMI display mechanism primary in operating system, without developing vice screen display mechanism again, less there is the effect of compatibility issue.
Description
Technical field
The present embodiments relate to field of display technology, in particular to a kind of double-screen display method and device.
Background technique
Shuangping san refers to: passing through main display and secondary display screen while the technology of display on an electronic device.Android
The primary display mechanism of operating system usually only supports the display an of display screen namely the display of main display.
The method of shuangping san is realized in the prior art, comprising: in Android operation system, uses primary display machine
System realizes the display of main display;Then it is realized by the vice screen display mechanism similar with primary display mechanism developed again secondary
The display of display screen.The vice screen display mechanism includes the equipment set relevant interface from bsp driver to application layer.
During realizing the embodiment of the present invention, the existing technology has at least the following problems for discovery:
It is very huge for redesigning development required for a set of vice screen display mechanism completely, and the vice screen is aobvious
Show that mechanism can not be completely compatible with primary display mechanism, will appear various compatibility issues in use process.For example, being cut in display
Under carry over scape, the display picture of main display and secondary display screen cannot be fully synchronized.
Summary of the invention
Development in order to solve the problems, such as double-screen display method in the prior art is huge and compatible poor, this hair
Bright embodiment provides a kind of double-screen display method and device.The technical solution is as follows:
According to a first aspect of the embodiments of the present invention, a kind of double-screen display method is provided, which comprises
Whether detection terminal has double-display screen, and the double-display screen includes main display and secondary display screen;
If the terminal has the double-display screen, high-definition multimedia interface HDMI equipment addition event is generated;
Event is added according to the HDMI equipment, is initialized using the secondary display screen as the HDMI equipment;
Shuangping san is carried out after the secondary display screen initialization.
According to a second aspect of the embodiments of the present invention, a kind of double display unit is provided, described device includes:
Whether terminal detection module has a double-display screen for detecting terminal, the double-display screen include main display and
Secondary display screen;
Event generation module generates high-definition multimedia interface if having the double-display screen for the terminal
HDMI equipment adds event;
Initial setup module, for adding event according to the HDMI equipment, using the secondary display screen as the HDMI
Equipment is initialized;
Double-screen display module, for carrying out shuangping san after the secondary display screen initialization.
Technical solution provided in an embodiment of the present invention has the benefit that
Equipment addition is carried out by the way that secondary display screen is modeled to HDMI equipment, so that secondary display screen is identified as by operating system
One common HDMI equipment realizes shuangping san;The development for solving double-screen display method in the prior art is huge
And the problem that compatibility is poor;Reach and secondary display screen is modeled to HDMI equipment, it is aobvious using HDMI primary in operating system
Show mechanism to realize the display of vice screen, without developing vice screen display mechanism again, less there is the effect of compatibility issue
Fruit.
It should be understood that above general description and following detailed description is only illustrative, this can not be limited
Invention.
Detailed description of the invention
Fig. 1 is the flow chart of double-screen display method provided by one embodiment of the present invention;
Fig. 2 is the flow chart for the double-screen display method that another embodiment of the present invention provides;
Fig. 3 is the configuration diagram of the software and hardware of Android device provided by one embodiment of the present invention;
Fig. 4 is the flow chart for the double-screen display method that further embodiment of the present invention provides;
Fig. 5 is the structural block diagram of double display unit provided by one embodiment of the present invention;
Fig. 6 is the structural block diagram for the double display unit that another embodiment of the present invention provides;
Fig. 7 is the structural block diagram for the double display unit that further embodiment of the present invention provides;
Fig. 8 is the structural block diagram of terminal provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
The double-screen display method provided in the embodiment of the present invention can using in the terminal, terminal be mobile phone, tablet computer,
E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert pressure
Contracting standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic shadow
As expert's compression standard audio level 4) player, pocket computer on knee and desktop computer etc..
Optionally, which is provided with main display and secondary display screen, and secondary display screen is one or more.It is optional
Ground, the operating system in the terminal supports HDMI, and (High Definition Multimedia Interface, fine definition are more
Media interface) equipment display mechanism.For example, the operating system is Android (Android) system, linux system, Unix (outstanding
Nice) system etc..
Referring to FIG. 1, it illustrates the flow charts of double-screen display method provided by one embodiment of the present invention.The present embodiment
It is applied to illustrate in terminal with the double-screen display method.The double-screen display method, comprising:
Step 101, whether detection terminal has double-display screen.
Optionally, double-display screen includes main display and secondary display screen.
Step 102, if terminal has double-display screen, HDMI equipment addition event is generated.
Step 103, event is added according to HDMI equipment, is initialized secondary display screen as HDMI equipment.
Step 104, shuangping san is carried out after secondary display screen initializes.
In conclusion double-screen display method provided in this embodiment, is carried out by the way that secondary display screen is modeled to HDMI equipment
Equipment addition, so that secondary display screen is identified as a common HDMI equipment to realize shuangping san by operating system;It solves
The development of double-screen display method in the prior art is huge and compatible poor problem;Reach and has simulated secondary display screen
At HDMI equipment, the display of vice screen is realized using HDMI display mechanism primary in operating system, without opening again
Vice screen display mechanism is sent out, less there is the effect of compatibility issue.
Referring to FIG. 2, the flow chart for the double-screen display method that another embodiment of the present invention provides.The embodiment of the present invention with
The double-screen display method is applied to illustrate in terminal.The double-screen display method, comprising:
Step 201, detect whether terminal has double-display screen by bsp driver.
Optionally, double-display screen includes main display and secondary display screen.When having double-display screen in terminal, main display
The front of terminal is set, and the back side of terminal is arranged in secondary display screen;Alternatively, terminal is arranged in main display and secondary display screen
Same surface, the embodiment of the present invention are not limited this.
Bsp driver has the ability of the hardware parameter of reading terminals.After terminal booting, pass through bottom layer driving journey
Whether sequence detection terminal has double-display screen.
If terminal has double-display screen, 202 are entered step;If terminal has single display screen, according to conventional display
Mode carries out single screen and shows.
Step 202, if terminal has double-display screen, HDMI equipment is generated by bsp driver and adds event.
Optionally, HDMI equipment addition event carries the screen parameter of secondary display screen.
Optionally, the screen parameter of secondary display screen includes: device id (identity, identity), screen size, screen
At least one of resolution ratio and screen material.
Schematically, when terminal has double-display screen, terminal generates a HDMI equipment by bsp driver and adds
Add event, HDMI equipment addition event carries device id, screen size, screen resolution and the screen material of secondary display screen
At least one of screen parameter.
It should be noted that secondary display screen and HDMI hardware interface is not used is connected with the mainboard of terminal, it is optionally, secondary to show
Display screen is connected using flexible circuit board or interface circuit with the mainboard of terminal.Optionally, secondary display screen is connected with the mainboard of terminal
Mode, the mode being connected with main display with the mainboard of terminal is identical.
Step 203, the screen parameter of secondary display screen is obtained from HDMI equipment addition event.
Schematically, other program layers in terminal obtain the screen ginseng of secondary display screen from HDMI equipment addition event
Number.
Step 204, it is initialized the screen parameter of secondary display screen as the device parameter of HDMI equipment.
Schematically, other program layers in terminal join the screen of secondary display screen according to internal HDMI display mechanism
Number is initialized as the device parameter of HDMI equipment.Secondary display screen after initialization is considered as one in each program layer
A common HDMI equipment.
Step 205, shuangping san is carried out after secondary display screen initializes.
After initialization, each program layer in terminal carries out the secondary display screen HDMI equipment common as one
Display.The vice screen of the pair display screen shows that content shows that content is identical with the main screen of main display, alternatively, the pair of the pair display screen
Screen display content shows that content is different from the main screen of main display.
In conclusion double-screen display method provided in this embodiment, is carried out by the way that secondary display screen is modeled to HDMI equipment
Equipment addition, so that secondary display screen is identified as a common HDMI equipment to realize shuangping san by operating system;It solves
The development of double-screen display method in the prior art is huge and compatible poor problem;Reach and has simulated secondary display screen
At HDMI equipment, the display of vice screen is realized using HDMI display mechanism primary in operating system, without opening again
Vice screen display mechanism is sent out, less there is the effect of compatibility issue.
Optionally, the terminal in above-mentioned Fig. 1 and Fig. 2 embodiment is the terminal that operation has Android operation system.In order to just
In description, there is the software and hardware architecture of the terminal of Android operation system to schematically illustrate to operation first.As shown in figure 3,
It successively include: application layer 301, Framework layer 302, SurfaceFlinger 303 in terminal according to basipetal sequence
Layer, HAL layer 304, bsp driver 305 and hardware layer 306.
Application layer 301 is the layer where the application program of Android operation system.Various application programs all operate in this
Layer, such as: multipad, wallpaper application program, status bar application program, clock application program etc..
Framework layer 302 is for providing the service of system level.Such as: power management, message queue, assure reason etc..
Framework layer 302 is also used to provide hardware capability calling interface to application layer 301.
SurfaceFlinger layer 303 is the serve end program of graphic display system.SurfaceFlinger layer 303 is used for
The show layers that different application is provided merges into final display content.For example, the figure that multipad is provided
The status bar of wallpaper, state application offer that mark, wallpaper application program provide is generated according to scheduled map overlay sequence
Finally display content on a display screen.Wherein, the figure layer positioned at upper layer can cover the figure layer positioned at lower layer.
HAL (Hardware Abstraction Layer, hardware abstraction layer) layer 304 is taken out by specific hardware layer 306
As the hardware interface layer come out, this hardware interface layer is responsible for realizing the function and control of specific hardware layer 306, simultaneously
Unified API (Application is provided again for SurfaceFlinger layer 303 and Framework layer 302 above
Programming Interface, application programming interface) interface.
Bsp driver 305 is the program that data communication is carried out with the hardware in hardware layer 306.Bsp driver
305 have the ability for obtaining the hardware parameter in hardware layer 306, for example, bsp driver 304 has the screen for reading display screen
The ability of curtain parameter.
Hardware layer 306 includes: the hardware such as networking component, wireless communication components, external memory, display screen, display chip.
It in the present embodiment, include main display 32 and secondary display screen 34 with hardware layer 306.
Referring to FIG. 4, the flow chart of the double-screen display method provided it illustrates further embodiment of the present invention.The present invention
Embodiment is applied to shown in Fig. 3 run in the terminal for having Android operation system with the double-screen display method and illustrates.
The double-screen display method includes:
Step 401, by the SurfaceFlinger layers of display screen attribute to bsp driver inquiry terminal.
Bsp driver has the ability for the display screen attribute for reading display screen.
After terminal booting, the SurfaceFlinger layers of display screen attribute to bsp driver inquiry terminal.
Step 402, by bsp driver to the display screen attribute of SurfaceFlinger layers of feedback terminal.
Bsp driver reads the display screen attribute of display screen, and the display to SurfaceFlinger layers of feedback terminal
Shield attribute.
Optionally, it is the equipment with single display screen which, which is used to indicate terminal, or has double-display screen
Equipment.
Step 403, if display screen attribute is while having main display and secondary display screen, pass through SurfcaeFlinger
Predetermined value is written to flag node in layer.
The display screen attribute of display screen can not be directly read due to being located at the program layer on bsp driver, so logical
It crosses flag node and indicates display screen attribute to each program layer.
Optionally, flag node indicates that the terminal has single display screen or double for distinct program layer into terminal
Display screen.The flag node is the marker in the storage file or a specified file of a designated position.Optionally,
There are two types of values for flag node tool: 1 or 0.Wherein, when the value of flag node is 1, GC group connector has double-display screen;Mark
When the value for remembering node is 0, GC group connector has single display screen.
If 1 is predetermined value, then distinct program layer of the flag node with predetermined value for into terminal indicates the terminal
With double-display screen.Certainly, the value of predetermined value is not necessarily 1, and the present embodiment is not added this following fixed.
If display screen attribute is when having main display and pair display screen simultaneously, by SurfcaeFlinger layers to label
Predetermined value 1 is written in node.If display screen attribute is only to have main display, shown according to conventional flow for displaying.
Step 404, HDMI equipment is generated by bsp driver and adds event.
After flag node is written into predetermined value, the value that bsp driver can read the flag node is predetermined
Value.Bsp driver generates HDMI equipment and adds event.
Optionally, HDMI equipment addition event carries the screen parameter of secondary display screen.
Optionally, the screen parameter of secondary display screen includes: in device id, screen size, screen resolution and screen material
At least one.
Schematically, when terminal has double-display screen, terminal generates a HDMI equipment by bsp driver and adds
Add event, HDMI equipment addition event carries device id, screen size, screen resolution and the screen material of secondary display screen
At least one of screen parameter.
It should be noted that can also generate HDMI equipment addition event, but should when external HDMI equipment is inserted into terminal
What is carried in HDMI equipment addition event is the device parameter of external HDMI equipment.It is by bsp driver that pair is aobvious in this step
The screen parameter of display screen is modeled as the device parameter of HDMI equipment, and simulation generates a HDMI equipment and adds event.
Step 405, the screen parameter of secondary display screen is obtained from HDMI equipment addition event.
Schematically, other program layers in terminal obtain the screen ginseng of secondary display screen from HDMI equipment addition event
Number.
Step 406, it is carried out by HAL layers using the screen parameter of secondary display screen as the device parameter of HDMI equipment initial
Change.
HAL layers, when receiving HDMI equipment addition event, the device parameter of HDMI equipment are obtained from HDMI mechanical floor, is led to
The device parameter for crossing the HDMI equipment executes initialization process.
Due to carried in HDMI equipment addition event be secondary display screen screen parameter, so HAL layers by secondary display screen
Screen parameter initialized as the device parameter of HDMI equipment.
It should be noted that the initialization procedure initializes machine using the HDMI equipment of primary offer in android system
System.The initialization procedure is directed not only to HAL layers, can also be related to SurfaceFlinger layers, Framework layers and application layer.
It should also be noted that, main display can also execute initialization procedure in the initialization procedure of secondary display screen, it is main
The initialization procedure of display screen is the existing process in android system, and the present embodiment repeats no more this.
Step 407, after secondary display screen initializes, vice screen is exported to secondary display screen by Presentation class and is shown
Show that content, vice screen show that the main screen of content and main display shows that content is identical or different.
After main display and secondary display screen initialization, is exported and led to main display by SurfcaeFlinger layers
Screen display content shows content to secondary display screen output vice screen.
Optionally, vice screen display content is exported to secondary display screen by Presentation class SurfcaeFlinger layers.
When realizing double screen with display function, vice screen shows that content shows that content is identical with the main screen of main display;Work as realization
When two separate display function, vice screen shows that content shows that content is different from the main screen of main display.
In conclusion double-screen display method provided in this embodiment, is carried out by the way that secondary display screen is modeled to HDMI equipment
Equipment addition, so that secondary display screen is identified as a common HDMI equipment to realize shuangping san by operating system;It solves
The development of double-screen display method in the prior art is huge and compatible poor problem;Reach and has simulated secondary display screen
At HDMI equipment, the display of vice screen is realized using HDMI display mechanism primary in operating system, without opening again
Vice screen display mechanism is sent out, less there is the effect of compatibility issue.
Double-screen display method provided in this embodiment, also by the value of setting flag node, so that in Android device
Each program layer can obtain the display screen attribute of terminal, and then realize the function that secondary display screen is modeled as to HDMI equipment.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.For apparatus of the present invention reality
Undisclosed details in example is applied, embodiment of the present invention method is please referred to.
Referring to FIG. 5, the structural block diagram of the double display unit provided it illustrates invention one embodiment.The double screen
Display device can by special hardware circuit, alternatively, the combination of software and hardware come be implemented as server all or part of.
The embodiment of the present invention is applied to illustrate in terminal with the double display unit.The double display unit, comprising:
Terminal detection module 501, for detecting whether terminal has double-display screen.
Event generation module 502 generates HDMI equipment addition event if having double-display screen for terminal.
Initial setup module 503 carries out just for adding event according to HDMI equipment using secondary display screen as HDMI equipment
Beginningization.
Double-screen display module 504, for carrying out shuangping san after the initialization of secondary display screen.
In conclusion double display unit provided in this embodiment, is carried out by the way that secondary display screen is modeled to HDMI equipment
Equipment addition, so that secondary display screen is identified as a common HDMI equipment to realize shuangping san by operating system;It solves
The development of double-screen display method in the prior art is huge and compatible poor problem;Reach and has simulated secondary display screen
At HDMI equipment, the display of vice screen is realized using HDMI display mechanism primary in operating system, without opening again
Vice screen display mechanism is sent out, less there is the effect of compatibility issue.
Referring to FIG. 6, it illustrates the structural block diagrams for inventing the double display unit that another embodiment provides.This pair
Screen display device can by special hardware circuit, alternatively, the combination of software and hardware come be implemented as server whole or one
Point.The embodiment of the present invention with the double display unit be applied to terminal in come for example, and the present embodiment with the shuangping san
Device is applied to the framework of the software and hardware of Android device shown in Fig. 3 to illustrate.The double display unit, comprising:
Terminal detection module 601, for detecting whether terminal has double-display screen by bsp driver.
Event generation module 602 generates HDMI equipment by bsp driver if having double-display screen for terminal
Addition event.
Initial setup module 603 carries out just for adding event according to HDMI equipment using secondary display screen as HDMI equipment
Beginningization.
Optionally, initial setup module 603 includes parameter acquiring unit 6031 and initial setting up unit 6032.
Parameter acquiring unit 6031, for obtaining the screen parameter of secondary display screen from HDMI equipment addition event.
Initial setting up unit 6032, for being carried out the screen parameter of secondary display screen as the device parameter of HDMI equipment just
Beginningization.
Double-screen display module 604, for carrying out shuangping san after the initialization of secondary display screen.
In conclusion double display unit provided in this embodiment, is carried out by the way that secondary display screen is modeled to HDMI equipment
Equipment addition, so that secondary display screen is identified as a common HDMI equipment to realize shuangping san by operating system;It solves
The development of double-screen display method in the prior art is huge and compatible poor problem;Reach and has simulated secondary display screen
At HDMI equipment, the display of vice screen is realized using HDMI display mechanism primary in operating system, without opening again
Vice screen display mechanism is sent out, less there is the effect of compatibility issue.
Referring to FIG. 7, the structural block diagram of the double display unit provided it illustrates invention further embodiment.This pair
Screen display device can by special hardware circuit, alternatively, the combination of software and hardware come be implemented as server whole or one
Point.The embodiment of the present invention with the double display unit be applied to terminal in come for example, and the present embodiment with the shuangping san
Device is applied to the framework of the software and hardware of Android device shown in Fig. 3 to illustrate.The double display unit, comprising:
Terminal detection module 701, for detecting whether terminal has double-display screen by bsp driver.
Optionally, terminal detection module 701 includes attribute enquiry unit 7011, attribute feedback unit 7012 and node write-in
Unit 7013.
Attribute enquiry unit 7011, for passing through the SurfaceFlinger layers of display to bsp driver inquiry terminal
Shield attribute.
Attribute feedback unit 7012, for passing through display of the bsp driver to SurfaceFlinger layers of feedback terminal
Shield attribute;
Node writing unit 7013, if be for display screen attribute while there is main display and secondary display screen,
SurfcaeFlinger layers are written predetermined value to flag node;Otherwise it handles and is shown according to single device.
Optionally, wherein the flag node with predetermined value is for the distinct program layer instruction terminal into android terminal
Support shuangping san.
Event generation module 702 generates HDMI equipment by bsp driver if having double-display screen for terminal
Addition event.
Initial setup module 703, for obtaining the screen parameter of secondary display screen from HDMI equipment addition event.
Optionally, Initialize installation module 703 includes parameter acquiring unit 7031 and initial setting up unit 7032.
Parameter acquiring unit 7031, for obtaining the screen parameter of secondary display screen from HDMI equipment addition event.
Initial setting up unit 7032, for by HAL layers using the screen parameter of secondary display screen as the equipment of HDMI equipment
Parameter is initialized.
Double-screen display module 704 shows content, vice screen for exporting vice screen to secondary display screen by Presentation class
Show that the main screen of content and main display shows that content is identical or different.
In conclusion double display unit provided in this embodiment, is carried out by the way that secondary display screen is modeled to HDMI equipment
Equipment addition, so that secondary display screen is identified as a common HDMI equipment to realize shuangping san by operating system;It solves
The development of double-screen display method in the prior art is huge and compatible poor problem;Reach and has simulated secondary display screen
At HDMI equipment, the display of vice screen is realized using HDMI display mechanism primary in operating system, without opening again
Vice screen display mechanism is sent out, less there is the effect of compatibility issue.
Double display unit provided in this embodiment, also by the value of setting flag node, so that in Android device
Each program layer can obtain the display screen attribute of terminal, and then realize the function that secondary display screen is modeled as to HDMI equipment.
The present embodiment is with the terminal applies in double-screen display method in Fig. 1 or Fig. 2 or Fig. 4.
Fig. 8 it illustrates the block diagram of terminal 800 provided by one embodiment of the present invention, the terminal may include radio frequency (RF,
Radio Frequency) circuit 801, the memory 802, defeated that includes one or more computer readable storage medium
Enter unit 803, display unit 804, sensor 805, voicefrequency circuit 806, Wireless Fidelity (WiFi, Wireless Fidelity)
The components such as module 807, the processor 808 for including one or more than one processing core and power supply 808.This field skill
Art personnel are appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 8, may include more or more than illustrating
Few component perhaps combines certain components or different component layouts.Wherein:
RF circuit 801 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 808 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 801 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses
Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier
(LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 801 can also by wireless communication with network and its
He communicates equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications system can be used in the wireless communication
Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General
Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more
Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term
Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 802 can be used for storing software program and module, and processor 808 is stored in memory 802 by operation
Software program and module, thereby executing various function application and data processing.Memory 802 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to terminal
(such as audio data, phone directory etc.) etc..In addition, memory 802 may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory 802 can also include Memory Controller, to provide processor 808 and input unit 803 to memory 802
Access.
Input unit 803 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment
In, input unit 803 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching
Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or
Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula
It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 808, and can reception processing
Order that device 808 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 803 can also include other input equipments.Specifically, other are defeated
Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse
One of mark, operating stick etc. are a variety of.
In the present embodiment, display unit 804 includes main display 8041 and secondary display screen 8042, and display unit 804 can be used
In showing information input by user or being supplied to the information of user and the various graphical user interface of terminal, these figures are used
Family interface can be made of figure, text, icon, video and any combination thereof.Display unit 804 may include display panel,
Optionally, can using liquid crystal display (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED,
Organic Light-Emitting Diode) etc. forms configure display panel.Further, touch sensitive surface can cover display
Panel sends processor 808 to after touch sensitive surface detects touch operation on it or nearby to determine touch event
Type is followed by subsequent processing device 808 according to the type of touch event and provides corresponding visual output on a display panel.In certain implementations
In example, touch sensitive surface and display panel can be integrated and realize and output and input function.
Terminal may also include at least one sensor 805, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear
Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions
Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 806, loudspeaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 806 can
By the electric signal after the audio data received conversion, it is transferred to loudspeaker, voice signal output is converted to by loudspeaker;It is another
The voice signal of collection is converted to electric signal by aspect, microphone, is converted to audio data after being received by voicefrequency circuit 806, then
After the processing of audio data output processor 808, it is sent to such as another terminal through RF circuit 801, or by audio data
Output is further processed to memory 802.Voicefrequency circuit 806 is also possible that earphone jack, with provide peripheral hardware earphone with
The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 807
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.
Processor 808 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 802, and call and be stored in memory 802
Data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 808 can wrap
Include one or more processing cores;Preferably, processor 808 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 808.
Terminal further includes the power supply 808 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and processor 808 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.Power supply 808 can also include one or more direct current or AC power source, recharging system, power failure inspection
The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation
In example, the processor 808 in terminal can run the one or more program instruction being stored in memory 802, thus
Realize information display method provided in above-mentioned each embodiment of the method.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Claims (12)
1. a kind of double-screen display method, which is characterized in that the described method includes:
Whether detection terminal has double-display screen, and the double-display screen includes main display and secondary display screen, the main display
The front of the terminal is set, and the back side of the terminal is arranged in the pair display screen;Alternatively, the main display and described
Secondary display screen is arranged in the same surface of the terminal, the pair display screen and that high-definition multimedia interface HDMI is not used is hard
Part interface is connected with the mainboard of the terminal;
If the terminal has the double-display screen, HDMI equipment addition event is generated;
Event is added according to the HDMI equipment, is initialized using the secondary display screen as the HDMI equipment, with simulation
Equipment addition is carried out at HDMI equipment, the secondary display screen after initialization is considered as that a HDMI is set in each program layer
It is standby;
Shuangping san is carried out after the secondary display screen initialization.
2., will be described the method according to claim 1, wherein described add event according to the HDMI equipment
Secondary display screen is initialized as the HDMI equipment, comprising:
The screen parameter of the secondary display screen is obtained from the HDMI equipment addition event;
The screen parameter of the secondary display screen is initialized as the device parameter of the HDMI equipment.
3. if the method according to claim 1, wherein the terminal is given birth to the double-display screen
Event is added at the HDMI equipment, comprising:
The HDMI equipment is generated by bsp driver and adds event, and the HDMI equipment addition event carries the pair
The screen parameter of display screen.
4. according to the method described in claim 2, the android terminal includes it is characterized in that, the terminal is android terminal
HAL layers of hardware abstraction layer;
The screen parameter using the secondary display screen is initialized as the device parameter of HDMI equipment, is wrapped
It includes:
The screen parameter of the secondary display screen is carried out just as the device parameter of HDMI equipment by described HAL layers
Beginningization.
5. method according to any one of claims 1 to 4, which is characterized in that the terminal is android terminal, and the Android is whole
End include SurfaceFlinger layers, described SurfaceFlinger layers be graphic display system serve end program;
Whether the detection terminal has double-display screen, comprising:
The display screen attribute of the terminal is inquired to bsp driver by described SurfaceFlinger layers;
The display screen attribute of the terminal is fed back to described SurfaceFlinger layers by the bsp driver;
When the display screen attribute is has the main display and the secondary display screen simultaneously, by described
SurfcaeFlinger layers are written predetermined value to flag node;
Wherein, the flag node with the predetermined value is for described in the distinct program layer instruction into the android terminal
Terminal has double-display screen.
6. method according to any one of claims 1 to 4, which is characterized in that the terminal is android terminal, and the Android is whole
End includes display interface Presentation class;
It is described to carry out shuangping san after the secondary display screen initialization, comprising:
Vice screen, which is exported, to the secondary display screen by the Presentation class shows that content, the vice screen show content and institute
The main screen for stating main display shows that content is identical or different.
7. a kind of double display unit, which is characterized in that described device includes:
Terminal detection module, for detecting whether terminal has double-display screen, the double-display screen includes that main display and pair are aobvious
The front of the terminal is arranged in display screen, the main display, and the back side of the terminal is arranged in the pair display screen;Alternatively,
The same surface of the terminal is arranged in the main display and the secondary display screen, and simultaneously high-resolution is not used in the pair display screen
Degree multimedia interface HDMI hardware interface is connected with the mainboard of the terminal;
Event generation module generates HDMI equipment addition event if having the double-display screen for the terminal;
Initial setup module, for adding event according to the HDMI equipment, using the secondary display screen as the HDMI equipment
It is initialized, carries out equipment addition to be modeled to HDMI equipment, the secondary display screen after initialization is in each program layer
It is considered as a HDMI equipment;
Double-screen display module, for carrying out shuangping san after the secondary display screen initialization.
8. device according to claim 7, which is characterized in that the initial setup module, comprising:
Parameter acquiring unit and initial setting up unit;
Parameter acquiring unit obtains the screen parameter of the secondary display screen from the HDMI equipment addition event;
Initial setting up unit carries out the screen parameter of the secondary display screen just as the device parameter of the HDMI equipment
Beginningization.
9. device according to claim 7, which is characterized in that
The event generation module adds event for generating the HDMI equipment by bsp driver, and the HDMI is set
Standby addition event carries the screen parameter of the secondary display screen.
10. device according to claim 8, which is characterized in that the terminal is android terminal, and the android terminal includes
HAL layers;
The initial setting up unit, for being set the screen parameter of the secondary display screen as HDMI by described HAL layers
The standby device parameter is initialized.
11. according to any device of claim 7 to 10, which is characterized in that the terminal is android terminal, the Android
Terminal includes SurfaceFlinger layers, described SurfaceFlinger layers be graphic display system serve end program;
The terminal detection module, comprising:
Attribute enquiry unit, for inquiring the display of the terminal to bsp driver by described SurfaceFlinger layers
Shield attribute;
Attribute feedback unit, for feeding back the terminal to described SurfaceFlinger layers by the bsp driver
The display screen attribute;
Node writing unit, for when the display screen attribute is has the main display and the secondary display screen simultaneously,
Predetermined value is written to flag node by described SurfcaeFlinger layers;
Wherein, the flag node with the predetermined value is for described in the distinct program layer instruction into the android terminal
Terminal has double-display screen.
12. according to any device of claim 7 to 10, which is characterized in that the terminal is android terminal, the Android
Terminal includes display interface Presentation class;
The double-screen display module, in being shown by the Presentation class to the secondary display screen output vice screen
Hold, the vice screen shows that the main screen of content and the main display shows that content is identical or different.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610735856.2A CN106354458B (en) | 2016-08-26 | 2016-08-26 | Double-screen display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610735856.2A CN106354458B (en) | 2016-08-26 | 2016-08-26 | Double-screen display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106354458A CN106354458A (en) | 2017-01-25 |
CN106354458B true CN106354458B (en) | 2019-09-20 |
Family
ID=57855256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610735856.2A Active CN106354458B (en) | 2016-08-26 | 2016-08-26 | Double-screen display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354458B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109214242A (en) * | 2017-07-03 | 2019-01-15 | 中兴通讯股份有限公司 | Sensing data acquisition methods, device, system and computer readable storage medium |
CN107463325A (en) * | 2017-07-12 | 2017-12-12 | 福州瑞芯微电子股份有限公司 | A kind of display methods for supporting multi-screen to input and device |
CN107995452B (en) * | 2017-11-07 | 2020-09-29 | 珠海研果科技有限公司 | Double-screen synchronous display method |
CN107832273B (en) * | 2017-11-17 | 2022-01-25 | 青岛海信移动通信技术股份有限公司 | Ink screen content display method and device and display content pushing method and device |
CN110989957A (en) * | 2019-12-12 | 2020-04-10 | 深圳市深智电科技有限公司 | Multi-screen display method, terminal and storage medium |
CN110968252B (en) * | 2019-12-18 | 2021-10-22 | 华为技术有限公司 | Display method of interactive system, interactive system and electronic equipment |
CN111182356A (en) * | 2019-12-31 | 2020-05-19 | 珠海六点智能科技有限公司 | Method and system for realizing double-screen different display of Android video playing |
CN112242122A (en) * | 2020-10-09 | 2021-01-19 | 北京如影智能科技有限公司 | Dual-screen display method, device and system based on android system |
CN114915815B (en) * | 2021-02-09 | 2023-11-10 | 海信视像科技股份有限公司 | Display apparatus and control method thereof |
CN113312016A (en) * | 2021-05-10 | 2021-08-27 | 南京市德赛西威汽车电子有限公司 | Method for double-screen different display in vehicle-mounted entertainment system |
CN114339353B (en) * | 2021-12-31 | 2023-09-29 | 晶晨半导体科技(北京)有限公司 | Audio/video synchronization method and device, electronic equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665005A (en) * | 2012-04-26 | 2012-09-12 | 网经科技(苏州)有限公司 | Wireless multimedia terminal |
CN103106058A (en) * | 2013-01-25 | 2013-05-15 | Tcl集团股份有限公司 | Double-screen display method and intelligent display terminal based on android platform |
CN103390397A (en) * | 2013-07-24 | 2013-11-13 | 福州瑞芯微电子有限公司 | Double screen display device and method based on Android system |
CN103646638A (en) * | 2013-12-25 | 2014-03-19 | 厦门雅迅网络股份有限公司 | Android platform based double-screen display method |
CN104123110A (en) * | 2013-04-26 | 2014-10-29 | 上海赤炫信息科技有限公司 | Android double-screen extraordinary image display method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8081252B2 (en) * | 2006-06-13 | 2011-12-20 | Panasonic Corporation | Image displaying apparatus |
-
2016
- 2016-08-26 CN CN201610735856.2A patent/CN106354458B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665005A (en) * | 2012-04-26 | 2012-09-12 | 网经科技(苏州)有限公司 | Wireless multimedia terminal |
CN103106058A (en) * | 2013-01-25 | 2013-05-15 | Tcl集团股份有限公司 | Double-screen display method and intelligent display terminal based on android platform |
CN104123110A (en) * | 2013-04-26 | 2014-10-29 | 上海赤炫信息科技有限公司 | Android double-screen extraordinary image display method |
CN103390397A (en) * | 2013-07-24 | 2013-11-13 | 福州瑞芯微电子有限公司 | Double screen display device and method based on Android system |
CN103646638A (en) * | 2013-12-25 | 2014-03-19 | 厦门雅迅网络股份有限公司 | Android platform based double-screen display method |
Also Published As
Publication number | Publication date |
---|---|
CN106354458A (en) | 2017-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106354458B (en) | Double-screen display method and device | |
CN106933525B (en) | A kind of method and apparatus showing image | |
US20150082231A1 (en) | Method and terminal for displaying desktop | |
CN106502906B (en) | A kind of method and apparatus of test application program | |
CN104967790B (en) | Method, photo taking, device and mobile terminal | |
CN104571979B (en) | A kind of method and apparatus for realizing split view | |
CN107251536A (en) | A kind of mobile terminal shows the method and mobile terminal of multiple application widgets | |
CN104021129B (en) | Show the method and terminal of group picture | |
CN106502608B (en) | Display methods, device and terminal device | |
WO2018137304A1 (en) | Method for displaying 2d application in vr device, and terminal | |
CN104820546B (en) | Function information methods of exhibiting and device | |
CN104869465A (en) | Video playing control method and device | |
CN103491421B (en) | Content displaying method, device and intelligent television | |
CN110378107A (en) | A kind of method and relevant apparatus of installation kit detection | |
KR20170033335A (en) | Method for sharing application program and electronic device therefor | |
CN105787982B (en) | A kind of method and apparatus making e-book | |
CN106708390A (en) | Screen capture method, apparatus and system | |
CN105187944B (en) | A kind of method and apparatus to Show Status Bar | |
CN106330672A (en) | Instant messaging method and system | |
WO2015014138A1 (en) | Method, device, and equipment for displaying display frame | |
CN104123308B (en) | Webpage generating method and auto-building html files device | |
CN106547682A (en) | The method and device of commissioning Mobile solution | |
CN108959062A (en) | Web page element acquisition methods and device | |
CN104811898B (en) | A kind of method of acquisition of information, server, terminal and system | |
CN106528083B (en) | A kind of method and apparatus that display shows information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |