diff options
Diffstat (limited to '')
-rw-r--r-- | java/src/com/android/inputmethod/latin/NativeUtils.java (renamed from native/src/char_utils.h) | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/native/src/char_utils.h b/java/src/com/android/inputmethod/latin/NativeUtils.java index a69a35e7a..9cc2bc02e 100644 --- a/native/src/char_utils.h +++ b/java/src/com/android/inputmethod/latin/NativeUtils.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 The Android Open Source Project + * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,13 +14,19 @@ * limitations under the License. */ -#ifndef LATINIME_CHAR_UTILS_H -#define LATINIME_CHAR_UTILS_H +package com.android.inputmethod.latin; -namespace latinime { +public class NativeUtils { + static { + JniUtils.loadNativeLibrary(); + } -unsigned short latin_tolower(unsigned short c); + private NativeUtils() { + // This utility class is not publicly instantiable. + } -} // namespace latinime - -#endif // LATINIME_CHAR_UTILS_H + /** + * This method just calls up libm's powf() directly. + */ + public static native float powf(float x, float y); +} |