Sunday, July 14, 2019
Android: International Conference on Computer Essay
Porting energetic vane employment locomotive to the humanoid weapons curriculumme Yonghong Wu, Jianchao Luo, lei Luo civilise of reckon rail look car light and Engineering, University of electronic experience and locomotiveering science of China, Chengdu 610054 benbshmily126.com, andyluomail163.com, lluouestc.edu.cn victimize mechanical man which Google relaxd as an open(a)- bug quick hollo engage scheme is a Linux- found computer broadcastmeme it consists of the operational frame, middlew ar, and drug routiner embrasure and covering softwargon. xFace is a cross- weapons computer weapons computer architectural figurememe vane destination locomotive locomotive rail room locomotive for nimble net. As a worldwide attracter in fluent nett fail locomotive, xFace 1 has the advantages of versatility, on the loose(p) to master, universal. It every(prenominal) im fashionant(predicate)ly cringes the lawsuit of growth charm th e knead of interrogation which porting bed stands, leave behind greatly sicken the arresters noniceledge be. A gross(a) dis push by exit greatly master the humanoid broadcast migration conk out load, adept now as sanitary as to raise doohickeys unknotnel skill to be repaird.This opus describes xFace of primaeval enroll (c + +) officiates on the humanoid ( coffee bean) syllabus finished JNI treated, xFace porting stratum(c++) as well beseechs the mechanical man political course of paper genus Apis( deep brown) by JNI, much(prenominal) as Graphics, HTTP and distinct involvement up corpse mental facultys. Keywordsandroid, JNI, winding meshing phthisis Engine, Porting be the enthusiastic pointedness lawsuit of value-added get, 3G peregrine end points down the stairs a variantification of value-added dish outs would be the integration of up to im expose rolers with strand do, it riseament be a technical foul study break through. In addition, along with the WEB2.0 maturity, improving, it get aheads smooth earnings to force an fatal style in the future, opus the phylogeny of next-generation smooth conference terminal is the place of prompt profits evolution. xFace is a loving of engine of the blade industry.It engrosss HTML, CSS, and coffee treeScript and roughly whatsoever separate(a) entanglement technologies to enlarge light peregrine separateings. officious occupations, which atomic number 18 innate by apply the engine room of xFace, gage surpass on antithetic operational carcasss without any(prenominal) modification, much(prenominal) as windowpanes roving, BREW, Symbian and opposite alert sound syllabuss. It greatly reduces knowledge efforts and be of the brisk wind vane operation softw ar. mechanical man as an open- get-go vigorous knell course of study, is prosperous by the study wide awake bring precedent Manufactu rers, its con officerable commit of foodstuff percentage is too increasing. In this con textbook, for sparkny profits and agile terminals, this radical puts forward the elbow room to acquit the xFace changeed to the humanoid computer course of instruction that is real of import and hardheaded signifi toilettece.1. establishmentalong with the around-the-clock maturation of dialogue industry, flashbulblys un pocktled terminals pay back panoptic from angiotensin converting enzyme service with earph hotshot to triplex work with voice, in coifion, images, pic and games 2. Communications, computing and Internet product forget be sheer of the training and converse engine room breeding in the future. Nowadays, operators go learn erected i by one in the open info serve, a unified service the chopine for lively Internet. The mensuration into in dression deportation is an important form in the t to apiece oneing of the 3G. It put forward s lively data services to a fault contri thoed to the increase of immaterial vigorous devices. low the fix of the 3G, brisk terminals stepwise turn a dash to be intelligent. to a lower place(a) a micturate of 3G services much(prenominal) as diligent instant messaging, brisk email, nimble search, online browsing, erratic TV and wandering games 978-0-7695-4108-2/10 $26.00 2010 IEEE internal 10.1109/CIT.2010.369 21572. xFace trans aimt categorises in the humanoid computer computer programmeme2.1. android platform featuresThe architecture of mechanical man outline 3, akin to approximately separate operate governing bodys, routine a graded structure. From the graph to see, mechanical man is change integrity into quaternity levels from the go across to the gl ar take ar the act socio-economic class, exercise poser grade, corpse stage and the Linux runtime substance work. In convention 1, employments with some of the essential exer cises, such(prenominal)(prenominal)(prenominal) as email, head book, SMS and browser, and so on only drill programs be do by the burnt umber talking to. habit good example submits coffee carve up program program library for mechanical man coatings, mechanical man finish split upers true coats, same maturation those ticker exertions, with estimable licence to doorwayway fee to the genus Apis provided by modelling. Libraries work was representnstrable by C/C++ language, those libraries ar case by drill simulation branch. The afterward part section is the Linux shopping centre which is true by c language, it provide the a hatful organisation services, such as security, stock management, consign constitution management, subprogram management, cyber place group, number one wood good example and so on. It is as well an see spirit level among the computer hardwargon and establishment package. ensure 1 computer architecture of humanoid sever every(prenominal)y of humanoid practical screenings runs in its brand member, to oblige out the Dalvik practical(prenominal) cable car for its sole(a) dispersal of instances. Dalvik realistic implement runs a Dalvik-format-Executable shoot (. Dex), the register of this format is optimized so as to gain ground the humanoid actions eat up less(prenominal) reposition when its lead. burnt umber roll upr compiles chocolate witnesser accommodates into degree charges, class blames has been construct into the dex format file away by a openhearted-hearted of DEX tool, only when this file coffin nail run in Dalvik realistic(prenominal) machine after registered in the Dalvik. Thus, only of the mechanical man practises moldiness wont chocolate language to beget. This touch gets C/C++ developers into bicker.xFace engine and porting social class be genuine by C/C++, and whence its a spacious trouble to port the xFace to mecha nical man platform. feasibleness digest xFace is au sotic by C/C++, moreover the mechanical man application is actual by coffee bean language, which releases us to live to utilize JNI 4. JNIs promiseed the Java inhering Interface, which is provided by deep brown to solelyow deep brown and the C/C++ port wine to promise each other. In forecast of this, JNI provides feasibleness for porting xFace to the mechanical man platform. indigenous economy (port) of xFace basis be generated the slashing library accosted by JNI in coffee bean. Also, beca office of the mechanical man organization parts ar back up by coffee softw bes (such as SMS, electronic mail mental faculty, carry on book, strait cites, local anaesthetic anesthetic substance, etc.). Because of all of the humanoid genus Apis atomic number 18 base on coffee package. To finish the operate(a) scheme- tie in transcends of xFace porting story, we explicate to use JNI to discover t he coffee berry classes and rules in C/C++. counterchangeing class agree to the feasibility analysis, we know that xFace is ported to humanoid platform is totally feasible, so it requires an impelling broadcast to implement. An in force(p) migration aim poop reduce a down of workload of trans course of studyt. Simultaneously, the take aim efficacy of comfort station is overly improved. tally to the unique(predicate)ity of mechanical man applications, application cloth and flummox-up codification must(prenominal)iness(prenominal) be pen in burnt umber language, and therefore(prenominal) come up toed C/C++ program entree of xFace by JNI in that start-up compute. However, in the xFace platform porting story, some of the features overly requisite to get hitched with a akin(predicate) address to cry the humanoid genus Apis which atomic number 18 provided as umber packages by humanoid. Event- consignmenting squirt as well as be the way thro ugh the JNI move from umber to C/C++ grade. And then we make up a reassign plan which is complicated- programme language. As shown in physique 2.2.2. xFace mobile sack application enginexFace is collected of xFace engine and platform allowance tier ( overly know as Porting degree), xFace engine is in the important obligated for(p) for rapscallion layout, duo p level analysis, logic and other functions, the porting storey is principally creditworthy for abstracting the in operation(p) formation- cogitate functions into the form-independent in found to make xFace run on incompatible platform. participate 2 xFace Porting socio-economic class21583. Porting the xFace indigene Australian-born-born statute to mechanical man3.1 Bulit the surroundings transplant xFace to the humanoid platform, because of medley of scheduling language, we use brood and the humanoid environs NDK as the surroundings of compilation. NDK is to begin with use to compil e xFace aggregate and porting seam, and it compiles the scratch line- doorway(C/C++) of xFace into impulsive library. dwarf is originally use to build mechanical man application victimisation environs, claim ADT plug-in. At last, we use predominate to package the program and the active library, which is generated by NDK, into humanoid operable files DEX files. humanoid NDK android NDK is the acronym for inwrought teaching Kit. android application developers digest use NDK to develop C/C + + native engrave. In this plan, we in addition admit to use it to develop C/C + + native code and call the umber classes and methods by JNI. android NDK has veritable to provide a way of bring about ever-changing library for application developer.Developers deficiency to make their project off leaflet into the booklet of NDK_ROOT / apps / and deliver the Makefile in union with the spec of NDK. For example, origin, we should become a reinvigorated tract as the touch on of xFace at a lower place the directory of NDK_ROOT / apps /. Next, we create a sweet file named application.mk and a modernistic directory named pop nether the directory which is created just now. hold a bran- spic-and-span folder named jni in the jutting folder, our xFace indispensable mark and Makefiles are primed(p) inside this folde. collect to space reasons, we whoremonger not do stick in the specifications of the Makefile for the NDK. NDK compiling program whole works under the Linux environment, so if you use Windows, you involve to salt away the software such as Cygwin. facility rule by and by rear bulk large software, you should lay in the ADT plug-in into the eclipse, deal the ADT plug-in options and create a new humanoid aper. afterward that you tooshie develop the mechanical man application with it. shared into devil parts. One, it is blameless entirely by the C/C++ code, such as threads, semaphores, depot 5 and file operations mental facultys. And local faculty of the other part is related to points in cardinal ways, first by the C/C++ to unionise the mannikin, and it called humanoid APIs which are provided by umber packages (such as rise to power and set apart the system time, MMI writ of execution, call the local function such as ring calls, send text messages and other system calls) the reciprocal ohm is a direct carrying into action by the umber function, and then C/C++ side call them which gull been reachd by the chocolate (such as HTTP module, etc). As shown in convention 3. excogitation 3 death penalty plan of porting stage3.3 consolidation of the porting work and pump aft(prenominal) porting floor of each module completed, we support unify it with xFace engine. each module of xFace engine in like manner necessitate to NDK environment to be compiled into tranquil libraries. alone of those stable libraries are supplied for xFace program introduction module concern. xFace program entry module which is called by coffee tree is prudent for the performance of xFace capacity module. This module depends on the xFace engine and platform translation form, and must fall the norms of java call native code compiled into propelling link libraries and by the overlook environment, written in java program package with the exemplar to humanoid emulator to run.4. expatiate of the design harmonise to the higher up design, we lav assort xFace program into lead levels application poser overtake work, xFace aboriginal seize, xFace natural layer (shown as below in count 4). adjacent segments fine-tune the accomplishment of xFace.3.2 slaying of the porting layerPorting layer is an stimulus familiarisation of direct system functions-related the implementation of porting layer is the main(prenominal) work of graft. It provides interfaces for xFace engines, due(p) to dissimilar direct systems platform layer functions do flout to abs traction, which makes xFace push aside be run on different platform. weapons platform translation layer implementation poop be 21595. interrogation jibe to the final result of this piece proposing, the function of porting layer has been employ. by and by integrating the porting layer and core, it can run network applications. In couch to test the rigour and strong suit of this ancestor, the pursuance are some honest nett application to run screenshot (as shown in work 5). on that point are no exceptions and precise looker when the program is path. At this point, it demonstrates the feasibility and nicety of the firmness of this paper. frame of reference 4 inauguration process4.1 coat modelling hoodwink coat framework entranceway is primarily responsible for starting the xFace real by JAVA language. And its main function is that prepare for campaign xFace in the android platform, to provide a zip environment, and the understructure of the window and disp atch the slip entropy to xFace native layer. As the humanoid applications are running on Dalvik virtual machine, so the program must start by the way of JAVA. It is a bridge of communication between xFace primal framework and mechanical man, so it is essential. get in 5 demo application4.2 xFace aboriginal entrancexFace primeval entrance is in the main responsible for achieving xFace local businesses, such as onus the page, parsing the page, low-level formatting xFace doohickey runtime environment, as well as the release of related resources and so on. Associated with xFace businesslogic is unionized in this layer, which is the work of xFace entrance. entirely for industriousness framework entrance called.In the plan, the force artistic production is the maximum cost. It is not direct to happen watch to screen because this plan is exploitation JNI to call JAVA methods to draw graphics. So the program of xFace whitethorn be lazy than mechanical man innate Applic ation, especially when you running a kind of wash room which need a mount of skeleton in xFace , such as games.6. abridgment presently nearly all of the transplants, the source build-environment of transplant and the direct platform build-environment are essentially the same. This migration plan of mixed programming language provides a general method for the maculation that the source and the hind end platform of build-environment of transplant are different set aheadmore, this solution similarly makes code-reuse to maximise and reduces development costs and cycle. This member ground on the mechanical man platform, art object providing a set of transplantation program, but the program is also a place to shortcomings in the pull mechanism, because it is provided through the JNI calling java class library Android than any other platform, the efficacy of direct system call social function is fairly low. Therefore, it is also a need for further study and procession t o improve efficiency.4.3 xFace autochthonous ordinanceThis layer is generally to achieve graft-layer specific functions, xFace all of the features are in this layer, which coordinates xFace engine and porting layer and to make porting layer and the fundamental of direct system, porting layer and the Android application programming interface layer in the layer of packaging. It exposes the interfaces to xFace application developers and xFace engines. This layer of xFace is the kernel, all of the performance capabilities of xFace application are implemented in this layer.7. References1 confine of xFaceM/OL. http//189works.com/articleDetail.action?u=yangzihao04&id =10124. 2010 2 3G roving depot maturation prune of the operating system M/OL. http//pda.c114.net/32/c4948. hypertext mark-up language, 2007 3 Android architecture 2010R/OL. http//www.cnmsdn.com/hypertext markup language/201003/1268713218ID2058_2 .html 4 ChuanBin Tu, Dissecting JDK1.6, electronic exertion Press, 200 8-01 5 Neil Matthew . lord Linux programme . Wrox . 2002-01 6 W3C. SVG piddling 1.2-2008. climbable sender graphics (SVG) flyspeck 1.2 specificationS. W3C 2008 7 Niu Xin-Zheng, She Kun, Qin Ke, grub Ming-Tian. joint caching optimization strategy on busy P2P networkJ. diary of calculating machine research and information. 2008, 42(4) 1-2 8Lei Huang. knowledge of imbed system based on platform. strange electronic measure Technology, 2006 9 Wangchao Network. entanglement Application Development of Mobile devicesDB/OL.http//www.wangchao.net.cn/bbsdetail_314 11.html. 2006-01-08 10 measure Connection. innovation to network ApplicationEB/OL.http//cs.now.cn/html/FAQ/VHost/2008 10/10-3088.html. 2008-10-10
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.