Home
last modified time | relevance | path

Searched defs:env (Results 1 – 25 of 57) sorted by relevance

123

/libcore/luni/src/main/native/
DJniException.cpp20 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error) { in jniThrowExceptionWithErrno()
25 void jniThrowBindException(JNIEnv* env, int error) { in jniThrowBindException()
29 void jniThrowConnectException(JNIEnv* env, int error) { in jniThrowConnectException()
33 void jniThrowOutOfMemoryError(JNIEnv* env, const char* message) { in jniThrowOutOfMemoryError()
37 void jniThrowSecurityException(JNIEnv* env, int error) { in jniThrowSecurityException()
41 void jniThrowSocketException(JNIEnv* env, int error) { in jniThrowSocketException()
45 void jniThrowSocketTimeoutException(JNIEnv* env, int error) { in jniThrowSocketTimeoutException()
DvalueOf.cpp24 static jobject valueOf(JNIEnv* env, jclass c, const char* signature, const T& value) { in valueOf()
29 jobject booleanValueOf(JNIEnv* env, jboolean value) { in booleanValueOf()
33 jobject doubleValueOf(JNIEnv* env, jdouble value) { in doubleValueOf()
37 jobject integerValueOf(JNIEnv* env, jint value) { in integerValueOf()
41 jobject longValueOf(JNIEnv* env, jlong value) { in longValueOf()
Djava_io_ObjectStreamClass.cpp23 static jobject getSignature(JNIEnv* env, jclass c, jobject object) { in getSignature()
32 static jobject ObjectStreamClass_getFieldSignature(JNIEnv* env, jclass, jobject field) { in ObjectStreamClass_getFieldSignature()
36 static jobject ObjectStreamClass_getMethodSignature(JNIEnv* env, jclass, jobject method) { in ObjectStreamClass_getMethodSignature()
40 static jobject ObjectStreamClass_getConstructorSignature(JNIEnv* env, jclass, jobject constructor) { in ObjectStreamClass_getConstructorSignature()
44 static jboolean ObjectStreamClass_hasClinit(JNIEnv * env, jclass, jclass targetClass) { in ObjectStreamClass_hasClinit()
56 int register_java_io_ObjectStreamClass(JNIEnv* env) { in register_java_io_ObjectStreamClass()
DNativeBN.cpp42 static int isValidHandle (JNIEnv* env, void* handle, const char* message) { in isValidHandle()
50 static int oneValidHandle (JNIEnv* env, void* a) in oneValidHandle()
55 static int twoValidHandles (JNIEnv* env, void* a, void* b) in twoValidHandles()
61 static int threeValidHandles (JNIEnv* env, void* a, void* b, void* c) in threeValidHandles()
67 static int fourValidHandles (JNIEnv* env, void* a, void* b, void* c, void* d) in fourValidHandles()
77 static jstring NativeBN_ERR_error_string(JNIEnv* env, jclass, unsigned long e) { in NativeBN_ERR_error_string()
86 static void NativeBN_BN_free(JNIEnv* env, jclass, BIGNUM* a) { in NativeBN_BN_free()
91 static int NativeBN_BN_cmp(JNIEnv* env, jclass, BIGNUM* a, BIGNUM* b) { in NativeBN_BN_cmp()
96 static jboolean NativeBN_BN_copy(JNIEnv* env, jclass, BIGNUM* to, BIGNUM* from) { in NativeBN_BN_copy()
101 static jboolean NativeBN_putULongInt(JNIEnv* env, jclass, BIGNUM* a, unsigned long long dw, jboolea… in NativeBN_putULongInt()
[all …]
Djava_io_File.cpp40 static jboolean File_deleteImpl(JNIEnv* env, jclass, jstring javaPath) { in File_deleteImpl()
48 static bool doStat(JNIEnv* env, jstring javaPath, struct stat& sb) { in doStat()
56 static jlong File_lengthImpl(JNIEnv* env, jclass, jstring javaPath) { in File_lengthImpl()
80 static jlong File_lastModifiedImpl(JNIEnv* env, jclass, jstring javaPath) { in File_lastModifiedImpl()
88 static jboolean File_isDirectoryImpl(JNIEnv* env, jclass, jstring javaPath) { in File_isDirectoryImpl()
93 static jboolean File_isFileImpl(JNIEnv* env, jclass, jstring javaPath) { in File_isFileImpl()
98 static jboolean doAccess(JNIEnv* env, jstring javaPath, int mode) { in doAccess()
106 static jboolean File_existsImpl(JNIEnv* env, jclass, jstring javaPath) { in File_existsImpl()
110 static jboolean File_canExecuteImpl(JNIEnv* env, jclass, jstring javaPath) { in File_canExecuteImpl()
114 static jboolean File_canReadImpl(JNIEnv* env, jclass, jstring javaPath) { in File_canReadImpl()
[all …]
Dlibcore_io_IoUtils.cpp27 static void IoUtils_close(JNIEnv* env, jclass, jobject fileDescriptor) { in IoUtils_close()
36 static jint IoUtils_getFd(JNIEnv* env, jclass, jobject fileDescriptor) { in IoUtils_getFd()
40 static void IoUtils_pipe(JNIEnv* env, jclass, jintArray javaFds) { in IoUtils_pipe()
52 static void IoUtils_setFd(JNIEnv* env, jclass, jobject fileDescriptor, jint newValue) { in IoUtils_setFd()
56 static void IoUtils_setBlocking(JNIEnv* env, jclass, jobject fileDescriptor, jboolean blocking) { in IoUtils_setBlocking()
73 int register_libcore_io_IoUtils(JNIEnv* env) { in register_libcore_io_IoUtils()
Djava_net_NetworkInterface.cpp67 static jobject makeInterfaceAddress(JNIEnv* env, jint interfaceIndex, ifaddrs* ifa) { in makeInterfaceAddress()
91 static jobjectArray NetworkInterface_getAllInterfaceAddressesImpl(JNIEnv* env, jclass) { in NetworkInterface_getAllInterfaceAddressesImpl()
145 static bool doIoctl(JNIEnv* env, jstring name, int request, ifreq& ifr) { in doIoctl()
170 static jboolean hasFlag(JNIEnv* env, jstring name, int flag) { in hasFlag()
176 static jbyteArray NetworkInterface_getHardwareAddressImpl(JNIEnv* env, jclass, jstring name) { in NetworkInterface_getHardwareAddressImpl()
197 static jint NetworkInterface_getMTUImpl(JNIEnv* env, jclass, jstring name) { in NetworkInterface_getMTUImpl()
203 static jboolean NetworkInterface_isLoopbackImpl(JNIEnv* env, jclass, jstring name) { in NetworkInterface_isLoopbackImpl()
207 static jboolean NetworkInterface_isPointToPointImpl(JNIEnv* env, jclass, jstring name) { in NetworkInterface_isPointToPointImpl()
211 static jboolean NetworkInterface_isUpImpl(JNIEnv* env, jclass, jstring name) { in NetworkInterface_isUpImpl()
215 static jboolean NetworkInterface_supportsMulticastImpl(JNIEnv* env, jclass, jstring name) { in NetworkInterface_supportsMulticastImpl()
[all …]
Djava_util_regex_Matcher.cpp45 MatcherAccessor(JNIEnv* env, jint addr, jstring javaInput, bool reset) { in MatcherAccessor()
66 MatcherAccessor(JNIEnv* env, jint addr) { in MatcherAccessor()
99 void init(JNIEnv* env, jint addr) { in init()
124 static jint Matcher_findImpl(JNIEnv* env, jclass, jint addr, jstring javaText, jint startIndex, jin… in Matcher_findImpl()
133 static jint Matcher_findNextImpl(JNIEnv* env, jclass, jint addr, jstring javaText, jintArray offset… in Matcher_findNextImpl()
145 static jint Matcher_groupCountImpl(JNIEnv* env, jclass, jint addr) { in Matcher_groupCountImpl()
150 static jint Matcher_hitEndImpl(JNIEnv* env, jclass, jint addr) { in Matcher_hitEndImpl()
155 static jint Matcher_lookingAtImpl(JNIEnv* env, jclass, jint addr, jstring javaText, jintArray offse… in Matcher_lookingAtImpl()
164 static jint Matcher_matchesImpl(JNIEnv* env, jclass, jint addr, jstring javaText, jintArray offsets… in Matcher_matchesImpl()
173 static jint Matcher_openImpl(JNIEnv* env, jclass, jint patternAddr) { in Matcher_openImpl()
[all …]
DICU.cpp73 Locale getLocale(JNIEnv* env, jstring localeName) { in getLocale()
77 static jint ICU_getCurrencyFractionDigitsNative(JNIEnv* env, jclass, jstring javaCurrencyCode) { in ICU_getCurrencyFractionDigitsNative()
92 static jstring ICU_getCurrencyCodeNative(JNIEnv* env, jclass, jstring javaKey) { in ICU_getCurrencyCodeNative()
140 static jstring ICU_getCurrencySymbolNative(JNIEnv* env, jclass, jstring locale, jstring currencyCod… in ICU_getCurrencySymbolNative()
168 static jstring ICU_getDisplayCountryNative(JNIEnv* env, jclass, jstring targetLocale, jstring local… in ICU_getDisplayCountryNative()
176 static jstring ICU_getDisplayLanguageNative(JNIEnv* env, jclass, jstring targetLocale, jstring loca… in ICU_getDisplayLanguageNative()
184 static jstring ICU_getDisplayVariantNative(JNIEnv* env, jclass, jstring targetLocale, jstring local… in ICU_getDisplayVariantNative()
192 static jstring ICU_getISO3CountryNative(JNIEnv* env, jclass, jstring locale) { in ICU_getISO3CountryNative()
197 static jstring ICU_getISO3LanguageNative(JNIEnv* env, jclass, jstring locale) { in ICU_getISO3LanguageNative()
202 static jobjectArray toStringArray(JNIEnv* env, const char* const* strings) { in toStringArray()
[all …]
Djava_lang_System.cpp26 static jstring System_getEnvByName(JNIEnv* env, jclass, jstring javaName) { in System_getEnvByName()
37 static jstring System_getEnvByIndex(JNIEnv* env, jclass, jint index) { in System_getEnvByIndex()
42 static void System_setFieldImpl(JNIEnv* env, jclass clazz, in System_setFieldImpl()
61 int register_java_lang_System(JNIEnv* env) { in register_java_lang_System()
DNativeCollation.cpp38 static jint NativeCollation_compare(JNIEnv* env, jclass, jint address, jstring lhs0, jstring rhs0) { in NativeCollation_compare()
46 static jint NativeCollation_getAttribute(JNIEnv* env, jclass, jint address, jint type) { in NativeCollation_getAttribute()
53 static jint NativeCollation_getCollationElementIterator(JNIEnv* env, jclass, jint address, jstring … in NativeCollation_getCollationElementIterator()
66 static jint NativeCollation_getNormalization(JNIEnv* env, jclass, jint address) { in NativeCollation_getNormalization()
73 static void NativeCollation_setNormalization(JNIEnv* env, jclass, jint address, jint mode) { in NativeCollation_setNormalization()
83 static jstring NativeCollation_getRules(JNIEnv* env, jclass, jint address) { in NativeCollation_getRules()
89 static jbyteArray NativeCollation_getSortKey(JNIEnv* env, jclass, jint address, jstring source0) { in NativeCollation_getSortKey()
112 static jint NativeCollation_next(JNIEnv* env, jclass, jint address) { in NativeCollation_next()
119 static jint NativeCollation_openCollator(JNIEnv* env, jclass, jstring localeName) { in NativeCollation_openCollator()
130 static jint NativeCollation_openCollatorFromRules(JNIEnv* env, jclass, jstring rules0, jint mode, j… in NativeCollation_openCollatorFromRules()
[all …]
Dorg_apache_harmony_luni_platform_OSFileSystem.cpp110 static bool offsetTooLarge(JNIEnv* env, jlong longOffset) { in offsetTooLarge()
150 static jint OSFileSystem_lockImpl(JNIEnv* env, jobject, jint fd, in OSFileSystem_lockImpl()
170 static void OSFileSystem_unlockImpl(JNIEnv* env, jobject, jint fd, jlong start, jlong length) { in OSFileSystem_unlockImpl()
195 static iovec* initIoVec(JNIEnv* env, in initIoVec()
221 static jlong OSFileSystem_readv(JNIEnv* env, jobject, jint fd, in OSFileSystem_readv()
237 static jlong OSFileSystem_writev(JNIEnv* env, jobject, jint fd, in OSFileSystem_writev()
250 static jlong OSFileSystem_transfer(JNIEnv* env, jobject, jint fd, jobject sd, in OSFileSystem_transfer()
270 static jlong OSFileSystem_readDirect(JNIEnv* env, jobject, jint fd, in OSFileSystem_readDirect()
290 static jlong OSFileSystem_read(JNIEnv* env, jobject, jint fd, in OSFileSystem_read()
300 static jlong OSFileSystem_writeDirect(JNIEnv* env, jobject, jint fd, in OSFileSystem_writeDirect()
[all …]
Djava_io_FileDescriptor.cpp26 static void FileDescriptor_syncImpl(JNIEnv* env, jobject obj) { in FileDescriptor_syncImpl()
47 int register_java_io_FileDescriptor(JNIEnv* env) { in register_java_io_FileDescriptor()
Dorg_apache_harmony_xml_ExpatParser.cpp37 static void throw_OutOfMemoryError(JNIEnv* env) { in throw_OutOfMemoryError()
74 void push(JNIEnv* env, jstring s) { in push()
169 JNIEnv* env; member
249 static InternedString* newInternedString(JNIEnv* env, const char* bytes, int hash) { in newInternedString()
357 static jstring internString(JNIEnv* env, ParsingContext* parsingContext, const char* s) { in internString()
408 static void jniThrowExpatException(JNIEnv* env, XML_Error error) { in jniThrowExpatException()
422 JNIEnv* env = parsingContext->env; in fillBuffer() local
450 JNIEnv* env = parsingContext->env; in bufferAndInvoke() local
473 … ExpatElementName(JNIEnv* env, ParsingContext* parsingContext, jint attributePointer, jint index) { in ExpatElementName()
479 ExpatElementName(JNIEnv* env, ParsingContext* parsingContext, const char* s) { in ExpatElementName()
[all …]
DNativeCrypto.cpp178 static int throwExceptionIfNecessary(JNIEnv* env, const char* location __attribute__ ((unused))) { in throwExceptionIfNecessary()
197 static void throwSocketTimeoutException(JNIEnv* env, const char* message) { in throwSocketTimeoutException()
205 static void throwSSLExceptionStr(JNIEnv* env, const char* message) { in throwSSLExceptionStr()
213 static void throwSSLProtocolExceptionStr(JNIEnv* env, const char* message) { in throwSSLProtocolExceptionStr()
229 JNIEnv* env, SSL* ssl, int sslErrorCode, const char* message) { in throwSSLExceptionWithSslErrors()
354 static SSL_CTX* to_SSL_CTX(JNIEnv* env, int ssl_ctx_address, bool throwIfNull) { in to_SSL_CTX()
363 static SSL* to_SSL(JNIEnv* env, int ssl_address, bool throwIfNull) { in to_SSL()
372 static SSL_SESSION* to_SSL_SESSION(JNIEnv* env, int ssl_session_address, bool throwIfNull) { in to_SSL_SESSION()
386 static BIGNUM* arrayToBignum(JNIEnv* env, jbyteArray source) { in arrayToBignum()
481 static EVP_PKEY* NativeCrypto_EVP_PKEY_new_DSA(JNIEnv* env, jclass, in NativeCrypto_EVP_PKEY_new_DSA()
[all …]
DNativeNormalizer.cpp25 static jstring NativeNormalizer_normalizeImpl(JNIEnv* env, jclass, jstring s, jint intMode) { in NativeNormalizer_normalizeImpl()
35 static jboolean NativeNormalizer_isNormalizedImpl(JNIEnv* env, jclass, jstring s, jint intMode) { in NativeNormalizer_isNormalizedImpl()
48 int register_libcore_icu_NativeNormalizer(JNIEnv* env) { in register_libcore_icu_NativeNormalizer()
DNetworkUtilities.cpp28 bool byteArrayToSocketAddress(JNIEnv* env, jclass, jbyteArray byteArray, int port, sockaddr_storage… in byteArrayToSocketAddress()
63 jbyteArray socketAddressToByteArray(JNIEnv* env, sockaddr_storage* ss) { in socketAddressToByteArray()
92 jobject byteArrayToInetAddress(JNIEnv* env, jbyteArray byteArray) { in byteArrayToInetAddress()
104 jobject socketAddressToInetAddress(JNIEnv* env, sockaddr_storage* ss) { in socketAddressToInetAddress()
Dorg_apache_harmony_luni_platform_OSNetworkSystem.cpp199 static bool inetAddressToSocketAddress(JNIEnv* env, jobject inetAddress, in inetAddressToSocketAddress()
259 ConnectHelper(JNIEnv* env) : mEnv(env) { in ConnectHelper()
358 static void mcastJoinLeaveGroup(JNIEnv* env, int fd, jobject javaGroupRequest, bool join) { in mcastJoinLeaveGroup()
383 static bool initCachedFields(JNIEnv* env) { in initCachedFields()
411 static void OSNetworkSystem_socket(JNIEnv* env, jobject, jobject fileDescriptor, jboolean stream) { in OSNetworkSystem_socket()
444 static jint OSNetworkSystem_writeDirect(JNIEnv* env, jobject, in OSNetworkSystem_writeDirect()
480 static jint OSNetworkSystem_write(JNIEnv* env, jobject, in OSNetworkSystem_write()
491 static jboolean OSNetworkSystem_connectNonBlocking(JNIEnv* env, jobject, jobject fileDescriptor, jo… in OSNetworkSystem_connectNonBlocking()
501 static jboolean OSNetworkSystem_isConnected(JNIEnv* env, jobject, jobject fileDescriptor, jint time… in OSNetworkSystem_isConnected()
522 static void OSNetworkSystem_connect(JNIEnv* env, jobject, jobject fileDescriptor, in OSNetworkSystem_connect()
[all …]
Djava_lang_ProcessManager.cpp55 static void ProcessManager_kill(JNIEnv* env, jclass, jint pid) { in ProcessManager_kill()
65 static void ProcessManager_watchChildren(JNIEnv* env, jobject o) { in ProcessManager_watchChildren()
172 static pid_t executeProcess(JNIEnv* env, char** commands, char** environment, in executeProcess()
288 static char** convertStrings(JNIEnv* env, jobjectArray javaArray) { in convertStrings()
307 static void freeStrings(JNIEnv* env, jobjectArray javaArray, char** array) { in freeStrings()
325 JNIEnv* env, jclass, jobjectArray javaCommands, in ProcessManager_exec()
372 static void ProcessManager_staticInitialize(JNIEnv* env, in ProcessManager_staticInitialize()
393 int register_java_lang_ProcessManager(JNIEnv* env) { in register_java_lang_ProcessManager()
DNativeBreakIterator.cpp28 static jint getIterator(JNIEnv* env, jstring locale, UBreakIteratorType type) { in getIterator()
39 static jint NativeBreakIterator_getCharacterInstanceImpl(JNIEnv* env, jclass, jstring locale) { in NativeBreakIterator_getCharacterInstanceImpl()
43 static jint NativeBreakIterator_getLineInstanceImpl(JNIEnv* env, jclass, jstring locale) { in NativeBreakIterator_getLineInstanceImpl()
47 static jint NativeBreakIterator_getSentenceInstanceImpl(JNIEnv* env, jclass, jstring locale) { in NativeBreakIterator_getSentenceInstanceImpl()
51 static jint NativeBreakIterator_getWordInstanceImpl(JNIEnv* env, jclass, jstring locale) { in NativeBreakIterator_getWordInstanceImpl()
63 static jint NativeBreakIterator_cloneImpl(JNIEnv* env, jclass, jint address) { in NativeBreakIterator_cloneImpl()
71 static void NativeBreakIterator_setTextImpl(JNIEnv* env, jclass, jint address, jstring javaText) { in NativeBreakIterator_setTextImpl()
142 int register_com_ibm_icu4jni_text_NativeBreakIterator(JNIEnv* env) { in register_com_ibm_icu4jni_text_NativeBreakIterator()
Dzip.h27 static void throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error) { in throwExceptionForZlibError()
51 void setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, bool inflate) { in setDictionary()
72 void setInput(JNIEnv* env, jbyteArray buf, jint off, jint len) { in setInput()
Djava_nio_charset_Charsets.cpp41 NativeUnsafeByteSequence(JNIEnv* env) in NativeUnsafeByteSequence()
108 static void Charsets_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, jint… in Charsets_asciiBytesToChars()
127 static void Charsets_isoLatin1BytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, … in Charsets_isoLatin1BytesToChars()
149 static jbyteArray charsToBytes(JNIEnv* env, jcharArray javaChars, jint offset, jint length, jchar m… in charsToBytes()
174 static jbyteArray Charsets_toAsciiBytes(JNIEnv* env, jclass, jcharArray javaChars, jint offset, jin… in Charsets_toAsciiBytes()
178 static jbyteArray Charsets_toIsoLatin1Bytes(JNIEnv* env, jclass, jcharArray javaChars, jint offset,… in Charsets_toIsoLatin1Bytes()
182 static jbyteArray Charsets_toUtf8Bytes(JNIEnv* env, jclass, jcharArray javaChars, jint offset, jint… in Charsets_toUtf8Bytes()
247 int register_java_nio_charset_Charsets(JNIEnv* env) { in register_java_nio_charset_Charsets()
Djava_io_ObjectInputStream.cpp49 static void ObjectInputStream_setFieldObject(JNIEnv* env, jclass, jobject instance, in ObjectInputStream_setFieldObject()
68 static jobject ObjectInputStream_newInstance(JNIEnv* env, jclass, in ObjectInputStream_newInstance()
89 int register_java_io_ObjectInputStream(JNIEnv* env) { in register_java_io_ObjectInputStream()
DTimeZones.cpp31 static jstring formatDate(JNIEnv* env, const SimpleDateFormat& fmt, const UDate& when) { in formatDate()
37 static TimeZone* timeZoneFromId(JNIEnv* env, jstring javaZoneId) { in timeZoneFromId()
42 static jobjectArray TimeZones_forCountryCode(JNIEnv* env, jclass, jstring countryCode) { in TimeZones_forCountryCode()
72 static jstring TimeZones_getDisplayNameImpl(JNIEnv* env, jclass, jstring zoneId, jboolean isDST, ji… in TimeZones_getDisplayNameImpl()
81 static void TimeZones_getZoneStringsImpl(JNIEnv* env, jclass, jobjectArray outerArray, jstring loca… in TimeZones_getZoneStringsImpl()
152 int register_libcore_icu_TimeZones(JNIEnv* env) { in register_libcore_icu_TimeZones()
/libcore/sqlite-jdbc/src/main/native/
Dsqlite_jni.c62 JNIEnv *env; /* Java environment for callbacks */ member
90 JNIEnv *env; /* Java environment for callbacks */ member
149 seterr(JNIEnv *env, jobject obj, int err) in seterr()
160 setvmerr(JNIEnv *env, jobject obj, int err) in setvmerr()
171 setstmterr(JNIEnv *env, jobject obj, int err) in setstmterr()
196 gethandle(JNIEnv *env, jobject obj) in gethandle()
206 gethvm(JNIEnv *env, jobject obj) in gethvm()
216 gethstmt(JNIEnv *env, jobject obj) in gethstmt()
228 gethbl(JNIEnv *env, jobject obj) in gethbl()
238 delglobrefp(JNIEnv *env, jobject *obj) in delglobrefp()
[all …]

123