Loading core/java/com/android/internal/os/PowerProfile.java +7 −3 Original line number Diff line number Diff line Loading @@ -205,14 +205,18 @@ public class PowerProfile { private static final String TAG_ARRAYITEM = "value"; private static final String ATTR_NAME = "name"; private static final Object sLock = new Object(); public PowerProfile(Context context) { // Read the XML file for the given profile (normally only one per // device) synchronized (sLock) { if (sPowerMap.size() == 0) { readPowerValuesFromXml(context); } initCpuClusters(); } } private void readPowerValuesFromXml(Context context) { int id = com.android.internal.R.xml.power_profile; Loading Loading
core/java/com/android/internal/os/PowerProfile.java +7 −3 Original line number Diff line number Diff line Loading @@ -205,14 +205,18 @@ public class PowerProfile { private static final String TAG_ARRAYITEM = "value"; private static final String ATTR_NAME = "name"; private static final Object sLock = new Object(); public PowerProfile(Context context) { // Read the XML file for the given profile (normally only one per // device) synchronized (sLock) { if (sPowerMap.size() == 0) { readPowerValuesFromXml(context); } initCpuClusters(); } } private void readPowerValuesFromXml(Context context) { int id = com.android.internal.R.xml.power_profile; Loading