Lines Matching refs:sc

1615     ScopedCheck sc(kFlag_Default, __FUNCTION__);  in GetVersion()  local
1617 if (sc.Check(soa, true, "E", args)) { in GetVersion()
1620 if (sc.Check(soa, false, "I", &result)) { in GetVersion()
1629 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetJavaVM() local
1631 if (sc.Check(soa, true, "Ep", args)) { in GetJavaVM()
1634 if (sc.Check(soa, false, "i", &result)) { in GetJavaVM()
1643 ScopedCheck sc(kFlag_Default, __FUNCTION__); in RegisterNatives() local
1645 if (sc.Check(soa, true, "EcpI", args)) { in RegisterNatives()
1648 if (sc.Check(soa, false, "i", &result)) { in RegisterNatives()
1657 ScopedCheck sc(kFlag_Default, __FUNCTION__); in UnregisterNatives() local
1659 if (sc.Check(soa, true, "Ec", args)) { in UnregisterNatives()
1662 if (sc.Check(soa, false, "i", &result)) { in UnregisterNatives()
1674 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetObjectRefType() local
1676 if (sc.Check(soa, true, "EL", args)) { in GetObjectRefType()
1679 if (sc.Check(soa, false, "w", &result)) { in GetObjectRefType()
1689 ScopedCheck sc(kFlag_Default, __FUNCTION__); in DefineClass() local
1691 if (sc.Check(soa, true, "EuLpz", args) && sc.CheckClassName(name)) { in DefineClass()
1694 if (sc.Check(soa, false, "c", &result)) { in DefineClass()
1703 ScopedCheck sc(kFlag_Default, __FUNCTION__); in FindClass() local
1705 if (sc.Check(soa, true, "Eu", args) && sc.CheckClassName(name)) { in FindClass()
1708 if (sc.Check(soa, false, "c", &result)) { in FindClass()
1717 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetSuperclass() local
1719 if (sc.Check(soa, true, "Ec", args)) { in GetSuperclass()
1722 if (sc.Check(soa, false, "c", &result)) { in GetSuperclass()
1731 ScopedCheck sc(kFlag_Default, __FUNCTION__); in IsAssignableFrom() local
1733 if (sc.Check(soa, true, "Ecc", args)) { in IsAssignableFrom()
1736 if (sc.Check(soa, false, "b", &result)) { in IsAssignableFrom()
1745 ScopedCheck sc(kFlag_Default, __FUNCTION__); in FromReflectedMethod() local
1747 if (sc.Check(soa, true, "EL", args) && sc.CheckReflectedMethod(soa, method)) { in FromReflectedMethod()
1750 if (sc.Check(soa, false, "m", &result)) { in FromReflectedMethod()
1759 ScopedCheck sc(kFlag_Default, __FUNCTION__); in FromReflectedField() local
1761 if (sc.Check(soa, true, "EL", args) && sc.CheckReflectedField(soa, field)) { in FromReflectedField()
1764 if (sc.Check(soa, false, "f", &result)) { in FromReflectedField()
1773 ScopedCheck sc(kFlag_Default, __FUNCTION__); in ToReflectedMethod() local
1775 if (sc.Check(soa, true, "Ecmb", args)) { in ToReflectedMethod()
1778 if (sc.Check(soa, false, "L", &result) && (result.L != nullptr)) { in ToReflectedMethod()
1779 DCHECK(sc.CheckReflectedMethod(soa, result.L)); in ToReflectedMethod()
1788 ScopedCheck sc(kFlag_Default, __FUNCTION__); in ToReflectedField() local
1790 if (sc.Check(soa, true, "Ecfb", args)) { in ToReflectedField()
1793 if (sc.Check(soa, false, "L", &result) && (result.L != nullptr)) { in ToReflectedField()
1794 DCHECK(sc.CheckReflectedField(soa, result.L)); in ToReflectedField()
1803 ScopedCheck sc(kFlag_Default, __FUNCTION__); in Throw() local
1805 if (sc.Check(soa, true, "Et", args) && sc.CheckThrowable(soa, obj)) { in Throw()
1808 if (sc.Check(soa, false, "i", &result)) { in Throw()
1817 ScopedCheck sc(kFlag_NullableUtf, __FUNCTION__); in ThrowNew() local
1819 if (sc.Check(soa, true, "Ecu", args) && sc.CheckThrowableClass(soa, c)) { in ThrowNew()
1822 if (sc.Check(soa, false, "i", &result)) { in ThrowNew()
1831 ScopedCheck sc(kFlag_ExcepOkay, __FUNCTION__); in ExceptionOccurred() local
1833 if (sc.Check(soa, true, "E", args)) { in ExceptionOccurred()
1836 if (sc.Check(soa, false, "t", &result)) { in ExceptionOccurred()
1845 ScopedCheck sc(kFlag_ExcepOkay, __FUNCTION__); in ExceptionDescribe() local
1847 if (sc.Check(soa, true, "E", args)) { in ExceptionDescribe()
1851 sc.Check(soa, false, "V", &result); in ExceptionDescribe()
1857 ScopedCheck sc(kFlag_ExcepOkay, __FUNCTION__); in ExceptionClear() local
1859 if (sc.Check(soa, true, "E", args)) { in ExceptionClear()
1863 sc.Check(soa, false, "V", &result); in ExceptionClear()
1869 ScopedCheck sc(kFlag_CritOkay | kFlag_ExcepOkay, __FUNCTION__); in ExceptionCheck() local
1871 if (sc.Check(soa, true, "E", args)) { in ExceptionCheck()
1874 if (sc.Check(soa, false, "b", &result)) { in ExceptionCheck()
1886 ScopedCheck sc(kFlag_ExcepOkay | kFlag_NullableUtf, __FUNCTION__); in FatalError() local
1888 if (sc.Check(soa, true, "Eu", args)) { in FatalError()
1893 sc.Check(soa, false, "V", &result); in FatalError()
1899 ScopedCheck sc(kFlag_ExcepOkay, __FUNCTION__); in PushLocalFrame() local
1901 if (sc.Check(soa, true, "EI", args)) { in PushLocalFrame()
1904 if (sc.Check(soa, false, "i", &result)) { in PushLocalFrame()
1913 ScopedCheck sc(kFlag_ExcepOkay, __FUNCTION__); in PopLocalFrame() local
1915 if (sc.Check(soa, true, "EL", args)) { in PopLocalFrame()
1918 sc.Check(soa, false, "L", &result); in PopLocalFrame()
1950 ScopedCheck sc(kFlag_Default, __FUNCTION__); in EnsureLocalCapacity() local
1952 if (sc.Check(soa, true, "EI", args)) { in EnsureLocalCapacity()
1955 if (sc.Check(soa, false, "i", &result)) { in EnsureLocalCapacity()
1964 ScopedCheck sc(kFlag_Default, __FUNCTION__); in IsSameObject() local
1966 if (sc.Check(soa, true, "ELL", args)) { in IsSameObject()
1969 if (sc.Check(soa, false, "b", &result)) { in IsSameObject()
1978 ScopedCheck sc(kFlag_Default, __FUNCTION__); in AllocObject() local
1980 if (sc.Check(soa, true, "Ec", args) && sc.CheckInstantiableNonArray(soa, c)) { in AllocObject()
1983 if (sc.Check(soa, false, "L", &result)) { in AllocObject()
1992 ScopedCheck sc(kFlag_Default, __FUNCTION__); in NewObjectV() local
1995 if (sc.Check(soa, true, "Ecm.", args) && sc.CheckInstantiableNonArray(soa, c) && in NewObjectV()
1996 sc.CheckConstructor(soa, mid)) { in NewObjectV()
1999 if (sc.Check(soa, false, "L", &result)) { in NewObjectV()
2016 ScopedCheck sc(kFlag_Default, __FUNCTION__); in NewObjectA() local
2019 if (sc.Check(soa, true, "Ecm.", args) && sc.CheckInstantiableNonArray(soa, c) && in NewObjectA()
2020 sc.CheckConstructor(soa, mid)) { in NewObjectA()
2023 if (sc.Check(soa, false, "L", &result)) { in NewObjectA()
2032 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetObjectClass() local
2034 if (sc.Check(soa, true, "EL", args)) { in GetObjectClass()
2037 if (sc.Check(soa, false, "c", &result)) { in GetObjectClass()
2046 ScopedCheck sc(kFlag_Default, __FUNCTION__); in IsInstanceOf() local
2048 if (sc.Check(soa, true, "ELc", args)) { in IsInstanceOf()
2051 if (sc.Check(soa, false, "b", &result)) { in IsInstanceOf()
2221 ScopedCheck sc(kFlag_Default, __FUNCTION__); in CALL() local
2223 if (sc.Check(soa, true, "Epz", args)) { in CALL()
2226 if (sc.Check(soa, false, "s", &result)) { in CALL()
2235 ScopedCheck sc(kFlag_NullableUtf, __FUNCTION__); in NewStringUTF() local
2237 if (sc.Check(soa, true, "Eu", args)) { in NewStringUTF()
2241 if (sc.Check(soa, false, "s", &result)) { in NewStringUTF()
2250 ScopedCheck sc(kFlag_CritOkay, __FUNCTION__); in GetStringLength() local
2252 if (sc.Check(soa, true, "Es", args)) { in GetStringLength()
2255 if (sc.Check(soa, false, "z", &result)) { in GetStringLength()
2264 ScopedCheck sc(kFlag_CritOkay, __FUNCTION__); in GetStringUTFLength() local
2266 if (sc.Check(soa, true, "Es", args)) { in GetStringUTFLength()
2269 if (sc.Check(soa, false, "z", &result)) { in GetStringUTFLength()
2305 ScopedCheck sc(kFlag_CritOkay, __FUNCTION__); in GetStringRegion() local
2309 if (sc.Check(soa, true, "EsIIp", args)) { in GetStringRegion()
2313 sc.Check(soa, false, "V", &result); in GetStringRegion()
2319 ScopedCheck sc(kFlag_CritOkay, __FUNCTION__); in GetStringUTFRegion() local
2323 if (sc.Check(soa, true, "EsIIp", args)) { in GetStringUTFRegion()
2327 sc.Check(soa, false, "V", &result); in GetStringUTFRegion()
2333 ScopedCheck sc(kFlag_CritOkay, __FUNCTION__); in GetArrayLength() local
2335 if (sc.Check(soa, true, "Ea", args)) { in GetArrayLength()
2338 if (sc.Check(soa, false, "z", &result)) { in GetArrayLength()
2348 ScopedCheck sc(kFlag_Default, __FUNCTION__); in NewObjectArray() local
2351 if (sc.Check(soa, true, "EzcL", args)) { in NewObjectArray()
2355 if (sc.Check(soa, false, "a", &result)) { in NewObjectArray()
2364 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetObjectArrayElement() local
2366 if (sc.Check(soa, true, "Eaz", args)) { in GetObjectArrayElement()
2369 if (sc.Check(soa, false, "L", &result)) { in GetObjectArrayElement()
2378 ScopedCheck sc(kFlag_Default, __FUNCTION__); in SetObjectArrayElement() local
2383 if (sc.Check(soa, true, "EaIL", args)) { in SetObjectArrayElement()
2387 sc.Check(soa, false, "V", &result); in SetObjectArrayElement()
2463 ScopedCheck sc(kFlag_Default, __FUNCTION__); in PRIMITIVE_ARRAY_FUNCTIONS() local
2465 if (sc.Check(soa, true, "EL", args)) { in PRIMITIVE_ARRAY_FUNCTIONS()
2471 if (sc.Check(soa, false, "i", &result)) { in PRIMITIVE_ARRAY_FUNCTIONS()
2480 ScopedCheck sc(kFlag_ExcepOkay, __FUNCTION__); in MonitorExit() local
2482 if (sc.Check(soa, true, "EL", args)) { in MonitorExit()
2488 if (sc.Check(soa, false, "i", &result)) { in MonitorExit()
2497 ScopedCheck sc(kFlag_CritGet, __FUNCTION__); in GetPrimitiveArrayCritical() local
2499 if (sc.Check(soa, true, "Eap", args)) { in GetPrimitiveArrayCritical()
2506 if (sc.Check(soa, false, "p", &result)) { in GetPrimitiveArrayCritical()
2515 ScopedCheck sc(kFlag_CritRelease | kFlag_ExcepOkay, __FUNCTION__); in ReleasePrimitiveArrayCritical() local
2516 sc.CheckNonNull(carray); in ReleasePrimitiveArrayCritical()
2518 if (sc.Check(soa, true, "Eapr", args)) { in ReleasePrimitiveArrayCritical()
2525 sc.Check(soa, false, "V", &result); in ReleasePrimitiveArrayCritical()
2531 ScopedCheck sc(kFlag_Default, __FUNCTION__); in NewDirectByteBuffer() local
2533 if (sc.Check(soa, true, "EpJ", args)) { in NewDirectByteBuffer()
2537 if (sc.Check(soa, false, "L", &result)) { in NewDirectByteBuffer()
2546 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetDirectBufferAddress() local
2548 if (sc.Check(soa, true, "EL", args)) { in GetDirectBufferAddress()
2553 if (sc.Check(soa, false, "p", &result)) { in GetDirectBufferAddress()
2562 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetDirectBufferCapacity() local
2564 if (sc.Check(soa, true, "EL", args)) { in GetDirectBufferCapacity()
2569 if (sc.Check(soa, false, "J", &result)) { in GetDirectBufferCapacity()
2587 ScopedCheck sc(kFlag_Default, function_name); in NewRef() local
2589 if (sc.Check(soa, true, "EL", args)) { in NewRef()
2604 if (sc.Check(soa, false, "L", &result)) { in NewRef()
2606 DCHECK(sc.CheckReferenceKind(kind, soa.Self(), result.L)); in NewRef()
2615 ScopedCheck sc(kFlag_ExcepOkay, function_name); in DeleteRef() local
2617 sc.Check(soa, true, "EL", args); in DeleteRef()
2618 if (sc.CheckReferenceKind(kind, soa.Self(), obj)) { in DeleteRef()
2634 sc.Check(soa, false, "V", &result); in DeleteRef()
2641 ScopedCheck sc(kFlag_Default, function_name); in GetMethodIDInternal() local
2643 if (sc.Check(soa, true, "Ecuu", args)) { in GetMethodIDInternal()
2650 if (sc.Check(soa, false, "m", &result)) { in GetMethodIDInternal()
2660 ScopedCheck sc(kFlag_Default, function_name); in GetFieldIDInternal() local
2662 if (sc.Check(soa, true, "Ecuu", args)) { in GetFieldIDInternal()
2669 if (sc.Check(soa, false, "f", &result)) { in GetFieldIDInternal()
2679 ScopedCheck sc(kFlag_Default, function_name); in GetField() local
2682 if (sc.Check(soa, true, is_static ? "Ecf" : "ELf", args) && in GetField()
2683 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in GetField()
2762 if (sc.Check(soa, false, result_check, &result)) { in GetField()
2773 ScopedCheck sc(kFlag_Default, function_name); in SetField() local
2777 if (sc.Check(soa, true, sig, args) && in SetField()
2778 sc.CheckFieldAccess(soa, obj, fid, is_static, type)) { in SetField()
2849 sc.Check(soa, false, "V", &result); in SetField()
2853 static bool CheckCallArgs(ScopedObjectAccess& soa, ScopedCheck& sc, JNIEnv* env, jobject obj, in CheckCallArgs() argument
2861 checked = sc.Check(soa, true, "ELm.", args); in CheckCallArgs()
2866 checked = sc.Check(soa, true, "ELcm.", args); in CheckCallArgs()
2872 checked = sc.Check(soa, true, "Ecm.", args); in CheckCallArgs()
2887 ScopedCheck sc(kFlag_Default, function_name); in CallMethodA() local
2890 if (CheckCallArgs(soa, sc, env, obj, c, mid, invoke, &rest) && in CallMethodA()
2891 sc.CheckMethodAndSig(soa, obj, c, mid, type, invoke)) { in CallMethodA()
3059 if (sc.Check(soa, false, result_check, &result)) { in CallMethodA()
3071 ScopedCheck sc(kFlag_Default, function_name); in CallMethodV() local
3074 if (CheckCallArgs(soa, sc, env, obj, c, mid, invoke, &rest) && in CallMethodV()
3075 sc.CheckMethodAndSig(soa, obj, c, mid, type, invoke)) { in CallMethodV()
3243 if (sc.Check(soa, false, result_check, &result)) { in CallMethodV()
3255 ScopedCheck sc(flags, function_name); in GetStringCharsInternal() local
3257 if (sc.Check(soa, true, "Esp", args)) { in GetStringCharsInternal()
3284 if (sc.Check(soa, false, utf ? "u" : "p", &result)) { in GetStringCharsInternal()
3298 ScopedCheck sc(flags, function_name); in ReleaseStringCharsInternal() local
3299 sc.CheckNonNull(chars); in ReleaseStringCharsInternal()
3306 if (sc.Check(soa, true, utf ? "Esu" : "Esp", args)) { in ReleaseStringCharsInternal()
3318 sc.Check(soa, false, "V", &result); in ReleaseStringCharsInternal()
3326 ScopedCheck sc(kFlag_Default, function_name); in NewPrimitiveArray() local
3328 if (sc.Check(soa, true, "Ez", args)) { in NewPrimitiveArray()
3358 if (sc.Check(soa, false, "a", &result)) { in NewPrimitiveArray()
3368 ScopedCheck sc(kFlag_Default, function_name); in GetPrimitiveArrayElements() local
3370 if (sc.Check(soa, true, "Eap", args) && sc.CheckPrimitiveArrayType(soa, array, type)) { in GetPrimitiveArrayElements()
3409 if (sc.Check(soa, false, "p", &result)) { in GetPrimitiveArrayElements()
3419 ScopedCheck sc(kFlag_ExcepOkay, function_name); in ReleasePrimitiveArrayElements() local
3420 if (sc.CheckNonNull(elems) && sc.CheckPrimitiveArrayType(soa, array, type)) { in ReleasePrimitiveArrayElements()
3426 if (sc.Check(soa, true, "Eapr", args)) { in ReleasePrimitiveArrayElements()
3465 sc.Check(soa, false, "V", &result); in ReleasePrimitiveArrayElements()
3474 ScopedCheck sc(kFlag_Default, function_name); in GetPrimitiveArrayRegion() local
3478 if (sc.Check(soa, true, "EaIIp", args) && sc.CheckPrimitiveArrayType(soa, array, type)) { in GetPrimitiveArrayRegion()
3517 sc.Check(soa, false, "V", &result); in GetPrimitiveArrayRegion()
3524 ScopedCheck sc(kFlag_Default, function_name); in SetPrimitiveArrayRegion() local
3528 if (sc.Check(soa, true, "EaIIp", args) && sc.CheckPrimitiveArrayType(soa, array, type)) { in SetPrimitiveArrayRegion()
3567 sc.Check(soa, false, "V", &result); in SetPrimitiveArrayRegion()
3815 ScopedCheck sc(kFlag_Invocation, __FUNCTION__, false); in DestroyJavaVM() local
3817 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), true, "v", args); in DestroyJavaVM()
3822 sc.CheckNonHeap(nullptr, false, "i", &result); in DestroyJavaVM()
3827 ScopedCheck sc(kFlag_Invocation, __FUNCTION__); in AttachCurrentThread() local
3829 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), true, "vpp", args); in AttachCurrentThread()
3832 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), false, "i", &result); in AttachCurrentThread()
3837 ScopedCheck sc(kFlag_Invocation, __FUNCTION__); in AttachCurrentThreadAsDaemon() local
3839 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), true, "vpp", args); in AttachCurrentThreadAsDaemon()
3842 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), false, "i", &result); in AttachCurrentThreadAsDaemon()
3847 ScopedCheck sc(kFlag_Invocation, __FUNCTION__); in DetachCurrentThread() local
3849 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), true, "v", args); in DetachCurrentThread()
3852 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), false, "i", &result); in DetachCurrentThread()
3857 ScopedCheck sc(kFlag_Invocation, __FUNCTION__); in GetEnv() local
3859 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), true, "vpI", args); in GetEnv()
3862 sc.CheckNonHeap(reinterpret_cast<JavaVMExt*>(vm), false, "i", &result); in GetEnv()