Lines Matching refs:NAME
39 #define INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RO(PRIMITIVE_TYPE, NAME) \ argument
40 class Scoped ## NAME ## ArrayRO { \
42 explicit Scoped ## NAME ## ArrayRO(JNIEnv* env) \
44 Scoped ## NAME ## ArrayRO(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
55 ~Scoped ## NAME ## ArrayRO() { \
57 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, JNI_ABORT); \
64 mEnv->Get ## NAME ## ArrayRegion(mJavaArray, 0, mSize, mBuffer); \
67 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
81 DISALLOW_COPY_AND_ASSIGN(Scoped ## NAME ## ArrayRO); \
99 #define INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RW(PRIMITIVE_TYPE, NAME) \ argument
100 class Scoped ## NAME ## ArrayRW { \
102 explicit Scoped ## NAME ## ArrayRW(JNIEnv* env) \
104 Scoped ## NAME ## ArrayRW(JNIEnv* env, PRIMITIVE_TYPE ## Array javaArray) \
109 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
112 ~Scoped ## NAME ## ArrayRW() { \
114 mEnv->Release ## NAME ## ArrayElements(mJavaArray, mRawArray, 0); \
119 mRawArray = mEnv->Get ## NAME ## ArrayElements(mJavaArray, NULL); \
131 DISALLOW_COPY_AND_ASSIGN(Scoped ## NAME ## ArrayRW); \