sys_utils.h 616 B

123456789101112131415161718192021222324
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_ANDROID_SYS_UTILS_H_
  5. #define BASE_ANDROID_SYS_UTILS_H_
  6. #include "base/android/jni_android.h"
  7. namespace base {
  8. namespace android {
  9. class BASE_EXPORT SysUtils {
  10. public:
  11. // Returns true iff this is a low-end device.
  12. static bool IsLowEndDeviceFromJni();
  13. // Returns true if system has low available memory.
  14. static bool IsCurrentlyLowMemory();
  15. };
  16. } // namespace android
  17. } // namespace base
  18. #endif // BASE_ANDROID_SYS_UTILS_H_