Source code

Copy as Markdown

Other Tools

// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Javamethods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef SurfaceTexture_h__
#define SurfaceTexture_h__
#include "mozilla/jni/Refs.h"
namespace mozilla {
namespace java {
namespace sdk {
class SurfaceTexture : public mozilla::jni::ObjectBase<SurfaceTexture>
{
public:
static constexpr char name[] =
"android/graphics/SurfaceTexture";
explicit SurfaceTexture(const Context& ctx) : ObjectBase<SurfaceTexture>(ctx) {}
struct New_t {
typedef SurfaceTexture Owner;
typedef SurfaceTexture::LocalRef ReturnType;
typedef SurfaceTexture::Param SetterType;
typedef mozilla::jni::Args<
bool> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Z)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// SurfaceTexture(boolean)
static auto New(bool, SurfaceTexture::LocalRef*) -> nsresult;
struct New2_t {
typedef SurfaceTexture Owner;
typedef SurfaceTexture::LocalRef ReturnType;
typedef SurfaceTexture::Param SetterType;
typedef mozilla::jni::Args<
int32_t,
bool> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(IZ)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// SurfaceTexture(int, boolean)
static auto New(int32_t, bool, SurfaceTexture::LocalRef*) -> nsresult;
struct New3_t {
typedef SurfaceTexture Owner;
typedef SurfaceTexture::LocalRef ReturnType;
typedef SurfaceTexture::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(I)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// SurfaceTexture(int)
static auto New(int32_t, SurfaceTexture::LocalRef*) -> nsresult;
struct AttachToGLContext_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "attachToGLContext";
static constexpr char signature[] =
"(I)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void attachToGLContext(int)
auto AttachToGLContext(int32_t) const -> nsresult;
struct DetachFromGLContext_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "detachFromGLContext";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void detachFromGLContext()
auto DetachFromGLContext() const -> nsresult;
struct GetTimestamp_t {
typedef SurfaceTexture Owner;
typedef int64_t ReturnType;
typedef int64_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getTimestamp";
static constexpr char signature[] =
"()J";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// long getTimestamp()
auto GetTimestamp(int64_t*) const -> nsresult;
struct GetTransformMatrix_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::FloatArray::Param> Args;
static constexpr char name[] = "getTransformMatrix";
static constexpr char signature[] =
"([F)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void getTransformMatrix(float[])
auto GetTransformMatrix(mozilla::jni::FloatArray::Param) const -> nsresult;
struct IsReleased_t {
typedef SurfaceTexture Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "isReleased";
static constexpr char signature[] =
"()Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// boolean isReleased()
auto IsReleased(bool*) const -> nsresult;
struct Release_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "release";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void release()
auto Release() const -> nsresult;
struct ReleaseTexImage_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "releaseTexImage";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void releaseTexImage()
auto ReleaseTexImage() const -> nsresult;
struct SetDefaultBufferSize_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
int32_t> Args;
static constexpr char name[] = "setDefaultBufferSize";
static constexpr char signature[] =
"(II)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setDefaultBufferSize(int, int)
auto SetDefaultBufferSize(int32_t, int32_t) const -> nsresult;
struct SetOnFrameAvailableListener_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setOnFrameAvailableListener";
static constexpr char signature[] =
"(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;Landroid/os/Handler;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setOnFrameAvailableListener(OnFrameAvailableListener, Handler)
auto SetOnFrameAvailableListener(mozilla::jni::Object::Param, mozilla::jni::Object::Param) const -> nsresult;
struct SetOnFrameAvailableListener2_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "setOnFrameAvailableListener";
static constexpr char signature[] =
"(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void setOnFrameAvailableListener(OnFrameAvailableListener)
auto SetOnFrameAvailableListener(mozilla::jni::Object::Param) const -> nsresult;
struct UpdateTexImage_t {
typedef SurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "updateTexImage";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void updateTexImage()
auto UpdateTexImage() const -> nsresult;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class Surface : public mozilla::jni::ObjectBase<Surface>
{
public:
static constexpr char name[] =
"android/view/Surface";
explicit Surface(const Context& ctx) : ObjectBase<Surface>(ctx) {}
struct New_t {
typedef Surface Owner;
typedef Surface::LocalRef ReturnType;
typedef Surface::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Landroid/graphics/SurfaceTexture;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Surface(SurfaceTexture)
static auto New(mozilla::jni::Object::Param, Surface::LocalRef*) -> nsresult;
struct FromSurfaceControl_t {
typedef Surface Owner;
typedef Surface::LocalRef ReturnType;
typedef Surface::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Landroid/view/SurfaceControl;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Surface(SurfaceControl)
static auto FromSurfaceControl(mozilla::jni::Object::Param) -> Surface::LocalRef;
struct DescribeContents_t {
typedef Surface Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "describeContents";
static constexpr char signature[] =
"()I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// int describeContents()
auto DescribeContents(int32_t*) const -> nsresult;
struct IsValid_t {
typedef Surface Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "isValid";
static constexpr char signature[] =
"()Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// boolean isValid()
auto IsValid(bool*) const -> nsresult;
struct LockCanvas_t {
typedef Surface Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "lockCanvas";
static constexpr char signature[] =
"(Landroid/graphics/Rect;)Landroid/graphics/Canvas;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Canvas lockCanvas(Rect)
auto LockCanvas(mozilla::jni::Object::Param, mozilla::jni::Object::LocalRef*) const -> nsresult;
struct LockHardwareCanvas_t {
typedef Surface Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "lockHardwareCanvas";
static constexpr char signature[] =
"()Landroid/graphics/Canvas;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// Canvas lockHardwareCanvas()
auto LockHardwareCanvas(mozilla::jni::Object::LocalRef*) const -> nsresult;
struct ReadFromParcel_t {
typedef Surface Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "readFromParcel";
static constexpr char signature[] =
"(Landroid/os/Parcel;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void readFromParcel(Parcel)
auto ReadFromParcel(mozilla::jni::Object::Param) const -> nsresult;
struct Release_t {
typedef Surface Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "release";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void release()
auto Release() const -> nsresult;
struct ToString_t {
typedef Surface Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "toString";
static constexpr char signature[] =
"()Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String toString()
auto ToString(mozilla::jni::String::LocalRef*) const -> nsresult;
struct UnlockCanvas_t {
typedef Surface Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "unlockCanvas";
static constexpr char signature[] =
"(Landroid/graphics/Canvas;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void unlockCanvas(Canvas)
auto UnlockCanvas(mozilla::jni::Object::Param) const -> nsresult;
struct UnlockCanvasAndPost_t {
typedef Surface Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "unlockCanvasAndPost";
static constexpr char signature[] =
"(Landroid/graphics/Canvas;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void unlockCanvasAndPost(Canvas)
auto UnlockCanvasAndPost(mozilla::jni::Object::Param) const -> nsresult;
struct WriteToParcel_t {
typedef Surface Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
int32_t> Args;
static constexpr char name[] = "writeToParcel";
static constexpr char signature[] =
"(Landroid/os/Parcel;I)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void writeToParcel(Parcel, int)
auto WriteToParcel(mozilla::jni::Object::Param, int32_t) const -> nsresult;
static const int32_t CHANGE_FRAME_RATE_ALWAYS = 1;
static const int32_t CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS = 0;
static const int32_t CONTENTS_FILE_DESCRIPTOR = 1;
static const int32_t FRAME_RATE_COMPATIBILITY_DEFAULT = 0;
static const int32_t FRAME_RATE_COMPATIBILITY_FIXED_SOURCE = 1;
static const int32_t PARCELABLE_WRITE_RETURN_VALUE = 1;
static const int32_t ROTATION_0 = 0;
static const int32_t ROTATION_180 = 2;
static const int32_t ROTATION_270 = 3;
static const int32_t ROTATION_90 = 1;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class SurfaceControl : public mozilla::jni::ObjectBase<SurfaceControl>
{
public:
static constexpr char name[] =
"android/view/SurfaceControl";
explicit SurfaceControl(const Context& ctx) : ObjectBase<SurfaceControl>(ctx) {}
struct DescribeContents_t {
typedef SurfaceControl Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "describeContents";
static constexpr char signature[] =
"()I";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// int describeContents()
auto DescribeContents(int32_t*) const -> nsresult;
struct IsValid_t {
typedef SurfaceControl Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "isValid";
static constexpr char signature[] =
"()Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// boolean isValid()
auto IsValid() const -> bool;
struct ReadFromParcel_t {
typedef SurfaceControl Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "readFromParcel";
static constexpr char signature[] =
"(Landroid/os/Parcel;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void readFromParcel(Parcel)
auto ReadFromParcel(mozilla::jni::Object::Param) const -> nsresult;
struct Release_t {
typedef SurfaceControl Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "release";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void release()
auto Release() const -> nsresult;
struct ToString_t {
typedef SurfaceControl Owner;
typedef mozilla::jni::String::LocalRef ReturnType;
typedef mozilla::jni::String::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "toString";
static constexpr char signature[] =
"()Ljava/lang/String;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// String toString()
auto ToString(mozilla::jni::String::LocalRef*) const -> nsresult;
struct WriteToParcel_t {
typedef SurfaceControl Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
int32_t> Args;
static constexpr char name[] = "writeToParcel";
static constexpr char signature[] =
"(Landroid/os/Parcel;I)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void writeToParcel(Parcel, int)
auto WriteToParcel(mozilla::jni::Object::Param, int32_t) const -> nsresult;
static const int32_t BUFFER_TRANSFORM_IDENTITY = 0;
static const int32_t BUFFER_TRANSFORM_MIRROR_HORIZONTAL = 1;
static const int32_t BUFFER_TRANSFORM_MIRROR_VERTICAL = 2;
static const int32_t BUFFER_TRANSFORM_ROTATE_180 = 3;
static const int32_t BUFFER_TRANSFORM_ROTATE_270 = 7;
static const int32_t BUFFER_TRANSFORM_ROTATE_90 = 4;
static const int32_t CONTENTS_FILE_DESCRIPTOR = 1;
static const int32_t PARCELABLE_WRITE_RETURN_VALUE = 1;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* sdk */
} /* java */
} /* mozilla */
#endif