1 /*
2  * Copyright 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include <sys/cdefs.h>
20 
21 #include <jni.h>
22 
23 __BEGIN_DECLS
24 
25 //
26 // Classes in constants cache.
27 //
28 // NB The implementations of these methods are generated by the JCLASS_ACCESSOR_IMPL macro in
29 // JniConstants.c.
30 //
31 jclass JniConstants_FileDescriptorClass(JNIEnv* env);
32 jclass JniConstants_NIOAccessClass(JNIEnv* env);
33 jclass JniConstants_NioBufferClass(JNIEnv* env);
34 
35 //
36 // Methods in the constants cache.
37 //
38 // NB The implementations of these methods are generated by the JMETHODID_ACCESSOR_IMPL macro in
39 // JniConstants.c.
40 //
41 jmethodID JniConstants_FileDescriptor_init(JNIEnv* env);
42 jmethodID JniConstants_NIOAccess_getBaseArray(JNIEnv* env);
43 jmethodID JniConstants_NIOAccess_getBaseArrayOffset(JNIEnv* env);
44 jmethodID JniConstants_NioBuffer_array(JNIEnv* env);
45 jmethodID JniConstants_NioBuffer_arrayOffset(JNIEnv* env);
46 
47 //
48 // Fields in the constants cache.
49 //
50 // NB The implementations of these methods are generated by the JFIELDID_ACCESSOR_IMPL macro in
51 // JniConstants.c.
52 //
53 jfieldID JniConstants_FileDescriptor_descriptor(JNIEnv* env);
54 jfieldID JniConstants_NioBuffer_address(JNIEnv* env);
55 jfieldID JniConstants_NioBuffer__elementSizeShift(JNIEnv* env);
56 jfieldID JniConstants_NioBuffer_limit(JNIEnv* env);
57 jfieldID JniConstants_NioBuffer_position(JNIEnv* env);
58 
59 __END_DECLS
60