The Design and Implementation of the Input Method Skin Engine for the Android Platform

Author
WanLiPeng
Advisor
TianYingZuo , DuanShaoPeng
School
Harbin Institute of Technology
Major
Software Engineering
Classification
TP391.14 Text entry technology
Degree
Master's thesis
Year
2013
Downloads
1
Citations
0

Request the full text

Abstract

In recent years, with the popularity of smartphones, more and more people usemobile phone as the primary tool for social networking and chat, phone input methodis also driven by market demand emerged. With the diversity of today’s softwaredevelopment, input method program also needs resurfacing and customizationcapabilities, in order to make multi-platform compatible input data file skin, skinengine design a cross-platform architecture and a set of abstract control is to solvethis The best way, so the input method project team presented the skin engines.This paper including current software engine industry, based on software reuseas the background, analyzes the current development trend of the Android platformand extended support for the status quo, summed up the current input method forskinning engine requirements. From a technical perspective on the improvedmemory usage, memory performance optimization software LRU algorithm memorymanagement techniques, and in order to speed up the rendering speed performanceenhancing software to draw double-buffering technique and local double-bufferingtechnique, and is multi-platform implementation and subsequent discovery providereference and basis.This paper uses the Java language to develop skin engine, its design is dividedinto seven modules: skin file, controls, classification and composition, drawingcontrol, the control’s events judgment, keyboard switching and resurfacing strategies.Skin file section which describes the data sources for the skin eng ine skin file dataformat. Classification and control constitute explain skin engine controls defined setof abstract composition and classification. Draw controls and controls events judgedas a skin engine interface display and an important part of the event delivery.Controls draw rate will directly affect the key response time, so optimizing controldraws a key to optimizing engine performance skin. By increasing the buffer pool toreduce string concatenation performance loss, while the same button background forlocal cache, create rendered rendering and texture mapping transformation mappingtable, to save memory storage space, improve rendering efficiency. Through theabove design, the system solved the bottleneck problems and meet the performancerequirements, to enhance the user experience.After the actual test proved that the system completed the skin against theserialized data file parsing and rendering and delivery mechanisms to achieve.Establish a set of cross-platform abstraction framework and control components, theability to input method input method engines and configure the system on Android combination, to achieve the skin peels and customized features to meet the needs ofthe skin engine performance and functionality demand a high reusability andpractical value.

Table of contents

