Processing method and device, electronic equipment and storage medium
By configuring a dual recognition algorithm in the system framework layer and the target application, the problem of touch input being intercepted by error is solved, ensuring that the target application responds correctly, and improving the accuracy and reliability of the response.
Patent Information
- Application Number
- CN202510661823.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-08-26
AI Technical Summary
In the prior art, touch operations entered by a user on the display screen of an electronic device are intercepted by other applications, resulting in the target application being unable to respond normally.
By configuring the first recognition algorithm and the target application to configure the second recognition algorithm at the system framework layer, double recognition of the touch input is judged whether it is an operation instruction for the target application, and processing the touch input based on the recognition result.
It effectively solves the problem that touch input is intercepted by other applications, ensures that the target application can respond to touch input correctly, and improves the accuracy and reliability of the response.
Smart Images

Figure CN120540544A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and specifically relates to a processing method, device, electronic device and storage medium. Background Art
[0002] The display screen of an electronic device can display multiple layers of application interfaces. When user touch input is obtained, the system framework layer will distribute the touch input to each application in sequence according to the top-to-bottom order of the application interface.
[0003] However, in the above process, if the gesture operation input by the user to the target application, such as the navigation gesture application, is incorrectly intercepted and processed by other applications, the target application may be unable to respond to the gesture operation normally.
[0004] It can be seen that the processing method in the related art has the problem that the touch input is intercepted by other applications, resulting in the target application being unable to respond to the touch input. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a processing method, apparatus, electronic device and storage medium, which can solve the problem that touch input is intercepted by other applications and the target application cannot respond to the touch input.
[0006] In a first aspect, an embodiment of the present application provides a processing method, the method comprising:
[0007] Receive touch input on the screen;
[0008] Performing a first recognition on the touch input using a first recognition algorithm configured in a system framework layer, and performing a second recognition on the touch input using a second recognition algorithm configured in a target application;
[0009] The touch input is processed according to the first recognition result and the second recognition result.
[0010] In a second aspect, an embodiment of the present application provides a processing device, the device comprising:
[0011] A first receiving module, configured to receive touch input on the screen;
[0012] an identification module, configured to perform a first identification on the touch input using a first identification algorithm configured by a system framework layer, and to perform a second identification on the touch input using a second identification algorithm configured by a target application;
[0013] A processing module is configured to process the touch input according to the first recognition result and the second recognition result.
[0014] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0018] In an embodiment of the present application, a first recognition algorithm is configured in the system framework layer, and when a touch input on the screen is received, the touch input is respectively recognized using the first recognition algorithm and the second recognition algorithm configured by the target application to determine whether the touch input is an operation instruction for the target application. In this way, the touch input is processed according to the first recognition result and the second recognition result, which can solve the problem that the touch input for the target application is intercepted and processed by other applications, resulting in the failure of the touch input. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of a related art in which an operation event of a navigation gesture application (Application, APP) is intercepted by other APPs;
[0020] Figure 2 This is one of the flowcharts of the processing method provided in some embodiments of the present application;
[0021] Figure 3 is a logic diagram of the processing method in some embodiments of the present application;
[0022] Figure 4 This is a framework diagram of the system framework layer and application layer in some embodiments of the present application;
[0023] Figure 5 This is the second flowchart of the processing method provided in some embodiments of the present application;
[0024] Figure 6is a flowchart of determining a response strategy of a target application in some embodiments of the present application;
[0025] Figure 7 is a schematic structural diagram of a processing device provided in some embodiments of the present application;
[0026] Figure 8 is a schematic structural diagram of an electronic device provided in some embodiments of the present application;
[0027] Figure 9 This is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0029] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in this specification indicates at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0030] It should be noted that in the embodiments of the present application, an example is given in which the target application is a full-screen gesture application and the touch input is a full-screen gesture operation. The full-screen gesture operation can be referred to as a gesture operation or a navigation gesture operation, and the full-screen gesture application can be referred to as a navigation gesture APP.
[0031] In other possible implementations, the target application may be an application other than the navigation gesture APP, and the touch input may be a touch input other than the full-screen gesture operation. For example, if the target application is an application interface blocked by a floating window, and the application includes an input box, when receiving a user's touch input based on an input method, the system framework layer may determine whether the user's touch input is used to input content into the above-mentioned input box, and synchronously dispatch the touch input to the application corresponding to the floating window. If the application corresponding to the floating window determines that the touch input is not for its own operation, the system framework layer will continue to dispatch the touch input to the application corresponding to the input box. In this process, if the touch input is mistakenly intercepted by the application corresponding to the floating window, the input operation recognition algorithm in the application corresponding to the input box cannot recognize the touch input. At this time, the system framework layer can jointly decide how to handle the touch input based on the recognition result of the touch input and the recognition result of the application corresponding to the input box. This can solve the problem that the touch input of the application corresponding to the input box is intercepted and processed by other applications, resulting in the touch input being unable to be responded to correctly.
[0032] The processing method, processing device, electronic device, and storage medium provided in the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0033] See Figure 2 The processing method provided in the embodiment of the present application includes the following steps:
[0034] Step 201: Receive touch input on the screen.
[0035] Step 202: Perform a first recognition on the touch input using a first recognition algorithm configured in the system framework layer, and perform a second recognition on the touch input using a second recognition algorithm configured in the target application.
[0036] In some embodiments, the first recognition algorithm matches the second recognition algorithm, for example, the first recognition algorithm and the second recognition algorithm have the same algorithm type and the same or similar algorithm parameters, such as the same or similar thresholds for recognizing navigation gestures.
[0037] In some embodiments, the first recognition algorithm is obtained based on the second recognition algorithm. For example, the first recognition algorithm is obtained by performing algorithm extraction, parameter copying, and other processing on the second recognition algorithm.
[0038] In some embodiments, the first recognition algorithm may be a historical version of the second recognition algorithm. For example, after the historical version of the second recognition algorithm is copied to the system framework layer, the second recognition algorithm in the target application is updated. At this time, the first recognition algorithm may be a historical version of the second recognition algorithm.
[0039] In some embodiments, the first recognition algorithm and the second recognition algorithm have the same touch input recognition algorithm logic, such as the recognition algorithms for the speed, distance, starting point, and end point of the gesture operation use the same algorithm logic.
[0040] In some embodiments, the target application may be an application that is typically running in the background, that is, an application that does not display an application interface. In the embodiments of the present application, the target application is illustrated as a full-screen gesture application, which does not constitute a specific limitation.
[0041] Of course, in other implementations, the target application may also be an application that is not currently running in the foreground, or an application whose application interface is partially or completely blocked by another application interface.
[0042] In some embodiments, the application interface of at least one application is displayed on the screen. In this case, the target application may be an application running in the background or an application whose application interface is not displayed on the top layer, such as an application whose application interface is fully or partially blocked by the application interface of other applications.
[0043] In some embodiments, the first recognition and the second recognition are performed simultaneously. That is, when the system framework layer performs the first recognition of the touch input based on the first recognition algorithm, it also simultaneously dispatches the touch input to at least two applications in a first order until the touch input is intercepted and processed by one of the applications, at which point it stops dispatching the touch input. In this case, the application that intercepts and processes the touch input may be the target application or another application among the at least two applications other than the target application.
[0044] Optionally, the at least two applications may include the target application and other applications whose application interfaces are displayed above the application interface of the target application. Alternatively, the at least two applications may include all applications currently running in the foreground and background.
[0045] At this time, the first order may include an arrangement order of the at least two application programs, such as an order in which the application interfaces are displayed on the screen from top to bottom, or a pre-configured order.
[0046] In one case, if the application that intercepts and processes the touch input is the target application, the second recognition algorithm of the target application can recognize the touch input as an operation instruction for the target application, and the first recognition algorithm will also most likely recognize the touch input as an operation instruction for the target application. In this way, the first recognition result and the second recognition result match, thereby controlling the target application to process the touch input according to the second recognition result.
[0047] Of course, when the second recognition algorithm is not completely consistent with the first recognition algorithm, it may happen that the second recognition algorithm of the target application can recognize the touch input as an operation instruction for the target application, while the first recognition algorithm does not recognize the touch input as an operation instruction for the target application. At this time, the first recognition result and the second recognition result do not match. At this time, the target application can be controlled to process the touch input according to the mismatching response strategy between the two.
[0048] For example: the response strategy for the mismatch between the two is that when the first recognition result is to recognize the touch input as an operation instruction for operating the target application, and the second recognition result does not recognize the touch input as an operation instruction for operating the target application, the system framework layer directly transmits the touch input to the target application to use the second recognition algorithm to perform a second recognition on the touch input, obtain a third recognition result, and process the touch input according to the third recognition result.
[0049] In another case, if the application that intercepts and processes the touch input is another application, the target application fails to obtain the touch input, so that the second recognition algorithm cannot recognize the touch input as an operation instruction for the target application. The first recognition algorithm can recognize the touch input as an operation instruction for the target application. In this way, the first recognition result and the second recognition result do not match, thereby controlling the target application to process the touch input according to the response strategy that does not match the two. For example: when the first recognition result recognizes the touch input as an operation instruction for the target application, and the second recognition result does not recognize the touch input as an operation instruction for the target application, the system framework layer transmits the touch input directly to the target application to perform a secondary recognition on the touch input using the second recognition algorithm, obtain a third recognition result, and process the touch input according to the third recognition result.
[0050] For example: Figure 3As shown, assuming that the target application is a navigation gesture APP, the application interfaces of APP 1, APP 2 and APP xx are displayed in sequence from top to bottom. At this time, if a navigation gesture operation event is received, the system framework layer will dispatch the navigation gesture operation event in the order of APP 1, APP 2, APP xx and navigation gesture APP until the navigation gesture operation event is incorrectly intercepted and processed by APP xx. At the same time, the system framework layer also synchronously recognizes the navigation gesture operation event based on the first recognition algorithm. Finally, it determines how the navigation gesture APP handles the navigation gesture operation event based on the first recognition result of the first recognition algorithm and the second recognition result of the navigation gesture APP.
[0051] In related technologies, such as Figure 1 As shown, after receiving the navigation gesture operation event, the system framework layer dispatches the navigation gesture operation event in the order of APP 1, APP 2, APP xx and navigation gesture APP, until the navigation gesture operation event is incorrectly intercepted and processed by APP xx. Then the system framework layer no longer dispatches the navigation gesture operation event to the navigation gesture APP, causing the navigation gesture operation to fail.
[0052] In an embodiment of the present application, a first recognition algorithm is configured in the system framework layer, and when a touch input on the screen is received, the touch input is respectively recognized using the first recognition algorithm and the second recognition algorithm configured by the target application to determine whether the touch input is an operation instruction for the target application. In this way, the touch input is processed according to the first recognition result and the second recognition result, which can solve the problem that the touch input for the target application is intercepted and processed by other applications, resulting in the failure of the touch input.
[0053] It should be noted that in the following embodiments of the present application, the target application is usually a full-screen gesture application, and the touch input includes a full-screen gesture operation event as an example for illustration. In this application scenario, the processing method of the embodiment of the present application can solve the problem that the full-screen gesture operation event of the full-screen gesture application is intercepted and processed by other applications, resulting in the inability to respond to the full-screen gesture operation event.
[0054] As an optional implementation manner, processing the touch input according to the first recognition result and the second recognition result includes:
[0055] When the first recognition result matches the second recognition result, controlling the target application to process the touch input according to the first recognition result or the second recognition result;
[0056] In a case where the first recognition result does not match the second recognition result, the target application is controlled to process the touch input according to a preset strategy.
[0057] In some implementations, when the first recognition result matches the second recognition result, the target application processes the touch input according to a normal process. For example, the target application directly responds according to the second recognition result.
[0058] In some embodiments, when the first recognition result does not match the second recognition result, it means that at least one of the first recognition result and the second recognition result is an abnormal recognition result. At this time, the target application processes the touch input according to a preset strategy. For example, the target application can determine the abnormal cause of the inconsistency between the first recognition result and the second recognition result based on the first recognition result and the second recognition result, and then process the touch input according to the abnormal response method corresponding to the abnormal cause.
[0059] In this embodiment, whether the first and second recognition results match can be used to determine whether there is an anomaly between the first and second recognition results. Thus, if there is no anomaly between the first and second recognition results, the target application is controlled to process the touch input normally. If there is an anomaly between the first and second recognition results, the target application is controlled to process the touch input according to a preset policy. This simplifies the process of determining whether there is an anomaly between the first and second recognition results. The anomaly in the second recognition result may be caused by the touch input being incorrectly intercepted and processed by another application. This embodiment simplifies the process of determining whether the touch input was incorrectly intercepted and processed by another application.
[0060] As an optional implementation manner, when the first recognition result does not match the second recognition result, controlling the target application to process the touch input according to a preset strategy includes:
[0061] If the first recognition result is that an operation instruction for the target application is recognized, and the second recognition result is that an operation instruction for the target application is not recognized, controlling the target application to perform a third recognition on the touch input based on the second recognition algorithm to obtain a third recognition result, and processing the touch input according to the third recognition result;
[0062] When the first recognition result is that no operation instruction for the target application is recognized, and the second recognition result is that an operation instruction for the target application is recognized, the target application is controlled to process the touch input according to the second recognition result.
[0063] In some embodiments, when the first recognition result is that an operation instruction for the target application is recognized, and the second recognition result is that an operation instruction for the target application is not recognized, it indicates that the touch input is incorrectly intercepted and processed by other applications, so that the system framework can recognize the touch input as an operation instruction for the target application based on the first recognition algorithm, but the touch input is not passed to the target application, so that the target application cannot recognize the touch input as an operation instruction for the target application based on the second recognition algorithm. At this time, controlling the target application to perform a third recognition on the touch input based on the second recognition algorithm to obtain a third recognition result can be different from the system framework layer dispatching the touch input to the at least two applications in sequence according to the conventional operation event dispatching process, but instead directly delivering the touch input to the target application through the system framework layer.
[0064] In this way, it can be ensured that the target application can receive the touch input, and then perform a third recognition on the touch input based on the second recognition algorithm to obtain a third recognition result. At this time, the third recognition result is a recognition result that excludes the touch input from being intercepted and processed by other applications.
[0065] In some embodiments, when the first recognition result is that the operation instruction for the target application is not recognized, and the second recognition result is that the operation instruction for the target application is recognized, it means that the touch input is not erroneously intercepted and processed by other applications, but is correctly dispatched to the target application, and the target application accurately recognizes the touch input as an operation instruction for the target application based on the second recognition algorithm; and the first recognition result is that the operation instruction for the target application is not recognized, which is usually caused by the inaccuracy of the first recognition result. For example, if the second recognition algorithm in the target application has been updated, and the first recognition algorithm in the system framework layer has not been updated in time, the accuracy of the first recognition algorithm is usually lower than the accuracy of the second recognition algorithm; or if the parameters of the first recognition algorithm in the system framework layer and the second recognition algorithm in the target application are not completely consistent, the accuracy of the first recognition algorithm is usually lower than the accuracy of the second recognition algorithm. In this case, the target application is controlled to process the touch input according to the second recognition result.
[0066] In this way, the recognition result of the second recognition algorithm in the target application can be used as a basis to improve the accuracy and reliability of the target application's response processing to the touch input.
[0067] As an optional implementation, the method further includes:
[0068] When the first recognition result is that an operation instruction for the target application is recognized, and the second recognition result is that no operation instruction for the target application is recognized, obtaining log information of the system framework layer and the target application;
[0069] Perform an abnormality analysis on the log information to obtain an abnormality diagnosis result.
[0070] It should be noted that, when the first recognition result is that the operation instruction for the target application is recognized, and the second recognition result is that the operation instruction for the target application is not recognized, the first recognition algorithm identified in the system framework layer can recognize the operation instruction for the target application based on the touch input obtained by the system framework layer, but the target application does not recognize the touch input as an operation instruction for the target application based on the second recognition algorithm. The reason is usually that the touch input is incorrectly intercepted and processed by other applications.
[0071] In some embodiments, the abnormality diagnosis result may include whether the touch input is incorrectly intercepted and processed by other applications and / or a solution strategy for the problem that the touch input is not dispatched to the target application.
[0072] In some embodiments, log information of other applications currently running in the foreground can also be obtained. In this way, the log information of the system framework layer, the target application and other applications that may erroneously intercept the touch input can be combined to perform an exception analysis. In this way, based on the exception diagnosis results, it can be determined which application erroneously intercepted and processed the touch input, and / or the reason why the touch input was erroneously intercepted and processed by other applications, and / or the solution strategy to the problem of the touch input being erroneously intercepted and processed by other applications.
[0073] In this embodiment, by performing exception analysis on the log information of the system framework layer and the target application, relevant logs related to the touch input being erroneously intercepted and processed by other applications can be obtained. Based on the exception analysis of these logs, the reason why the touch input was not dispatched to the target application can be more accurately determined, thereby improving the reliability and accuracy of the exception analysis process.
[0074] As an optional implementation, before performing the first recognition of the touch input using the first recognition algorithm configured in the system framework layer and performing the second recognition of the touch input using the second recognition algorithm configured in the target application, the method further includes:
[0075] Obtain a second recognition algorithm in the target application;
[0076] constructing a system service including the first recognition algorithm according to the second recognition algorithm;
[0077] Register the system service in the system framework layer.
[0078] In some embodiments, as Figure 4 As shown, after the system service is registered in the system framework layer, the parameters of the second recognition algorithm in the application layer can also be synchronized to the first recognition algorithm in the system framework layer to ensure that the parameters of the first recognition algorithm are consistent with the second recognition algorithm.
[0079] In this embodiment, the second recognition algorithm can be obtained from the target application, and the obtained algorithm can be reconstructed into a system service, and finally the system service can be registered in the system framework layer, which is equivalent to copying the second recognition algorithm in the target application to the system framework layer, and can improve the consistency of the first recognition algorithm and the second recognition algorithm, so that the first recognition algorithm and the second recognition algorithm can obtain mutually matching recognition results for the same touch input, so that according to the matching results of the first recognition result and the second recognition result, it can more accurately reflect whether the touch input is incorrectly intercepted and processed by other applications.
[0080] In order to facilitate the description of the processing method of the embodiment of the present application, it is assumed that the target application is a navigation gesture APP and the touch input is a gesture operation. Figure 5 and Figure 6 The processing method of the embodiment of the present application is illustrated by taking the processing flow in the Android system as an example.
[0081] like Figure 5 As shown, the processing methods include:
[0082] Step 501: Receive a user's gesture operation;
[0083] Step 502: The touch screen driver of the system framework layer obtains a gesture operation event;
[0084] Step 503: The system framework layer dispatches the gesture operation event;
[0085] Step 504: The system framework layer performs gesture detection on the gesture operation event based on the gesture detection module to obtain a first recognition result; wherein the gesture recognition algorithm in the gesture detection module is the first recognition algorithm, and the gesture recognition algorithm in the navigation gesture APP is the second recognition algorithm;
[0086] Step 505: The navigation gesture APP receives the operation event dispatched by the system framework layer based on the event receiver;
[0087] Step 506: The gesture detection module in the navigation gesture APP recognizes the operation event received by the event receiver and obtains a second recognition result;
[0088] Step 507: The navigation gesture APP compares the first recognition result with the second recognition result;
[0089] Wherein, if the navigation gesture APP determines that the first recognition result matches the second recognition result, step 508 is executed; if the navigation gesture APP determines that the first recognition result does not match the second recognition result, step 509 is executed;
[0090] Step 508: The navigation gesture APP responds to the gesture operation;
[0091] Step 509: The navigation gesture APP enters the abnormal response process.
[0092] Among them, such as Figure 6 As shown, the exception response process may include the following steps:
[0093] Step 601: Determine whether the first recognition result and the second recognition result do not match;
[0094] Step 602: Determine whether the first recognition result and the second recognition result satisfy the following conditions: the system framework layer does not detect a gesture operation on the navigation gesture APP or the navigation gesture APP detects a gesture operation;
[0095] Wherein, if the judgment result of step 602 is "yes", that is, if the navigation gesture APP detects a gesture operation, step 603 is executed; otherwise, if the system framework layer detects a gesture operation on the navigation gesture APP and the navigation gesture APP does not detect a gesture operation, step 604 is executed;
[0096] Step 603: Execute a response operation corresponding to the gesture operation;
[0097] Step 604: The system framework layer sends the gesture operation event to the navigation gesture APP for secondary verification to obtain a third recognition result;
[0098] If the third recognition result is that no gesture operation is detected, step 605 is executed; otherwise, step 606 is executed;
[0099] Step 605: discard the first recognition result;
[0100] Step 606: Determine whether the gesture operation event is abnormally intercepted and processed by other applications;
[0101] Step 607: Make corrections according to preset rules or prompt the user to re-operate, and record an exception log.
[0102] It should be noted that in step 607, when it is determined that the gesture operation event is abnormally intercepted and processed by other applications, in some embodiments, corrections can be made based on preset rules, such as modifying the system framework layer's gesture operation event dispatching strategy; in other embodiments, the user can be prompted to re-enter the gesture operation, such as displaying a prompt message "Please perform the gesture operation on the desktop", or a reminder can be made through voice prompts, vibrations, etc.; in some other embodiments, system logs, logs of intercepted gesture operation events by other applications and navigation gesture APPs, etc. can be recorded to perform abnormal analysis based on these log information, to obtain an abnormal analysis of the gesture operation event being incorrectly intercepted and processed, and to quickly locate the problem.
[0103] The processing method of the embodiment of the present application effectively reduces the probability of missed recognition of navigation gestures through a double verification mechanism, thereby improving the ability to locate the problem of missed recognition of navigation gestures.
[0104] The processing method provided in the embodiment of the present application can be executed by a processing device. In the embodiment of the present application, the processing device provided in the embodiment of the present application is described by taking the processing method executed by the processing device as an example.
[0105] See Figure 7 , an embodiment of the present application provides a processing device 700, including:
[0106] A first receiving module 701 is configured to receive a touch input on the screen;
[0107] an identification module 702 configured to perform a first identification on the touch input using a first identification algorithm configured in a system framework layer, and to perform a second identification on the touch input using a second identification algorithm configured in a target application;
[0108] The processing module 703 is configured to process the touch input according to the first recognition result and the second recognition result.
[0109] In some implementations, the target application is a full-screen gesture application, and the touch input includes a gesture operation.
[0110] In some embodiments, the processing module 703 includes:
[0111] a first processing unit, configured to control the target application to process the touch input according to the first recognition result or the second recognition result when the first recognition result matches the second recognition result;
[0112] The second processing unit is configured to control the target application to process the touch input according to a preset strategy when the first recognition result does not match the second recognition result.
[0113] In some embodiments, the second processing unit includes:
[0114] a first processing subunit, configured to, when the first recognition result is that an operation instruction for the target application is recognized and the second recognition result is that an operation instruction for the target application is not recognized, control the target application to perform a third recognition on the touch input based on the second recognition algorithm, obtain a third recognition result, and process the touch input according to the third recognition result;
[0115] The second processing subunit is used to control the target application to process the touch input according to the second recognition result when the first recognition result is that the operation instruction for the target application is not recognized and the second recognition result is that the operation instruction for the target application is recognized.
[0116] In some embodiments, the processing device 700 further includes:
[0117] a first acquisition module, configured to acquire log information of the system framework layer and the target application when the first recognition result is that an operation instruction for the target application is recognized and the second recognition result is that no operation instruction for the target application is recognized;
[0118] The abnormality diagnosis module is used to perform abnormality analysis on the log information and obtain abnormality diagnosis results.
[0119] In some embodiments, the processing device 700 further includes:
[0120] a second acquisition module, configured to acquire a second recognition algorithm in the target application before the recognition module performs a first recognition on the touch input using the first recognition algorithm configured in the system framework layer and performs a second recognition on the touch input using the second recognition algorithm configured in the target application;
[0121] a construction module, configured to construct a system service including the first recognition algorithm according to the second recognition algorithm;
[0122] The registration module is used to register the system service in the system framework layer.
[0123] The processing device 700 in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0124] The processing device 700 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0125] The processing device 700 provided in the embodiment of the present application can implement each process implemented in the aforementioned method embodiment of the present application, and can achieve the same beneficial effects as the aforementioned method embodiment of the present application. To avoid repetition, it will not be described here.
[0126] Alternatively, as Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores a program or instruction that can be run on the processor 801, and when the program or instruction is executed by the processor 801, the various steps of the above-mentioned processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0127] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0128] Figure 9 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0129] The electronic device 900 includes but is not limited to components such as a radio frequency unit 901 , a network module 902 , an audio output unit 903 , an input unit 904 , a sensor 905 , a display unit 906 , a user input unit 907 , an interface unit 908 , a memory 909 , and a processor 910 .
[0130] Those skilled in the art will understand that the electronic device 900 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0131] The user input unit 907 is used to receive touch input on the screen;
[0132] Processor 910, configured to perform a first recognition on the touch input using a first recognition algorithm configured by a system framework layer, and to perform a second recognition on the touch input using a second recognition algorithm configured by a target application;
[0133] The processor 910 is further configured to process the touch input according to the first recognition result and the second recognition result.
[0134] In some implementations, the target application is a full-screen gesture application, and the touch input includes a gesture operation.
[0135] In some embodiments, the processing of the touch input according to the first recognition result and the second recognition result performed by the processor 910 includes:
[0136] When the first recognition result matches the second recognition result, controlling the target application to process the touch input according to the first recognition result or the second recognition result;
[0137] In a case where the first recognition result does not match the second recognition result, the target application is controlled to process the touch input according to a preset strategy.
[0138] In some embodiments, the step performed by the processor 910 of controlling the target application to process the touch input according to a preset strategy when the first recognition result does not match the second recognition result includes:
[0139] If the first recognition result is that an operation instruction for the target application is recognized, and the second recognition result is that an operation instruction for the target application is not recognized, controlling the target application to perform a third recognition on the touch input based on the second recognition algorithm to obtain a third recognition result, and processing the touch input according to the third recognition result;
[0140] When the first recognition result is that no operation instruction for the target application is recognized, and the second recognition result is that an operation instruction for the target application is recognized, the target application is controlled to process the touch input according to the second recognition result.
[0141] In some implementations, the processor 910 is further configured to:
[0142] When the first recognition result is that an operation instruction for the target application is recognized, and the second recognition result is that no operation instruction for the target application is recognized, obtaining log information of the system framework layer and the target application;
[0143] Perform an abnormality analysis on the log information to obtain an abnormality diagnosis result.
[0144] In some embodiments, before executing the first recognition algorithm configured by the system framework layer and the second recognition algorithm configured by the target application, the processor 910 is further configured to:
[0145] Obtain a second recognition algorithm in the target application;
[0146] constructing a system service including the first recognition algorithm according to the second recognition algorithm;
[0147] Register the system service in the system framework layer.
[0148] The electronic device according to the embodiment of the present application can achieve the following Figure 7 The functions of the various modules in the processing device 700 shown are the same and can achieve the same beneficial effects. To avoid repetition, they will not be described again here.
[0149] It should be understood that in an embodiment of the present application, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0150] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0151] Processor 910 may include one or more processing units. Optionally, processor 910 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 910.
[0152] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0153] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0154] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned processing method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0155] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0156] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0157] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0159] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A processing method, characterized in that: The method comprises: Receive touch input on the screen; Performing a first recognition on the touch input using a first recognition algorithm configured in a system framework layer, and performing a second recognition on the touch input using a second recognition algorithm configured in a target application; The touch input is processed according to the first recognition result and the second recognition result.
2. The method according to claim 1, characterized in that The processing of the touch input according to the first recognition result and the second recognition result includes: When the first recognition result matches the second recognition result, controlling the target application to process the touch input according to the first recognition result or the second recognition result; In a case where the first recognition result does not match the second recognition result, the target application is controlled to process the touch input according to a preset strategy.
3. The method according to claim 2, characterized in that When the first recognition result does not match the second recognition result, controlling the target application to process the touch input according to a preset strategy includes: If the first recognition result is that an operation instruction for the target application is recognized, and the second recognition result is that an operation instruction for the target application is not recognized, controlling the target application to perform a third recognition on the touch input based on the second recognition algorithm to obtain a third recognition result, and processing the touch input according to the third recognition result; When the first recognition result is that no operation instruction for the target application is recognized, and the second recognition result is that an operation instruction for the target application is recognized, the target application is controlled to process the touch input according to the second recognition result.
4. The method according to claim 3, characterized in that The method further comprises: When the first recognition result is that an operation instruction for the target application is recognized, and the second recognition result is that no operation instruction for the target application is recognized, obtaining log information of the system framework layer and the target application; Perform an abnormality analysis on the log information to obtain an abnormality diagnosis result.
5. The method according to any one of claims 1 to 4, characterized in that Before performing the first recognition on the touch input using the first recognition algorithm configured by the system framework layer and performing the second recognition on the touch input using the second recognition algorithm configured by the target application, the method further includes: Obtain a second recognition algorithm in the target application; constructing a system service including the first recognition algorithm according to the second recognition algorithm; Register the system service in the system framework layer.
6. A processing device, characterized in that include: A first receiving module, configured to receive touch input on the screen; an identification module, configured to perform a first identification on the touch input using a first identification algorithm configured by a system framework layer, and to perform a second identification on the touch input using a second identification algorithm configured by a target application; A processing module is configured to process the touch input according to the first recognition result and the second recognition result.
7. The device according to claim 6, characterized in that The processing module includes: a first processing unit, configured to control the target application to process the touch input according to the first recognition result or the second recognition result when the first recognition result matches the second recognition result; The second processing unit is configured to control the target application to process the touch input according to a preset strategy when the first recognition result does not match the second recognition result.
8. The device according to claim 7, characterized in that The second processing unit includes: a first processing subunit, configured to, when the first recognition result is that an operation instruction for the target application is recognized and the second recognition result is that an operation instruction for the target application is not recognized, control the target application to perform a third recognition on the touch input based on the second recognition algorithm, obtain a third recognition result, and process the touch input according to the third recognition result; The second processing subunit is used to control the target application to process the touch input according to the second recognition result when the first recognition result is that the operation instruction for the target application is not recognized and the second recognition result is that the operation instruction for the target application is recognized.
9. The device according to claim 8, characterized in that The device further comprises: a first acquisition module, configured to acquire log information of the system framework layer and the target application when the first recognition result is that an operation instruction for the target application is recognized and the second recognition result is that no operation instruction for the target application is recognized; The abnormality diagnosis module is used to perform abnormality analysis on the log information and obtain abnormality diagnosis results.
10. The device according to any one of claims 6 to 9, characterized in that The device further comprises: a second acquisition module, configured to acquire a second recognition algorithm in the target application before the recognition module performs a first recognition on the touch input using the first recognition algorithm configured in the system framework layer and performs a second recognition on the touch input using the second recognition algorithm configured in the target application; a construction module, configured to construct a system service including the first recognition algorithm according to the second recognition algorithm; The registration module is used to register the system service in the system framework layer.
11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the processing method according to any one of claims 1 to 5 are implemented.