Loading services/java/com/android/server/AlarmManagerService.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -122,6 +122,14 @@ class AlarmManagerService extends IAlarmManager.Stub { public AlarmManagerService(Context context) { public AlarmManagerService(Context context) { mContext = context; mContext = context; mDescriptor = init(); mDescriptor = init(); // We have to set current TimeZone info to kernel // because kernel doesn't keep this after reboot String tz = SystemProperties.get(TIMEZONE_PROPERTY); if (tz != null) { setTimeZone(tz); } PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); Loading Loading
services/java/com/android/server/AlarmManagerService.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -122,6 +122,14 @@ class AlarmManagerService extends IAlarmManager.Stub { public AlarmManagerService(Context context) { public AlarmManagerService(Context context) { mContext = context; mContext = context; mDescriptor = init(); mDescriptor = init(); // We have to set current TimeZone info to kernel // because kernel doesn't keep this after reboot String tz = SystemProperties.get(TIMEZONE_PROPERTY); if (tz != null) { setTimeZone(tz); } PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); Loading