Summary 4-5 Abstract 5-10 Chapter 1 Introduction 10-14 1.1 source and significance of the subject 10 Summary of the issues related to domestic and 1.2 development 10-12 1.2.1 mobile software engine 10-11 1.2.2 software reuse and cross platform technology support 11-12 1.2.3 Android platform main work 12 1.3 of this paper 12-14 Chapter 2 skin engine requirements and key technical analysis 14-22 2.1 input method system architecture 14-15 2.2 functional requirements 15-17 2.2 .1 custom 15-16 2.2.2 rendering objects 16 2.2.3 style object 16 judge 2.2.4 event and processing 16-17 2.2.5 cache resource pool 17 2.3 nonfunctional requirements 17-18 2.3.1 performance Requirements 18 2.3.2 skin data file compatibility 18 2.4 system key technical analysis 18-21 2.4.1 LRU based cache memory management technology 18-19 2.4.2 double buffering and partial double buffering technology 19-21 2.5 Summary 21-22 Chapter 3 skin detailed design of the engine and achieve 22-56 3.1 skin engine architecture 22-24 3.1.1 draw GDI layer 22-23 <br / > 3.1.2 common control layer 23 3.1.3 composite control layer 23-24 3.1.4 news and event mechanism 24 3.2 skin file sources and benefits 24-37 3.2.1 skin file 24-25 3.2.2 skin file structure 25 3.2 .3 file header data 25-28 3.2.4 resource pool data 28-33 3.2.5 keyboard Data 33-36 3.2.6 general Data 36 3.2.7 candidate zone data 36-37 classification 3.3 controls and constitute 37-40 3.3. Category 1 controls 37-38 constitute nbsp 3.3.2 controls ; 38-40 constitute nbsp 3.4 resource pool ; 40-43 3.4. Category 1 resource pool 40-41 3.4.2 resource pool pass 41-42 3.4.3 resource pool scheduling algorithm 42-43 <br / > 3.5 draw controls 43-44 3.5.1 drawing canvas 43-44 3.5.2 rendering process 44 3.5 .3 drawn composition 44 3.6 control events judgment 44-46 3.6.1 judged events constitute 44-45 3.6. 2 to determine the flow of events 45-46 3.7 keyboard switch 46-51 3.7.1 trigger conditions 46-47 3.7.2 keyboard Category 47-48 3.7.3 keyboard Switching 48-49 3.7.4 switching renderings 49-51 3.8 peels strategy 51-55 3.8.1 skin information data structure 52 3.8.2 skin renderings 52-55 3.9 Summary testing and performance 55-56 Chapter 4 analyzes the skin engine 56-69 4.1 test tools and environments 56-57 4.1.1 test Tool 56-57 nbsp 4.1.2 test environment ; 57 4.2 performance test 57-60 4.2.1 memory footprint test 57 -58 4.2.2 key response time test 58-60 4.3 compatibility testing 60-62 4.4 performance analysis and Optimization 62 - 68 4.4.1 memory footprint performance analysis and optimization 62-65 4.4.2 key response time performance analysis and optimization 65-68 4.5 chapter Summary 68-69 conclusion 69-70 References 70-75 Thanks 75-76 CVs 76

Related dissertations

  1. Design and Implementation of the Browser Dynamic Customization System Based on LAMP
    ZhangShunWen ·Central China Normal University ·2014 ·Master's thesis
  2. Researches on Optimization of Resource Allocation for MapReduce Scheduling
    HanHaiZuo ·South China University of Technology ·2013 ·Doctoral dissertation
  3. Research on Key Technologies of Parallel Optimization for Biological Sequence Analysis Algorithm Based on CPU+GPU Heterogeneous System
  4. Research on User Capability Optimization Strategy of Desktop Cloud Based on SBC Model
    XuBin ·Guangxi University ·2012 ·Master's thesis
  5. Distributed Data Management and Access Optimization Strategy of Rendering Application
  6. Distributed Memory File Caching System for High Performance Computing
  7. Virtual Machine Memory Management Based on Cloud Computing Environment
    XuLei ·Harbin Engineering University ·2013 ·Master's thesis
  8. Optimization Design and Implementation of the ICS Terminal
  9. A Study of Cognitive-Based Celullar and Device-To-Device Communication Hybrid Networks
  10. Performance Optimization of Network-on-Chips with Accelerating Network
    ShaoJingCheng ·Zhejiang University ·2014 ·Master's thesis
  11. Optimization and Co-simulation of Pure Electric Bus Power System Parameters
    XuShiWei ·Chang'an University ·2013 ·Master's thesis
  12. Research about the Working Proces Numerical Simulation and Performance Optimization of Engine Bleeding Brake
    PanHaiJie ·Hunan University ·2014 ·Master's thesis
  13. Design and Implimentation of Micro-Embedded Virtual Machine in a Trusted Environment
  14. The Design and Implementation of CCD Image Acquisition Software System
  15. Research of Multi-tag UHF RFID Seamless Recognition Technology
  16. Research on the Index of Moving Objects
  17. Research and Implementation of Tuning Strategy for RAC
    XuLong ·Northeast University of Petroleum ·2012 ·Master's thesis
  18. Research of memory management strategy for high performance IPC
  19. Design and Implementation of the Memory Data Management Subsystem for Street Lighting System
    DuWei ·Shandong University ·2013 ·Master's thesis
  20. Research on Technology of Managing Shared Memory in Multicore Operating Systems
    LiuZuo ·Northeastern University ·2010 ·Master's thesis