Lines Matching defs:reason
180 * @param reason code to pass to the kernel (e.g. "recovery"), or null.
183 public static void reboot(final Context context, String reason, boolean confirm) {
186 mRebootReason = reason;
284 String reason = (mReboot ? "1" : "0") + (mRebootReason != null ? mRebootReason : "");
285 SystemProperties.set(SHUTDOWN_ACTION_PROPERTY, reason);
488 * @param reason reason for reboot
490 public static void rebootOrShutdown(boolean reboot, String reason) {
492 Log.i(TAG, "Rebooting, reason: " + reason);
494 PowerManagerService.lowLevelReboot(reason);