CN110955568B - Touch screen problem positioning method and device, equipment and storage medium - Google Patents

Touch screen problem positioning method and device, equipment and storage medium Download PDF

Info

Publication number
CN110955568B
CN110955568B CN201911077906.2A CN201911077906A CN110955568B CN 110955568 B CN110955568 B CN 110955568B CN 201911077906 A CN201911077906 A CN 201911077906A CN 110955568 B CN110955568 B CN 110955568B
Authority
CN
China
Prior art keywords
event
touch
touch event
coordinates
action
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
CN201911077906.2A
Other languages
Chinese (zh)
Other versions
CN110955568A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201911077906.2A priority Critical patent/CN110955568B/en
Publication of CN110955568A publication Critical patent/CN110955568A/en
Application granted granted Critical
Publication of CN110955568B publication Critical patent/CN110955568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The embodiment of the application discloses a method for positioning a touch screen problem, which comprises the following steps: acquiring an operation log; extracting the description information of the touch event from the operation log; the description information includes coordinates; forming an output file by the touch event in the operation log; and if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file. The embodiment of the application also provides a positioning device, equipment and a storage medium for the touch screen problem.

Description

Touch screen problem positioning method and device, equipment and storage medium
Technical Field
The embodiment of the application relates to electronic technology, in particular to a method, a device, equipment and a storage medium for positioning a touch screen problem, but not limited to the method, the device and the equipment.
Background
The touch screen is used as an input device, and can provide a simple, convenient and natural man-machine interaction mode. And is increasingly being applied to the fields of public information inquiry, industrial control, military command, electronic games, multimedia teaching and the like. At present, touch screens are adopted as input devices of electronic devices such as mobile phones, computers and the like which are frequently used in life and work of people.
In the current use process of electronic equipment such as mobile phones and computers, the problem that probability clicking is unresponsive or sliding is unresponsive often occurs. Therefore, electronic device manufacturers are required to check the reason for non-response, for example, whether the touch screen firmware problem or the input protocol (an input protocol of an android system) problem, or the application itself problem. The positioning method in the prior art resets the problem through the functions of a recording tool and an opening track line provided in an android system, and then provides recorded video and the track line for debugging the problem in research and development.
However, the positioning method in the prior art has the following drawbacks: first, the use of a recording tool can easily cause system stuck. Second, users often forget to turn on the recording tool and track line functions when they reset the problem.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a method, an apparatus, a device, and a storage medium for positioning a touch screen problem.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for locating a touch screen problem, where the method includes:
acquiring an operation log;
Extracting the description information of the touch event from the operation log; the description information includes coordinates;
forming an output file by the touch event in the operation log;
and if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file.
In the embodiment of the application, the method further comprises the following steps:
if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event;
if the interval duration is smaller than the preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file.
In the embodiment of the application, the method further comprises the following steps:
if the interval time length is greater than or equal to the preset time period, determining the distance between coordinates of two adjacent action reporting events in one touch event;
if the distance is greater than or equal to the preset sliding distance, prompting an error, and displaying the position of the coordinates of the adjacent two-time action reporting event in the output file.
In the embodiment of the application, the method further comprises the following steps:
if the distance is smaller than the preset sliding distance, determining a first pressing event corresponding to the same operation body identifier in the touch event and a lifting event after the first pressing event; the pressing event and the lifting event belong to an action reporting event;
and if the first pressing event is not matched with the lifting event after the first pressing event, prompting an error, and displaying the positions of the first pressing event and the lifting event after the first pressing event in the output file.
In the embodiment of the application, the method further comprises the following steps:
and if the first pressing event is matched with the lifting event after the first pressing event, determining the track of the touch event in the output file.
In an embodiment of the present application, the determining the track of the touch event in the output file includes:
acquiring types of all action reporting events corresponding to the same operation body identifier in the touch event and coordinates and time of each action reporting event;
and connecting the corresponding coordinates according to the type and time of each action reporting event to obtain the track of the touch event corresponding to the operation body identifier.
In the embodiment of the application, the preset time period is the minimum report point interval duration corresponding to the touch screen.
In a second aspect, an embodiment of the present application provides a positioning device for a touch screen problem, where the device includes:
an acquisition unit configured to acquire an operation log;
an extracting unit, configured to extract description information of a touch event from the operation log; the description information includes coordinates;
a forming unit, configured to form an output file from the touch event in the operation log;
and the processing unit is used for prompting an error if the coordinate of the touch event is not in the preset coordinate range and displaying the position of the coordinate in the output file.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory storing a computer program executable on the processor, the processor implementing steps in a method for locating a touch screen problem as described above when executing the program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method of locating a touch screen problem as described above.
The embodiment of the application provides a method, a device, equipment and a storage medium for positioning a touch screen problem, which are used for acquiring an operation log; extracting the description information of the touch event from the operation log; the description information includes coordinates; forming an output file by the touch event in the operation log; if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file, so that a method for rapidly positioning the problem of the touch screen can be provided under the condition that the recorded frequency information is missing, and the problem solving efficiency of engineers is improved.
Drawings
FIG. 1 is a schematic diagram of a method for positioning a touch screen problem according to an embodiment of the present application;
FIG. 2 is a second schematic diagram of an implementation flow of a method for positioning a touch screen problem according to an embodiment of the present application;
FIG. 3 is a schematic diagram III illustrating a method for implementing a touch screen problem positioning method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a positioning device for touch screen problem according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the specific technical solutions of the application will be described in further detail below with reference to the accompanying drawings in the embodiments of the present application. The following examples are only for illustration of the present application and are not intended to limit the scope of the present application.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
According to the technical scheme, the touch event is analyzed by acquiring the triggering time, coordinates, event information, page information and the like of the touch event in the log, so that a track process of multi-point touch is analyzed and restored. The technical scheme of the embodiment of the application can be applied to electronic equipment such as mobile phones or tablet computers of an android system, and can analyze the event information of the touch screen through offline logs under the condition of missing frequency recording information and restore the operation process of the event information of the touch screen. In addition, the technical scheme in the embodiment of the application is simple and convenient to operate, and a user only needs to start the log function of the input protocol, reproduce the problem and provide the log.
The embodiment of the application provides a positioning method for a touch screen problem, which is applied to electronic equipment, the functions realized by the method can be realized by calling program codes by a processor in the electronic equipment, and the program codes can be stored in a computer storage medium, so that the electronic equipment at least comprises the processor and the storage medium. Fig. 1 is a schematic implementation flow diagram of a method for positioning a touch screen problem according to an embodiment of the present application, as shown in fig. 1, where the method includes:
Step S101, obtaining an operation log;
for example, if a user finds that a problem occurs in a touch operation (e.g., no touch response, or an actual touch operation does not match a response of the electronic device, or a touch response delay, etc.) during use of the electronic device, or during detection of the electronic device by a product engineer before shipment of the electronic device, a log corresponding to the touch operation may be downloaded and further processed.
Step S102, extracting the description information of the touch event from the operation log; the description information includes coordinates;
here, the description information of the touch event may be extracted from the operation log by a method of searching for a keyword. For example, the key may be "InputLog: viewRootImpl".
Step S103, the touch events in the operation log are formed into an output file;
in the embodiment of the application, all touch events extracted from the operation log can be stored as output files.
Step S104, if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file.
For example, if the preset range of the abscissa corresponding to the touch operation is 0 to 2400 pixels, the preset range of the ordinate is 0 to 1920 pixels, and the coordinate of the touch event is [40, 50], the coordinate of the touch event is within the preset coordinate range. If the coordinates of the touch event are [2401, 50], the coordinates of the touch event are not within the preset coordinate range, an error is prompted, and the position of the abnormal coordinates [2401, 50] in the output file, for example, the row and column of the abnormal coordinates in the output file, is displayed.
In the embodiment of the application, the operation log is obtained; extracting the description information of the touch event from the operation log; the description information includes coordinates; forming an output file by the touch event in the operation log; if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file, so that a method for rapidly positioning the problem of the touch screen can be provided under the condition that the recorded frequency information is missing, and the problem solving efficiency of engineers is improved.
Based on the foregoing embodiments, an embodiment of the present application further provides a method for positioning a touch screen problem, where the method includes:
Step S111, obtaining an operation log;
step S112, extracting the description information of the touch event from the operation log; the description information includes coordinates;
step S113, forming an output file by the touch event in the operation log;
step S114, if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file;
step S115, if the coordinates of the touch event are within a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event;
here, the touch event may be a current touch event, and the adjacent touch event may be a touch event adjacent to the current touch event before the current touch event or an adjacent touch event adjacent to the current touch event after the current touch event. The current touch event may be a touch event screened out by the keyword.
Step S116, if the interval duration is less than the preset time period, prompting an error, and displaying the timestamp of the touch event and the position of the timestamp of the adjacent touch event in the output file.
In the embodiment of the present application, the preset time period may be a point reporting rate corresponding to the touch screen. And if the interval time between the time stamp of the touch event and the time stamp of the adjacent touch event is smaller than the point reporting rate corresponding to the touch screen, prompting an error, and displaying the time stamp of the touch event and the row and column positions of the time stamp of the adjacent touch event in the output file.
In the embodiment of the application, the operation log is obtained; extracting the description information of the touch event from the operation log; the description information includes coordinates; forming an output file by the touch event in the operation log; if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file; if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event; if the interval duration is smaller than the preset time period, prompting an error, and displaying the positions of the time stamp of the touch event and the time stamp of the adjacent touch event in the output file, so that a method for rapidly positioning the problem of the touch screen can be provided under the condition that the frequency recording information is missing, and the efficiency of solving the problem of engineers is improved.
Based on the foregoing embodiments, an embodiment of the present application further provides a method for positioning a touch screen problem, where the method includes:
step S121, obtaining an operation log;
step S122, extracting the description information of the touch event from the operation log; the description information includes coordinates;
step S123, forming an output file by the touch event in the operation log;
step S124, if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file;
step S125, if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event;
step 126, if the interval duration is less than the preset time period, prompting an error, and displaying the timestamp of the touch event and the position of the timestamp of the adjacent touch event in the output file;
step S127, if the interval time is greater than or equal to the preset time period, determining a distance between coordinates of two adjacent actions reporting events in one touch event;
For example, a touch event is a five second depression of one finger on the touch screen followed by a lift. And the ACTION report event recorded in the log by the touch event may be "action=action_down … action=action_down … action=action_down … action=action_up", that is, the touch event contains four ACTION report events in total. The first "action=action_down" and the second "action=action_down" belong to adjacent two-ACTION reporting events, the second "action=action_down" and the third "action=action_down" belong to adjacent two-ACTION reporting events, and the third "action=action_down" and the first "action=action_up" belong to adjacent two-ACTION reporting events.
For another example, a touch event is a finger that slides a distance and lifts up after being pressed down on the touch screen. And the ACTION report event recorded in the log of the touch event may be "action=action_down … action=action_move … action=action_move … action=action_up", that is, the touch event contains four ACTION report events in total. The first "action=action_down" and the first "action=action_move" belong to adjacent two-time ACTION reporting events, the first "action=action_move" and the second "action=action_move" belong to adjacent two-time ACTION reporting events, and the second "action=action_move" and the first "action=action_up" belong to adjacent two-time ACTION reporting events.
And step S128, if the distance is greater than or equal to a preset sliding distance, prompting an error, and displaying the position of the coordinates of the adjacent two-time action reporting event in the output file.
Here, the preset sliding distance may be determined according to a coordinate range in which the operator can slide within a time period corresponding to the point reporting rate of the touch screen.
In the embodiment of the application, the operation log is obtained; extracting the description information of the touch event from the operation log; the description information includes coordinates; forming an output file by the touch event in the operation log; if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file; if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event; if the interval duration is smaller than a preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file; if the interval time length is greater than or equal to the preset time period, determining the distance between coordinates of two adjacent action reporting events in one touch event; if the distance is greater than or equal to the preset sliding distance, an error is prompted, and the position of the coordinates of the adjacent two-time action reporting event in the output file is displayed, so that a method for rapidly positioning the problem of the touch screen can be provided under the condition that the frequency recording information is missing, and the problem solving efficiency of engineers is improved.
Based on the foregoing embodiments, an embodiment of the present application further provides a method for positioning a touch screen problem, where the method includes:
step S131, obtaining an operation log;
step S132, extracting the description information of the touch event from the operation log; the description information includes coordinates;
step S133, forming an output file by the touch event in the operation log;
step S134, if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file;
step S135, if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event;
step S136, if the interval duration is smaller than a preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file;
step S137, if the interval time is longer than or equal to the preset time period, determining the distance between coordinates of two adjacent action reporting events in one touch event;
Step S138, if the distance is greater than or equal to a preset sliding distance, prompting an error, and displaying the position of coordinates of the adjacent two-time action reporting event in the output file;
step 139, if the distance is smaller than the preset sliding distance, determining a first pressing event corresponding to the same operation body identifier in the touch event and a lifting event after the first pressing event; the pressing event and the lifting event belong to an action reporting event;
for example, a touch event is a five second depression of one finger on the touch screen followed by a lift. And the ACTION report event recorded in the log for this touch event may be "id [0] =0 … action=action_down … action=action_down … action=action_down … action=action_up". The first pressing event corresponding to the same operation body identifier (id [0] =0) is a first "action=action_down", the lifting event after the first pressing event is a first "action=action_up", and the first pressing event is matched with the lifting event after the first pressing event.
For another example, a touch event is a finger that slides a distance and lifts up after being pressed down on the touch screen. And the ACTION report event recorded in the log of this touch event may be "id [0] =0 … action=action_down … action=action_move … action=action_move … action=action_up". The first pressing event corresponding to the same operation body identifier (id [0] =0) is a first "action=action_down", the lifting event after the first pressing event is a first "action=action_up", and the first pressing event is matched with the lifting event after the first pressing event.
Here, if the zooming in or out of the content in the display screen is achieved using the opposite or relative movements of two different fingers on the touch screen, it is also a touch event. And there are two different operation body identifications in the touch event, which correspond to two different fingers respectively, the identification number of the first finger can be "id [0] =0", and the identification number of the second finger can be "id [1] =1".
Step S140, if the first pressing event is not matched with the lifting event after the first pressing event, prompting an error, and displaying the positions of the first pressing event and the lifting event after the first pressing event in the output file.
In the embodiment of the application, the operation log is obtained; extracting the description information of the touch event from the operation log; the description information includes coordinates; forming an output file by the touch event in the operation log; if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file; if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event; if the interval duration is smaller than a preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file; if the interval time length is greater than or equal to the preset time period, determining the distance between coordinates of two adjacent action reporting events in one touch event; if the distance is greater than or equal to the preset sliding distance, prompting an error, and displaying the position of the coordinates of the adjacent two-time action reporting event in the output file; if the distance is smaller than the preset sliding distance, determining a first pressing event corresponding to the same operation body identifier in the touch event and a lifting event after the first pressing event; the pressing event and the lifting event belong to an action reporting event; if the first pressing event is not matched with the lifting event after the first pressing event, an error is prompted, and the positions of the first pressing event and the lifting event after the first pressing event in the output file are displayed.
Based on the foregoing embodiments, an embodiment of the present application further provides a method for positioning a touch screen problem, where the method includes:
step S141, obtaining an operation log;
step S142, extracting the description information of the touch event from the operation log; the description information includes coordinates;
step S143, forming an output file by the touch event in the operation log;
step S144, if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file;
step S145, if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event;
step S146, if the interval duration is smaller than a preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file;
step S147, if the interval time is greater than or equal to the preset time period, determining a distance between coordinates of two adjacent actions reporting events in one touch event;
Step S148, if the distance is greater than or equal to a preset sliding distance, prompting an error, and displaying the position of the coordinates of the adjacent two-time action reporting event in the output file;
step S149, if the distance is smaller than the preset sliding distance, determining a first pressing event corresponding to the same operation body identifier in the touch event and a lifting event after the first pressing event; the pressing event and the lifting event belong to an action reporting event;
step S150, if the first pressing event is not matched with the lifting event after the first pressing event, prompting an error, and displaying the positions of the first pressing event and the lifting event after the first pressing event in the output file;
step S151, if the first pressing event is matched with the lifting event after the first pressing event, determining a track of the touch event in the output file.
Based on the foregoing embodiments, the embodiment of the present application further provides a method for positioning a touch screen problem, and fig. 2 is a schematic diagram of a second implementation flow of the method for positioning a touch screen problem according to the embodiment of the present application, as shown in fig. 2, where the method includes:
step S201, obtaining an operation log;
Step S202, extracting the description information of the touch event from the operation log; the description information includes coordinates;
step S203, the touch events in the operation log are formed into an output file;
step S204, if the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file;
step S205, if the coordinates of the touch event are within a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event;
step S206, if the interval duration is smaller than a preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file;
step S207, if the interval time is longer than or equal to the preset time period, determining the distance between coordinates of two adjacent action reporting events in one touch event;
step S208, if the distance is greater than or equal to a preset sliding distance, prompting an error, and displaying the position of the coordinates of the adjacent two-time action reporting event in the output file;
Step S209, if the distance is smaller than the preset sliding distance, determining a first pressing event corresponding to the same operation body identifier in the touch event and a lifting event after the first pressing event; the pressing event and the lifting event belong to an action reporting event;
step S210, if the first pressing event is not matched with the lifting event after the first pressing event, prompting an error, and displaying the positions of the first pressing event and the lifting event after the first pressing event in the output file;
step S211, if the first pressing event is matched with the lifting event after the first pressing event, acquiring types of all action reporting events corresponding to the same operation body identifier in the touch event, and coordinates and time of each action reporting event;
for example, a touch event is a five second depression of one finger on the touch screen followed by a lift. And the ACTION report event recorded in the log for this touch event may be "id [0] =0 … action=action_down … action=action_down … action=action_down … action=action_up". The type of all action reporting events corresponding to the same operation body identifier (id [0] =0) in the touch event comprises a pressing event and a lifting event, and then the coordinates and time of each pressing event and lifting event need to be determined.
For another example, a touch event is a finger that slides a distance and lifts up after being pressed down on the touch screen. And the ACTION report event recorded in the log of this touch event may be "id [0] =0 … action=action_down … action=action_move … action=action_move … action=action_up". The types of all action reporting events corresponding to the same operation body identifier (id [0] =0) in the touch event comprise a pressing event, a moving event and a lifting event, and then the coordinates and time of each pressing event, moving event and lifting event need to be determined.
And step S212, connecting the corresponding coordinates according to the type and time of each action reporting event to obtain the track of the touch event corresponding to the operation body identifier.
Based on the foregoing embodiments, the embodiment of the present application further provides a method for positioning a touch screen problem, and fig. 3 is a schematic diagram of a third implementation flow of the method for positioning a touch screen problem according to the embodiment of the present application, as shown in fig. 3, where the method includes:
step S301, traversing the obtained offline log, screening out all information related to touch operation through keyword retrieval, and storing the screened information as a first file;
In the embodiment of the application, the keywords in the offline log can be searched, for example: the keyword 'InputLog: viewRootImpl' screens out all information related to touch operations. Wherein, the information related to the touch operation may include: the identification number of an operation body (e.g., finger) corresponding to the touch operation, the event type of the touch operation, the coordinates of the touch operation, the time of the touch operation, and the like. The event type of the touch operation includes a press event, a move event, a lift event, and the like.
For example, log information "15:15:10.215 26462646D InputLog:ViewRootImpl[NavigationBar" related to a touch operation in the following section: enqueueInputEvent, motionEvent { action=action_down, ACTION button=0, id [0] =0, x [0] =53.0, y [0] =79.0, tooltype [0] =tol_type_f inger, button state=0, metastate=0, flags=0x0, edgeflag=0x0, pointercount=1, histoysize=0, event time=7543323, DOWN time=7543323, deviceid=7, source=0x1002 }, and android.view.viewtiotputeventreceiver.onetputputEvent.8063, view.input receiver.187 and MeueMeueduct.Meueduct.0, the "touch" operation is indicated by the coordinates "touch" in the coordinates "0:0=7543323, the touch" indicates that the touch is indicated by the touch of the coordinates "0:0=0:15" =0.15 "[ 0=2" =touch-by the touch-sensitive device "=0.15.
Here, different operators may correspond to different identification numbers. For example, the identification number corresponding to the first finger pressing the touch screen is 0, the identification number corresponding to the tenth finger pressing the touch screen is 9, and the identification number is released every time the first finger is separated halfway.
Step S302, setting a coordinate range, and judging whether abnormal coordinates which do not accord with the coordinate range exist in the first file;
in the embodiment of the present application, the set coordinate range may include an X maximum value, a Y maximum value, an X minimum value, and a Y minimum value. Wherein, X represents the horizontal axis direction corresponding to the touch operation, and Y represents the vertical axis direction corresponding to the touch operation.
For example, X maximum value, Y maximum value, X minimum value, and Y minimum value corresponding to a touch operation on the touch screen are 2400 pixel points, 1920 pixel points, 0 pixel point, and 0 pixel point, respectively. And when the abscissa in the first file is smaller than the minimum value 0 pixel point of X or the ordinate in the first file is smaller than the minimum value 0 pixel point of Y, prompting an error, wherein the abscissa or the ordinate is an abnormal coordinate. Or when the abscissa in the first file is equal to the minimum value 0 pixel point of X and the minimum value 0 pixel point of Y at the same time, prompting an error, wherein the abscissa is an abnormal coordinate. Or when the abscissa in the first file is greater than or equal to the maximum value 2400 pixel point of X or the ordinate in the first file is greater than or equal to the maximum value 1920 pixel point of Y, prompting an error, wherein the abscissa is an abnormal coordinate.
Step S303, if abnormal coordinates exist, prompting an error;
here, the error is indicated by displaying the error line number. For example, if the abnormal coordinates are located in the third row in the first file, a row number of the third row may be displayed to prompt the user that the abnormal coordinates exist in the third row.
Step S304, if no abnormal coordinates exist, setting a minimum reporting point interval threshold time, and judging whether the interval between each touch event is larger than or equal to the minimum reporting point interval threshold time;
in the embodiment of the application, the minimum reporting point interval threshold time can be a touch screen reporting point rate. Such as a touch screen supporting 100HZ for project use, the minimum spot separation threshold time is 10MS (milliseconds).
Here, the minimum reporting interval threshold time refers to the frequency of reporting data to the terminal system by the touch screen. For example, 10MS (milliseconds) reports data to the handset once, the minimum reporting interval threshold time is 10 milliseconds.
Step S305, if the interval between the touch events is smaller than the minimum report point interval threshold time, prompting an error;
here, the error is indicated by displaying the error line number.
Step S306, if the interval between the touch events is greater than or equal to the minimum report interval threshold time, setting a maximum sliding threshold distance;
step S307, judging whether the coordinate interval triggered by the current event and the last event is smaller than or equal to the maximum sliding threshold distance between the touch events;
for example, the coordinate range of the touch screen is 0-2400 pixels on the horizontal axis and 0-1900 pixels on the vertical axis, and the maximum sliding threshold distance needs to be determined according to the coordinate range in which the operator (e.g., finger) can slide in the time corresponding to the touch screen point reporting rate. For example, the touch screen supports 100HZ (hertz), and within a 10MS (millisecond) point reporting rate, the hand limit distance is 120 pixels along the horizontal axis of the touch operation, and 120 pixels along the vertical axis of the touch operation. Thus, if the coordinate range is exceeded, the time of the firmware report is considered to be abnormal.
Step S308, if the coordinate interval is larger than the maximum sliding threshold distance, prompting an error;
here, the error is indicated by displaying the error line number.
Step S309, if the coordinate interval is smaller than or equal to the maximum sliding threshold distance, the identification number of the current operation body is obtained;
Step S310, if the first event corresponding to the identification number of the current operation body is a pressing event, recording the coordinate corresponding to the pressing event as the starting point of the current operation body, and storing the time, the coordinate and the event information of the pressing event for drawing;
here, the identification number of each current operation body may be obtained respectively, and if the event is determined to be a pressing event, the coordinates corresponding to the pressing event are recorded as the start point of the touch operation of the current operation body, and the time and coordinate information of the coordinates and the event information are stored for drawing. And circularly detecting, namely recording the coordinates corresponding to the lifting event as the end point of the touch operation of the current operation body when the event is judged to be the lifting event, and finishing the drawing of the touch operation of the current operation body.
If the identification number of the current operation body is not paired, an abnormality is prompted.
In general, the maximum number of operation bodies that can be simultaneously supported by the current android system is 10, that is, only touch operations of ten fingers can be responded at the same time. For example, if eleven fingers are pressed simultaneously, one finger is not supported. When a plurality of fingers perform touch operation, each finger has an identification number, the coordinate information, the event information and the time information between each point reporting rate of each event can be lifted up by recording the event of pressing down each identification number from the trigger, the event is moved, and the touch operation track corresponding to each identification number is drawn according to the coordinate information, the event information and the time information.
Step 311, performing loop detection, wherein if the event corresponding to the identification number of the current operation body is a lifting event, the coordinates corresponding to the lifting event are recorded as the end point of the current operation body, and the track drawing of the current operation body is finished;
step S312, judging whether a pressing event and a lifting event are unpaired in the events corresponding to the identification number of the current operating body;
step S313, if the pressing event and the lifting event are unpaired, prompting an abnormality.
According to the technical scheme provided by the embodiment of the application, the method for rapidly positioning the multi-touch input protocol problem of the touch screen can be provided under the condition that the frequency recording information is missing, the problem of low efficiency of manual screening of engineers is solved, the problem solving efficiency is improved, and meanwhile, the positioning method for finding out the problem of the abnormal input protocol is provided.
Based on the foregoing embodiments, the embodiments of the present application provide a positioning device for a touch screen problem, where the device includes units included in the positioning device, modules included in the units, and components included in the modules, and may be implemented by a processor in an electronic device; of course, the method can also be realized by a specific logic circuit; in practice, the CPU (Central Processing Unit, the processor may be a central processing unit), MPU (Microprocessor Unit, microprocessor), DSP (Digital Signal Processing, digital signal processor) or FPGA (Field Programmable Gate Array ), etc.
Fig. 4 is a schematic structural diagram of a positioning device for touch screen problem according to an embodiment of the present application, as shown in fig. 4, the device 400 includes:
an acquisition unit 401 for acquiring an operation log;
an extracting unit 402, configured to extract description information of a touch event from the operation log; the description information includes coordinates;
a forming unit 403, configured to form an output file from the touch events in the operation log;
and the processing unit 404 is configured to prompt an error if the coordinate of the touch event is not within the preset coordinate range, and display the position of the coordinate in the output file.
In some embodiments, the apparatus further comprises:
a time length determining unit, configured to determine an interval time length between a time stamp of the touch event and a time stamp of an adjacent touch event if the coordinate of the touch event is within a preset coordinate range;
and the prompting unit is used for prompting an error if the interval duration is smaller than a preset time period, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file.
In some embodiments, the apparatus further comprises:
A distance determining unit, configured to determine a distance between coordinates of two adjacent action reporting events in the touch event if the interval time is greater than or equal to the preset time period;
and the prompting unit is also used for prompting an error if the distance is greater than or equal to a preset sliding distance and displaying the position of the coordinates of the adjacent two-time action reporting event in the output file.
In some embodiments, the apparatus further comprises:
the time determining unit is used for determining a first pressing event corresponding to the same operation body identifier in the touch event and a lifting event after the first pressing event if the distance is smaller than the preset sliding distance; the pressing event and the lifting event belong to an action reporting event;
the prompting unit is further configured to prompt an error if the first pressing event is not matched with the lifting event after the first pressing event, and display positions of the first pressing event and the lifting event after the first pressing event in the output file.
In some embodiments, the apparatus further comprises:
and the track determining unit is used for determining the track of the touch event in the output file if the first pressing event is matched with the lifting event after the first pressing event.
In some embodiments, the trajectory determination unit includes:
the acquisition module is used for acquiring the types of all action reporting events corresponding to the same operation body identifier in the touch event and the coordinates and time of each action reporting event;
and the track determining module is used for connecting the corresponding coordinates according to the type and time of each action reporting event to obtain the track of the touch event corresponding to the operation body identifier.
In some embodiments, the preset time period is a minimum report point interval duration corresponding to the touch screen.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, please refer to the description of the embodiments of the method of the present application.
It should be noted that, in the embodiment of the present application, if the above-mentioned method for locating a touch screen problem is implemented in the form of a software function module, and sold or used as a separate product, the touch screen problem may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied essentially or in part in the form of a software product stored in a storage medium, including instructions for causing an electronic device (which may be a personal computer, a server, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read Only Memory), a magnetic disk, or an optical disk. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor implements the steps in the method for positioning a touch screen problem provided in the above embodiment when executing the program.
Correspondingly, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the above-mentioned method for locating a touch screen problem.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application.
It should be noted that fig. 5 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application, as shown in fig. 5, the hardware entity of the electronic device 500 includes: a processor 501, a communication interface 502 and a memory 503, wherein:
the processor 501 generally controls the overall operation of the electronic device 500.
The communication interface 502 may enable the electronic device 500 to communicate with other terminals or servers over a network.
The memory 503 is configured to store instructions and applications executable by the processor 501, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or processed by each module in the processor 501 and the electronic device 500, and may be implemented by FLASH (FLASH) or RAM (Random Access Memory ).
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units. Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a ROM (Read-Only Memory), a RAM (Random Access Memory ), a magnetic disk, or an optical disk, or other various media in which program codes can be stored.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the application can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the application can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method for locating a touch screen problem, the method comprising:
acquiring an operation log;
extracting the description information of the touch event from the operation log; the description information includes coordinates;
forming an output file by the touch event in the operation log;
If the coordinates of the touch event are not in the preset coordinate range, prompting an error, and displaying the position of the coordinates in the output file;
if the coordinates of the touch event are in a preset coordinate range, determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event;
if the interval duration is smaller than the preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file.
2. The method according to claim 1, wherein the method further comprises:
if the interval time length is greater than or equal to the preset time period, determining the distance between coordinates of two adjacent action reporting events in one touch event;
if the distance is greater than or equal to the preset sliding distance, prompting an error, and displaying the position of the coordinates of the adjacent two-time action reporting event in the output file.
3. The method according to claim 2, wherein the method further comprises:
if the distance is smaller than the preset sliding distance, determining a first pressing event corresponding to the same operation body identifier in the touch event and a lifting event after the first pressing event; the pressing event and the lifting event belong to an action reporting event;
And if the first pressing event is not matched with the lifting event after the first pressing event, prompting an error, and displaying the positions of the first pressing event and the lifting event after the first pressing event in the output file.
4. A method according to claim 3, characterized in that the method further comprises:
and if the first pressing event is matched with the lifting event after the first pressing event, determining the track of the touch event in the output file.
5. The method of claim 4, wherein determining the trajectory of the touch event in the output file comprises:
acquiring types of all action reporting events corresponding to the same operation body identifier in the touch event and coordinates and time of each action reporting event;
and connecting the corresponding coordinates according to the type and time of each action reporting event to obtain the track of the touch event corresponding to the operation body identifier.
6. The method according to claim 1 or 2, wherein the preset time period is a minimum time interval duration corresponding to the touch screen.
7. A device for locating touch screen problems, the device comprising:
An acquisition unit configured to acquire an operation log;
an extracting unit, configured to extract description information of a touch event from the operation log; the description information includes coordinates;
a forming unit, configured to form an output file from the touch event in the operation log;
the processing unit is used for prompting an error if the coordinate of the touch event is not in a preset coordinate range and displaying the position of the coordinate in the output file; and the method is also used for determining the interval duration between the time stamp of the touch event and the time stamp of the adjacent touch event if the coordinate of the touch event is in the preset coordinate range; if the interval duration is smaller than the preset time period, prompting an error, and displaying the time stamp of the touch event and the position of the time stamp of the adjacent touch event in the output file.
8. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor, when executing the program, implements the steps of the method for localization of touch screen problems of any one of claims 1 to 6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, realizes the steps in the method for localization of touch screen problems as claimed in any one of claims 1 to 6.
CN201911077906.2A 2019-11-06 2019-11-06 Touch screen problem positioning method and device, equipment and storage medium Active CN110955568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911077906.2A CN110955568B (en) 2019-11-06 2019-11-06 Touch screen problem positioning method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911077906.2A CN110955568B (en) 2019-11-06 2019-11-06 Touch screen problem positioning method and device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110955568A CN110955568A (en) 2020-04-03
CN110955568B true CN110955568B (en) 2023-09-01

