CN104866136B - A kind of method and device of determining terminal operating mode - Google Patents

A kind of method and device of determining terminal operating mode Download PDF

Info

Publication number
CN104866136B
CN104866136B CN201510236061.2A CN201510236061A CN104866136B CN 104866136 B CN104866136 B CN 104866136B CN 201510236061 A CN201510236061 A CN 201510236061A CN 104866136 B CN104866136 B CN 104866136B
Authority
CN
China
Prior art keywords
touch screen
screen area
contact
area
operation 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.)
Active
Application number
CN201510236061.2A
Other languages
Chinese (zh)
Other versions
CN104866136A (en
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 CN201510236061.2A priority Critical patent/CN104866136B/en
Publication of CN104866136A publication Critical patent/CN104866136A/en
Application granted granted Critical
Publication of CN104866136B publication Critical patent/CN104866136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The present invention discloses a kind of method and device of determining terminal operating mode, belongs to contact action technical field.Process includes: to detect the contact in terminal left border touch screen area and Right Border touch screen area;Calculate the quantity and area of the contact in left border touch screen area and Right Border touch screen area;Current operation mode is determined according to calculated result;Receive the confirmation instruction of the operation mode.Using present invention determine that terminal operating mode is greatly saved the resource of terminal.

Description

A kind of method and device of determining terminal operating mode
Technical field
The present invention relates to contact action technical field more particularly to a kind of method and devices of determining terminal operating mode.
Background technique
Mobile terminal with touch screen has become indispensable a part in people's life since its is easy to use, such as Touch-screen mobile phone, touch screen reader, touch screen camera etc..Operating habit when different users is using mobile terminal is not Together, some users be accustomed to one-handed performance, such as with the right hand or left-handed mobile terminal and operated or hands grasping move Dynamic terminal is operated, and in order to be applicable in various operating habits, the prior art usually first judges the gripping mode of mobile terminal, then According to different gripping model selections, different touch screen display patterns is shown, so that user be facilitated to operate.But it is existing There is technology to judge that the process of the gripping mode of mobile terminal is generally all more complicated, often occupy the vast resources of mobile terminal, The speed of service of influence system, and the case where be easy to appear misjudgment.
Summary of the invention
It is a primary object of the present invention to propose a kind of method and device of determining terminal operating mode, it is intended to solve existing The determination process of technology terminal operating mode is complicated, occupies the excessive defect of resource.
To achieve the above object, the method for a kind of determining terminal operating mode provided by the invention, the method includes steps It is rapid:
Detect the left border touch screen area of terminal and the contact in Right Border touch screen area;
Calculate the quantity and area of the contact in left border touch screen area and Right Border touch screen area;
Current operation mode is determined according to calculated result;
Receive the confirmation instruction of the operation mode.
A kind of method as described above is provided, the method also includes:
According to current operation mode, display pattern corresponding with the operation mode is called.
A kind of method as described above is provided, the method also includes:
When detecting that operation mode changes, current display pattern is switched to and the operation mode pair after variation The display pattern answered.
A kind of method as described above is provided, current operation mode is determined according to calculated result, comprising:
When left border touch screen area contact quantity be greater than Right Border touch screen area contact quantity and When the area of each contact in left border touch screen area is respectively less than the area of the contact in Right Border touch screen area, determination is worked as Preceding operation mode is right-handed mode;
When Right Border touch screen area contact quantity be greater than left border touch screen area contact quantity and When the area of each contact in Right Border touch screen area is respectively less than the contact area in left border touch screen area, determine current Operation mode is left-handed mode;
Otherwise, it determines current mode is non-singlehanded mode.
A kind of method as described above is provided, before the reception operation mode confirmation instruction, method further include:
Prompt user confirms current operation mode.
In addition, to achieve the above object, the present invention also proposes a kind of device of determining terminal operating mode, described device packet It includes:
Detection unit, for detecting the left border touch screen area of terminal and the contact in Right Border touch screen area;
Computing unit, for calculate the contact in left border touch screen area and Right Border touch screen area quantity and Area;
Pattern determining unit, for determining current operation mode according to the calculated result of the computing unit;
Receiving unit, the confirmation for receiving the operation mode instruct.
A kind of device as described above, described device are provided further include:
Display unit, for calling display pattern corresponding with the operation mode according to current operation mode.
A kind of device as described above is provided, the display unit is also used to when detecting that operation mode changes, Current display pattern is switched to display pattern corresponding with the operation mode after variation.
A kind of device as described above, the pattern determining unit, for the calculating knot according to the computing unit are provided Fruit determines that current operation mode includes: when the quantity of the contact in left border touch screen area is greater than the Right Border touch screen The area of each contact in the quantity of the contact in area and left border touch screen area is respectively less than the touching in Right Border touch screen area When the area of point, determine that current mode is right-handed mode, when the quantity of the contact in Right Border touch screen area is greater than institute The area for stating the quantity of the contact in left border touch screen area and each contact in Right Border touch screen area is respectively less than the left side When the contact area in frame touch screen area, determine that current mode is left-handed mode, otherwise, it determines current mode is non-list Fingerprint formula.
A kind of device as described above, described device are provided further include:
Prompt unit, for prompting user to confirm current operation mode before receiving operation mode confirmation instruction.
The method and device of determining terminal operating mode proposed by the present invention need to only detect left border touch screen area and right side Then the contact in frame touch screen area just can according to the quantity and area of left border touch screen area and the contact in Right Border touch screen area Enough determine current operation mode, determination process is very simple, is greatly saved the resource of terminal, also, work as having determined After preceding operation mode, display pattern can be adjusted according to current operation mode, and before calling different display patterns, Operation mode can be confirmed again by user, not only have followed the wish of user, but also avoid because operation mode is sentenced Dislocation is accidentally inconvenient to user's bring.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of flow chart of the method for determining terminal operating mode that first embodiment of the invention provides;
Fig. 4 is touch event report flow figure in method shown in Fig. 3;
Fig. 5 is a kind of schematic diagram of special subregion in method shown in Fig. 3
Fig. 6 is the division schematic diagram in left border touch screen area and Right Border touch screen area in method shown in Fig. 3;
Fig. 7 is the flow chart for the method that the another kind that second embodiment of the invention provides determines terminal operating mode;
Fig. 8 is right-handed mode schematic diagram in second embodiment of the invention;
Fig. 9 is left-handed mode schematic diagram in second embodiment of the invention;
Figure 10 is non-singlehanded pattern diagram in second embodiment of the invention;
Figure 11 is a kind of module diagram of the device for determining terminal operating mode that third embodiment of the invention provides.
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.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121 Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110 It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122 Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or Person's interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other calling communications (incomingcommunication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
As shown in figure 3, a kind of method that first embodiment of the invention proposes determining terminal operating mode, comprising:
The contact of S310, the left border touch screen area for detecting terminal and Right Border touch screen area.
In practical application, the touch screen of terminal can be divided into two subregions, and set for one input of each subregion distribution Standby, a subregion in two subregions is special subregion, and the point that system can report the area carries out specially treated.Specific implementation Method includes the following steps:
It is respectively that two regions distribute two by input_allocate_device () when touch screen drives and initializes Input equipment, and two input equipments are registered by input_register_device (), it include a spy in two regions Different subregion;
It receives touch control operation and passes through input corresponding to the special subregion when the touch control operation is in the special subregion Equipment reports the touch control operation;
Specially treated is carried out to the touch control operation.
In practical application, the interface can also be passed through on upper layer in the interface in the driving layer setting and modifying special subregion Modify the special subregion.
It should be noted that the upper layer that the present invention is somebody's turn to do is often referred to frame (Framework) layer, application layer etc., mobile whole In the system at end, such as the custom-built systems such as android, IOS, generally include bottom (physical layer drives layer) and upper layer (frame Layer, application layer), the trend of signal stream are as follows: physical layer (touch panel) receives the touch control operation of user, and physical depression is changed into TP is transferred to driving layer by electric signal TP, and driving layer parses the position of pressing, obtains the specific coordinate of location point, hold The parameter is uploaded to ccf layer by continuous time, pressure and other parameters, ccf layer with drive layer communication can by corresponding interface come It realizes, ccf layer receives the input equipment (input) of driving layer, the input equipment is parsed, to Response to selection or be not responding to The input equipment, and effective input is passed up to which specific application, to meet application layer according to different events Execute different application operatings.
Specific touch event report flow, please refers to Fig. 4.
It drives layer to receive touch event by physical hardware such as touch screen, and judges that touch control operation occurs in the area A or C Area, and pass through the area A or the area C device file node reported event.Native floor from the area A, the area C device file in read event, And the event in the area A, the area C is handled, if coordinate calculates, is distinguished by event of the device id to the area A, C, finally distinguished Distribute the area A and the area C event.Wherein the area A event walks primary process, handles by common mode the area A event, that is, pass through The mechanism of multichannel is handled;The area C event is then distributed from the area the C designated lane for being registered to Native floor in advance, by The input of the port Native, system port are exported to the event ends with system service of the area C, monitor the area C by monitor (listener) Event, then external interface is received by the area C event and reports to each application.The present invention can using the driving layer identification code of mobile terminal To realize freely customizing for the i.e. special subregion in false-touch prevention area, therefore the realization of technical solution of the present invention is solid in driving layer In part, this makes the software design of equipment get rid of the constraint of touch screen IC supplier, and realization is more flexible, and cost is lower.
In practical application, the parameters such as the quantity to special subregion, position, size can also be needed to carry out certainly according to upper layer By customizing and adjusting.Special subregion i.e. of the invention is not fixed and invariable, but can cutting with display interface or application It changes and ensues change, the change including quantity, position and size.
Special subregion is preferably in rectangle, naturally it is also possible to is set as needed as other shapes, such as half of ellipse.When When special subregion is rectangle, interface can be set as Set_zone (id, X0, Y0, X1, Y1) in driving layer.Wherein, such as Fig. 5 institute Show, (X0, Y0) and (X1, Y1) is respectively the coordinate of special 20 two pairs of angular vertexs of subregion, and two determine the coordinate of angular vertex The position of the rectangle and size.Position and the size of special subregion 20 can be modified in driving layer or upper layer;Id indicates special The serial number of subregion can adjust the quantity of special subregion by the serial number.
As shown in fig. 6, when special subregion is divided in the bezel locations of touch screen, i.e. CIt is leftAnd CIt is rightArea, the special subregion It becomes as frame touch screen area, entire touch screen middle section is the area A.For the terminal of Rimless or narrow frame, can touch Platen edge marks off a region, which becomes virtual frame touch screen area.Stain indicates the contact in frame touch screen area in figure,
S320, the quantity and area for calculating the left border touch screen area and the contact in the Right Border touch screen area.
S330, current operation mode is determined according to calculated result.
Specifically, determining that current operation mode includes: when the contact in the left border touch screen area according to calculated result Quantity is greater than the quantity of the contact in the Right Border touch screen area and the area of each contact in the left border touch screen area respectively less than should When the area of the contact in Right Border touch screen area, determine that current mode is right-handed mode;
When the quantity of the contact in the Right Border touch screen area is greater than the quantity of the contact in the left border touch screen area and the right side When the area of each contact in side frame touch screen area is respectively less than the contact area in the left border touch screen area, current mode is determined For left-handed mode;
Otherwise, it determines current mode is non-singlehanded mode.
S340, the confirmation instruction for receiving the operation mode.
Specifically, inputting operation mode again by user after it confirmed current operation mode according to calculated result Confirmation instruction, the erroneous judgement to operation mode can be prevented.
Further, in a preferred scheme, this method further include:
According to current operation mode, display pattern corresponding with the operation mode is called.
Further, in a preferred scheme, this method further include:
When detecting that operation mode changes, current display pattern is switched to and the operation mode pair after variation The display pattern answered.
This this this it is further, in a preferred scheme, before reception operation mode confirmation instructs, method is also wrapped It includes:
Prompt user confirms current operation mode.
The method of the determination terminal operating mode of the present embodiment need to only detect left border touch screen area and Right Border touch screen Then the contact in area just can determine and work as according to the quantity and area of left border touch screen area and the contact in Right Border touch screen area Preceding operation mode, determination process is very simple, is greatly saved the resource of terminal, also, current operation mould is being determined After formula, can the confirmation instruction of operation mode based on the received exclude the erroneous judgement that is likely to occur, so according to current behaviour When operation mode adjusts display pattern, operation mode can be confirmed again by user, not only have followed the wish of user, and And it avoids and gives user's bring inconvenience because operation mode judges incorrectly.
On the basis of the above embodiments, second embodiment of the invention provides another side for determining terminal operating mode Method, referring to Fig. 7, the present embodiment is illustrated so that current display pattern is corresponding with non-singlehanded mode as an example, method flow packet It includes:
The contact of S710, detection terminal left border touch screen area and Right Border touch screen area.
S720, the quantity and area for calculating the left border touch screen area and the contact in the Right Border touch screen area.
S730, judge that the quantity of the contact in left border touch screen area is greater than the quantity of the contact in the Right Border touch screen area, And the area of each contact in left border touch screen area is respectively less than the area of the contact in the Right Border touch screen area, if so, executing Otherwise step S731 executes step S740;
In practical application, when user's one-handed performance, generally use four finger holding mobile phones, with thumb to touch screen into Row operation, thumb refers to and separates at root with side at this time.Referring to Fig. 8, left side can be detected when user holds terminal with the right hand Frame touch screen area will test to four contacts, and a contact, and the face of the contact in left side can be detected in Right Border touch screen Area of the product than the contact on right side is small, at this time it is believed that current operation mode is right-handed mode.
S731, judge whether to receive operation mode confirmation instruction, if receiving operation mode confirmation instruction, execute step S732。
The step is anti-erroneous judgement operation.In practical application, after the current operation mode of determination, it can be mentioned by pop-up Show dialog box or prompts user to confirm current operation mode by modes such as voice promptings.User, can in confirmation To input operation mode confirmation instruction by preset validation testing, such as long-pressing volume enlargement key two seconds or to click prompt be pair Talk about the acknowledgement key etc. of frame.It is of course also possible to which cancelling operation mode by the input of preset validation testing cancels instruction.
S732, calling display pattern corresponding with right-handed mode.
Referring to Fig. 8, display mould corresponding with right-handed mode will be called when determining current mode is right-handed mode It will show convenient for the operation interface breviary of right hand operation close to (the i.e. behaviour area of hand thumb at right touch screen lower right likes: Domain).
It should be noted that in practical application, only current mode and display pattern not to it is corresponding when just need to call Or switching display pattern corresponding with current mode.
S740, judge whether the quantity of the contact in Right Border touch screen area is greater than the number of the contact in the left border touch screen area Whether the area of each contact in amount and Right Border touch screen area is respectively less than the area of the contact in the left border touch screen area, if It is to execute step S741.
Referring to Fig. 9, left border touch screen area, which can be detected, will test to four touchings when user holds terminal with the right hand Point, and a contact can be detected in Right Border touch screen, and area of the area of the contact in left side than the contact on right side is small, Determine that current operation mode is right-handed mode at this time.
S741, judge whether to receive operation mode confirmation instruction, if receiving operation mode confirmation instruction, execute step S742。
S742, calling display pattern corresponding with left-handed mode.
Referring to Fig. 9, display mould corresponding with left-handed mode will be called when determining current mode is right-handed mode It will show convenient for the operation interface breviary of left-handed operation close to (the i.e. behaviour area of left hand thumb at left touch screen lower right likes: Domain).
In practical application, whether the operation mode that terminal can be monitored in real time changes, when terminal operating mode is from a left side When fingerprint formula or right-handed mode become non-singlehanded mode, then following steps can be continued to execute:
Judge whether to receive operation mode confirmation instruction;
If receiving operation mode confirmation instruction, display pattern corresponding with right-handed mode is called.
Referring to Fig. 10, left border touch screen area and Right Border touch screen can be detected when user's hands grasping terminal Area only one contact, that is, be unsatisfactory for the condition for right-handed mode, be also unsatisfactory for the condition of left-handed mode, then think to use at this time Singlehanded operation mode has been exited at family.It should be noted that when terminal is placed in some cases such as desktop or special bracket, It will appear the condition for being unsatisfactory for one-handed performance, for convenience, non-one-hand operating format is referred to as non-singlehanded mould by the present invention Formula.
When determining current mode is non-singlehanded mode, then operation interface is displayed in full screen.
It, can if detect that operation mode becomes non-singlehanded mode from left-handed mode or right-handed mode in practical application Current operation interface is directly switched to full screen display.
The method of the determination terminal operating mode of the present embodiment need to only detect left border touch screen area and Right Border touch screen Then the contact in area just can determine and work as according to the quantity and area of left border touch screen area and the contact in Right Border touch screen area Preceding operation mode, determination process is very simple, is greatly saved the resource of terminal.Determined current mode it Afterwards, can be switched between different display patterns according to current operation mode, call different display pattern it Before, operation mode can be confirmed again by user, not only have followed the wish of user, but also avoid because of operation mode It is inconvenient to user's bring to judge incorrectly.
On the basis of the above embodiments, the present invention further provides a kind of device of determining terminal operating mode, references Figure 11, the device include:
Detection unit 1101, for detecting the left border touch screen area of terminal and the contact in Right Border touch screen area;
Computing unit 1102, for calculate the contact in the left border touch screen area and the Right Border touch screen area quantity and Area;
Pattern determining unit 1103, for determining current operation mode according to the calculated result of the computing unit 1102, It include: when the quantity of the contact in the left border touch screen area is greater than the quantity and the left side of the contact in the Right Border touch screen area When the area of each contact in frame touch screen area is respectively less than the area of the contact in the Right Border touch screen area, determine that current mode is Right-handed mode, when the quantity of the contact in the Right Border touch screen area is greater than the quantity of the contact in the left border touch screen area and the right side When the area of each contact in side frame touch screen area is respectively less than the contact area in the left border touch screen area, current mode is determined For left-handed mode, otherwise, it determines current mode is non-singlehanded mode.
Receiving unit 1105, for receiving operation mode confirmation instruction.It further, should in a preferred scheme Device further include: display unit 1104, for calling display mould corresponding with the operation mode according to current operation mode Formula.
Further, in a preferred scheme, display unit 1104 is also used to detecting that operation mode becomes When change, current display pattern is switched to display pattern corresponding with the operation mode after variation.
This this it is further, in a preferred scheme, the device further include: prompt unit 1106, for receiving Before operation mode confirmation instruction, user is prompted to confirm current operation mode.
The device of the determination terminal operating mode of the present embodiment, detection unit need to only detect left border touch screen area and right side The contact in frame touch screen area, the left border touch screen area then calculated by pattern determining unit according to computing unit and Right Border The quantity and area of the contact in touch screen area just can determine current operation mode, and determination process is very simple, greatly save The resource of terminal.After current mode has been determined, display unit can be according to current operation mode different Switched between display pattern, and before calling different display pattern, can by user again to operation mode into Row confirmation, not only has followed the wish of user, but also avoids and give user's bring inconvenience because operation mode judges incorrectly.
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 one ... ", it is not excluded that including There is also other identical elements in the process, method of the 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 device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of determining terminal operating mode, which is characterized in that the method includes the steps:
Detect the left border touch screen area of terminal and the contact in Right Border touch screen area, comprising:
The touch-control that the input equipment registered by left border touch screen area and the input equipment of Right Border touch screen area registration report The left border touch screen area of operation detection terminal and the contact in Right Border touch screen area, left border touch screen area and right edge Frame touch screen area is the special area marked off at the left and right side frame of the touch screen of the terminal in advance;
Calculate the quantity and area of the contact in left border touch screen area and Right Border touch screen area;
Current operation mode is determined according to calculated result;
Receive the confirmation instruction of the operation mode.
2. the method according to claim 1, wherein the method also includes:
According to current operation mode, display pattern corresponding with the operation mode is called.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
When detecting that operation mode changes, current display pattern is switched to corresponding with the operation mode after variation Display pattern.
4. according to the method described in claim 3, it is characterized in that, described determine current operation mode according to calculated result, Include:
When the quantity of the contact in left border touch screen area is greater than the quantity of contact in Right Border touch screen area and described When the area of each contact in left border touch screen area is respectively less than the area of the contact in Right Border touch screen area, current behaviour is determined Operation mode is right-handed mode;
When the quantity of the contact in Right Border touch screen area is greater than the quantity of contact in left border touch screen area and described When the area of each contact in Right Border touch screen area is respectively less than the contact area in left border touch screen area, current operation is determined Mode is left-handed mode;
Otherwise, it determines current mode is non-singlehanded mode.
5. according to the method described in claim 4, it is characterized in that, method is also before reception operation mode confirmation instruction Include:
Prompt user confirms current operation mode.
6. a kind of device of determining terminal operating mode, which is characterized in that described device includes:
Detection unit, for detecting the left border touch screen area of terminal and the contact in Right Border touch screen area, comprising: pass through left side The touch control operation detection terminal that the input equipment of frame touch screen area registration and the input equipment of Right Border touch screen area registration report Left border touch screen area and Right Border touch screen area contact, left border touch screen area and Right Border touch screen area are pre- The special area first marked off at the left and right side frame of the touch screen of the terminal;
Computing unit, for calculating quantity and the face of the contact in left border touch screen area and Right Border touch screen area Product;
Pattern determining unit, for determining current operation mode according to the calculated result of the computing unit;
Receiving unit, the confirmation for receiving the operation mode instruct.
7. device according to claim 6, which is characterized in that described device further include:
Display unit, for calling display pattern corresponding with the operation mode according to current operation mode.
8. device according to claim 7, which is characterized in that the display unit is also used to detecting operation mode When changing, current display pattern is switched to display pattern corresponding with the operation mode after variation.
9. device according to claim 8, which is characterized in that the pattern determining unit, for single according to the calculating The calculated result of member determines that current operation mode includes: when the quantity of the contact in left border touch screen area is greater than the right side The quantity of the contact in the side frame touch screen area and area of each contact in left border touch screen area is respectively less than the Right Border When the area of the contact in touch screen area, determine that current mode is right-handed mode, when the contact in Right Border touch screen area Quantity is greater than the quantity of the contact in left border touch screen area and the area of each contact in Right Border touch screen area is small When the contact area in left border touch screen area, determine that current mode is left-handed mode, otherwise, it determines current operation Mode is non-singlehanded mode.
10. device according to claim 9, which is characterized in that described device further include:
Prompt unit, for prompting user to confirm current operation mode before receiving operation mode confirmation instruction.
CN201510236061.2A 2015-05-11 2015-05-11 A kind of method and device of determining terminal operating mode Active CN104866136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510236061.2A CN104866136B (en) 2015-05-11 2015-05-11 A kind of method and device of determining terminal operating mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510236061.2A CN104866136B (en) 2015-05-11 2015-05-11 A kind of method and device of determining terminal operating mode

Publications (2)

Publication Number Publication Date
CN104866136A CN104866136A (en) 2015-08-26
CN104866136B true CN104866136B (en) 2019-02-15

Family

ID=53912010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510236061.2A Active CN104866136B (en) 2015-05-11 2015-05-11 A kind of method and device of determining terminal operating mode

Country Status (1)

Country Link
CN (1) CN104866136B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700882B (en) * 2016-01-12 2019-03-19 北京小米移动软件有限公司 Terminal control method and device
CN105930004B (en) * 2016-04-22 2019-05-03 Oppo广东移动通信有限公司 The recognition methods of terminal use pattern and device
CN108271416B (en) * 2016-10-31 2021-09-10 深圳市汇顶科技股份有限公司 Handheld gesture detection method, capacitive touch device and electronic equipment
CN106445351A (en) * 2016-11-19 2017-02-22 奇酷互联网络科技(深圳)有限公司 Interface control method and device
CN108803998A (en) * 2017-04-28 2018-11-13 国基电子(上海)有限公司 Handheld device and its operation interface control method
CN107800177B (en) * 2017-12-07 2021-06-22 奇酷互联网络科技(深圳)有限公司 Charging switching method and device, readable storage medium and mobile terminal
CN110351424A (en) * 2019-05-30 2019-10-18 华为技术有限公司 Gesture interaction method and terminal
CN111124100A (en) * 2019-12-17 2020-05-08 上海摩软通讯技术有限公司 Message response method of curved screen, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101601262A (en) * 2007-01-12 2009-12-09 诺基亚公司 The mobile communication terminal that comprises the motion sensor of the locking and unlocking user interface
CN101714055A (en) * 2008-10-06 2010-05-26 三星电子株式会社 Method and apparatus for displaying graphical user interface depending on a user's contact pattern
CN103140822A (en) * 2010-10-13 2013-06-05 Nec卡西欧移动通信株式会社 Mobile terminal device and display method for touch panel in mobile terminal device
CN104216657A (en) * 2014-09-05 2014-12-17 深圳市中兴移动通信有限公司 Mobile terminal and operating method thereof
CN104252292A (en) * 2014-08-29 2014-12-31 惠州Tcl移动通信有限公司 Display method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9041649B2 (en) * 2010-05-18 2015-05-26 Panasonic Intellectual Property Corportion of America Coordinate determination apparatus, coordinate determination method, and coordinate determination program
EP3101995A4 (en) * 2014-01-28 2017-05-31 Huawei Device Co., Ltd. Terminal equipment processing method and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101601262A (en) * 2007-01-12 2009-12-09 诺基亚公司 The mobile communication terminal that comprises the motion sensor of the locking and unlocking user interface
CN101714055A (en) * 2008-10-06 2010-05-26 三星电子株式会社 Method and apparatus for displaying graphical user interface depending on a user's contact pattern
CN103140822A (en) * 2010-10-13 2013-06-05 Nec卡西欧移动通信株式会社 Mobile terminal device and display method for touch panel in mobile terminal device
CN104252292A (en) * 2014-08-29 2014-12-31 惠州Tcl移动通信有限公司 Display method and mobile terminal
CN104216657A (en) * 2014-09-05 2014-12-17 深圳市中兴移动通信有限公司 Mobile terminal and operating method thereof

Also Published As

Publication number Publication date
CN104866136A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN104866136B (en) A kind of method and device of determining terminal operating mode
CN104750420B (en) Screenshotss method and device
CN104902097B (en) Adjusting method, device and the mobile terminal of mobile terminal parameter
CN105094613B (en) Terminal control mechanism and method
CN104735255B (en) Multi-screen display method and system
CN105094533B (en) Enter the method and mobile terminal of singlehanded mode based on multifunction push key
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN104866135B (en) A kind of utilization touch screen frame is input into the method and device of numerical chracter
CN104898959B (en) A kind of method and apparatus for adjusting virtual push button position
CN106453963A (en) Mobile terminal antenna switching device and method
CN104850799B (en) The method and mobile terminal of a kind of data in hiding mobile terminal
CN104820555B (en) The method, apparatus and terminal of horizontal/vertical screen switching
CN104850343B (en) Start the method and apparatus of one-hand operating format
CN104917879B (en) A kind of method, device and mobile terminal for cancelling alarm clock calling
CN104731411B (en) The click action recognition methods of mobile terminal and device
CN104915127B (en) A kind of membrane keyboard method to set up and device and mobile terminal
CN105141738B (en) A kind of volume adjusting method and device
CN105278752B (en) A kind of touch-operated device and method
CN104821990B (en) Intelligent terminal realizes the method and intelligent terminal of shutdown alarm clock
CN105739693A (en) Method and device for horizontally and vertically switching screen and mobile terminal
CN105739896B (en) Mobile terminal and its touch operation method
CN106775388A (en) A kind of application program launching method and mobile terminal based on edge gesture
CN106168879A (en) A kind of method that double-sided screen is mutual and terminal
CN106131274B (en) Mobile terminal control device and method
CN106406621B (en) A kind of mobile terminal and its method for handling touch control operation

Legal Events

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