CN106991017A - Event-handling method and device - Google Patents
Event-handling method and device Download PDFInfo
- Publication number
- CN106991017A CN106991017A CN201710217345.6A CN201710217345A CN106991017A CN 106991017 A CN106991017 A CN 106991017A CN 201710217345 A CN201710217345 A CN 201710217345A CN 106991017 A CN106991017 A CN 106991017A
- Authority
- CN
- China
- Prior art keywords
- event
- jni
- specified services
- device drives
- corresponding device
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiments of the invention provide a kind of event-handling method and device.The embodiment of the present invention is used to monitor the corresponding device drives event of specified services by after specified services complete opening initialization, creating Java local interface JNI watcher threads, JNI watcher threads in system service System_Server processes;JNI watcher threads are run in local layer;The corresponding device drives event of specified services is listened in response to JNI watcher threads, by calling corresponding JNI, the corresponding device drives event of specified services is reported to Java layers, realized using independent code by bottom reporting events to Java layers above, in code set, independently, be conducive to reuse management and maintenance, and the code in the independent sets has the characteristic of high cohesion lower coupling, therefore the stability of code is improved, therefore, the problem of event handling mode of the prior art causes the durability of code, maintainable and stability is all very poor is solved.
Description
【Technical field】
The present invention relates to the communications field, more particularly to a kind of event-handling method and device.
【Background technology】
At present, the widely used Android of the mobile terminal such as smart mobile phone, tablet personal computer (Android) system.Mobile terminal
Android system from the bottom to top include device drive layer, HAL (Hardware Abstract Layer, hardware abstraction layer) layer,
Framework (framework) layers and the java application of the superiors.Wherein, Framework (framework) layer includes Java framework layer
With local (Native) ccf layer, wherein, local ccf layer abbreviation local layer.
After device drive layer obtains some bottom event, the bottom event can be reported via hardware abstraction layer and framework
The java application of the superiors.When realizing project (i.e. the java application) related to the bottom event, it is necessary to will be hard
The correlative code of part level of abstraction and framework is transplanted in the project, needs to change the big of hardware abstraction layer and framework in migration process
The interface code of amount.Also, each project related to the bottom event is required for independent transplant and modification hardware abstraction layer
With the correlative code of framework.This event handling mode causes the durability of code, maintainable and stability all very poor.
【The content of the invention】
In view of this, the embodiments of the invention provide a kind of event-handling method and device, to solve in the prior art
Event handling mode cause the durability of code, the problem of maintainable and stability is all very poor.
In a first aspect, the embodiment of the present invention provides a kind of event-handling method, applied to android terminal, methods described bag
Include:
Java local interface JNI watcher threads are created in system service System_Server processes, the JNI is monitored
Thread is used to monitor the corresponding device drives event of specified services;
In the local Native layers operation JNI watcher thread;
The corresponding device drives event of the specified services is listened in response to the JNI watcher threads, by calling phase
The JNI answered, the corresponding device drives event of the specified services is reported to Java layers.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, in response to described
JNI watcher threads listen to the corresponding device drives event of the specified services, by calling corresponding JNI, are specified described
Corresponding device drives event is serviced to report to Java layers, including:
The corresponding device drives event of the specified services is listened in response to the JNI watcher threads, acquisition is listened to
The corresponding device drives event of the specified services event identifier;
By calling corresponding JNI, by the event identifier of the corresponding device drives event of the specified services to Java layers
Report.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the specified clothes
It is engaged in as fingerprinting service, the corresponding device drives event of the specified services drives event for fingerprint equipment.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, methods described is also
Including:
Pass through the corresponding collecting device acquisition operations information of the specified services;
The operation information is identified, the corresponding device drives event of the specified services is obtained;
The device drives event is sent to local layer.
Second aspect, the embodiment of the present invention provides a kind of event processing apparatus, is arranged at android terminal, described device bag
Include:
Creation module, for creating Java local interface JNI listening-in lines in system service System_Server processes
Journey, the JNI watcher threads are used to monitor the corresponding device drives event of specified services;
Module is run, in the local Native layers operation JNI watcher thread;
Reporting module, for listening to the corresponding device drives thing of the specified services in response to the JNI watcher threads
Part, by calling corresponding JNI, the corresponding device drives event of the specified services is reported to Java layers.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described to report mould
Block in response to the JNI watcher threads for listening to the corresponding device drives event of the specified services, by calling phase
The JNI answered, by the corresponding device drives event of the specified services to giving the correct time on Java layers, specifically for:
The corresponding device drives event of the specified services is listened in response to the JNI watcher threads, acquisition is listened to
The corresponding device drives event of the specified services event identifier;
By calling corresponding JNI, by the event identifier of the corresponding device drives event of the specified services to Java layers
Report.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the specified clothes
It is engaged in as fingerprinting service, the corresponding device drives event of the specified services drives event for fingerprint equipment.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, described device is also
Including:
Acquisition module, for passing through the corresponding collecting device acquisition operations information of the specified services;
Identification module, for the operation information to be identified, obtains the corresponding device drives thing of the specified services
Part;
Sending module, for the device drives event to be sent to local layer.
The embodiment of the present invention has the advantages that:
The embodiment of the present invention, specified services pair are monitored by the JNI watcher threads created in System_Server processes
The device drives event answered, and corresponding Java local interfaces are called, by the corresponding device drives reporting events of specified services
To Java layers, bottom reporting events are given in Java layers above, code set, independently, be conducive to multiple using independent code realization
With management and safeguard, and code in the independent sets has the characteristic of high cohesion lower coupling, therefore improve the stabilization of code
Property.
【Brief description of the drawings】
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area
For those of ordinary skill, without having to pay creative labor, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is the first pass exemplary plot of event-handling method provided in an embodiment of the present invention.
Fig. 2 is the second procedure exemplary plot of event-handling method provided in an embodiment of the present invention.
Fig. 3 is the functional block diagram of event processing apparatus provided in an embodiment of the present invention.
【Embodiment】
In order to be better understood from technical scheme, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawings
State.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
Its embodiment, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting
The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims
It is also intended to including most forms, unless context clearly shows that other implications.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent
There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Embodiment one
The embodiments of the invention provide a kind of event-handling method, the event-handling method can apply to use Android system
The terminals such as mobile phone, the tablet personal computer of system.The event-handling method can be realized by program, the program can be arranged on mobile phone,
In the terminals such as tablet personal computer.Herein, android terminal will be referred to as using the terminal of Android system.
Fig. 1 is the first pass exemplary plot of event-handling method provided in an embodiment of the present invention.As shown in figure 1, this implementation
In example, event-handling method is applied to android terminal, and this method comprises the following steps:
S101, in System_Server (system service) process create JNI (Java Native Interface,
Java local interfaces) watcher thread, wherein, JNI watcher threads are used to monitor the corresponding device drives event of specified services;
S102, JNI watcher threads are run in Native (local) layer;
S103, the corresponding device drives event of specified services is listened in response to JNI watcher threads, corresponding by calling
JNI, the corresponding device drives event of specified services is reported to Java layers.
Wherein, the corresponding device drives event of specified services is associated.During device drives event is Android system
Bottom event, it is related generally to the specific action of user.After device drives event occurs, corresponding specified services need basis
Device drives event carries out subsequent treatment.
Illustrate.The fingerprint event of touching is also referred to as fingerprint equipment driving event, refers to what is realized by fingerprint IC algorithm
Analogue-key event, when finger touches module, fingerprint IC algorithm identifies the action that finger down is lifted by computing,
Then upper strata is reported to by driving, upper layer software (applications) does the processing of needs further according to this event.
Wherein, System_Server processes are the kernel service process of Android system, many system-level clothes of Android system
Business is all the thread of System_Server processes.
In S101, by creating JNI watcher threads in System_Server processes so that the ccf layer of Android system
The device drives event from bottom (i.e. device drive layer) can be monitored in real time, so that ccf layer can be without hardware abstraction
Layer, and directly know the corresponding device drives event of specified services.
In S102, after local layer operation JNI watcher threads, JNI watcher threads are switched on set corresponding to specified services
Standby driving event is monitored in real time.
Wherein, the Java layers in S103 refer to the java application layer of the Android system the superiors.Java local interfaces make
The java application that must be run on a java virtual machine can call specific to the machine hardware and operating system and use other languages
Say the program write (such as C, C++ or assembler language), or the routine call write by these with other language.Android system
Pass through Java local interfaces in system so that can be communicated between the Java framework layer and local layer in ccf layer, because
Java framework layer and local layer use different computer languages, for example, Java framework layer uses Java language, and local layer one
As use C language or C Plus Plus.
Wherein, JNI watcher threads are the programs in the local layer in ccf layer, therefore the thing that JNI watcher threads are listened to
Part can not be directly passed to Java layers above, and need reporting events by Java local interfaces to Java layers.
Therefore, in S103, JNI watcher threads listen to the corresponding device drives event of specified services, just call corresponding
JNI, by the corresponding device drives reporting events of specified services to Java layers so that Java layers can directly know device drive layer
Event, without the transmission of hardware abstraction layer, therefore the code of hardware abstraction layer need not be changed.
During a concrete implementation, the corresponding device drives of specified services are listened in response to JNI watcher threads
Event, by calling corresponding JNI, the corresponding device drives event of specified services is reported to Java layers, including:In response to
JNI watcher threads listen to the corresponding device drives event of specified services, obtain the corresponding equipment of the specified services listened to and drive
The event identifier of dynamic event;By calling corresponding JNI, by the event identifier of the corresponding device drives event of specified services to
Java layers report.
During a concrete implementation, specified services are fingerprinting service, the corresponding device drives event of specified services
Event is driven for fingerprint equipment.
Realize that the code of embodiment illustrated in fig. 1 is independently of Android ccf layer, it is not necessary to be embedded into Android system original
Ccf layer in.Embodiment illustrated in fig. 1, it is not necessary to change the code of Android ccf layer, is realized bottom thing by independent code
Part is reported in Java layers above, code set, independently, is conducive to reuse management and maintenance.Code in the independent sets has
The characteristic of high cohesion lower coupling, therefore improve the stability of code.
Fig. 2 is the second procedure exemplary plot of event-handling method provided in an embodiment of the present invention.As shown in Fig. 2 this implementation
In example, event-handling method is applied to android terminal, and this method comprises the following steps:
S201, creates JNI watcher threads in System_Server processes, wherein, JNI watcher threads refer to for monitoring
Surely corresponding device drives event is serviced;
S202, JNI watcher threads are run in local layer;
S203, passes through the corresponding collecting device acquisition operations information of specified services;
S204, operation information is identified, and obtains the corresponding device drives event of specified services;
S205, device drives event is sent to local layer;
S206, the corresponding device drives event of specified services is listened in response to JNI watcher threads, corresponding by calling
JNI, the corresponding device drives event of specified services is reported to Java layers.
Wherein, in S205, after the corresponding device drives event of specified services is obtained, by device drives event to local
Layer is sent, and JNI watcher threads have just listened to device drives event.Taken out so that device drives event needs not move through hardware
As layer, it becomes possible to directly upload to the local layer of ccf layer by device drive layer.
The event-handling method of the embodiment of the present invention is described in further detail below by using example.
In this example, terminal is mobile phone, and specified services are fingerprinting service, and the corresponding device drives event of specified services is finger
Line device drives event.The event-handling method of this example comprises the following steps:
A1, mobile phone power-on starts;
Fingerprinting service in a2, mobile phone is initialized;
A3, fingerprinting service initialization is finished, and JNI watcher threads are created in System_Server processes, is referred to for monitoring
Line services corresponding device drives event, i.e. fingerprint touches event;
A4, JNI watcher threads are run in local layer, are monitored fingerprint and are touched event;
A5, passes through the corresponding collecting device acquisition operations information of fingerprinting service;
A6, operation information is identified, and obtains the corresponding fingerprint of fingerprinting service and touches event;
A7, touches event by fingerprint and is sent to local layer;
User is touched after the fingerprint module of mobile phone, by fingerprint IC algorithm, is defined as fingerprint and is touched event, inner nuclear layer is known
Fingerprint is touched after event, sends messages to JNI watcher threads, and JNI watcher threads receive message i.e. explanation, and to have listened to fingerprint light
The event of touching.
A8, judges whether JNI watcher threads listen to fingerprint and touch event, if listening to fingerprint touches event, performs
Step a9, otherwise repeatedly a8;
A9, calls Java local interfaces, and fingerprint is touched into reporting events to Java layers.
The event-handling method of the embodiment of the present invention, passes through the JNI watcher threads created in System_Server processes
Monitor the corresponding device drives event of specified services, and call corresponding Java local interfaces, set specified services are corresponding
It is standby to drive reporting events to Java layers, given bottom reporting events in Java layers above, code set using independent code realization,
It is independent, be conducive to the code in reuse management and maintenance, and the independent sets that there is the characteristic of high cohesion lower coupling, therefore lifting
The stability of code.
Embodiment two
The embodiments of the invention provide a kind of event processing apparatus, the event processing apparatus can realize previous embodiment one
Each step of middle event-handling method.
Fig. 3 is the functional block diagram of event processing apparatus provided in an embodiment of the present invention.As shown in figure 3, in the present embodiment,
Event processing apparatus can be arranged at android terminal, and the device includes:
Creation module 310, is monitored for creating Java local interfaces JNI in system service System_Server processes
Thread, JNI watcher threads are used to monitor the corresponding device drives event of specified services;
Module 320 is run, for running JNI watcher threads in local layer;
Reporting module 330, for listening to the corresponding device drives event of specified services in response to JNI watcher threads, leads to
Cross and call corresponding JNI, the corresponding device drives event of specified services is reported to Java layers.
During a concrete implementation, reporting module 330 in response to JNI watcher threads for listening to specified clothes
It is engaged in corresponding device drives event, by calling corresponding JNI, by the corresponding device drives event of specified services on Java layers
Give the correct time, specifically for:The corresponding device drives event of specified services is listened in response to JNI watcher threads, obtains what is listened to
The event identifier of the corresponding device drives event of specified services;By calling corresponding JNI, the corresponding equipment of specified services is driven
The event identifier of dynamic event is reported to Java layers.
During a concrete implementation, specified services are fingerprinting service, the corresponding device drives event of specified services
Event is driven for fingerprint equipment.
During a concrete implementation, event processing apparatus can also include:Acquisition module, for by specifying clothes
It is engaged in corresponding collecting device acquisition operations information;Identification module, for operation information to be identified, obtains specified services correspondence
Device drives event;Sending module, for device drives event to be sent to local layer.
Because the event processing apparatus in the present embodiment is able to carry out the event-handling method in previous embodiment one, this reality
The part that example is not described in detail is applied, the related description to event-handling method in previous embodiment one is referred to.
The event processing apparatus of the embodiment of the present invention, passes through the JNI watcher threads created in System_Server processes
Monitor the corresponding device drives event of specified services, and call corresponding Java local interfaces, set specified services are corresponding
It is standby to drive reporting events to Java layers, given bottom reporting events in Java layers above, code set using independent code realization,
It is independent, be conducive to the code in reuse management and maintenance, and the independent sets that there is the characteristic of high cohesion lower coupling, therefore lifting
The stability of code.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the module
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example, multiple modules or group
Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown
Or the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, device or module it is indirect
Coupling is communicated to connect, and can be electrical, machinery or other forms.
The module illustrated as separating component can be or may not be it is physically separate, it is aobvious as module
The part shown can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional module in each embodiment of the invention can be integrated in a processing unit, can also
That modules are individually physically present, can also two or more modules it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer
Device (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the present invention each
The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
Can be with the medium of store program codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (8)
1. a kind of event-handling method, applied to android terminal, it is characterised in that methods described includes:
Java local interface JNI watcher threads, the JNI watcher threads are created in system service System_Server processes
For monitoring the corresponding device drives event of specified services;
In the local Native layers operation JNI watcher thread;
The corresponding device drives event of the specified services is listened in response to the JNI watcher threads, it is corresponding by calling
JNI, the corresponding device drives event of the specified services is reported to Java layers.
2. according to the method described in claim 1, it is characterised in that listen to described specify in response to the JNI watcher threads
Service corresponding device drives event, by calling corresponding JNI, by the corresponding device drives event of the specified services to
Java layers report, including:
The corresponding device drives event of the specified services is listened in response to the JNI watcher threads, the institute listened to is obtained
State the event identifier of the corresponding device drives event of specified services;
By calling corresponding JNI, the event identifier of the corresponding device drives event of the specified services is reported to Java layers.
3. according to the method described in claim 1, it is characterised in that the specified services are fingerprinting service, the specified services
Corresponding device drives event is that fingerprint equipment drives event.
4. according to the method described in claim 1, it is characterised in that methods described also includes:
Pass through the corresponding collecting device acquisition operations information of the specified services;
The operation information is identified, the corresponding device drives event of the specified services is obtained;
The device drives event is sent to local layer.
5. a kind of event processing apparatus, is arranged at android terminal, it is characterised in that described device includes:
Creation module, for creating Java local interface JNI watcher threads, institute in system service System_Server processes
Stating JNI watcher threads is used to monitor the corresponding device drives event of specified services;
Module is run, in the local Native layers operation JNI watcher thread;
Reporting module, for listening to the corresponding device drives event of the specified services in response to the JNI watcher threads, leads to
Cross and call corresponding JNI, the corresponding device drives event of the specified services is reported to Java layers.
6. device according to claim 5, it is characterised in that the reporting module in response to the JNI for monitoring
Thread listens to the corresponding device drives event of the specified services, by calling corresponding JNI, by specified services correspondence
Device drives event to giving the correct time on Java layers, specifically for:
The corresponding device drives event of the specified services is listened in response to the JNI watcher threads, the institute listened to is obtained
State the event identifier of the corresponding device drives event of specified services;
By calling corresponding JNI, the event identifier of the corresponding device drives event of the specified services is reported to Java layers.
7. device according to claim 5, it is characterised in that the specified services are fingerprinting service, the specified services
Corresponding device drives event is that fingerprint equipment drives event.
8. device according to claim 5, it is characterised in that described device also includes:
Acquisition module, for passing through the corresponding collecting device acquisition operations information of the specified services;
Identification module, for the operation information to be identified, obtains the corresponding device drives event of the specified services;
Sending module, for the device drives event to be sent to local layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710217345.6A CN106991017B (en) | 2017-04-05 | 2017-04-05 | Event processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710217345.6A CN106991017B (en) | 2017-04-05 | 2017-04-05 | Event processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106991017A true CN106991017A (en) | 2017-07-28 |
CN106991017B CN106991017B (en) | 2020-12-25 |
Family
ID=59416306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710217345.6A Active CN106991017B (en) | 2017-04-05 | 2017-04-05 | Event processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106991017B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112698999A (en) * | 2019-10-23 | 2021-04-23 | Oppo广东移动通信有限公司 | System monitoring method, device, terminal equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662665A (en) * | 2012-03-29 | 2012-09-12 | 福州瑞芯微电子有限公司 | Input subsystem enabling Android to support various sensors |
CN103870316A (en) * | 2014-04-11 | 2014-06-18 | 烽火通信科技股份有限公司 | JAVA virtual machine implementation method for intelligent operating system |
CN104778075A (en) * | 2015-04-03 | 2015-07-15 | 北京奇虎科技有限公司 | Method and device for calling Java layer API (Application Program Interface) by native layer in Android system |
CN105094952A (en) * | 2015-09-07 | 2015-11-25 | 网易(杭州)网络有限公司 | User operation simulation method and apparatus |
CN105242770A (en) * | 2015-11-03 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Method and system for achieving cover opening and closing of android device |
CN105376494A (en) * | 2015-11-30 | 2016-03-02 | 诚迈科技(南京)股份有限公司 | Method for supporting plurality of paths of universal serial bus (USB) cameras based on Android system |
-
2017
- 2017-04-05 CN CN201710217345.6A patent/CN106991017B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662665A (en) * | 2012-03-29 | 2012-09-12 | 福州瑞芯微电子有限公司 | Input subsystem enabling Android to support various sensors |
CN103870316A (en) * | 2014-04-11 | 2014-06-18 | 烽火通信科技股份有限公司 | JAVA virtual machine implementation method for intelligent operating system |
CN104778075A (en) * | 2015-04-03 | 2015-07-15 | 北京奇虎科技有限公司 | Method and device for calling Java layer API (Application Program Interface) by native layer in Android system |
CN105094952A (en) * | 2015-09-07 | 2015-11-25 | 网易(杭州)网络有限公司 | User operation simulation method and apparatus |
CN105242770A (en) * | 2015-11-03 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Method and system for achieving cover opening and closing of android device |
CN105376494A (en) * | 2015-11-30 | 2016-03-02 | 诚迈科技(南京)股份有限公司 | Method for supporting plurality of paths of universal serial bus (USB) cameras based on Android system |
Non-Patent Citations (4)
Title |
---|
XNWYD: "Android App层通过JNI从驱动获取Input Event", 《HTTP://WWW.BUBUKO.COM/INFODETAIL-550240.HTML》 * |
YEONG-JUN KIM,SEONG-JIN CHO,KIL-JAE KIM,EUN-HYE HWANG,ETC.: "Benchmarking Java application using JNI and native C application on Android", 《2012 12TH INTERNATIONAL CONFERENCE ON CONTROL,AUTOMATION AND SYSTEMS》 * |
李艳丽: "Android事件处理过程剖析", 《长春理工大学学报 自然科学版》 * |
阳光玻璃杯: "Android输入事件从读取到分发二-四", 《HTTPS://BLOG.CSDN.NET/U011913612/ARTICLE/DETAILS/53036715》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112698999A (en) * | 2019-10-23 | 2021-04-23 | Oppo广东移动通信有限公司 | System monitoring method, device, terminal equipment and storage medium |
CN112698999B (en) * | 2019-10-23 | 2022-03-29 | Oppo广东移动通信有限公司 | System monitoring method, device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106991017B (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101739755B (en) | Method and device for realizing smart card multi-service application | |
CN105119966A (en) | Official account management method and device | |
CN103716356B (en) | Storing process operating method, device and system based on web | |
CN106445292A (en) | Doppelganger management method and system for application program | |
CN105844146B (en) | Method and device for protecting driver and electronic equipment | |
KR101316902B1 (en) | Extended JAVA virtual machine for supporting multi-tenancy and Method for processing multi-tenancy using the same | |
CN111858007A (en) | Task scheduling method and device based on message middleware | |
CN109522021B (en) | Parameter callback processing method and device, electronic equipment and storage medium | |
CN107894945A (en) | Bury an adding method, mobile terminal and computer-readable recording medium | |
CN106603125B (en) | Method and device for data interaction with Bluetooth equipment | |
CN106714123A (en) | Message transmission method and communication device | |
CN114968286A (en) | Micro-service issuing method, device, storage medium and electronic equipment | |
CN105677481B (en) | A kind of data processing method, system and electronic equipment | |
CN112835639A (en) | Hook implementation method, device, equipment, medium and product | |
CN105426253A (en) | Hardware management method and device for self-service equipment | |
CN106991017A (en) | Event-handling method and device | |
CN111131440B (en) | Resource scheduling method and device and server | |
CN107292614A (en) | Pay class application management method, device and mobile terminal | |
CN107515666A (en) | A kind of data managing method and terminal | |
CN111984448A (en) | Page calling method, device, equipment and storage medium | |
CN105228139B (en) | A kind of call processing method, device and equipment based on smart machine | |
CN106980575A (en) | A kind of event-handling method and device | |
CN101923624B (en) | RFID (Radio Frequency Identification Devices) event processing method based on channel flow | |
CN108628620A (en) | Implementation method, device, computer equipment and the storage medium of POS application and developments | |
CN111324386B (en) | Method and device for starting split application program, electronic equipment and storage medium |
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 |