Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 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 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 17 | #pragma once |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 18 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 19 | #include <sys/cdefs.h> |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 20 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 21 | #include "include_jni/jni.h" |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 22 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 23 | __BEGIN_DECLS |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 24 | |
Orion Hodson | 7e438db | 2020-04-19 16:39:50 +0100 | [diff] [blame] | 25 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 26 | // |
| 27 | // Classes in constants cache. |
| 28 | // |
| 29 | // NB The implementations of these methods are generated by the JCLASS_ACCESSOR_IMPL macro in |
| 30 | // JniConstants.c. |
| 31 | // |
Orion Hodson | 7e438db | 2020-04-19 16:39:50 +0100 | [diff] [blame] | 32 | jclass JniConstants_ClassClass(JNIEnv* env); |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 33 | jclass JniConstants_FileDescriptorClass(JNIEnv* env); |
| 34 | jclass JniConstants_NIOAccessClass(JNIEnv* env); |
| 35 | jclass JniConstants_NioBufferClass(JNIEnv* env); |
| 36 | jclass JniConstants_ReferenceClass(JNIEnv* env); |
| 37 | jclass JniConstants_StringClass(JNIEnv* env); |
Orion Hodson | 7e438db | 2020-04-19 16:39:50 +0100 | [diff] [blame] | 38 | jclass JniConstants_ThrowableClass(JNIEnv* env); |
| 39 | |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 40 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 41 | // |
| 42 | // Methods in the constants cache. |
| 43 | // |
| 44 | // NB The implementations of these methods are generated by the JMETHODID_ACCESSOR_IMPL macro in |
| 45 | // JniConstants.c. |
| 46 | // |
| 47 | jmethodID JniConstants_FileDescriptor_init(JNIEnv* env); |
Orion Hodson | 7e438db | 2020-04-19 16:39:50 +0100 | [diff] [blame] | 48 | jmethodID JniConstants_Class_getName(); |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 49 | jmethodID JniConstants_NIOAccess_getBaseArray(JNIEnv* env); |
| 50 | jmethodID JniConstants_NIOAccess_getBaseArrayOffset(JNIEnv* env); |
| 51 | jmethodID JniConstants_NioBuffer_array(JNIEnv* env); |
| 52 | jmethodID JniConstants_NioBuffer_arrayOffset(JNIEnv* env); |
| 53 | jmethodID JniConstants_Reference_get(JNIEnv* env); |
Orion Hodson | 7e438db | 2020-04-19 16:39:50 +0100 | [diff] [blame] | 54 | jmethodID JniConstants_Throwable_getMessage(JNIEnv* env); |
| 55 | jmethodID JniConstants_Throwable_printStackTrace(JNIEnv* env); |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 56 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 57 | // |
| 58 | // Fields in the constants cache. |
| 59 | // |
| 60 | // NB The implementations of these methods are generated by the JFIELDID_ACCESSOR_IMPL macro in |
| 61 | // JniConstants.c. |
| 62 | // |
| 63 | jfieldID JniConstants_FileDescriptor_descriptor(JNIEnv* env); |
| 64 | jfieldID JniConstants_NioBuffer_address(JNIEnv* env); |
| 65 | jfieldID JniConstants_NioBuffer__elementSizeShift(JNIEnv* env); |
| 66 | jfieldID JniConstants_NioBuffer_limit(JNIEnv* env); |
| 67 | jfieldID JniConstants_NioBuffer_position(JNIEnv* env); |
Orion Hodson | bcc2b6f | 2019-02-22 16:41:10 +0000 | [diff] [blame] | 68 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 69 | __END_DECLS |