OSDN Git Service

Fix crash when no power_profile is specified
authorAdam Lesinski <adamlesinski@google.com>
Fri, 18 Sep 2015 21:56:34 +0000 (14:56 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Fri, 18 Sep 2015 21:56:34 +0000 (14:56 -0700)
commit8057133d49ab3243de54333012ce5ee8fece5381
treee9c28572a36528ea27a145f771ac74fead49a14c
parent6832f39416cbe2cc9655af4eabefe39c5d272254
Fix crash when no power_profile is specified

Always connected devices don't have power_profiles,
so handle the case where the default cpu speed count of
1 is used on a device with more cpu speeds.

Bug:23776983
Change-Id: Ifdddad2f28eea5b730833622a6b6043b3086efd2
core/java/com/android/internal/os/KernelCpuSpeedReader.java
core/java/com/android/internal/os/KernelUidCpuTimeReader.java