Family

ID=69976098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911077906.2A Active CN110955568B (en) 2019-11-06 2019-11-06 Touch screen problem positioning method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110955568B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238680A (en) * 2021-05-28 2021-08-10 广州绿怡信息科技有限公司 Screen touch and break detection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512023A (en) * 2014-09-26 2016-04-20 腾讯科技(深圳)有限公司 Method and device for Monkey testing
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN108009073A (en) * 2017-12-21 2018-05-08 深圳市金立通信设备有限公司 By method, terminal and the computer-readable recording medium of daily record reproduction touch trajectory
CN109782960A (en) * 2019-02-19 2019-05-21 Oppo广东移动通信有限公司 Touch screen report point region switching method, electronic device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511675B (en) * 2015-11-20 2020-07-24 重庆桔子科技发展有限公司 Touch control method, user equipment, input processing method, mobile terminal and intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512023A (en) * 2014-09-26 2016-04-20 腾讯科技(深圳)有限公司 Method and device for Monkey testing
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN108009073A (en) * 2017-12-21 2018-05-08 深圳市金立通信设备有限公司 By method, terminal and the computer-readable recording medium of daily record reproduction touch trajectory
CN109782960A (en) * 2019-02-19 2019-05-21 Oppo广东移动通信有限公司 Touch screen report point region switching method, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN110955568A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
US10048804B2 (en) Method for preventing false touches on terminal and terminal
US10554805B2 (en) Information processing method, terminal, and computer-readable storage medium
CN105095221B (en) The method and its device of information record are searched in a kind of touch screen terminal
CN105653171A (en) Fingerprint identification based terminal control method, terminal control apparatus and terminal
CN104866226A (en) Terminal device and method for controlling same
US20160328112A1 (en) Method for processing touch signal and terminal device
CN109391620B (en) Method, system, server and storage medium for establishing abnormal behavior judgment model
EP3196738B1 (en) Method for controlling blank screen gesture processing and terminal
US20150207923A1 (en) Method, terminal and computer storage medium for triggering a communication with a contact
TW201516653A (en) Method, apparatus and computer program product for debugging and error prevention
CN105373214A (en) Terminal control method and system
CN105468133B (en) Touch processing method and device
CN105069404A (en) Method and system for processing fingerprint information
CN110955568B (en) Touch screen problem positioning method and device, equipment and storage medium
US10228792B2 (en) Touch determining device and method, and display device
CN111669633A (en) Remote control signal-to-touch operation method and device and display equipment
CN107239202B (en) Control instruction identification method and device
CN109710111B (en) False touch prevention method and electronic equipment
CN103870378A (en) Monitoring method for terminal device and terminal device
CN107203325B (en) Searching method and device, computer device and readable storage medium
CN104572349A (en) Data backup method
CN108021313B (en) Picture browsing method and terminal
CN115599375A (en) Data processing method and device based on RPA system
CN105824743B (en) A kind of method and mobile terminal for testing unlocked time
US20200409525A1 (en) Object batching method and appartus

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