Lines Matching refs:capacity
652 static jint PushLocalFrame(JNIEnv* env, jint capacity) { in PushLocalFrame() argument
655 if (EnsureLocalCapacityInternal(soa, capacity, "PushLocalFrame") != JNI_OK) { in PushLocalFrame()
658 down_cast<JNIEnvExt*>(env)->PushFrame(capacity); in PushLocalFrame()
2494 static jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity) { in NewDirectByteBuffer() argument
2495 if (capacity < 0) { in NewDirectByteBuffer()
2497 capacity); in NewDirectByteBuffer()
2500 if (address == nullptr && capacity != 0) { in NewDirectByteBuffer()
2502 "non-zero capacity for nullptr pointer: %" PRId64, capacity); in NewDirectByteBuffer()
2507 if (capacity > INT_MAX) { in NewDirectByteBuffer()
2510 capacity); in NewDirectByteBuffer()
2514 jint capacity_arg = static_cast<jint>(capacity); in NewDirectByteBuffer()