diff options
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index 4a9236a4de..0f9b22bad4 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -28,6 +28,10 @@ #include "instruction_set.h" #include "primitive.h" +#ifdef HAVE_ANDROID_OS +#include "cutils/properties.h" +#endif + namespace art { class DexFile; @@ -439,6 +443,10 @@ class VoidFunctor { } }; +// Returns the given property as a double or its default_value if the property string is not valid +// or the parsed value is outside the interval [min_value, max_value]. +double GetDoubleProperty(const char* property, double min_value, double max_value, double default_value); + } // namespace art #endif // ART_RUNTIME_UTILS_H_ |