CN109542232A - Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode - Google Patents

Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode Download PDF

Info

Publication number
CN109542232A
CN109542232A CN201811448324.6A CN201811448324A CN109542232A CN 109542232 A CN109542232 A CN 109542232A CN 201811448324 A CN201811448324 A CN 201811448324A CN 109542232 A CN109542232 A CN 109542232A
Authority
CN
China
Prior art keywords
terminal
vertical screen
horizontal
screen state
mode
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.)
Pending
Application number
CN201811448324.6A
Other languages
Chinese (zh)
Inventor
李阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811448324.6A priority Critical patent/CN109542232A/en
Publication of CN109542232A publication Critical patent/CN109542232A/en
Pending legal-status Critical Current

Links

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • 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/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of switching methods of terminal horizontal/vertical screen mode, terminal and computer readable storage medium, the described method includes: the first signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and compare first signal value and the first preset signals value, generate the first comparing result;The second signal value and the second preset signals value are compared, the second comparing result is generated, and according to first comparing result and second comparing result, determines the horizontal/vertical screen state of the terminal;According to the horizontal/vertical screen state, the switching of horizontal/vertical screen mode is carried out to the display interface of the terminal.The signal strength or weakness of terminal top antenna and bottom antenna that this programme is characterized by the first comparing result and the second comparing result to determine the horizontal/vertical screen state of terminal, and then switches over the horizontal/vertical screen mode of terminal display interface;So that the switching of horizontal/vertical screen mode is more acurrate, the failure risk of handoff functionality and the hardware cost of terminal are reduced.

