Code smells analysis for android applications and a solution for less battery consumption

Author:

Gupta Aakanshi,Suri Bharti,Sharma Deepanshu,Misra Sanjay,Fernandez-Sanz Luis

Abstract

AbstractIn the digitization era, the battery consumption factor plays a vital role for the devices that operate Android software, expecting them to deliver high performance and good maintainability.The study aims to analyze the Android-specific code smells, their impact on battery consumption, and the formulation of a mathematical model concerning static code metrics hampered by the code smells. We studied the impact on battery consumption by three Android-specific code smells, namely: No Low Memory Resolver (NLMR), Slow Loop (SL) and Unclosed Closable, considering 4,165 classes of 16 Android applications. We used a rule-based classification method that aids the refactoring ideology. Subsequently, multi-linear regression (MLR) modeling is used to evaluate battery usage against the software metrics of smelly code instances. Moreover, it was possible to devise a correlation for the software metric influenced by battery consumption and rule-based classifiers. The outcome confirms that the refactoring of the considered code smells minimizes the battery consumption levels. The refactoring method accounts for an accuracy of 87.47% cumulatively. The applied MLR model has an R-square value of 0.76 for NLMR and 0.668 for SL, respectively. This study can guide the developers towards a complete package for the focused development life cycle of Android code, helping them minimize smartphone battery consumption and use the saved battery lives for other operations, contributing to the green energy revolution in mobile devices.

Publisher

Springer Science and Business Media LLC

Reference87 articles.

1. Ahmed, Iftekhar, Mannan, Umme Ayda, Gopinath, Rahul, & Jensen, Carlos. An empirical study of design degradation: How software projects get worse over time. In 2015 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM), pp 1–10. IEEE (2015).

2. D’Ambros, Marco, Bacchelli, Alberto, & Lanza, Michele. On the impact of design flaws on software defects. In 2010 10th International Conference on Quality Software, pp 23–31. IEEE (2010).

3. Field, Andy. Discovering statistics using IBM SPSS statistics (Sage, 2013).

4. Fontana, F. A., Braione, P. & Zanoni, M. Automatic detection of bad smells in code: An experimental assessment. J. Object Technol. 11(2), 5 (2012).

5. Fowler, M. Refactoring: Improving the design of existing code (Addison-Wesley Professional, 2018).

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3