OsmAnd
Classes | Defines | Functions | Variables
jni/osmand/common.h File Reference
#include <jni.h>
#include <string>
#include <vector>
#include <hash_map>
#include <SkPath.h>
#include <SkBitmap.h>

Go to the source code of this file.

Classes

class  ElapsedTimer
struct  TextDrawInfo
struct  IconDrawInfo
struct  RenderingContext

Defines

#define PROFILE_NATIVE_OPERATION(rc, op)   op;

Functions

JNIEnv * getGlobalJniEnv ()
JNIEnv * setGlobalJniEnv (JNIEnv *)
void throwNewException (const char *msg)
jclass findClass (const char *className, bool mustHave=true)
std::string getString (jstring st)
std::string getStringMethod (jobject o, jmethodID fid, int i)
std::string getStringMethod (jobject o, jmethodID fid)
std::string getStringField (jobject o, jfieldID fid)
jobject newGlobalRef (jobject o)
jfieldID getFid (jclass cls, const char *fieldName, const char *sig)
void pullFromJavaRenderingContext (jobject jrc, RenderingContext *rc)
void pushToJavaRenderingContext (jobject jrc, RenderingContext *rc)
float getDensityValue (RenderingContext *rc, float val)
SkBitmap * getCachedBitmap (RenderingContext *rc, const std::string &bitmapResource)

Variables

const char *const LOG_TAG

Define Documentation

#define PROFILE_NATIVE_OPERATION (   rc,
  op 
)    op;

Function Documentation

jclass findClass ( const char *  className,
bool  mustHave = true 
)
SkBitmap* getCachedBitmap ( RenderingContext rc,
const std::string &  bitmapResource 
)
float getDensityValue ( RenderingContext rc,
float  val 
)
jfieldID getFid ( jclass  cls,
const char *  fieldName,
const char *  sig 
)
JNIEnv* getGlobalJniEnv ( )
std::string getString ( jstring  st)
std::string getStringField ( jobject  o,
jfieldID  fid 
)
std::string getStringMethod ( jobject  o,
jmethodID  fid,
int  i 
)
std::string getStringMethod ( jobject  o,
jmethodID  fid 
)
jobject newGlobalRef ( jobject  o)
void pullFromJavaRenderingContext ( jobject  jrc,
RenderingContext rc 
)
void pushToJavaRenderingContext ( jobject  jrc,
RenderingContext rc 
)
JNIEnv* setGlobalJniEnv ( JNIEnv *  )
void throwNewException ( const char *  msg)

Variable Documentation

const char* const LOG_TAG
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines