CN103902290A - Launcher application rotation acceleration method, system and device for Android system - Google Patents

Launcher application rotation acceleration method, system and device for Android system Download PDF

Info

Publication number
CN103902290A
CN103902290A CN201410112061.7A CN201410112061A CN103902290A CN 103902290 A CN103902290 A CN 103902290A CN 201410112061 A CN201410112061 A CN 201410112061A CN 103902290 A CN103902290 A CN 103902290A
Authority
CN
China
Prior art keywords
resource
launcher
application
thread
rotation
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
Application number
CN201410112061.7A
Other languages
Chinese (zh)
Other versions
CN103902290B (en
Inventor
来彦栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201410112061.7A priority Critical patent/CN103902290B/en
Publication of CN103902290A publication Critical patent/CN103902290A/en
Application granted granted Critical
Publication of CN103902290B publication Critical patent/CN103902290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a Launcher application rotation acceleration method, system and device for the Android system. The method includes starting a thread in the Android system, and registering a receiving terminal for receiving broadcasting information in the thread; when the receiving terminal receives information of window rotation, judging whether the application corresponding to the thread is the Launcher or not; if so, acquiring the ID of the thread, and writing to a corresponding /dev/cpuctl/tasks files; judging whether or not the loaded ID is the resource ID of the Launcher in the Resource.loadDrawable (); if so, acquiring the name of the resource; if the name is ended with widget-preview, caching the resource. According to the method, the Launcher application rotation is accelerated by increasing the duration of CPU consumption and caching the image resource, and user experience is improved.

Description

In Android system, accelerate the method, system and device of Launcher application rotation
Technical field
The present invention relates to mobile system field, particularly a kind of method, system and device that accelerate Launcher application rotation in Android system.
Background technology
Android system for each be applied in internal memory use and CPU use make no exception, be all impartial to.This just causes experiences not good for application operating frequent use, that system overhead is large.Although this phenomenon is not obvious for the higher Product Experience of accessory configuration, for entry level hardware just seem very obviously.
In the android ecosystem, the hardware of large-tonnage product is in entry level, and the performance issues such as low CPU, GPU, bandwidth can affect android application performance in every respect, thereby it is not good that user is experienced.Especially apply for Launcher, this application is first application of the Android system that uses of user, its user experiences the visual impression of the direct user of impact for this product, and general user can weigh its experience from the fluency of slip and the length of rotational time.
Summary of the invention
For addressing the above problem, the object of the present invention is to provide a kind of method, system and device that accelerate Launcher application rotation in Android system, account for the duration of CPU and its widget picture resource is carried out at buffer memory by increasing Launcher application, reach and make Launcher application rotate object faster, finally improve user and experience.
The present invention solves the technical scheme that its problem adopts:
A method of accelerating Launcher application rotation in Android system, comprising:
In Android system, start a thread;
In this thread, register a receiving end that receives broadcast;
In the time that receiving end receives the message of window rotation, judge whether the application of the corresponding operation process of message of window rotation is Launcher application;
If Launcher application, obtain the ID of corresponding process, and this ID is written in corresponding/dev/cpuctl/tasks file.
Further, described method also comprises:
In Resource.loadDrawable (), judge whether current loaded ID is the resource ID of Launcher, if, obtain the name of this resource according to ID, and whether the name that judges resource finishes with " widget_preview ", if so, described resource is carried out to buffer memory.
Further, the message of described window rotation is sent from WindowManagerService.updateRotationUnchecked () interface.
Further, described message is intent.
A system of accelerating Launcher application rotation in Android system, comprising:
Thread module for starting a thread at Android system, and is registered a receiving end that receives broadcast in this thread;
Judge module, when receive the message of window rotation when receiving end, judges whether the application of the corresponding operation process of message of window rotation is Launcher application;
Writing module, for be judged as Launcher when application at judge module, obtains the ID of corresponding process, and this ID is written in corresponding/dev/cpuctl/tasks file.
Further, described system also comprises:
Cache module, for judging at Resource.loadDrawable () whether current loaded ID is the resource ID of Launcher, if, obtain the name of this resource according to ID, and whether the name that judges resource finishes with " widget_preview ", if so, described resource is carried out to buffer memory.
Further, the message of described window rotation is sent from WindowManagerService.updateRotationUnchecked () interface.
A device that accelerates Launcher application rotation in Android system, described device adopts above-described system.
The invention has the beneficial effects as follows:
The present invention adopts a kind of method, system and device that accelerate Launcher application rotation in Android system, apply for Launcher, the duration that be written to/dev/cpuctl/tasks of its corresponding process ID file is taken to CPU to increase it, apply shared picture resource for Launcher, the large data volume widget picture resource of growing down to the load time is carried out to buffer memory, to improve the rotational speed of Launcher application, improve performance, promote user and experience.
Brief description of the drawings
Below in conjunction with accompanying drawing and example, the invention will be further described.
Fig. 1 is the method for the invention process flow diagram;
Fig. 2 is the structure composition frame chart of system of the present invention.
Embodiment
Described in Fig. 1, the invention provides a kind of method of accelerating Launcher application rotation in Android system, comprising:
Step 100 starts a thread in Android system, generally in systemServer.run (), starts a thread Thread_0.
Step 102 is registered a receiving end that receives broadcast in this thread Thread_0.
Step 104, in the time that receiving end receives the message of window rotation, the message of window rotation can be sent from WindowManagerService.updateRotationUnchecked () interface, judges whether the application of the corresponding operation process of message of window rotation is Launcher application; Described message is intent, ntent is mainly the communication solving between every assembly of Android application, Intent be responsible for to application in single job action, action relates to data, additional data is described, Android is according to the description of this Intent, be responsible for finding corresponding assembly, Intent is passed to the assembly calling, and complete calling of assembly.
Step 106, if Launcher application, obtains the ID of corresponding process, and this ID is written in corresponding/dev/cpuctl/tasks file.
For Launcher application, write/dev/cpuctl/tasks of the present invention file, to increase its service time to CPU, improves rotational speed.
Launcher has a lot of picture resources, the resource of demonstration can be carried out to buffer memory to improve rotational speed, but because Launcher has a lot of picture resources, all buffer memorys, therefore as long as carry out buffer memory by picture resource larger data volume, widget that loading spended time is grown.Specifically in the rear execution following steps of step 106:
In Resource.loadDrawable (), judge whether current loaded ID is the resource ID of Launcher, if, obtain the name of this resource according to ID, and whether the name that judges resource finishes with " widget_preview ", if so, described resource is carried out to buffer memory.
Shown in Fig. 2, the present invention also provides a kind of system of accelerating Launcher application rotation in Android system, comprising:
Thread module 200 for starting a thread at Android system, and is registered a receiving end that receives broadcast in this thread;
Judge module 202, when receive the message of window rotation when receiving end, judges whether the application of the corresponding operation process of message of window rotation is Launcher application;
Writing module 204, for be judged as Launcher when application at judge module, obtains the ID of corresponding process, and this ID is written in corresponding/dev/cpuctl/tasks file;
Cache module 206, for judging at Resource.loadDrawable () whether current loaded ID is the resource ID of Launcher, if, obtain the name of this resource according to ID, and whether the name that judges resource finishes with " widget_preview ", if so, described resource is carried out to buffer memory.
Described message is intent.
The message of described window rotation is sent from WindowManagerService.updateRotationUnchecked () interface.
The specific implementation of described system is with reference to step described in method flow in the present invention.
The present invention also provides a kind of device that accelerates Launcher application rotation in Android system, and described device adopts above-described system, and described device comprises that smart mobile phone, network machine top box etc. have the equipment of Android system.
The above, be preferred embodiment of the present invention, and the present invention is not limited to above-mentioned embodiment, as long as it reaches technique effect of the present invention with identical means, all should belong to protection scope of the present invention.

Claims (8)

1. a method of accelerating Launcher application rotation in Android system, is characterized in that, comprising:
In Android system, start a thread;
In this thread, register a receiving end that receives broadcast;
In the time that receiving end receives the message of window rotation, judge whether the application of the corresponding operation process of message of window rotation is Launcher application;
If Launcher application, obtain the ID of corresponding process, and this ID is written in corresponding/dev/cpuctl/tasks file.
2. method according to claim 1, is characterized in that, described method also comprises:
In Resource.loadDrawable (), judge whether current loaded ID is the resource ID of Launcher, if, obtain the name of this resource according to ID, and whether the name that judges resource finishes with " widget_preview ", if so, described resource is carried out to buffer memory.
3. method according to claim 1, is characterized in that, the message of described window rotation is sent from WindowManagerService.updateRotationUnchecked () interface.
4. method according to claim 1, is characterized in that, described message is intent.
5. a system of accelerating Launcher application rotation in Android system, is characterized in that, comprising:
Thread module for starting a thread at Android system, and is registered a receiving end that receives broadcast in this thread;
Judge module, when receive the message of window rotation when receiving end, judges whether the application of the corresponding operation process of message of window rotation is Launcher application;
Writing module, for be judged as Launcher when application at judge module, obtains the ID of corresponding process, and this ID is written in corresponding/dev/cpuctl/tasks file.
6. system according to claim 5, is characterized in that, described system also comprises:
Cache module, for judging at Resource.loadDrawable () whether current loaded ID is the resource ID of Launcher, if, obtain the name of this resource according to ID, and whether the name that judges resource finishes with " widget_preview ", if so, described resource is carried out to buffer memory.
7. system according to claim 5, is characterized in that, the message of described window rotation is sent from WindowManagerService.updateRotationUnchecked () interface.
8. a device that accelerates Launcher application rotation in Android system, is characterized in that, described device adopts the arbitrary described system of claim 5-7.
CN201410112061.7A 2014-03-24 2014-03-24 Accelerate the method, system and device of Launcher application rotation in Android system Active CN103902290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410112061.7A CN103902290B (en) 2014-03-24 2014-03-24 Accelerate the method, system and device of Launcher application rotation in Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410112061.7A CN103902290B (en) 2014-03-24 2014-03-24 Accelerate the method, system and device of Launcher application rotation in Android system

Publications (2)

Publication Number Publication Date
CN103902290A true CN103902290A (en) 2014-07-02
CN103902290B CN103902290B (en) 2017-03-01

Family

ID=50993633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410112061.7A Active CN103902290B (en) 2014-03-24 2014-03-24 Accelerate the method, system and device of Launcher application rotation in Android system

Country Status (1)

Country Link
CN (1) CN103902290B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981875A (en) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 X86 end press key adapting method and system based on android
CN103049258A (en) * 2012-12-10 2013-04-17 乐视网信息技术(北京)股份有限公司 Method and system for controlling video playing based on android operating system
US20140007222A1 (en) * 2011-10-11 2014-01-02 Zenprise, Inc. Secure execution of enterprise applications on mobile devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140007222A1 (en) * 2011-10-11 2014-01-02 Zenprise, Inc. Secure execution of enterprise applications on mobile devices
CN102981875A (en) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 X86 end press key adapting method and system based on android
CN103049258A (en) * 2012-12-10 2013-04-17 乐视网信息技术(北京)股份有限公司 Method and system for controlling video playing based on android operating system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佐冰冰: "Android平台下Launcher启动器的设计与实现", 《万方数据企业知识服务平台》 *
倪志成: "基于Linux的软硬件任务混合调度机制的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Also Published As

Publication number Publication date
CN103902290B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN108536461B (en) Resource updating method, device, terminal and storage medium
CN109542614B (en) Resource allocation method, device, terminal and storage medium
CN103701807B (en) Data transmission method for uplink under a kind of VDI environment and device
CN102707970B (en) Method for displaying and starting mobile phone application program on computer-type terminal
US20170192819A1 (en) Method and electronic device for resource allocation
CN111433743B (en) APP remote control method and related equipment
JP7100154B2 (en) Processor core scheduling method, equipment, terminals and storage media
US9727364B2 (en) Virtual device hypervisor memory limited receive queuing
CN108965471B (en) Method for improving browser memory on smart television
CN109040230B (en) File downloading method, device, equipment/terminal/server and storage medium
AU2017435234B2 (en) Image processing method and device
CN111796885A (en) Display method and device of cloud application program and electronic equipment
CN110971596A (en) Message monitoring method and device, electronic equipment and machine-readable storage medium
CN103491171A (en) Network resource asynchronous loading method and device
CN105487640A (en) Image pre-loading and caching method of Android watch
CN103713890A (en) Method of developing browser online game clients
US8860740B2 (en) Method and apparatus for processing a display driver in virture desktop infrastructure
CN109509139B (en) Vertex data processing method, device and equipment
CN104243459A (en) Virtual desktop implementation method, device and system and terminal
CN107911700B (en) Virtualization-based hardware decoding method, decoding equipment and storage medium
US20180052700A1 (en) Facilitation of guest application display from host operating system
CN103902290A (en) Launcher application rotation acceleration method, system and device for Android system
CN113564865A (en) Remote control method and device for washing machine, electronic equipment and storage medium
CN111111175A (en) Game picture generation method and device and mobile terminal
CN108521349A (en) A kind of method and system of the installation number of statistics installation kit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant