CN109782960B - Touch screen point reporting area switching method, electronic device and computer readable storage medium - Google Patents

Touch screen point reporting area switching method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN109782960B
CN109782960B CN201910122732.0A CN201910122732A CN109782960B CN 109782960 B CN109782960 B CN 109782960B CN 201910122732 A CN201910122732 A CN 201910122732A CN 109782960 B CN109782960 B CN 109782960B
Authority
CN
China
Prior art keywords
touch screen
parameter value
report point
point area
target
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
CN201910122732.0A
Other languages
Chinese (zh)
Other versions
CN109782960A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910122732.0A priority Critical patent/CN109782960B/en
Publication of CN109782960A publication Critical patent/CN109782960A/en
Application granted granted Critical
Publication of CN109782960B publication Critical patent/CN109782960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a touch screen touch area switching method, an electronic device and a computer readable storage medium, and relates to the technical field of communication, wherein the method is applied to the electronic device with a touch screen, the touch screen is divided into a plurality of touch areas, and the method comprises the following steps: the upper layer processing module writes a report point switching control node in a preset position; the touch screen driving module enables a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node; the touch screen driving module configures the range of the target report point area according to a preset configuration rule. According to the touch screen switching method and device.

Description

Touch screen point reporting area switching method, electronic device and computer readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a touch screen touch area switching method, an electronic device, and a computer-readable storage medium.
Background
For the current trend mobile terminal, a full-screen, a flexible screen and the like become mainstream. The flexible screen is characterized in that the flexible screen can be folded to realize that one screen is used as two screens, but in the existing traditional touch screen point reporting technology, point reporting is basically carried out on the basis of touch points on a whole touch screen, and the size of a point reporting area is basically based on the size of the whole touch screen. Therefore, how to freely switch to enable different report areas of the display screen is a great technical problem to be solved currently.
Disclosure of Invention
The embodiment of the application provides a touch screen touch point reporting area switching method, an electronic device and a computer readable storage medium, which can be used for realizing free switching of different touch point reporting areas of a touch screen.
An embodiment of the present application provides a touch screen touch area switching method, which is applied to an electronic device having a touch screen, where the touch screen is divided into a plurality of touch areas, and the method includes: the upper layer processing module writes a report point switching control node in a preset position; the touch screen driving module enables a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node; and the touch screen driving module configures the range of the target report point area according to a preset configuration rule.
An aspect of an embodiment of the present application further provides an electronic apparatus, including: the write-in module is used for writing the report point switching control node in a preset position through the upper layer processing module; the enabling module is used for enabling a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node through the touch screen driving module; and the configuration module is used for configuring the range of the target report point area through the touch screen driving module according to a preset configuration rule.
An aspect of an embodiment of the present application further provides an electronic apparatus, including: the touch screen switching method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the touch screen area switching method is realized.
An aspect of the embodiments of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for switching touch screen touch spot areas is implemented as provided in the foregoing embodiments.
In the above embodiments, the upper processing module is enabled to write the report switching control node at a preset position when the upper processing module needs to switch the target report area by providing the report switching control node to the upper processing module and giving node authority to the upper processing module, so that the touch screen driving module can be triggered to enable the target report area corresponding to the parameter value according to the parameter value of the report switching control node, and configure the range of the target report area according to the preset configuration rule, thereby realizing free switching of different report areas in the touch screen, particularly the flexible touch screen, and improving flexibility and accuracy of touch control.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation process of a touch screen touch area switching method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a touch screen touch area switching method according to another embodiment of the present application;
fig. 3 is a schematic diagram illustrating a flexible touch screen dividing a plurality of touch areas in a touch screen touch area switching method according to an embodiment of the present disclosure;
fig. 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Please refer to fig. 1, which is a schematic flow chart illustrating an implementation of a touch screen touch area switching method according to an embodiment of the present application. The method can be applied to electronic devices with flexible touch screens, such as mobile phones, tablet computers, smart watches, smart cameras and other electronic devices with flexible capacitive touch screens, which can process data in movement. As shown in fig. 1, the method mainly includes:
s101, an upper layer processing module writes a report point switching control node in a preset position;
s102, enabling a target report point area corresponding to a parameter value of a report point switching control node by a touch screen driving module according to the parameter value;
s103, the touch screen driving module configures the range of the target report point area according to a preset configuration rule.
A flexible Touch screen, such as a flexible capacitive Touch screen (TP), is a foldable screen, i.e. can be folded for use. The upper layer processing module may be, for example, an upper layer application dedicated to executing corresponding logic according to a touch area of the touch screen. The touch screen driver module may be, for example, a hardware driver of the flexible TP.
As can be understood, when the flexible touch screen is folded for use, if the entire screen is allowed to report points, the problem of false touch may be caused, so that it is necessary to limit the screen area on which points can be reported to only a part of the screen area, that is, the target point reporting area, for example, the screen area facing the user. The touch point reporting method comprises the steps that static point reporting refers to a touch point needing reporting or a position point in a touch screen, and dynamic point reporting refers to reporting of the touch point.
In a practical application, when the touch screen is folded, the upper processing module may determine a target report area according to the size of the touch area in different report areas in the touch screen, and then trigger the touch screen driving module to switch the parameter value of the control node according to the written report by writing the report switching control node at a preset position, for example,/proc, so as to enable the target report area corresponding to the parameter value, and configure the range of the target report area according to a preset configuration rule.
A report switching control node, for example, a TP half-screen report node (hs _ report _ mode _ enable), is a device file node. Under the Linux framework, the upper layer processing module can communicate with the bottom layer driving module through the device file node.
The touch screen driving module configures the range of the target report point area according to a preset configuration rule so as to determine the size and the position of the target report point area, filter report points outside the target report point area, and only reserve the report points inside the target report point area so as to ensure that the report points are realized only in the area within the specified range, thereby avoiding false touch.
In this embodiment, the report point switching control node is provided to the upper layer processing module, and the upper layer processing module is given node authority, so that when the upper layer processing module needs to switch the target report point area, the report point switching control node is written in a preset position, and thus the touch screen driving module can be triggered to enable the target report point area corresponding to the parameter value according to the parameter value of the report point switching control node, and the range of the target report point area is configured according to the preset configuration rule, so that the free switching of different report point areas in the touch screen, especially the flexible touch screen, is realized, and the flexibility and accuracy of touch control can be improved.
Please refer to fig. 2, which is a schematic flow chart illustrating an implementation of a touch screen touch area switching method according to an embodiment of the present application. The method can be applied to electronic devices with flexible touch screens, such as mobile phones, tablet computers, smart watches, smart cameras and other electronic devices with flexible capacitive touch screens, which can process data in movement. As shown in fig. 2, the method mainly includes:
s201, an upper layer processing module writes a report point switching control node in a preset position;
the upper layer processing module may be, for example, an upper layer application dedicated to executing corresponding logic according to a touch area of the touch screen. A report switching control node, for example, a TP half-screen report node (hs _ report _ mode _ enable), is a device file node. Under the Linux framework, the upper layer processing module can communicate with the bottom layer driving module through the device file node.
In a practical application, when the touch screen is folded, the upper processing module may determine a target report area according to the size of the touch area in different report areas in the touch screen, and then trigger the touch screen driving module to switch the parameter value of the control node according to the written report by writing the report switching control node at a preset position, for example,/proc, so as to enable the target report area corresponding to the parameter value.
It is understood that a flexible Touch screen, such as a flexible capacitive Touch screen (TP), is a foldable screen, i.e., can be folded for use. The touch screen driver module may be, for example, a hardware driver of the flexible TP.
As can be understood, when the flexible touch screen is folded for use, if the entire screen is allowed to report points, the problem of false touch may be caused, so that it is necessary to limit the screen area on which points can be reported to only a part of the screen area, that is, the target point reporting area, for example, the screen area facing the user.
S202, judging whether the system is in an awakening state or not;
s203, if the system is in an awakening state, enabling a target report point area corresponding to a parameter value by the touch screen driving module according to the parameter value of the report point switching control node;
s204, if the system is in a non-awakening state, awakening the system or when the system is detected to be awakened, enabling a target report point area corresponding to a parameter value by the touch screen driving module according to the parameter value of the report point switching control node;
when the system is in an awakening state, the control switching of the target report point area can be realized most efficiently. Therefore, the touch screen driving module firstly judges whether the system is in the awakening state, if the system is in the awakening state, the touch screen driving module enables the target report area corresponding to the parameter value according to the report switching control node parameter value written by the upper processing module, otherwise, the touch screen driving module firstly awakens the system and then enables the target report area corresponding to the parameter value according to the report switching control node parameter value written by the upper processing module. Or, when the system is in a non-wake-up state, the touch screen driving module may also periodically detect whether the system is woken up, and when the system is detected to be woken up, the touch screen driving module switches the parameter value of the control node according to the report point written by the upper processing module, so as to enable the target report point area corresponding to the parameter value.
It will be appreciated that the system is in an awake state, i.e., the system is in a non-sleep or suspend state, such as a bright screen state, or the screen is turned off but the daemon continues to operate.
Optionally, in an embodiment of the present application, the touch screen is divided into three touch areas, namely, a whole screen, a first half screen and a second half screen. The half-screen area may refer to any one of left, right, upper, or lower half-screen areas. At the moment, the touch screen driving module judges whether the parameter value of the report point switching control node written by the upper layer processing module is a first preset value or not; if the parameter value is a first preset value, enabling the whole screen as a target point reporting area; if the parameter value is not the first preset value, judging whether the parameter value is a second preset value; if the parameter value is a second preset value, enabling the first half screen as a target point reporting area; and if the parameter value is not the second preset value, enabling the second half screen as a target point reporting area. Optionally, the first preset value is, for example, 0, and the second preset value is, for example, 1. It is understood that, in practical applications, the first preset value and the second preset value may also be other self-defined values.
Optionally, in another specific embodiment of the present application, the parameter value may be determined first, and then the wake-up state is determined, specifically, the touch screen driving module determines whether the parameter value of the report switching control node written by the upper processing module is a third preset value; if the parameter value is a third preset value, judging whether the system is in an awakening state, and enabling the whole screen as a target point reporting area when the system is in the awakening state; if the parameter value is not the third preset value, judging whether the parameter value is a fourth preset value; if the parameter value is a fourth preset value, judging whether the system is in an awakening state, and enabling the third half screen as a target point reporting area when the system is in the awakening state; if the parameter value is not the fourth preset value, judging whether the system is in an awakening state, and enabling the fourth half screen as a target point reporting area when the system is in the awakening state.
It can be understood that, when the system is in the non-wake-up state, the touch screen driving module may wake up the system first and then enable the corresponding target reporting point area, or may also periodically detect whether the system is woken up, and when it is detected that the system is woken up, then enable the corresponding target reporting point area. The third half screen and the fourth half screen may refer to any one of left, right, upper, or lower half screen areas. The third preset value is, for example, 0, and the fourth preset value is, for example, 1. It is understood that, in practical applications, the third preset value and the fourth preset value may also be other self-defined values.
In practical application, the touch screen can be further divided into more report point areas according to needs, and the preset values can correspond to different report point areas one to one.
S205, the touch screen driving module judges whether the device tree is configured with the range of the target report area or not;
s206, if the range of the target report point area is configured in the equipment tree, configuring the size of the target report point area according to the configuration in the equipment tree, and filtering report points of the non-target report point area;
and S207, if the range of the target reporting point area is not configured in the equipment tree, configuring the size of the target reporting point area according to the default configuration of the range of the target reporting point area preset in the touch screen driving module, and filtering reporting points of the non-target reporting point area.
A device tree is a data structure that describes various hardware resources in an electronic apparatus, in which description and configuration information of the various hardware resources are stored.
Optionally, the upper processing module or the touch screen driving module may divide the touch screen into a plurality of report areas according to the configuration operation of the user, and write the range configuration parameters of the plurality of report areas pointed by the configuration operation into the device tree, thereby implementing the user-defined position and size of the target report area, and improving the freedom of selection and switching of the target report area.
After enabling the target report area, the touch screen driving module judges whether the range of the target report area is configured in the equipment tree or not. On one hand, if the range of the target report point area is configured in the equipment tree, the size of the target report point area is configured according to the configuration in the equipment tree, and report points of non-target report point areas are filtered. On the other hand, if the range of the target reporting point area is not configured in the device tree, the size of the target reporting point area is configured according to the default configuration of the range of the target reporting point area preset in the touch screen driving module, and reporting points of the non-target reporting point area are filtered. In the method, the report points of the non-target report point area are filtered, that is, the report points in the interruption in the touch screen processing chip (IC) are algorithmically filtered in the TP driving module, so that only the report points of the target report point area are enabled.
Optionally, the touch screen driving module obtains a range of each report point area divided by an upper User Interface (UI), and presets a default configuration of the range of the target report point area in the touch screen driving module according to the obtained range. It can be understood that the implementation of TP half-screen preparation report requires accurate partition of report areas, that is, the pixel point position in the screen must be the same as the size of the upper-layer UI switching screen, otherwise, some areas cannot be clicked or non-display areas have report points. Therefore, the touch screen driving module can configure the range of each report area divided by an upper User Interface (UI) as the default configuration of the range of the target report area, thereby avoiding the situation that the pixel point position in the screen is inconsistent with the size of the upper UI switching screen.
Optionally, in another embodiment of the present application, to avoid a situation that a pixel point position in a user-defined report area is not consistent with a size of an upper UI switching screen, if a range of a target report area is configured in an equipment tree, the touch screen driving module compares a configuration in the equipment tree with a default configuration in the touch screen driving module, and if a range error is greater than a preset error, the range of the target report area is configured according to the default configuration in the touch screen driving module.
To further illustrate the present embodiment, taking fig. 3 as an example, the whole screen is divided into A, B and C regions, wherein the A, B and the C region form the whole screen when the whole screen is normally unfolded, and the fold is folded along the C region when the whole screen is folded. Here, the a area and the B area are areas that need to be displayed when folded. In a specific functional scene (which needs to be displayed in a specific area, such as screen folding or unfolding), the upper layer processing module notifies the TP driver module to switch the target report point area by writing in a half-screen report point node. Suppose there are three (0, 1, 2) parameter writing values of the half-screen report node, which correspond to the normal full-screen report node, the left half-screen report node (A), and the right half-screen report node (B), respectively. The specific left and right half-screen report point areas can be defined in size and range in a kernel device tree in a self-defined mode, and a default numerical value can be preset in a TP driver module if the TP driver module is not configured. After the target reporting point area is determined, the reporting points outside the target reporting point area are filtered through an algorithm, namely, only the reporting points in the target reporting point area are reserved, so that the reporting points are realized only in the area within the specified range. In this way, when the screen is switched, the upper layer processing module updates the state of the TP half-screen report node in real time in a mode of writing in a file node, and triggers the TP driving module to enable different target node areas according to the written value, so that the independent report of the report in the area A or the area B can be realized under the condition that the screen is folded, and the report of the whole screen can be realized when the screen is unfolded.
For details of this embodiment, reference may be made to the description of other embodiments.
In this embodiment, the report point switching control node is provided to the upper layer processing module, and the upper layer processing module is given node authority, so that when the upper layer processing module needs to switch the target report point area, the report point switching control node is written in a preset position, and thus the touch screen driving module can be triggered to enable the target report point area corresponding to the parameter value according to the parameter value of the report point switching control node, and the range of the target report point area is configured according to the preset configuration rule, so that the free switching of different report point areas in the touch screen, especially the flexible touch screen, is realized, and the flexibility and accuracy of touch control can be improved.
Please refer to fig. 4, which is a schematic diagram of a hardware structure of an electronic device according to another embodiment of the present application. The electronic device can be used for implementing the touch screen touch area switching method shown in fig. 1. As shown in fig. 4, the electronic device mainly includes: a write module 401, an enable module 402, and a configuration module 403.
A writing module 401, configured to write a breakpoint switching control node in a preset position through an upper layer processing module;
an enabling module 402, configured to enable, by the touch screen driving module, a target report area corresponding to a parameter value according to the parameter value of the report switching control node;
the configuration module 403 is configured to configure the range of the target reporting point area according to a preset configuration rule through the touch screen driving module.
Further, the enabling module 402 includes:
the state judgment module is used for judging whether the system is in an awakening state or not;
the enabling sub-module is used for executing the step that the touch screen driving module enables the target report point area corresponding to the parameter value according to the parameter value of the report point switching control node if the system is in the awakening state;
the wake-up module is used for waking up the system if the system is in a non-wake-up state;
the enabling sub-module is further configured to enable, when the system is awakened, the target report point area corresponding to the parameter value according to the parameter value of the report point switching control node through the touch screen driving module.
Further, the configuration module 403 includes:
the configuration judging module is used for judging whether the range of the target report point area is configured in the equipment tree or not through the touch screen driving module;
the configuration submodule is used for configuring the size of the target report point area according to the configuration in the equipment tree through the touch screen driving module if the range of the target report point area is configured in the equipment tree, and filtering report points which are not in the target report point area;
and the configuration sub-module is further configured to configure, by the touch screen driving module, the size of the target report area according to a default configuration of the range of the target report area preset in the touch screen driving module, and filter report points that are not in the target report area, if the range of the target report area is not configured in the device tree.
Further, the electronic device further includes:
and the writing module is used for dividing the touch screen into a plurality of report point areas according to the configuration operation of a user and writing the range configuration parameters of the report point areas pointed by the configuration operation into the equipment tree.
Further, the electronic device further includes:
the preset module is used for acquiring the range of each report point area divided by the upper-layer user interface through the touch screen driving module, and presetting default configuration of the range of the target report point area in the touch screen driving module according to the acquired range.
Further, the enabling module 402 further includes:
the numerical value judging module is used for judging whether the parameter value is a first preset value or not through the touch screen driving module;
the enabling sub-module is further configured to enable the whole screen as the target report point area if the parameter value is the first preset value;
the numerical value judging module is further configured to judge whether the parameter value is a second preset value if the parameter value is not the first preset value;
the enabling sub-module is further configured to enable the first half screen as the target report area if the parameter value is the second preset value;
the enabling sub-module is further configured to enable the second half screen as the target reporting point area if the parameter value is not the second preset value.
Further, the numerical value judging module is further configured to judge whether the parameter value is a third preset value through the touch screen driving module;
the enabling sub-module is further configured to enable the whole screen as the target reporting point area when the system is in an awake state if the parameter value is the third preset value;
the numerical value judging module is further configured to judge whether the parameter value is a fourth preset value if the parameter value is not the third preset value;
the enabling sub-module is further configured to enable, when the system is in the wake-up state, a third half screen serving as the target reporting area if the parameter value is the fourth preset value;
the enabling sub-module is further configured to enable a fourth half screen as the target reporting point area when the system is in the wake-up state if the parameter value is not the fourth preset value.
The specific process of each module for implementing its function may refer to the specific contents in the embodiments shown in fig. 1 to fig. 3, and is not described herein again.
In this embodiment, the report point switching control node is provided to the upper layer processing module, and the upper layer processing module is given node authority, so that when the upper layer processing module needs to switch the target report point area, the report point switching control node is written in a preset position, and thus the touch screen driving module can be triggered to enable the target report point area corresponding to the parameter value according to the parameter value of the report point switching control node, and the range of the target report point area is configured according to the preset configuration rule, so that the free switching of different report point areas in the touch screen, especially the flexible touch screen, is realized, and the flexibility and accuracy of touch control can be improved.
Referring to fig. 5, fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
The electronic apparatus described in this embodiment includes:
the touch screen.
At least one input device 503 and at least one output device 504.
The memory 501, the processor 502, the input device 503, and the output device 504 are connected by a bus 505.
The input device 503 may be a camera, a touch panel, a physical button, or the like. The output device 504 may be specifically a flexible capacitive touch screen.
The Memory 501 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 501 is used for storing a set of executable program code, and the processor 502 is coupled to the memory 501.
Further, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium may be an electronic device configured in the foregoing embodiments, and the computer-readable storage medium may be a storage unit configured in the main control chip and the data acquisition chip in the foregoing embodiments. The computer readable storage medium has stored thereon a computer program, which when executed by a processor implements the touch screen touch point area switching method described in the embodiments of fig. 1 to 3.
For example, the electronic device may be any of various types of computer system apparatuses that are mobile or portable with a flexible capacitive touch screen and perform wireless communication. In particular, the electronic apparatus may be a mobile phone or a smart phone (e.g., iPhone (TM) -based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), Gameboy Advance (TM), iPhone (TM)), a laptop, a PDA, a Portable internet appliance, a music player and a data storage device, other handheld devices and a head-mounted device (HMD) such as a watch, a headset, a pendant, a headset, etc., and other wearable devices (e.g., electronic glasses, electronic clothes, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic device, or a smart watch).
The electronic apparatus may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving picture experts group (MPEG-1 or MPEG-2) audio layer 3(MP3) players, portable medical devices, and digital cameras and combinations thereof.
In some cases, the electronic device may perform a variety of functions (e.g., playing music, displaying video, storing pictures, and receiving and sending telephone calls). If desired, the electronic apparatus may be a portable device such as a cellular telephone, media player, other handheld device, wristwatch device, pendant device, earpiece device, or other compact portable device.
As shown in fig. 6, the electronic device 10 may include control circuitry, which may include storage and processing circuitry 30. The storage and processing circuitry 30 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable erase limit memory used to form solid state drives, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and so forth, although the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry 30 may be used to control the operation of the electronic device 10. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 30 may be used to run software within the electronic device 10 such as, for example, an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, etc. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 10, and the like, without limitation of the embodiments of the present application.
The electronic device 10 may also include input-output circuitry 42. The input-output circuitry 42 may be used to enable the electronic device 10 to enable input and output of data, i.e., to allow the electronic device 10 to receive data from external devices and also to allow the electronic device 10 to output data from the electronic device 10 to external devices. The input-output circuitry 42 may further include the sensor 32. The sensors 32 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry 42 may also include one or more displays, such as display 14. The display 14 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 14 may include an array of touch sensors (i.e., the display 14 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 10 may also include an audio component 36. The audio component 36 may be used to provide audio input and output functionality for the electronic device 10. Audio components 36 in electronic device 10 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuitry 38 may be used to provide the electronic device 10 with the ability to communicate with external devices. The communication circuit 38 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 38 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 38 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuitry 38 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 38 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 10 may further include a battery, power management circuitry, and other input-output units 40. The input and output unit 40 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
A user may input commands through the input-output circuitry 42 to control operation of the electronic device 10, and may use output data of the input-output circuitry 42 to enable receipt of status information and other outputs from the electronic device 10.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the touch screen touch-pointing area switching method, the electronic device and the computer-readable storage medium provided by the present application, those skilled in the art will recognize that changes may be made in the specific implementation and application scope according to the concepts of the embodiments of the present application.

Claims (8)

1. A touch screen touch point area switching method is applied to an electronic device with a touch screen, and is characterized in that the touch screen is divided into a plurality of touch point areas, and the method comprises the following steps:
when the touch screen is folded, the upper layer processing module determines a target report point area according to the size of the touch area in different report point areas in the touch screen, and then writes report point switching control nodes in a preset position;
the touch screen driving module enables a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node;
the touch screen driving module judges whether the range of the target report point area is configured in the equipment tree or not;
if the range of the target report point area is configured in the equipment tree, configuring the size of the target report point area according to the configuration in the equipment tree, and filtering report points which are not in the target report point area;
if the range of the target report point area is not configured in the equipment tree, configuring the size of the target report point area according to default configuration of the range of the target report point area preset in the touch screen driving module, and filtering report points which are not in the target report point area;
and according to the configuration operation of a user, dividing the touch screen into a plurality of report point areas, and writing the range configuration parameters of the report point areas pointed by the configuration operation into the equipment tree.
2. The method of claim 1, wherein before the touch screen driving module enables the target report point area corresponding to the parameter value according to the parameter value of the report point switching control node, the method further comprises:
judging whether the system is in an awakening state or not;
if the system is in the awakening state, executing a step that the touch screen driving module enables a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node;
if the system is in a non-awakening state, awakening the system, and executing the step that the touch screen driving module enables a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node; or if the system is in a non-awakening state, when the system is awakened, executing a step that the touch screen driving module enables a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node.
3. The method of claim 1, wherein the method further comprises:
the touch screen driving module acquires the range of each report point area divided by the upper-layer user interface, and according to the acquired range, default configuration of the range of the target report point area is preset in the touch screen driving module.
4. The method according to any one of claims 1 to 3, wherein the enabling of the target report area corresponding to the parameter value by the touch screen driving module according to the parameter value of the report switching control node specifically includes:
the touch screen driving module judges whether the parameter value is a first preset value or not;
if the parameter value is the first preset value, enabling the whole screen as the target report point area;
if the parameter value is not the first preset value, judging whether the parameter value is a second preset value;
if the parameter value is the second preset value, enabling the first half screen as the target report point area;
and if the parameter value is not the second preset value, enabling the second half screen as the target report point area.
5. The method according to claim 1, wherein the enabling of the target report point area corresponding to the parameter value by the touch screen driving module according to the parameter value of the report point switching control node specifically comprises:
the touch screen driving module judges whether the parameter value is a third preset value;
if the parameter value is the third preset value, enabling the whole screen as the target report point area when the system is in an awakening state;
if the parameter value is not the third preset value, judging whether the parameter value is a fourth preset value;
if the parameter value is the fourth preset value, enabling a third half screen as the target reporting point area when the system is in the awakening state;
and if the parameter value is not the fourth preset value, enabling a fourth half screen as the target reporting point area when the system is in the awakening state.
6. An electronic device, which is capable of implementing the touch screen touch spot area switching method according to any one of claims 1 to 5, the device comprising:
the write-in module is used for writing the report point switching control node in a preset position through the upper layer processing module;
the enabling module is used for enabling a target report point area corresponding to the parameter value according to the parameter value of the report point switching control node through the touch screen driving module;
and the configuration module is used for configuring the range of the target report point area through the touch screen driving module according to a preset configuration rule.
7. An electronic device having a touch screen, the electronic device comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the touch screen touch spot area switching method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a touch screen touch point area switching method according to any one of claims 1 to 5.
CN201910122732.0A 2019-02-19 2019-02-19 Touch screen point reporting area switching method, electronic device and computer readable storage medium Active CN109782960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910122732.0A CN109782960B (en) 2019-02-19 2019-02-19 Touch screen point reporting area switching method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122732.0A CN109782960B (en) 2019-02-19 2019-02-19 Touch screen point reporting area switching method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109782960A CN109782960A (en) 2019-05-21
CN109782960B true CN109782960B (en) 2021-03-23

Family

ID=66504550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122732.0A Active CN109782960B (en) 2019-02-19 2019-02-19 Touch screen point reporting area switching method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109782960B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955568B (en) * 2019-11-06 2023-09-01 Oppo(重庆)智能科技有限公司 Touch screen problem positioning method and device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777828A (en) * 2012-10-22 2014-05-07 速博思股份有限公司 Touch panel device capable of recombining sensing points and sensing method
CN105677229A (en) * 2015-03-26 2016-06-15 努比亚技术有限公司 Mobile terminal and tough control operation method thereof
EP3175335A1 (en) * 2014-07-29 2017-06-07 Samsung Electronics Co., Ltd. Electronic device operating in idle mode and method thereof
CN108304091A (en) * 2018-01-19 2018-07-20 昆山国显光电有限公司 Touch screen control method, device and touch screen
CN108762645A (en) * 2018-05-18 2018-11-06 Oppo广东移动通信有限公司 content switching method, device, mobile terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777828A (en) * 2012-10-22 2014-05-07 速博思股份有限公司 Touch panel device capable of recombining sensing points and sensing method
EP3175335A1 (en) * 2014-07-29 2017-06-07 Samsung Electronics Co., Ltd. Electronic device operating in idle mode and method thereof
CN105677229A (en) * 2015-03-26 2016-06-15 努比亚技术有限公司 Mobile terminal and tough control operation method thereof
CN108304091A (en) * 2018-01-19 2018-07-20 昆山国显光电有限公司 Touch screen control method, device and touch screen
CN108762645A (en) * 2018-05-18 2018-11-06 Oppo广东移动通信有限公司 content switching method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109782960A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
US10853979B2 (en) Electronic device and method for displaying screen thereof
US10949012B2 (en) Electronic device comprising force sensor
US9024877B2 (en) Method for automatically switching user interface of handheld terminal device, and handheld terminal device
US10739994B2 (en) Method and electronic device for recognizing touch
US10310733B2 (en) Method and electronic device for recognizing touch
CN110109759B (en) Catton optimization method, server, electronic device and computer-readable storage medium
CN109283996B (en) Display control method and related product
CN108983211B (en) Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium
CN108874466B (en) Control calling method, electronic device and computer readable storage medium
CN109067984B (en) Data transmission method, electronic device and computer readable storage medium
CN112987986B (en) Method, device, storage medium and electronic equipment for realizing game application
CN103713804A (en) Equipment control method and device and electronic equipment
CN109165075A (en) Application display method, device, electronic equipment and storage medium
CN109375889B (en) Display control method and related product
CN109684011B (en) Interface display control method, electronic device and computer readable storage medium
CN110058980B (en) Terminal start time early warning method, electronic device and computer readable storage medium
CN109313533A (en) A kind of touch-control response method, device and the terminal of touch screen
CN109885201B (en) Touch area detection method for touch screen, electronic device and computer readable storage medium
CN109348062B (en) Emergency call implementation method, electronic device and computer-readable storage medium
CN108769286B (en) DNS server configuration method and related product
CN109782960B (en) Touch screen point reporting area switching method, electronic device and computer readable storage medium
CN108664206A (en) Information processing method, device, storage medium and electronic equipment
CN108595105A (en) Light filling lamp control method, device, storage medium and electronic equipment
CN109410846B (en) Screen backlight setting method, electronic device and computer readable storage medium
CN109451336B (en) Video playing method and related product

Legal Events

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