hidl: thermal: Use pragma once

Change-Id: I1fe3e3dc93fc1e16c37699582a26c362ce095ac0
tirimbino
Bruno Martins 3 years ago
parent 85c2e220dc
commit 605b563c75
  1. 7
      hidl/thermal/Thermal.h
  2. 5
      hidl/thermal/thermal-helper.h
  3. 5
      hidl/thermal/utils/config_parser.h
  4. 5
      hidl/thermal/utils/thermal_files.h
  5. 6
      hidl/thermal/utils/thermal_watcher.h

@ -1,5 +1,6 @@
/* /*
* Copyright (C) 2018 The Android Open Source Project * Copyright (C) 2018 The Android Open Source Project
* 2022 The LineageOS Project
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -13,8 +14,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H
#define ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H #pragma once
#include <mutex> #include <mutex>
#include <thread> #include <thread>
@ -91,5 +92,3 @@ class Thermal : public IThermal {
} // namespace thermal } // namespace thermal
} // namespace hardware } // namespace hardware
} // namespace android } // namespace android
#endif // ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H

@ -27,8 +27,7 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef THERMAL_THERMAL_HELPER_H__ #pragma once
#define THERMAL_THERMAL_HELPER_H__
#include <array> #include <array>
#include <chrono> #include <chrono>
@ -136,5 +135,3 @@ class ThermalHelper {
} // namespace thermal } // namespace thermal
} // namespace hardware } // namespace hardware
} // namespace android } // namespace android
#endif // THERMAL_THERMAL_HELPER_H__

@ -14,8 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef THERMAL_UTILS_CONFIG_PARSER_H__ #pragma once
#define THERMAL_UTILS_CONFIG_PARSER_H__
#include <map> #include <map>
#include <string> #include <string>
@ -55,5 +54,3 @@ std::map<std::string, CoolingType> ParseCoolingDevice(std::string_view config_pa
} // namespace thermal } // namespace thermal
} // namespace hardware } // namespace hardware
} // namespace android } // namespace android
#endif // THERMAL_UTILS_CONFIG_PARSER_H__

@ -14,8 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#ifndef THERMAL_UTILS_THERMAL_FILES_H_ #pragma once
#define THERMAL_UTILS_THERMAL_FILES_H_
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
@ -51,5 +50,3 @@ class ThermalFiles {
} // namespace thermal } // namespace thermal
} // namespace hardware } // namespace hardware
} // namespace android } // namespace android
#endif // THERMAL_UTILS_THERMAL_FILES_H_

@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#ifndef THERMAL_UTILS_THERMAL_WATCHER_H_
#define THERMAL_UTILS_THERMAL_WATCHER_H_ #pragma once
#include <chrono> #include <chrono>
#include <condition_variable> #include <condition_variable>
@ -101,5 +101,3 @@ class ThermalWatcher : public ::android::Thread {
} // namespace thermal } // namespace thermal
} // namespace hardware } // namespace hardware
} // namespace android } // namespace android
#endif // THERMAL_UTILS_THERMAL_WATCHER_H_

Loading…
Cancel
Save