Your browser doesn't support javascript.
loading
Code smells analysis for android applications and a solution for less battery consumption.
Gupta, Aakanshi; Suri, Bharti; Sharma, Deepanshu; Misra, Sanjay; Fernandez-Sanz, Luis.
Afiliación
  • Gupta A; Department of Computer Science and Engineering, Amity University Uttar Pradesh, Noida, India.
  • Suri B; University School of Information, Communication, and Technology, Guru Gobind Singh Indraprastha University, New Delhi, India.
  • Sharma D; Computer Science and Engineering Department, Guru Gobind Singh Indraprastha University, New Delhi, India.
  • Misra S; Department of Computer Science and Communication, Østfold University College, Halden, Norway. sanjay.misra@hiof.no.
  • Fernandez-Sanz L; Department of Applied Data Science, Institute for Energy Technology, Halden, Norway. sanjay.misra@hiof.no.
Sci Rep ; 14(1): 17683, 2024 Jul 26.
Article en En | MEDLINE | ID: mdl-39085249
ABSTRACT
In 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.
Palabras clave

Texto completo: 1 Colección: 01-internacional Base de datos: MEDLINE Idioma: En Revista: Sci Rep Año: 2024 Tipo del documento: Article País de afiliación: India

Texto completo: 1 Colección: 01-internacional Base de datos: MEDLINE Idioma: En Revista: Sci Rep Año: 2024 Tipo del documento: Article País de afiliación: India