Method for simulating support of remote multi-point control instruction by Android system

A multi-point control and system simulation technology, applied in the input/output process of data processing, instruments, electrical digital data processing, etc., can solve problems such as unfavorable reading and expansion, heavy code redundancy, inconvenient expansion management, etc. Achieve the effect of improving code readability and reducing redundancy

Pending Publication Date: 2020-04-10
深圳市臂云科技有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] When there are one or two touch and click events, this implementation is also feasible, but if we need more than ten touch and click events, such code is very inconvenient to expand and manage, and the amount of code is undoubtedly heavy and redundant, which is not conducive to reading and expand

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to facilitate those of ordinary skill in the art to understand and implement the present invention, the embodiments of the present invention are further described below.

[0019] A kind of Android system simulation provided by the present invention supports the method for remote multi-point control instruction, comprises steps:

[0020] (1) Define an object in the upper layer of the system, which includes three attributes of coordinate x / y and touch point assignment action, and encapsulate the object with a layer of list array.

[0021] Specifically, such a layer of encapsulation can be done on the upper layer. By defining an object, the object contains three attributes of x, y, and action, where the x, y attributes are the values ​​​​of the coordinate axes of the mobile phone screen, and action The attribute is used as the behavior judgment value of a touch point, and then the object is encapsulated with a list array. When there is only one touch point, our ac...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for simulating the support of a remote multi-point control instruction by an Android system. The method comprises the following steps of: defining an object which comprises three attributes, namely, coordinates x / y and touch point assignment action, on the upper layer of the system, and packaging the object with a layer of list array; traversing the list array toobtain a current corresponding value, endowing the list array with the current corresponding value, marking the position of a touch point simulated this time through a temporary variable targetIndex,and performing displacement calculation to obtain a click type; and calling a sendPointer Sync method, and triggering a multi-point touch instruction. With the method of the invention, code redundancyis reduced; multi-point touch control can be flexibly supported; a current specific movable touch point can be accurately known; and code readability and expansibility are improved.

Description

technical field [0001] The invention relates to the Android system remote control technology, in particular to a method for the Android system to simulate and support remote multi-point control commands. Background technique [0002] There are touch control commands of the Android system on the Android system. When we need to realize the remote control of the Android system, the upper layer of the system needs to encapsulate a set of control commands to realize the remote control of the Android system. [0003] When we only need one touch to click, we can do this: [0004] First, get the simulated click object of Instrumentation newly introduced by Java, use the method of sendPointerSync(), then use the MotionEvent.obtain function, and then input the corresponding parameters (click start time, click end time, click type (press, lift) touch), the x-axis coordinate position of the screen, and the y-axis coordinate position of the screen). To implement a touch click event req...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/0488G06F3/041
CPCG06F3/0488G06F3/0416G06F2203/04808
Inventor 黄宏发刘毅刘凯林鹏程梁刚宗超
Owner 深圳市臂云科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products