Title
Refactoring android Java code for on-demand computation offloading
Abstract
Computation offloading is a promising way to improve the performance as well as reducing the battery power consumption of a smartphone application by executing some parts of the application on a remote server. Supporting such capability is not easy for smartphone application developers due to (1) correctness: some code, e.g., that for GPS, gravity, and other sensors, can run only on the smartphone so that developers have to identify which parts of the application cannot be offloaded; (2) effectiveness: the reduced execution time must be greater than the network delay caused by computation offloading so that developers need to calculate which parts are worth offloading; (3) adaptability: smartphone applications often face changes of user requirements and runtime environments so that developers need to implement the adaptation on offloading. More importantly, considering the large number of today's smartphone applications, solutions applicable for legacy applications will be much more valuable. In this paper, we present a tool, named DPartner, that automatically refactors Android applications to be the ones with computation offloading capability. For a given Android application, DPartner first analyzes its bytecode for discovering the parts worth offloading, then rewrites the bytecode to implement a special program structure supporting on-demand offloading, and finally generates two artifacts to be deployed onto an Android phone and the server, respectively. We evaluated DPartner on three real-world Android applications, demonstrating the reduction of execution time by 46%-97% and battery power consumption by 27%-83%.
Year
DOI
Venue
2012
10.1145/2384616.2384634
OOPSLA
Keywords
Field
DocType
smartphone application,worth offloading,on-demand computation offloading,legacy application,computation offloading,android java code,real-world android application,on-demand offloading,android application,parts worth offloading,battery power consumption,computation offloading capability,android,energy
Network delay,Android (operating system),Computer science,Correctness,Computation offloading,Code refactoring,User requirements document,Bytecode,Legacy system,Operating system,Embedded system
Conference
Volume
Issue
ISSN
47
10
0362-1340
Citations 
PageRank 
References 
44
1.69
19
Authors
6
Name
Order
Citations
PageRank
Ying Zhang119920.68
Gang Huang21223110.80
Xuanzhe Liu368957.53
Wei Zhang41718.86
Hong Mei53535219.36
Shunxiang Yang6537.61