1cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat/*
2cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * Copyright (C) 2015 The Android Open Source Project
3cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat *
4cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * Licensed under the Apache License, Version 2.0 (the "License");
5cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * you may not use this file except in compliance with the License.
6cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * You may obtain a copy of the License at
7cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat *
8cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat *      http://www.apache.org/licenses/LICENSE-2.0
9cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat *
10cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * Unless required by applicable law or agreed to in writing, software
11cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * distributed under the License is distributed on an "AS IS" BASIS,
12cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * See the License for the specific language governing permissions and
14cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat * limitations under the License.
15cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat */
16cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat
17cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat#ifndef SYSTEM_NATIVEPOWER_INCLUDE_NATIVEPOWER_CONSTANTS_H_
18cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat#define SYSTEM_NATIVEPOWER_INCLUDE_NATIVEPOWER_CONSTANTS_H_
19cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat
20cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Eratnamespace android {
21cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat
22cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat// Name used to register the power manager with the service manager.
23cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Eratconst char kPowerManagerServiceName[] = "power";
24cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat
25c2a4b05a931fbf3ecbf1915049b549b33dae8ba5Daniel Erat// Reasons that can be supplied for reboot or shutdown requests.
26c2a4b05a931fbf3ecbf1915049b549b33dae8ba5Daniel Erat// These strings are hardcoded in system/core/init/builtins.cpp.
27c2a4b05a931fbf3ecbf1915049b549b33dae8ba5Daniel Eratconst char kRebootReasonRecovery[] = "recovery";
28c2a4b05a931fbf3ecbf1915049b549b33dae8ba5Daniel Eratconst char kShutdownReasonUserRequested[] = "userrequested";
29c2a4b05a931fbf3ecbf1915049b549b33dae8ba5Daniel Erat
30cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat}  // namespace android
31cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat
32cb57344ce792f41e58bc476840a82eba14b0fde9Daniel Erat#endif  // SYSTEM_NATIVEPOWER_INCLUDE_NATIVEPOWER_CONSTANTS_H_
33