blob: cb8992dc1dddeec003bdfa1ea18a800dbce5a1b6 [file] [log] [blame]
Orion Hodsonaadb3732018-11-21 12:58:34 +00001/*
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 Hodson962ee002020-04-19 09:45:28 +010017#pragma once
Orion Hodsonaadb3732018-11-21 12:58:34 +000018
Orion Hodson962ee002020-04-19 09:45:28 +010019#include <sys/cdefs.h>
Orion Hodsonaadb3732018-11-21 12:58:34 +000020
Orion Hodsone77ecef2020-06-02 12:18:23 +010021#include <jni.h>
Orion Hodsonaadb3732018-11-21 12:58:34 +000022
Orion Hodson962ee002020-04-19 09:45:28 +010023__BEGIN_DECLS
Orion Hodsonaadb3732018-11-21 12:58:34 +000024
Orion Hodson962ee002020-04-19 09:45:28 +010025//
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//
31jclass JniConstants_FileDescriptorClass(JNIEnv* env);
32jclass JniConstants_NIOAccessClass(JNIEnv* env);
33jclass JniConstants_NioBufferClass(JNIEnv* env);
Orion Hodsonaadb3732018-11-21 12:58:34 +000034
Orion Hodson962ee002020-04-19 09:45:28 +010035//
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//
41jmethodID JniConstants_FileDescriptor_init(JNIEnv* env);
42jmethodID JniConstants_NIOAccess_getBaseArray(JNIEnv* env);
43jmethodID JniConstants_NIOAccess_getBaseArrayOffset(JNIEnv* env);
44jmethodID JniConstants_NioBuffer_array(JNIEnv* env);
45jmethodID JniConstants_NioBuffer_arrayOffset(JNIEnv* env);
Orion Hodsonaadb3732018-11-21 12:58:34 +000046
Orion Hodson962ee002020-04-19 09:45:28 +010047//
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//
53jfieldID JniConstants_FileDescriptor_descriptor(JNIEnv* env);
54jfieldID JniConstants_NioBuffer_address(JNIEnv* env);
55jfieldID JniConstants_NioBuffer__elementSizeShift(JNIEnv* env);
56jfieldID JniConstants_NioBuffer_limit(JNIEnv* env);
57jfieldID JniConstants_NioBuffer_position(JNIEnv* env);
Orion Hodsonbcc2b6f2019-02-22 16:41:10 +000058
Orion Hodson962ee002020-04-19 09:45:28 +010059__END_DECLS