Lines Matching refs:NAME
44 #define INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RO(PRIMITIVE_TYPE, NAME) \ argument
45 class Scoped ## NAME ## ArrayRO { \
47 explicit Scoped ## NAME ## ArrayRO(JNIEnv* env) \
49 Scoped ## NAME ## ArrayRO(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
60 ~Scoped ## NAME ## ArrayRO() { \
62 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \
69 mEnv->Get ## NAME ## ArrayRegion(mJavaArray, 0, mSize, mBuffer); \
72 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, nullptr); \
86 DISALLOW_COPY_AND_ASSIGN(Scoped ## NAME ## ArrayRO); \
104 #define INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RW(PRIMITIVE_TYPE, NAME) \ argument
105 class Scoped ## NAME ## ArrayRW { \
107 explicit Scoped ## NAME ## ArrayRW(JNIEnv* env) \
109 Scoped ## NAME ## ArrayRW(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
114 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, nullptr); \
117 ~Scoped ## NAME ## ArrayRW() { \
119 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, 0); \
124 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, nullptr); \
136 DISALLOW_COPY_AND_ASSIGN(Scoped ## NAME ## ArrayRW); \