• Home
  • Raw
  • Download

Lines Matching refs:ts

1215     ScopedJniThreadState ts(env);  in GetVersion()  local
1232 ScopedJniThreadState ts(env); in DefineClass() local
1252 ScopedJniThreadState ts(env); in FindClass() local
1259 if (ts.self()->classLoaderOverride != NULL) { in FindClass()
1262 loader = ts.self()->classLoaderOverride; in FindClass()
1282 jclass jclazz = (jclass) addLocalReference(ts.self(), (Object*) clazz); in FindClass()
1283 dvmReleaseTrackedAlloc(trackedLoader, ts.self()); in FindClass()
1291 ScopedJniThreadState ts(env); in GetSuperclass() local
1292 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in GetSuperclass()
1293 return (jclass) addLocalReference(ts.self(), (Object*)clazz->super); in GetSuperclass()
1302 ScopedJniThreadState ts(env); in IsAssignableFrom() local
1303 ClassObject* clazz1 = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz1); in IsAssignableFrom()
1304 ClassObject* clazz2 = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz2); in IsAssignableFrom()
1312 ScopedJniThreadState ts(env); in FromReflectedMethod() local
1313 Object* method = dvmDecodeIndirectRef(ts.self(), jmethod); in FromReflectedMethod()
1321 ScopedJniThreadState ts(env); in FromReflectedField() local
1322 Object* field = dvmDecodeIndirectRef(ts.self(), jfield); in FromReflectedField()
1334 ScopedJniThreadState ts(env); in ToReflectedMethod() local
1335 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jcls); in ToReflectedMethod()
1338 return addLocalReference(ts.self(), obj); in ToReflectedMethod()
1349 ScopedJniThreadState ts(env); in ToReflectedField() local
1350 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jcls); in ToReflectedField()
1353 return addLocalReference(ts.self(), obj); in ToReflectedField()
1360 ScopedJniThreadState ts(env); in Throw() local
1362 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in Throw()
1363 dvmSetException(ts.self(), obj); in Throw()
1374 ScopedJniThreadState ts(env); in ThrowNew() local
1375 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in ThrowNew()
1390 ScopedJniThreadState ts(env); in ExceptionOccurred() local
1391 Object* exception = dvmGetException(ts.self()); in ExceptionOccurred()
1392 jthrowable localException = (jthrowable) addLocalReference(ts.self(), exception); in ExceptionOccurred()
1410 ScopedJniThreadState ts(env); in ExceptionDescribe() local
1411 Object* exception = dvmGetException(ts.self()); in ExceptionDescribe()
1425 ScopedJniThreadState ts(env); in ExceptionClear() local
1426 dvmClearException(ts.self()); in ExceptionClear()
1445 ScopedJniThreadState ts(env); in PushLocalFrame() local
1446 if (!ensureLocalCapacity(ts.self(), capacity) || in PushLocalFrame()
1447 !dvmPushLocalFrame(ts.self(), dvmGetCurrentJNIMethod())) in PushLocalFrame()
1450 dvmClearException(ts.self()); in PushLocalFrame()
1462 ScopedJniThreadState ts(env); in PopLocalFrame() local
1463 Object* result = dvmDecodeIndirectRef(ts.self(), jresult); in PopLocalFrame()
1464 if (!dvmPopLocalFrame(ts.self())) { in PopLocalFrame()
1466 dvmClearException(ts.self()); in PopLocalFrame()
1469 return addLocalReference(ts.self(), result); in PopLocalFrame()
1476 ScopedJniThreadState ts(env); in NewGlobalRef() local
1477 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in NewGlobalRef()
1485 ScopedJniThreadState ts(env); in DeleteGlobalRef() local
1494 ScopedJniThreadState ts(env); in NewLocalRef() local
1495 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in NewLocalRef()
1496 return addLocalReference(ts.self(), obj); in NewLocalRef()
1503 ScopedJniThreadState ts(env); in DeleteLocalRef() local
1504 deleteLocalReference(ts.self(), jlocalRef); in DeleteLocalRef()
1512 ScopedJniThreadState ts(env); in EnsureLocalCapacity() local
1513 bool okay = ensureLocalCapacity(ts.self(), capacity); in EnsureLocalCapacity()
1525 ScopedJniThreadState ts(env); in IsSameObject() local
1526 Object* obj1 = dvmDecodeIndirectRef(ts.self(), jref1); in IsSameObject()
1527 Object* obj2 = dvmDecodeIndirectRef(ts.self(), jref2); in IsSameObject()
1535 ScopedJniThreadState ts(env); in AllocObject() local
1537 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in AllocObject()
1541 assert(dvmCheckException(ts.self())); in AllocObject()
1546 return addLocalReference(ts.self(), newObj); in AllocObject()
1553 ScopedJniThreadState ts(env); in NewObject() local
1554 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in NewObject()
1557 assert(dvmCheckException(ts.self())); in NewObject()
1562 jobject result = addLocalReference(ts.self(), newObj); in NewObject()
1567 dvmCallMethodV(ts.self(), (Method*) methodID, newObj, true, &unused, args); in NewObject()
1574 ScopedJniThreadState ts(env); in NewObjectV() local
1575 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in NewObjectV()
1578 assert(dvmCheckException(ts.self())); in NewObjectV()
1583 jobject result = addLocalReference(ts.self(), newObj); in NewObjectV()
1586 dvmCallMethodV(ts.self(), (Method*) methodID, newObj, true, &unused, args); in NewObjectV()
1592 ScopedJniThreadState ts(env); in NewObjectA() local
1593 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in NewObjectA()
1596 assert(dvmCheckException(ts.self())); in NewObjectA()
1601 jobject result = addLocalReference(ts.self(), newObj); in NewObjectA()
1604 dvmCallMethodA(ts.self(), (Method*) methodID, newObj, true, &unused, args); in NewObjectA()
1615 ScopedJniThreadState ts(env); in GetObjectClass() local
1619 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in GetObjectClass()
1620 return (jclass) addLocalReference(ts.self(), (Object*) obj->clazz); in GetObjectClass()
1627 ScopedJniThreadState ts(env); in IsInstanceOf() local
1634 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in IsInstanceOf()
1635 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in IsInstanceOf()
1654 ScopedJniThreadState ts(env); in GetMethodID() local
1656 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in GetMethodID()
1658 assert(dvmCheckException(ts.self())); in GetMethodID()
1701 ScopedJniThreadState ts(env); in GetFieldID() local
1703 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in GetFieldID()
1706 assert(dvmCheckException(ts.self())); in GetFieldID()
1723 ScopedJniThreadState ts(env); in GetStaticMethodID() local
1725 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in GetStaticMethodID()
1727 assert(dvmCheckException(ts.self())); in GetStaticMethodID()
1757 ScopedJniThreadState ts(env); in GetStaticFieldID() local
1759 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in GetStaticFieldID()
1761 assert(dvmCheckException(ts.self())); in GetStaticFieldID()
1784 ScopedJniThreadState ts(env); \
1790 value = (_ctype)(u4)addLocalReference(ts.self(), obj); \
1797 value = (_ctype)(u4)addLocalReference(ts.self(), obj); \
1822 ScopedJniThreadState ts(env); \
1826 Object* valObj = dvmDecodeIndirectRef(ts.self(), (jobject)(u4)value); \
1833 Object* valObj = dvmDecodeIndirectRef(ts.self(), (jobject)(u4)value); \
1859 ScopedJniThreadState ts(env); \
1860 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
1867 value = (_ctype)(u4)addLocalReference(ts.self(), valObj); \
1875 value = (_ctype)(u4)addLocalReference(ts.self(), valObj); \
1899 ScopedJniThreadState ts(env); \
1900 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
1904 Object* valObj = dvmDecodeIndirectRef(ts.self(), (jobject)(u4)value); \
1912 Object* valObj = dvmDecodeIndirectRef(ts.self(), (jobject)(u4)value); \
1940 ScopedJniThreadState ts(env); \
1941 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
1950 dvmCallMethodV(ts.self(), meth, obj, true, &result, args); \
1952 if (_isref && !dvmCheckException(ts.self())) \
1953 result.l = (Object*)addLocalReference(ts.self(), result.l); \
1959 ScopedJniThreadState ts(env); \
1960 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
1967 dvmCallMethodV(ts.self(), meth, obj, true, &result, args); \
1968 if (_isref && !dvmCheckException(ts.self())) \
1969 result.l = (Object*)addLocalReference(ts.self(), result.l); \
1975 ScopedJniThreadState ts(env); \
1976 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
1983 dvmCallMethodA(ts.self(), meth, obj, true, &result, args); \
1984 if (_isref && !dvmCheckException(ts.self())) \
1985 result.l = (Object*)addLocalReference(ts.self(), result.l); \
2010 ScopedJniThreadState ts(env); \
2011 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
2012 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); \
2021 dvmCallMethodV(ts.self(), meth, obj, true, &result, args); \
2022 if (_isref && !dvmCheckException(ts.self())) \
2023 result.l = (Object*)addLocalReference(ts.self(), result.l); \
2030 ScopedJniThreadState ts(env); \
2031 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
2032 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); \
2039 dvmCallMethodV(ts.self(), meth, obj, true, &result, args); \
2040 if (_isref && !dvmCheckException(ts.self())) \
2041 result.l = (Object*)addLocalReference(ts.self(), result.l); \
2047 ScopedJniThreadState ts(env); \
2048 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); \
2049 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); \
2056 dvmCallMethodA(ts.self(), meth, obj, true, &result, args); \
2057 if (_isref && !dvmCheckException(ts.self())) \
2058 result.l = (Object*)addLocalReference(ts.self(), result.l); \
2081 ScopedJniThreadState ts(env); \
2085 dvmCallMethodV(ts.self(), (Method*)methodID, NULL, true, &result, args);\
2087 if (_isref && !dvmCheckException(ts.self())) \
2088 result.l = (Object*)addLocalReference(ts.self(), result.l); \
2095 ScopedJniThreadState ts(env); \
2097 dvmCallMethodV(ts.self(), (Method*)methodID, NULL, true, &result, args);\
2098 if (_isref && !dvmCheckException(ts.self())) \
2099 result.l = (Object*)addLocalReference(ts.self(), result.l); \
2106 ScopedJniThreadState ts(env); \
2108 dvmCallMethodA(ts.self(), (Method*)methodID, NULL, true, &result, args);\
2109 if (_isref && !dvmCheckException(ts.self())) \
2110 result.l = (Object*)addLocalReference(ts.self(), result.l); \
2131 ScopedJniThreadState ts(env); in NewString() local
2137 return (jstring) addLocalReference(ts.self(), (Object*) jstr); in NewString()
2144 ScopedJniThreadState ts(env); in GetStringLength() local
2145 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringLength()
2157 ScopedJniThreadState ts(env); in GetStringChars() local
2159 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringChars()
2175 ScopedJniThreadState ts(env); in ReleaseStringChars() local
2176 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in ReleaseStringChars()
2188 ScopedJniThreadState ts(env); in NewStringUTF() local
2194 jstring result = (jstring) addLocalReference(ts.self(), (Object*) newStr); in NewStringUTF()
2203 ScopedJniThreadState ts(env); in GetStringUTFLength() local
2204 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringUTFLength()
2226 ScopedJniThreadState ts(env); in GetStringUTFChars() local
2234 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringUTFChars()
2247 ScopedJniThreadState ts(env); in ReleaseStringUTFChars() local
2255 ScopedJniThreadState ts(env); in GetArrayLength() local
2256 ArrayObject* arrObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); in GetArrayLength()
2266 ScopedJniThreadState ts(env); in NewObjectArray() local
2273 ClassObject* elemClassObj = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jelementClass); in NewObjectArray()
2277 assert(dvmCheckException(ts.self())); in NewObjectArray()
2280 jobjectArray newArray = (jobjectArray) addLocalReference(ts.self(), (Object*) newObj); in NewObjectArray()
2287 Object* initialElement = dvmDecodeIndirectRef(ts.self(), jinitialElement); in NewObjectArray()
2312 ScopedJniThreadState ts(env); in GetObjectArrayElement() local
2314 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); in GetObjectArrayElement()
2320 return addLocalReference(ts.self(), value); in GetObjectArrayElement()
2327 ScopedJniThreadState ts(env); in SetObjectArrayElement() local
2329 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); in SetObjectArrayElement()
2334 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in SetObjectArrayElement()
2354 ScopedJniThreadState ts(env); \
2359 _artype result = (_artype) addLocalReference(ts.self(), (Object*) arrayObj); \
2385 ScopedJniThreadState ts(env); \
2386 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2408 ScopedJniThreadState ts(env); \
2409 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2430 ScopedJniThreadState ts(env); \
2431 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2447 ScopedJniThreadState ts(env); \
2448 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); \
2488 ScopedJniThreadState ts(env); in RegisterNatives() local
2490 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in RegisterNatives()
2534 ScopedJniThreadState ts(env); in UnregisterNatives() local
2536 ClassObject* clazz = (ClassObject*) dvmDecodeIndirectRef(ts.self(), jclazz); in UnregisterNatives()
2552 ScopedJniThreadState ts(env); in MonitorEnter() local
2553 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in MonitorEnter()
2554 dvmLockObject(ts.self(), obj); in MonitorEnter()
2555 trackMonitorEnter(ts.self(), obj); in MonitorEnter()
2569 ScopedJniThreadState ts(env); in MonitorExit() local
2570 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); in MonitorExit()
2571 bool success = dvmUnlockObject(ts.self(), obj); in MonitorExit()
2573 trackMonitorExit(ts.self(), obj); in MonitorExit()
2582 ScopedJniThreadState ts(env); in GetJavaVM() local
2591 ScopedJniThreadState ts(env); in GetStringRegion() local
2592 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringRegion()
2606 ScopedJniThreadState ts(env); in GetStringUTFRegion() local
2607 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringUTFRegion()
2625 ScopedJniThreadState ts(env); in GetPrimitiveArrayCritical() local
2626 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); in GetPrimitiveArrayCritical()
2640 ScopedJniThreadState ts(env); in ReleasePrimitiveArrayCritical() local
2641 ArrayObject* arrayObj = (ArrayObject*) dvmDecodeIndirectRef(ts.self(), jarr); in ReleasePrimitiveArrayCritical()
2650 ScopedJniThreadState ts(env); in GetStringCritical() local
2652 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringCritical()
2668 ScopedJniThreadState ts(env); in ReleaseStringCritical() local
2669 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in ReleaseStringCritical()
2678 ScopedJniThreadState ts(env); in NewWeakGlobalRef() local
2679 Object *obj = dvmDecodeIndirectRef(ts.self(), jobj); in NewWeakGlobalRef()
2687 ScopedJniThreadState ts(env); in DeleteWeakGlobalRef() local
2697 ScopedJniThreadState ts(env); in ExceptionCheck() local
2698 return dvmCheckException(ts.self()); in ExceptionCheck()
2710 ScopedJniThreadState ts(env); in GetObjectRefType() local
2711 return dvmGetJNIRefType(ts.self(), jobj); in GetObjectRefType()
2718 ScopedJniThreadState ts(env); in NewDirectByteBuffer() local
2739 jobject result = addLocalReference(ts.self(), newObj); in NewDirectByteBuffer()
2741 dvmCallMethod(ts.self(), gDvm.methJavaNioDirectByteBuffer_init, in NewDirectByteBuffer()
2743 if (dvmGetException(ts.self()) != NULL) { in NewDirectByteBuffer()
2744 deleteLocalReference(ts.self(), result); in NewDirectByteBuffer()
2756 ScopedJniThreadState ts(env); in GetDirectBufferAddress() local
2759 Object* bufObj = dvmDecodeIndirectRef(ts.self(), jbuf); in GetDirectBufferAddress()
2771 ScopedJniThreadState ts(env); in GetDirectBufferCapacity() local
2779 Object* buf = dvmDecodeIndirectRef(ts.self(), jbuf); in GetDirectBufferCapacity()