Loading services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +6 −3 Original line number Original line Diff line number Diff line Loading @@ -58,9 +58,7 @@ public final class ProfcollectForwardingService extends SystemService { private static final boolean DEBUG = Log.isLoggable(LOG_TAG, Log.DEBUG); private static final boolean DEBUG = Log.isLoggable(LOG_TAG, Log.DEBUG); private static final long BG_PROCESS_PERIOD = DEBUG private static final long BG_PROCESS_PERIOD = TimeUnit.DAYS.toMillis(1); // every 1 day. ? TimeUnit.MINUTES.toMillis(1) : TimeUnit.DAYS.toMillis(1); private IProfCollectd mIProfcollect; private IProfCollectd mIProfcollect; private static ProfcollectForwardingService sSelfService; private static ProfcollectForwardingService sSelfService; Loading Loading @@ -285,6 +283,11 @@ public final class ProfcollectForwardingService extends SystemService { updateEngine.bind(new UpdateEngineCallback() { updateEngine.bind(new UpdateEngineCallback() { @Override @Override public void onStatusUpdate(int status, float percent) { public void onStatusUpdate(int status, float percent) { if (DEBUG) { Log.d(LOG_TAG, "Received OTA status update, status: " + status + ", percent: " + percent); } if (status == UpdateEngine.UpdateStatusConstants.UPDATED_NEED_REBOOT) { if (status == UpdateEngine.UpdateStatusConstants.UPDATED_NEED_REBOOT) { packProfileReport(); packProfileReport(); } } Loading Loading
services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +6 −3 Original line number Original line Diff line number Diff line Loading @@ -58,9 +58,7 @@ public final class ProfcollectForwardingService extends SystemService { private static final boolean DEBUG = Log.isLoggable(LOG_TAG, Log.DEBUG); private static final boolean DEBUG = Log.isLoggable(LOG_TAG, Log.DEBUG); private static final long BG_PROCESS_PERIOD = DEBUG private static final long BG_PROCESS_PERIOD = TimeUnit.DAYS.toMillis(1); // every 1 day. ? TimeUnit.MINUTES.toMillis(1) : TimeUnit.DAYS.toMillis(1); private IProfCollectd mIProfcollect; private IProfCollectd mIProfcollect; private static ProfcollectForwardingService sSelfService; private static ProfcollectForwardingService sSelfService; Loading Loading @@ -285,6 +283,11 @@ public final class ProfcollectForwardingService extends SystemService { updateEngine.bind(new UpdateEngineCallback() { updateEngine.bind(new UpdateEngineCallback() { @Override @Override public void onStatusUpdate(int status, float percent) { public void onStatusUpdate(int status, float percent) { if (DEBUG) { Log.d(LOG_TAG, "Received OTA status update, status: " + status + ", percent: " + percent); } if (status == UpdateEngine.UpdateStatusConstants.UPDATED_NEED_REBOOT) { if (status == UpdateEngine.UpdateStatusConstants.UPDATED_NEED_REBOOT) { packProfileReport(); packProfileReport(); } } Loading