Description

Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode
Technical field
The present invention relates to intelligent terminal technical field more particularly to a kind of switching methods of terminal horizontal/vertical screen mode, terminal And computer readable storage medium.
Background technique
With the development of intellectualized technology, more and more users' selection is read using terminals such as mobile phone, tablet computers Read, browse webpage, viewing video, play game etc.;It, can be according to terminal in use in order to make user possess better experience Location status, switched between the transverse screen mode and vertical screen mode of terminal.
In order to detect the location status of terminal in use, it is provided with gravity sensor in terminal, that is, passes through gravity Sensor detects the location status of terminal in use, and then carries out the transverse screen mode of terminal and cutting for vertical screen mode It changes;But the sensitivity of gravity sensor is in a certain range, if user in use carries out the location status of terminal The amplitude of variation of variation is smaller, and gravity sensor can not be detected, so that the switching inaccuracy of transverse screen mode and vertical screen mode;Together When setting gravity sensor increase the hardware cost of terminal, and be easy the risk hidden danger that there is damage, and lead to transverse screen and perpendicular There are failure risks for the handoff functionality of screen mode.
Summary of the invention
The main purpose of the present invention is to provide a kind of switching methods of terminal horizontal/vertical screen mode, terminal and computer-readable Storage medium, it is intended to solve the terminal transverse screen mode and vertical screen mode realized in the prior art by the detection of gravity sensor Switching inaccuracy, the problem of handoff functionality is easy that there are failure risks, and gravity sensor increases terminal hardware cost.
To achieve the above object, a kind of switching method of terminal horizontal/vertical screen mode provided by the invention, the terminal are vertical and horizontal The switching method of screen mode the following steps are included:
First signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and described first is believed Number value and the first preset signals value comparison, generate the first comparing result;
The second signal value and the second preset signals value are compared, generate the second comparing result, and according to described first Comparing result and second comparing result, determine the horizontal/vertical screen state of the terminal;
According to the horizontal/vertical screen state, the switching of horizontal/vertical screen mode is carried out to the display interface of the terminal.
Optionally, described according to first comparing result and second comparing result, determine the vertical and horizontal of the terminal The step of screen state includes:
By first comparing result and second comparing result respectively with preset reference threshold comparison, if described One comparing result and second comparing result are all larger than preset reference threshold value, then determine the horizontal/vertical screen state of the terminal For transverse screen state;
If first comparing result is less than or equal to the preset reference threshold value, and second comparing result is greater than institute Preset reference threshold value is stated, then the horizontal/vertical screen state of the terminal is determined as vertical screen state;
Alternatively, if first comparing result be greater than the preset reference threshold value, and second comparing result be less than or Equal to the preset reference threshold value, then the horizontal/vertical screen state of the terminal is determined as vertical screen state.
Optionally, described according to first comparing result and second comparing result, determine the vertical and horizontal of the terminal Include: after the step of screen state
It is then normal shape by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state State;
It is then power saving shape by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state State.
Optionally, described when the horizontal/vertical screen state of the terminal is transverse screen state, then by the electricity mode of the terminal The step of being adjusted to normal condition include:
When the horizontal/vertical screen state of the terminal is transverse screen state, then by the performance parameter tune of CPU and GPU in the terminal It is whole to arrive maximum value, and read the charge value of the terminal;
Judge whether the charge value is less than default power threshold, if being less than the default power threshold, by the end The screen intensity at end is adjusted to predetermined luminance value,
If being not less than the default power threshold, the screen intensity of the terminal is adjusted to maximum value, it will be described The electricity mode adjustment of terminal is normal condition.
Optionally, described when the horizontal/vertical screen state of the terminal is vertical screen state, then by the electricity mode of the terminal The step of being adjusted to power down mode include:
When the horizontal/vertical screen state of the terminal is vertical screen state, then by the performance parameter tune of CPU and GPU in the terminal It is whole to arrive preset value, and read the journal file in the terminal;
Judge in the journal file with the presence or absence of brightness daily record data corresponding with the vertical screen state, if it exists with institute It states the corresponding brightness daily record data of vertical screen state and determines the screen intensity of the terminal then according to the brightness daily record data;
Brightness daily record data corresponding with the vertical screen state if it does not exist, is adjusted to institute for the screen intensity of the terminal State predetermined luminance value, using by the electricity mode adjustment of the terminal as power down mode.
Optionally, described according to first comparing result and second comparing result, determine the vertical and horizontal of the terminal Include: after the step of screen state
It is then to close by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state Closed state;
It is then to open by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state Open state.
Optionally, described when the horizontal/vertical screen state of the terminal is transverse screen state, then by the prompting message of the terminal Include: after the step of mode adjustment is in off state
When detecting that the terminal receives application message, according to application type corresponding to each application message, Counting statistics are carried out to each application message, generate the corresponding message number of each application type;
Judge to be greater than if it exists in each message number with the presence or absence of the target message quantity for being greater than default count threshold The target message quantity of default count threshold, then be determined as target application for the application message for generating each target message quantity Message;
Judge whether application type corresponding to each target application message is default priority level type, if default Priority level type then shows the target application message in the display interface of the terminal.
Optionally, described according to the horizontal/vertical screen state, cutting for horizontal/vertical screen mode is carried out to the display interface of the terminal The step of changing include:
When the horizontal/vertical screen state is transverse screen state, then the horizontal/vertical screen mode is determined as transverse screen mode, and by institute The display interface for stating terminal is switched to transverse screen mode and shows;
When the horizontal/vertical screen state is vertical screen state, then the horizontal/vertical screen mode is determined as vertical screen mode, and by institute The display interface for stating terminal is switched to vertical screen mode and shows.
In addition, to achieve the above object, the present invention also proposes a kind of terminal, the terminal include: memory, processor, The changeover program of communication bus and the terminal horizontal/vertical screen mode being stored on the memory:
The communication bus is for realizing the connection communication between processor and memory;
The processor is used to execute the changeover program of the terminal horizontal/vertical screen mode, to perform the steps of
First signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and described first is believed Number value and the first preset signals value comparison, generate the first comparing result;
The second signal value and the second preset signals value are compared, generate the second comparing result, and according to described first Comparing result and second comparing result, determine the horizontal/vertical screen state of the terminal;
According to the horizontal/vertical screen state, the switching of horizontal/vertical screen mode is carried out to the display interface of the terminal.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Storage medium be stored with one perhaps more than one program the one or more programs can by one or one with On processor execute to be used for:
First signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and described first is believed Number value and the first preset signals value comparison, generate the first comparing result;
The second signal value and the second preset signals value are compared, generate the second comparing result, and according to described first Comparing result and second comparing result, determine the horizontal/vertical screen state of the terminal;
According to the horizontal/vertical screen state, the switching of horizontal/vertical screen mode is carried out to the display interface of the terminal.
The switching method of the terminal horizontal/vertical screen mode of technical solution of the present invention passes through the first letter of reading terminals top antenna The second signal value of number value and terminal bottom antenna, and is previously provided with the first preset signals value and the second preset signals value;First First signal value of reading and the first preset signals value are compared, generate the first comparing result, and by second signal value and second The comparison of preset signals value, generates the second comparing result;And then according to the first comparing result and the second comparing result, terminal is determined Horizontal/vertical screen state realizes the switching to the horizontal/vertical screen mode of terminal display interface further according to horizontal/vertical screen state.In this programme One signal value and second signal value characterization user hold in the use process of terminal, received by top antenna and bottom antenna Signal strength, and the first preset signals value and the second preset signals value are terminal in the standby that no user holds, top Signal strength received by portion's antenna and bottom antenna;First comparing result and the second comparing result then characterize top day The signal strength difference of line and bottom antenna in user's gripping terminal use process and during terminal standby;Difference it is big It is small, the position that user holds terminal is characterized, and then the position by holding determines the location status of terminal, then by the terminal The horizontal/vertical screen pattern switching of location status progress terminal display interface;Avoid passing through the position shape of gravity sensor detection terminal State, the switching of Lai Jinhang terminal transverse screen mode and vertical screen mode reduce switching function so that the switching of horizontal/vertical screen mode is more acurrate The failure risk of energy and the hardware cost of terminal.
Detailed description of the invention
The hardware structural diagram of Fig. 1 each embodiment one optional terminal to realize the present invention;
Fig. 2 is the wireless telecommunication system schematic diagram of terminal as shown in Figure 1;
Fig. 3 is the flow diagram of the switching method first embodiment of terminal horizontal/vertical screen mode of the present invention;
Fig. 4 is the transverse screen mode schematic diagram of a scenario of the switching method of terminal horizontal/vertical screen mode of the present invention;
Fig. 5 is the first schematic diagram of a scenario of the vertical screen mode of the switching method of terminal horizontal/vertical screen mode of the present invention;
Fig. 6 is the second schematic diagram of a scenario of the vertical screen mode of the switching method of terminal horizontal/vertical screen mode of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking fixed terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except the element of fixed purpose, the construction of embodiment according to the present invention can also apply to the terminal of mobile type.
Referring to Fig. 1, a kind of hardware structural diagram of its terminal of each embodiment to realize the present invention, the terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, storage The components such as device 109, processor 110 (such as CPU), communication bus 1002 and power supply 111.Those skilled in the art can manage Solution, the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, terminal may include than illustrating more or fewer portions Part perhaps combines certain components or different component layouts.Such as increase user interface, network interface, camera.Wherein User interface may include display screen (Display), input unit such as keyboard (Keyboard), and optional user interface can be with Including standard wireline interface and wireless interface.Network interface optionally may include standard wireline interface and wireless interface (such as WI-FI interface).
It is specifically introduced below with reference to all parts of the Fig. 1 to terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 102 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 is shown WiFi module 102, but it is understood that, and it is not belonging to must be configured into for terminal, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Audio output unit 103 can be in call signal reception pattern, call mode, logging mode, language in terminal 100 It is radio frequency unit 101 or WiFi module 102 is received or depositing when under the isotypes such as sound recognition mode, broadcast reception mode The audio data stored in reservoir 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 may be used also To provide audio output relevant to the specific function that terminal 100 executes (for example, call signal receives sound, message sink sound Sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 1061.Furthermore the fingerprint sensor that can also configure, pressure sensor, iris sensor, The other sensors such as molecule sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 107 may include touch panel 1071 and its His input equipment 1072.Touch panel 1071, also referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user is using finger, stylus any suitable object or attachment on touch panel 1071 or near touch panel 1071 Operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detecting apparatus With two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring Signal transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is converted At contact coordinate, then processor 110 is given, and order that processor 110 is sent can be received and executed.Furthermore, it is possible to adopt Touch panel 1071 is realized with multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing terminal as two independent components, but in some embodiments it is possible to will Touch panel 1071 and display panel 1061 integrate and realize the function that outputs and inputs of terminal, specifically herein without limitation.
Interface unit 108 be used as at least one external device (ED) connect with terminal 100 can by interface.For example, external Device may include wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless number According to port, memory card port, port, the port audio input/output (I/O), view for connecting the device with identification module The port frequency I/O, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, data are believed Breath, electric power etc.) and by one or more elements that the input received is transferred in terminal 100 or can be used at end Data are transmitted between end 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to terminal use created data (such as Audio data, text data etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the software program and/or module being stored in memory 109, and call and be stored in memory 109 Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 110 may include one Or multiple processing units;Preferably, processor 110 can integrate application processor and modem processor, wherein application processing The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 110.
Communication bus 1002 is for realizing the connection communication between processor 110 and memory 109.Memory 109 can be with It is high speed RAM memory, is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Storage Device 109 optionally can also be the storage device independently of aforementioned processor 110.
Terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be with It is logically contiguous by power-supply management system and processor 110, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
Although Fig. 1 is not shown, terminal 100 can also be including bluetooth module etc., and details are not described herein.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 109 of computer storage medium Believe the changeover program of module and terminal horizontal/vertical screen mode.Operating system is to manage and control the journey of terminal hardware and software resource Sequence supports the operation of the changeover program and other softwares and/or program of terminal horizontal/vertical screen mode.Network communication module is for real Communication between the existing 109 each component in inside of reservoir, and communicated between hardware and softwares other in terminal.
In terminal shown in Fig. 1, processor 110 is for executing the terminal horizontal/vertical screen mode stored in memory 109 Changeover program performs the steps of
First signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and described first is believed Number value and the first preset signals value comparison, generate the first comparing result;
The second signal value and the second preset signals value are compared, generate the second comparing result, and according to described first Comparing result and second comparing result, determine the horizontal/vertical screen state of the terminal;
According to the horizontal/vertical screen state, the switching of horizontal/vertical screen mode is carried out to the display interface of the terminal.
Further, described according to first comparing result and second comparing result, determine the cross of the terminal The step of vertical screen state includes:
By first comparing result and second comparing result respectively with preset reference threshold comparison, if described One comparing result and second comparing result are all larger than preset reference threshold value, then determine the horizontal/vertical screen state of the terminal For transverse screen state;
If first comparing result is less than or equal to the preset reference threshold value, and second comparing result is greater than institute Preset reference threshold value is stated, then the horizontal/vertical screen state of the terminal is determined as vertical screen state;
Alternatively, if first comparing result be greater than the preset reference threshold value, and second comparing result be less than or Equal to the preset reference threshold value, then the horizontal/vertical screen state of the terminal is determined as vertical screen state.
Further, described according to first comparing result and second comparing result, determine the cross of the terminal After the step of vertical screen state, processor 110 is used to execute the switching journey of the terminal horizontal/vertical screen mode stored in memory 109 Sequence performs the steps of
It is then normal shape by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state State;
It is then power saving shape by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state State.
Further, described when the horizontal/vertical screen state of the terminal is transverse screen state, then by the electricity mould of the terminal Formula is adjusted to the step of normal condition and includes:
When the horizontal/vertical screen state of the terminal is transverse screen state, then by the performance parameter tune of CPU and GPU in the terminal It is whole to arrive maximum value, and read the charge value of the terminal;
Judge whether the charge value is less than default power threshold, if being less than the default power threshold, by the end The screen intensity at end is adjusted to predetermined luminance value,
If being not less than the default power threshold, the screen intensity of the terminal is adjusted to maximum value, it will be described The electricity mode adjustment of terminal is normal condition.
Further, described when the horizontal/vertical screen state of the terminal is vertical screen state, then by the electricity mould of the terminal Formula is adjusted to the step of power down mode and includes:
When the horizontal/vertical screen state of the terminal is vertical screen state, then by the performance parameter tune of CPU and GPU in the terminal It is whole to arrive preset value, and read the journal file in the terminal;
Judge in the journal file with the presence or absence of brightness daily record data corresponding with the vertical screen state, if it exists with institute It states the corresponding brightness daily record data of vertical screen state and determines the screen intensity of the terminal then according to the brightness daily record data;
Brightness daily record data corresponding with the vertical screen state if it does not exist, is adjusted to institute for the screen intensity of the terminal State predetermined luminance value, using by the electricity mode adjustment of the terminal as power down mode.
Further, described according to first comparing result and second comparing result, determine the cross of the terminal After the step of vertical screen state, processor 110 is used to execute the switching journey of the terminal horizontal/vertical screen mode stored in memory 109 Sequence performs the steps of
It is then to close by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state Closed state;
It is then to open by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state Open state.
Further, described when the horizontal/vertical screen state of the terminal is transverse screen state, then the prompt of the terminal is disappeared After the step of breath mode adjustment is in off state, processor 110 is for executing the terminal horizontal/vertical screen mould stored in memory 109 The changeover program of formula, performs the steps of
When detecting that the terminal receives application message, according to application type corresponding to each application message, Counting statistics are carried out to each application message, generate the corresponding message number of each application type;
Judge to be greater than if it exists in each message number with the presence or absence of the target message quantity for being greater than default count threshold The target message quantity of default count threshold, then be determined as target application for the application message for generating each target message quantity Message;
Judge whether application type corresponding to each target application message is default priority level type, if default Priority level type then shows the target application message in the display interface of the terminal.
Further, described according to the horizontal/vertical screen state, horizontal/vertical screen mode is carried out to the display interface of the terminal The step of switching includes:
When the horizontal/vertical screen state is transverse screen state, then the horizontal/vertical screen mode is determined as transverse screen mode, and by institute The display interface for stating terminal is switched to transverse screen mode and shows;
When the horizontal/vertical screen state is vertical screen state, then the horizontal/vertical screen mode is determined as vertical screen mode, and by institute The display interface for stating terminal is switched to vertical screen mode and shows.
Each embodiment of switching method of terminal specific embodiment of the present invention and following terminal horizontal/vertical screen modes is essentially identical, Details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system being based below to terminal of the invention are retouched It states.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration, communication apparatus structure, the switching of terminal horizontal/vertical screen mode of the present invention is proposed Each embodiment of method.
Referring to Fig. 3, the present invention provides a kind of switching method of terminal horizontal/vertical screen mode, in the switching of terminal horizontal/vertical screen mode In method first embodiment, the switching method of the terminal horizontal/vertical screen mode includes:
Step S10, the first signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and by institute The first signal value and the comparison of the first preset signals value are stated, the first comparing result is generated;
The switching method of the terminal horizontal/vertical screen mode of the present embodiment is applied to the control centre of terminal, suitable for passing through control Center control switches over the horizontal/vertical screen mode of terminal, i.e., the transverse screen mode that is shown in terminal with transverse screen and with vertical screen into Switch between the vertical screen mode of row display;Wherein terminal can be the intelligent terminals such as mobile phone, tablet computer, the transverse screen mode of terminal It is distinguished with vertical screen mode with the length sides and width edge of terminal, using longer two sides of length in terminal as length sides, And using two shorter sides of length as width edge;User in the use process to terminal, the display screen of terminal towards with Family, it is vertical screen mode that the length sides of terminal, which are located at the display pattern at left and right sides of user, and the width edge of terminal is located at a user left side The display pattern of right two sides is transverse screen mode.Top and bottom additionally are carried out to terminal to distinguish, and are listened having in terminal Cylinder, front camera one end be used as top, and using with Home key, loudspeaker, USB interface one end as bottom.
Terminal realizes communication to receive various types of signal, is provided with mutiple antennas in terminal, as GSM antenna, GPS antenna, WIFI antenna etc.;Wherein at least one antenna is located at the top of terminal, and at least another antenna is located at terminal bottom;It reads in advance The signal value of terminal top antenna in standby, and using the signal value of the reading as the first preset signals value, while it is pre- The signal value of first reading terminals bottom antenna in standby, and using the signal value of the reading as the second preset signals value. In view of being related to mutiple antennas at the top and bottom of terminal, the first preset signals value or the second preset signals value can be directed to it In some antenna be read out, can also be read out for plurality of or all antennas, and by the multiple of reading or institute There is the signal value of antenna to be added, obtains the first preset signals value or second signal value.In user to the use process of terminal In, the signal value of reading terminals top antenna, and using the signal value as the first signal value, while reading terminals bottom antenna Signal value, and using the signal value as second signal value;Wherein the first signal value or second signal value at the top of terminal or The signal value of the antenna of terminal bottom one or the signal value of mutiple antennas, by the first preset signals value or the second preset signals value Source formation determine.When the first preset signals value is from the signal value of an antenna at the top of terminal, then first read is believed The signal value of a number value then antenna at the top of the terminal, and the antenna and the first preset signals in the first signal value institute source The antenna for being worth institute source is identical;And work as the first preset signals value from the signal value of mutiple antennas at the top of terminal, then it reads First signal value then derives from the signal value of the mutiple antennas at the top of terminal, and the mutiple antennas in the first signal value institute source and the The mutiple antennas in one preset signals value institute source is identical.The source mode of second signal value and the source mode class of the first signal value Seemingly, therefore not to repeat here.
After reading the first signal value of terminal top antenna, by the first signal value and the first preset signals value pair Than generating the first comparing result.Difference operation of first comparing result between the first signal value and the first preset signals value Comparing result generated characterizes the otherness of signal strength between the two.When the first comparing result numerical value generated is smaller, The difference characterized between the first signal value and the first preset signals value is smaller, i.e., the difference of signal strength is smaller between the two;It says Bright user is smaller to blocking at the top of terminal in terminal use process, so that signal received by terminal top antenna Signal strength under intensity and terminal standby state is not much different.Conversely, if the first comparing result numerical value generated is larger, Illustrate user in terminal use process, it is larger to blocking at the top of terminal so that letter received by terminal top antenna Signal strength difference under number intensity and terminal standby state is larger.
Step S20 compares the second signal value and the second preset signals value, the second comparing result of generation, and according to First comparing result and second comparing result, determine the horizontal/vertical screen state of the terminal;
Similarly, after reading the second signal value of terminal bottom antenna, by second signal value and the second default letter Number value comparison, generate the second comparing result.Difference of second comparing result between second signal value and the second preset signals value It is worth operation comparing result generated, characterizes the otherness of signal strength between the two.When the second comparing result number generated It is worth smaller, the difference characterized between second signal value and the second preset signals value is smaller, i.e. the difference of signal strength between the two It is smaller;Illustrate user in terminal use process, it is smaller to blocking for terminal bottom so that received by terminal bottom antenna Signal strength and terminal standby state under signal strength be not much different.Conversely, if the second comparing result numerical value generated It is larger, then illustrate user in terminal use process, it is larger to blocking for terminal bottom so that terminal bottom antenna is received Signal strength difference under the signal strength and terminal standby state that arrive is larger.
Understandably, right because the first comparing result and the second comparing result characterize user in terminal use process Coverage extent at the top and bottom of terminal;And use of the user to terminal, it is operated by holding terminal, so that user is to end Its essence of the coverage extent of top and bottom is held to characterize user to the grip position of terminal.When user is to blocking at the top of terminal Degree is larger, and smaller to the coverage extent of terminal bottom;That is the numerical value of the first comparing result is larger, and the second comparing result Numerical value is smaller;It then can determine whether top of the grip position in terminal of user.And when user is to coverage extent at the top of terminal and right The coverage extent of terminal bottom is larger;That is the numerical value of the first comparing result and the second comparing result is larger;It then can determine whether to use The grip position at family is at the both ends of terminal.User characterizes the required terminal screen state of user to the grip position of terminal, When grip position is at top or bottom, illustrate that the required terminal screen state of user is vertical screen state;And work as grip position At top and bottom, then illustrate that the required terminal screen state of user is transverse screen state.To according to generated first The numerical values recited of comparing result and the second comparing result, it may be determined that user is to the grip position of terminal, and then by the grip position Determine the required terminal screen state of user, i.e. the horizontal/vertical screen state of terminal.
Step S30 carries out the switching of horizontal/vertical screen mode to the display interface of the terminal according to the horizontal/vertical screen state.
Further, after determining the horizontal/vertical screen state of terminal, for the ease of user to displayed content in terminal screen Use and watch, need according to horizontal/vertical screen state, to content shown in terminal screen, i.e. display interface carries out horizontal/vertical screen Pattern switching.It is corresponding with transverse screen state included by horizontal/vertical screen state and vertical screen state, content shown by terminal display interface It also include transverse screen mode and vertical screen mode;When identified horizontal/vertical screen state is transverse screen state, then by the horizontal/vertical screen of display interface Mode is determined as transverse screen mode, and terminal display interface is switched to transverse screen mode and is shown;When identified horizontal/vertical screen shape State is vertical screen state, then the horizontal/vertical screen mode of display interface is determined as vertical screen mode, terminal display interface is switched to perpendicular Screen mode is shown.During the display of transverse screen mode and vertical screen mode, every content of display interface is with from left-hand Right direction shown, using and reading in order to user.
The switching method of the terminal horizontal/vertical screen mode of technical solution of the present invention passes through the first letter of reading terminals top antenna The second signal value of number value and terminal bottom antenna, and is previously provided with the first preset signals value and the second preset signals value;First First signal value of reading and the first preset signals value are compared, generate the first comparing result, and by second signal value and second The comparison of preset signals value, generates the second comparing result;And then according to the first comparing result and the second comparing result, terminal is determined Horizontal/vertical screen state realizes the switching to the horizontal/vertical screen mode of terminal display interface further according to horizontal/vertical screen state.In this programme One signal value and second signal value characterization user hold in the use process of terminal, received by top antenna and bottom antenna Signal strength, and the first preset signals value and the second preset signals value are terminal in the standby that no user holds, top Signal strength received by portion's antenna and bottom antenna;First comparing result and the second comparing result then characterize top day The signal strength difference of line and bottom antenna in user's gripping terminal use process and during terminal standby;Difference it is big It is small, the position that user holds terminal is characterized, and then the position by holding determines the location status of terminal, then by the terminal The horizontal/vertical screen pattern switching of location status progress terminal display interface;Avoid passing through the position shape of gravity sensor detection terminal State, the switching of Lai Jinhang terminal transverse screen mode and vertical screen mode reduce switching function so that the switching of horizontal/vertical screen mode is more acurrate The failure risk of energy and the hardware cost of terminal.
Further, described according in another embodiment of the switching method of terminal horizontal/vertical screen mode of the present invention First comparing result and second comparing result, the step of determining the horizontal/vertical screen state of the terminal include:
Step S21, by first comparing result and second comparing result respectively with preset reference threshold comparison, If first comparing result and second comparing result are all larger than preset reference threshold value, by the horizontal/vertical screen of the terminal State is determined as transverse screen state;
Step S22, if first comparing result is less than or equal to the preset reference threshold value, and the second comparison knot Fruit is greater than the preset reference threshold value, then the horizontal/vertical screen state of the terminal is determined as vertical screen state;
Alternatively, step S23, if first comparing result is greater than the preset reference threshold value, and the second comparison knot Fruit is less than or equal to the preset reference threshold value, then the horizontal/vertical screen state of the terminal is determined as vertical screen state.
Further, it in order to determine the numerical values recited of the first comparing result and the second comparing result, is previously provided with pre- If reference threshold, by the first comparing result generated and the second comparing result respectively with preset reference threshold comparison, this is right The process of ratio its substantially compare between the numerical value of the first comparing result and the numerical value of preset reference threshold value and the second comparison knot The process of size relation between the numerical value of fruit and the numerical value of preset reference threshold value.When determining first comparing result is greater than by contrast Preset reference threshold value, and the second comparing result then illustrates the first comparing result and the second comparison knot also greater than preset reference threshold value The numerical value of fruit is larger;The difference between the first signal value of the first comparing result and the first preset signals value is generated, and The difference generated between the second signal value of the second comparing result and the second preset signals value is larger.And the first comparing result and The numerical value of second comparing result is larger, illustrates the terminal location that user is held for the both ends of terminal, at the top of terminal and bottom The antenna in portion is blocked, cause difference between the first signal value received by terminal and the first preset signals value compared with Greatly, the difference and between second signal value and the second preset signals value is also larger;It can determine user's hands grasping in such cases The both ends of terminal operate terminal, so that the horizontal/vertical screen state of terminal is determined as transverse screen state.Referring to figure 4., at end When the screen state at end is transverse screen state, application icon that terminal background and terminal shown by terminal display interface are installed Arrangement is carried out in a manner of from left to right to show.
And ought determine that the first comparing result is not more than preset reference threshold value by contrast, and the second comparing result is greater than default ginseng Threshold value is examined, then illustrates that the numerical value of the first comparing result is smaller, and the numerical value of the second comparing result is larger;Generate the first comparison knot Difference between the first signal value of fruit and the first preset signals value is smaller, and generate the second comparing result second signal value and Differing greatly between the second preset signals value.And the numerical value of the first comparing result is smaller, the numerical value of the second comparing result is larger, Illustrate that the terminal location that user is held for the bottom of terminal, blocks terminal bottom antenna, terminal is caused to be received To second signal value and the second preset signals value between differ greatly;It can determine that user is hold by one hand terminal in such cases Bottom terminal is operated, so that the horizontal/vertical screen state of terminal is determined as vertical screen state.Referring to figure 5., in terminal When screen state is vertical screen state, application icon that terminal background and terminal shown by terminal display interface are installed with from Arrangement is carried out to the mode of terminal bottom at the top of terminal to show.
In view of vertical screen state include at the top of terminal above terminal bottom and terminal bottom is at two kinds of terminal over top Situation can be greater than preset reference threshold value for terminal bottom the terminal over top the case where with the first comparing result, and second Comparing result is characterized less than or equal to preset reference threshold value.Specifically, when determining that the first comparing result is greater than default ginseng by contrast Threshold value is examined, and the second comparing result is not more than preset reference threshold value, then illustrates that the numerical value of the first comparing result is larger, and second pair It is smaller than the numerical value of result;Generate difference between the first signal value of the first comparing result and the first preset signals value compared with Greatly, the difference generated between the second signal value and the second preset signals value of the second comparing result is smaller.And the first comparison knot The numerical value of fruit is larger, and the numerical value of the second comparing result is smaller, illustrates that terminal location that user is held is the top of terminal, right Terminal top antenna is blocked, cause difference between the first signal value received by terminal and the first preset signals value compared with Greatly;It can determine that user is hold by one hand the top of terminal and operates to terminal in such cases, thus by the horizontal/vertical screen shape of terminal State is determined as vertical screen state, and the vertical screen is vertical screen of the terminal bottom in terminal over top.Fig. 6 is please referred to, in the screen of terminal Tentiform state is terminal bottom in the vertical screen state of terminal over top, terminal background and end shown by terminal display interface Installed application icon is held to show to carry out arrangement to the mode at the top of terminal from terminal bottom.According to user to terminal not Same holding mode, the arrangement that the application icon installed to terminal background and terminal carries out different modes are shown, can be convenient for using Operation of the family to terminal.
Further, described according in another embodiment of the switching method of terminal horizontal/vertical screen mode of the present invention First comparing result and second comparing result include: after the step of determining the horizontal/vertical screen state of the terminal
Step S40, when the horizontal/vertical screen state of the terminal is transverse screen state, then by the electricity mode adjustment of the terminal For normal condition;
Understandably, when user have to terminal with transverse screen state carry out using demand when, illustrate user's using terminal into Row video-see plays game, and terminal is required to be in high performance pattern scene at this time, and high performance pattern scene needs The support of electricity;If terminal is in power down mode in such situation, (the Central Processing of CPU in terminal can be reduced Unit, central processing unit), the working performances of the chips such as GPU (Graphics Processing Unit, graphics processor), make It obtains terminal and phenomena such as Caton, not smooth occurs, and influence user to the using effect of terminal.To when according to the first comparing result And the electricity mode adjustment of terminal is then positive by second comparing result when horizontal/vertical screen state for determining terminal is transverse screen state Normal state promotes user to the using effect of terminal to ensure the working performance of terminal.In view of the charge value of terminal is with end End use and reduces, if in the case where the charge value of terminal is less, by the electricity mode adjustment of terminal be normal condition, and Without power-save operation;Possible terminal can because charge value is very few and automatic shutdown, performance and the user for influencing terminal are current Use to terminal.To need to consider the electricity of terminal during being normal condition by the electricity mode adjustment of terminal Value;It specifically, is then the step of normal condition by the electricity mode adjustment of terminal when the horizontal/vertical screen state of terminal is transverse screen state Suddenly include:
Step S41, when the horizontal/vertical screen state of the terminal is transverse screen state, then by the property of CPU and GPU in the terminal Energy parameter is adjusted to maximum value, and reads the charge value of the terminal;
Step S42, judges whether the charge value is less than default power threshold, if being less than the default power threshold, The screen intensity of the terminal is adjusted to predetermined luminance value,
The screen intensity of the terminal is adjusted to maximum value if being not less than the default power threshold by step S43, Using by the electricity mode adjustment of the terminal as normal condition.
Further, according to the first comparing result and the second comparing result, determine the horizontal/vertical screen state of terminal for cross After screen state, CPU the and GPU performance parameter in terminal is adjusted to maximum value, is such as set as the master frequency of CPU and nucleus number Maximum value etc., so that terminal has highest working performance.The charge value of terminal is read out simultaneously, and presets table Levy the default power threshold of charge value size;The charge value of reading and default power threshold are compared, judge whether charge value is small In default power threshold.If charge value is less than default power threshold, illustrates that the remaining electricity of terminal is less, be in terminal High performance mode while meeting user demand, needs to carry out terminal power-save operation, the power-save operation is by reducing end panel The mode of curtain brightness carries out.Be preset with predetermined luminance value, determine the remaining electricity of terminal it is smaller when, by terminal Screen intensity is adjusted to the predetermined luminance value, carried out while user operates terminal with transverse screen state to terminal Power saving.In view of user is to terminal ongoing operation, the charge value of terminal can be made persistently to reduce, can also preset default electricity Early warning value then joins the performance of CPU and GPU in terminal when the terminal power value of reading is less than the default electricity early warning value Number reduces, further to carry out power saving to terminal.
If judging by contrast, charge value is not less than default power threshold, illustrates that the remaining electricity of terminal is more, eventually End can be kept continuously at high performance mode, without carrying out power-save operation to terminal;To which the screen intensity of terminal is adjusted to Maximum value, so that the electricity mode of terminal is in normal condition, CPU and GPU performance parameter and screen intensity in terminal Equal maximum value meets the use demand of user.
Step S50, when the horizontal/vertical screen state of the terminal is vertical screen state, then by the electricity mode adjustment of the terminal For power down mode.
Further, when user have to terminal with vertical screen state carry out using demand when, illustrate user's using terminal Web page browsing or reading are carried out, terminal is not needed at this time and is in high performance pattern scene, and terminal can be adjusted to province Power mode.To determine that the horizontal/vertical screen state of terminal is vertical screen state when foundation the first comparing result and the second comparing result When, then it is power down mode by the electricity mode adjustment of terminal, to extend the cruising ability of terminal.Wherein power down mode includes reducing The performance parameter of CPU and GPU, and reduce by two aspects of screen luminance of terminal;Specifically, when the horizontal/vertical screen state of terminal is perpendicular When screen state, then include: for the step of power down mode by the electricity mode adjustment of terminal
Step S51, when the horizontal/vertical screen state of the terminal is vertical screen state, then by the property of CPU and GPU in the terminal Energy parameter is adjusted to preset value, and reads the journal file in the terminal;
Step S52 judges in the journal file with the presence or absence of brightness daily record data corresponding with the vertical screen state, if The screen of the terminal is determined then according to the brightness daily record data in the presence of brightness daily record data corresponding with the vertical screen state Curtain brightness;
Step S53, brightness daily record data corresponding with the vertical screen state if it does not exist, by the screen intensity of the terminal Be adjusted to the predetermined luminance value, using by the electricity mode adjustment of the terminal as power down mode.
Further, it is previously provided with the characterization lesser preset value of CPU and GPU performance parameter, according to the first comparison knot Fruit and the second comparing result determine the horizontal/vertical screen state of terminal as after vertical screen state, CPU the and GPU performance in terminal is joined Number is adjusted to the preset value, such as the master frequency of CPU and nucleus number are set as preset value, to carry out power saving to terminal.Simultaneously The journal file of terminal is read out, judges to whether there is brightness daily record data corresponding with vertical screen state in journal file, The brightness daily record data is that user was in the past carried out in use, screen brightness value adjusted, i.e. user terminal with vertical screen state Terminal is carried out with vertical screen state using required screen brightness value.When through judging to determine in journal file exist and vertical screen shape The corresponding brightness daily record data of state then illustrates that user was in the past carried out in use, the screen to terminal is bright terminal with vertical screen state Degree is overregulated, and multiple brightness daily record datas are generated in journal file;Thus according to each brightness daily record data, it can Determine the screen intensity of terminal.In view of the numerical values recited of each brightness daily record data is inconsistent, according to each brightness log During data determine the screen intensity of terminal, average value can be carried out to numerical values recited corresponding to each brightness daily record data Processing, obtains the average value of each brightness daily record data, and the screen intensity of terminal is determined as the draw value.It can also be to each A brightness daily record data carries out numerical classification, the brightness daily record data of the difference of numerical value in a certain range is divided into same Class;It first determines the quantity of had brightness daily record data in each class, then determines the mesh for having brightness daily record data quantity most Class is marked, and then the screen intensity of terminal is determined as numerical value corresponding to target class.
When through judge determine journal file in be not present brightness daily record data corresponding with vertical screen state, then illustrate user with It is carried out toward to terminal with vertical screen state in use, the screen intensity to terminal is not overregulated, not in journal file Generate multiple brightness daily record datas;To which the screen intensity of terminal is directly adjusted to predetermined luminance value, so that the electricity of terminal Amount mode is in power down mode, while the performance parameter by reducing terminal CPU and GPU carries out power saving, also passes through reduction The brightness of terminal screen carries out further power saving to terminal, to extend the cruising ability of terminal to the full extent.
Further, described according in another embodiment of the switching method of terminal horizontal/vertical screen mode of the present invention First comparing result and second comparing result include: after the step of determining the horizontal/vertical screen state of the terminal
Step S60, when the horizontal/vertical screen state of the terminal is transverse screen state, then by the prompting message mode of the terminal Adjustment is in off state;
Similarly, when user carries out using when carrying out video-see or playing game, user may terminal with transverse screen state It is not intended to the prompting message for the various application software installed in terminal to bother, is provided in the present embodiment according to terminal screen Different conditions, the mechanism that the mode of prompting message is adjusted.Specifically, prompting message mode includes closed state and opens Open state;Wherein closed state be when receiving message transmitted by each application software, not in terminal display interface into Row pop-up is shown;Open state is that bullet is carried out in terminal display interface when receiving message transmitted by each application software Window information, to remind user to receive new information.According to the first comparing result and the second comparing result, the cross of terminal is determined When vertical screen state is transverse screen state, then determine that user is not intended to be bothered by various prompting messages, so that the prompt of terminal be disappeared Breath mode adjustment is close pattern, is shown to avoid pop-up is carried out to prompting message in the display interface of transverse screen.Further, it is contemplated that To a variety of pairs of samples of the prompting message reminded all kinds of new informations, as video of the video jukebox software to update is reminded Prompting message, the prompting message etc. that instant communication software reminds the new information received;The effect of different application software Not identical, certain application software have emergency contact, or the effect of work things connection;Such application software is received The new information arrived needs processing in time, thus after being in off state the prompting message mode adjustment of terminal, control centre The new information received to terminal is needed to carry out classification processing, to determine whether with the new information for needing to handle in time.Specifically Ground, when the horizontal/vertical screen state of terminal is transverse screen state, then the step of being in off state the prompting message mode adjustment of terminal Include: later
Step a1 is answered according to corresponding to each application message when detecting that the terminal receives application message With type, counting statistics are carried out to each application message, generate the corresponding message number of each application type;
Step a2 judges to whether there is in each message number greater than the target message quantity for presetting count threshold, if In the presence of the target message quantity for being greater than default count threshold, then the application message for generating each target message quantity is determined as Target application message;
Step a3 judges whether application type corresponding to each target application message is default priority level type, If default priority level type, then show the target application message in the display interface of the terminal.
Further, when control centre detects that terminal receives application message, each application disappears based on the received The corresponding application type of breath carries out counting statistics to each application message, wherein application type corresponding to each application message its The application in substantially each application message institute source.If application message w1, w2 and w3 are respectively as applying transmitted by W1, W2 and W3, then Application type corresponding to w1, w2 and w3 is respectively W1, W2 and W3;And then the number of the application message according to transmitted by each application Amount carries out counting statistics to each application message, generates the message number of each application type.If application message quantity transmitted by W1 It is 4, then message number corresponding to application type W1 is generated as 4.While in order to characterize message number transmitted by types of applications Number, be previously provided with default count threshold;By every message number and the default counting threshold comparison, every message is judged With the presence or absence of the target message quantity for being greater than default count threshold in quantity.It is greater than the target message of default count threshold if it exists Quantity then illustrates that the application message for generating the target message quantity is more, is handled in time such application message needs, from And the application message for generating each target message quantity is determined as target application message.It is greater than default count threshold if it does not exist Target message quantity then illustrates that the application message for generating each message number is few, handles without counting.
Understandably, each application message derives from application, can need in order to characterize the application message for needing to handle in time The application settings in the application message institute source to handle in time are priority with higher, i.e., answer previously according to demand by multiple Type set is default priority level type.After determining each target application message, each target application is judged Whether the application type of message institute source application is default priority level type, that is, judges whether each target application message needs Processing in time.When the application type of institute source application is default priority level type, then it is timely to illustrate that target application message needs Processing, to target application message be shown in the display interface of terminal, in order to which user is handled in time;And when institute source is answered Application type is not default priority level type, then illustrates that target application message does not need to handle in time, thus not by mesh Mark application message is shown in the display interface of terminal, to avoid operation of the user to terminal is bothered.
Step S70, when the horizontal/vertical screen state of the terminal is vertical screen state, then by the prompting message mode of the terminal It is adjusted to open state.
Further, according to the first comparing result and the second comparing result, determine that the horizontal/vertical screen state of terminal is perpendicular When screen state, the currently displayed content of the display interface of terminal screen does not need to be paved with entire screen, has enough spaces Display reminding message;To be open mode by the prompting message mode adjustment of terminal, to receive each application software in terminal When transmitted new information, which is reminded by way of pop-up display reminding message, convenient for user according to mentioning Show that message handles received new information in time.
The present invention provides a kind of computer readable storage medium, the computer-readable recording medium storage have one or More than one program of person, the one or more programs can also be executed by one or more than one processor with In:
First signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and described first is believed Number value and the first preset signals value comparison, generate the first comparing result;
The second signal value and the second preset signals value are compared, generate the second comparing result, and according to described first Comparing result and second comparing result, determine the horizontal/vertical screen state of the terminal;
According to the horizontal/vertical screen state, the switching of horizontal/vertical screen mode is carried out to the display interface of the terminal.
Further, described according to first comparing result and second comparing result, determine the cross of the terminal The step of vertical screen state includes:
By first comparing result and second comparing result respectively with preset reference threshold comparison, if described One comparing result and second comparing result are all larger than preset reference threshold value, then determine the horizontal/vertical screen state of the terminal For transverse screen state;
If first comparing result is less than or equal to the preset reference threshold value, and second comparing result is greater than institute Preset reference threshold value is stated, then the horizontal/vertical screen state of the terminal is determined as vertical screen state;
Alternatively, if first comparing result be greater than the preset reference threshold value, and second comparing result be less than or Equal to the preset reference threshold value, then the horizontal/vertical screen state of the terminal is determined as vertical screen state.
Further, described according to first comparing result and second comparing result, determine the cross of the terminal After the step of vertical screen state, the one or more programs can also be executed by one or more than one processor To be used for:
It is then normal shape by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state State;
It is then power saving shape by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state State.
Further, described when the horizontal/vertical screen state of the terminal is transverse screen state, then by the electricity mould of the terminal Formula is adjusted to the step of normal condition and includes:
When the horizontal/vertical screen state of the terminal is transverse screen state, then by the performance parameter tune of CPU and GPU in the terminal It is whole to arrive maximum value, and read the charge value of the terminal;
Judge whether the charge value is less than default power threshold, if being less than the default power threshold, by the end The screen intensity at end is adjusted to predetermined luminance value,
If being not less than the default power threshold, the screen intensity of the terminal is adjusted to maximum value, it will be described The electricity mode adjustment of terminal is normal condition.
Further, described when the horizontal/vertical screen state of the terminal is vertical screen state, then by the electricity mould of the terminal Formula is adjusted to the step of power down mode and includes:
When the horizontal/vertical screen state of the terminal is vertical screen state, then by the performance parameter tune of CPU and GPU in the terminal It is whole to arrive preset value, and read the journal file in the terminal;
Judge in the journal file with the presence or absence of brightness daily record data corresponding with the vertical screen state, if it exists with institute It states the corresponding brightness daily record data of vertical screen state and determines the screen intensity of the terminal then according to the brightness daily record data;
Brightness daily record data corresponding with the vertical screen state if it does not exist, is adjusted to institute for the screen intensity of the terminal State predetermined luminance value, using by the electricity mode adjustment of the terminal as power down mode.
Further, described according to first comparing result and second comparing result, determine the cross of the terminal After the step of vertical screen state, the one or more programs can also be executed by one or more than one processor To be used for:
It is then to close by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state Closed state;
It is then to open by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state Open state.
Further, described when the horizontal/vertical screen state of the terminal is transverse screen state, then the prompt of the terminal is disappeared After breath mode adjustment the step of being in off state, the one or more programs can also by one or more than one Processor execute to be used for:
When detecting that the terminal receives application message, according to application type corresponding to each application message, Counting statistics are carried out to each application message, generate the corresponding message number of each application type;
Judge to be greater than if it exists in each message number with the presence or absence of the target message quantity for being greater than default count threshold The target message quantity of default count threshold, then be determined as target application for the application message for generating each target message quantity Message;
Judge whether application type corresponding to each target application message is default priority level type, if default Priority level type then shows the target application message in the display interface of the terminal.
Further, described according to the horizontal/vertical screen state, horizontal/vertical screen mode is carried out to the display interface of the terminal The step of switching includes:
When the horizontal/vertical screen state is transverse screen state, then the horizontal/vertical screen mode is determined as transverse screen mode, and by institute The display interface for stating terminal is switched to transverse screen mode and shows;
When the horizontal/vertical screen state is vertical screen state, then the horizontal/vertical screen mode is determined as vertical screen mode, and by institute The display interface for stating terminal is switched to vertical screen mode and shows.
The switching method of computer readable storage medium specific embodiment of the present invention and above-mentioned terminal horizontal/vertical screen mode is each Embodiment is essentially identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of switching method of terminal horizontal/vertical screen mode, which is characterized in that the switching method packet of the terminal horizontal/vertical screen mode Include following steps:
First signal value of reading terminals top antenna and the second signal value of terminal bottom antenna, and by first signal value It is compared with the first preset signals value, generates the first comparing result;
The second signal value and the second preset signals value are compared, generate the second comparing result, and according to first comparison As a result with second comparing result, the horizontal/vertical screen state of the terminal is determined;
According to the horizontal/vertical screen state, the switching of horizontal/vertical screen mode is carried out to the display interface of the terminal.
2. the switching method of terminal horizontal/vertical screen mode as described in claim 1, which is characterized in that described according to described first pair Than result and second comparing result, the step of determining the horizontal/vertical screen state of the terminal, includes:
By first comparing result and second comparing result respectively with preset reference threshold comparison, if described first pair It is all larger than preset reference threshold value than result and second comparing result, then the horizontal/vertical screen state of the terminal is determined as cross Screen state;
If first comparing result is less than or equal to the preset reference threshold value, and second comparing result is greater than described pre- If reference threshold, then the horizontal/vertical screen state of the terminal is determined as vertical screen state;
Alternatively, if first comparing result is greater than the preset reference threshold value, and second comparing result is less than or equal to The horizontal/vertical screen state of the terminal is then determined as vertical screen state by the preset reference threshold value.
3. the switching method of terminal horizontal/vertical screen mode as claimed in claim 2, which is characterized in that described according to described first pair Than result and second comparing result, include: after the step of determining the horizontal/vertical screen state of the terminal
It is then normal condition by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state;
It is then power down mode by the electricity mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state.
4. the switching method of terminal horizontal/vertical screen mode as claimed in claim 3, which is characterized in that the cross when the terminal When vertical screen state is transverse screen state, then include: for the step of normal condition by the electricity mode adjustment of the terminal
When the horizontal/vertical screen state of the terminal is transverse screen state, then the performance parameter of CPU and GPU in the terminal is adjusted to Maximum value, and read the charge value of the terminal;
Judge whether the charge value is less than default power threshold, if being less than the default power threshold, by the terminal Screen intensity is adjusted to predetermined luminance value,
If being not less than the default power threshold, the screen intensity of the terminal is adjusted to maximum value, by the terminal Electricity mode adjustment be normal condition.
5. the switching method of terminal horizontal/vertical screen mode as claimed in claim 3, which is characterized in that the cross when the terminal When vertical screen state is vertical screen state, then include: for the step of power down mode by the electricity mode adjustment of the terminal
When the horizontal/vertical screen state of the terminal is vertical screen state, then the performance parameter of CPU and GPU in the terminal is adjusted to Preset value, and read the journal file in the terminal;
Judge with the presence or absence of brightness daily record data corresponding with the vertical screen state in the journal file, is erected if it exists with described The corresponding brightness daily record data of screen state determines the screen intensity of the terminal then according to the brightness daily record data;
The screen intensity of the terminal is adjusted to described pre- by brightness daily record data corresponding with the vertical screen state if it does not exist If brightness value, using by the electricity mode adjustment of the terminal as power down mode.
6. the switching method of terminal horizontal/vertical screen mode as claimed in claim 2, which is characterized in that described according to described first pair Than result and second comparing result, include: after the step of determining the horizontal/vertical screen state of the terminal
It is then to close shape by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is transverse screen state State;
It is then opening state by the prompting message mode adjustment of the terminal when the horizontal/vertical screen state of the terminal is vertical screen state State.
7. the switching method of terminal horizontal/vertical screen mode as claimed in claim 6, which is characterized in that the cross when the terminal When vertical screen state is transverse screen state, then include: after the step of being in off state the prompting message mode adjustment of the terminal
When detecting that the terminal receives application message, according to application type corresponding to each application message, to each The application message carries out counting statistics, generates the corresponding message number of each application type;
Judge to be greater than if it exists default with the presence or absence of the target message quantity for being greater than default count threshold in each message number The application message for generating each target message quantity is then determined as target application and disappeared by the target message quantity of count threshold Breath;
Judge whether application type corresponding to each target application message is default priority level type, if default preferential Rating-type then shows the target application message in the display interface of the terminal.
8. such as the switching method of the described in any item terminal horizontal/vertical screen modes of claim 1-7, which is characterized in that described according to institute The step of stating horizontal/vertical screen state, carrying out the switching of horizontal/vertical screen mode to the display interface of the terminal include:
When the horizontal/vertical screen state is transverse screen state, then the horizontal/vertical screen mode is determined as transverse screen mode, and by the end The display interface at end is switched to transverse screen mode and shows;
When the horizontal/vertical screen state is vertical screen state, then the horizontal/vertical screen mode is determined as vertical screen mode, and by the end The display interface at end is switched to vertical screen mode and shows.
9. a kind of terminal, which is characterized in that the terminal includes: memory, processor, communication bus and is stored in described deposit The changeover program of terminal horizontal/vertical screen mode on reservoir:
The communication bus is for realizing the connection communication between processor and memory;
The processor is used to execute the changeover program of the terminal horizontal/vertical screen mode, to realize as any in claim 1-8 The step of switching method of terminal horizontal/vertical screen mode described in.
10. a kind of computer readable storage medium, which is characterized in that be stored with terminal cross on the computer readable storage medium Such as claim 1- is realized when the changeover program of the changeover program of vertical screen mode, the terminal horizontal/vertical screen mode is executed by processor Described in any one of 8 the step of the switching method of terminal horizontal/vertical screen mode.
CN201811448324.6A 2018-11-29 2018-11-29 Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode Pending CN109542232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811448324.6A CN109542232A (en) 2018-11-29 2018-11-29 Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811448324.6A CN109542232A (en) 2018-11-29 2018-11-29 Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode

Publications (1)

Publication Number Publication Date
CN109542232A true CN109542232A (en) 2019-03-29

Family

ID=65851168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811448324.6A Pending CN109542232A (en) 2018-11-29 2018-11-29 Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode

Country Status (1)

Country Link
CN (1) CN109542232A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708421A (en) * 2019-09-19 2020-01-17 Oppo广东移动通信有限公司 Mobile terminal screen switching control method and device and storage medium
CN112099741A (en) * 2020-07-30 2020-12-18 华为技术有限公司 Display screen position identification method, electronic device and computer readable storage medium
CN112416491A (en) * 2020-11-12 2021-02-26 联想(北京)有限公司 Display state adjusting method, device, equipment and storage medium
CN113536947A (en) * 2021-06-21 2021-10-22 中山市希道科技有限公司 Face attribute analysis method and device
CN113805999A (en) * 2021-09-22 2021-12-17 深圳康佳电子科技有限公司 Intelligent identification processing method and device for horizontal and vertical screens, intelligent terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718162A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Transverse and vertical screen switching method and apparatus
CN107493392A (en) * 2017-09-12 2017-12-19 维沃移动通信有限公司 The transverse screen mode of mobile terminal and the matching process of antenna mode and mobile terminal
CN108021302A (en) * 2017-11-30 2018-05-11 维沃移动通信有限公司 A kind of display methods of application icon, terminal and computer-readable recording medium
CN108737629A (en) * 2017-04-20 2018-11-02 中兴通讯股份有限公司 A kind of right-hand man's recognition methods and its device, mobile terminal
CN108897417A (en) * 2018-06-29 2018-11-27 努比亚技术有限公司 Operating mode method of adjustment, mobile terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718162A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Transverse and vertical screen switching method and apparatus
CN108737629A (en) * 2017-04-20 2018-11-02 中兴通讯股份有限公司 A kind of right-hand man's recognition methods and its device, mobile terminal
CN107493392A (en) * 2017-09-12 2017-12-19 维沃移动通信有限公司 The transverse screen mode of mobile terminal and the matching process of antenna mode and mobile terminal
CN108021302A (en) * 2017-11-30 2018-05-11 维沃移动通信有限公司 A kind of display methods of application icon, terminal and computer-readable recording medium
CN108897417A (en) * 2018-06-29 2018-11-27 努比亚技术有限公司 Operating mode method of adjustment, mobile terminal and computer readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708421A (en) * 2019-09-19 2020-01-17 Oppo广东移动通信有限公司 Mobile terminal screen switching control method and device and storage medium
CN112099741A (en) * 2020-07-30 2020-12-18 华为技术有限公司 Display screen position identification method, electronic device and computer readable storage medium
CN112416491A (en) * 2020-11-12 2021-02-26 联想(北京)有限公司 Display state adjusting method, device, equipment and storage medium
CN112416491B (en) * 2020-11-12 2022-11-22 联想(北京)有限公司 Display state adjusting method, device, equipment and storage medium
CN113536947A (en) * 2021-06-21 2021-10-22 中山市希道科技有限公司 Face attribute analysis method and device
CN113805999A (en) * 2021-09-22 2021-12-17 深圳康佳电子科技有限公司 Intelligent identification processing method and device for horizontal and vertical screens, intelligent terminal and storage medium
CN113805999B (en) * 2021-09-22 2023-12-08 深圳康佳电子科技有限公司 Intelligent identification processing method and device for horizontal and vertical screens, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109542232A (en) Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode
CN108989563A (en) Display methods, mobile terminal and the computer readable storage medium of double-sided screen
CN108391190B (en) A kind of noise-reduction method, earphone and computer readable storage medium
CN109144441A (en) A kind of screen adjustment method, terminal and computer readable storage medium
CN109634542A (en) A kind of switching display control method, terminal and computer readable storage medium
CN109538538A (en) A kind of processing method of fan noise, mobile terminal and storage medium
CN109005574A (en) Cell selecting method, mobile terminal and computer readable storage medium
CN108965602A (en) Application program display methods, mobile terminal and computer readable storage medium
CN107632886A (en) A kind of switching method, terminal and the computer-readable recording medium of terminal operating pattern
CN109327581A (en) A kind of downloading switching device and mobile terminal
CN109104219A (en) Multiple antennas switching method, mobile terminal and computer storage medium
CN108459806A (en) terminal control method, terminal and computer readable storage medium
CN108512991A (en) A kind of based reminding method, mobile terminal and computer readable storage medium
CN109618048A (en) Game is anti-to bother method, apparatus, mobile terminal and readable storage medium storing program for executing
CN109086101A (en) Terminal application software starts method, terminal and computer readable storage medium
CN110069122A (en) A kind of screen control method, terminal and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN108650399A (en) A kind of volume adjusting method, mobile terminal and computer readable storage medium
CN109545120A (en) Screen photosensitive sensors adjusting method, mobile terminal and computer readable storage medium
CN109862184A (en) Terminal and its resource management-control method, computer readable storage medium
CN108696909A (en) Based reminding method, terminal and the computer readable storage medium of network connection
CN109522276A (en) Application icon management method, terminal and computer readable storage medium
CN109669512A (en) A kind of display control method, Folding screen terminal and computer readable storage medium
CN108958932A (en) A kind of control method of background application, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329

RJ01 Rejection of invention patent application after publication