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 AndroidGraphics_h__
#define AndroidGraphics_h__
#include "mozilla/jni/Refs.h"
namespace mozilla {
namespace java {
namespace sdk {
class Bitmap : public mozilla::jni::ObjectBase<Bitmap>
{
public:
static constexpr char name[] =
"android/graphics/Bitmap";
explicit Bitmap(const Context& ctx) : ObjectBase<Bitmap>(ctx) {}
class Config;
struct CopyPixelsFromBuffer_t {
typedef Bitmap Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "copyPixelsFromBuffer";
static constexpr char signature[] =
"(Ljava/nio/Buffer;)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;
};
// void copyPixelsFromBuffer(Buffer)
auto CopyPixelsFromBuffer(mozilla::jni::Object::Param) const -> void;
struct CreateBitmap_t {
typedef Bitmap Owner;
typedef Bitmap::LocalRef ReturnType;
typedef Bitmap::Param SetterType;
typedef mozilla::jni::Args<
int32_t,
int32_t,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "createBitmap";
static constexpr char signature[] =
"(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;";
static const bool isStatic = true;
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;
};
// static Bitmap createBitmap(int, int, Config)
static auto CreateBitmap(int32_t, int32_t, mozilla::jni::Object::Param) -> Bitmap::LocalRef;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class Bitmap::Config : public mozilla::jni::ObjectBase<Config>
{
public:
static constexpr char name[] =
"android/graphics/Bitmap$Config";
explicit Config(const Context& ctx) : ObjectBase<Config>(ctx) {}
struct ValueOf_t {
typedef Config Owner;
typedef Config::LocalRef ReturnType;
typedef Config::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "valueOf";
static constexpr char signature[] =
"(Ljava/lang/String;)Landroid/graphics/Bitmap$Config;";
static const bool isStatic = true;
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;
};
// static Bitmap.Config valueOf(String)
static auto ValueOf(mozilla::jni::String::Param) -> Config::LocalRef;
struct ALPHA_8_t {
typedef Config Owner;
typedef Config::LocalRef ReturnType;
typedef Config::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "ALPHA_8";
static constexpr char signature[] =
"Landroid/graphics/Bitmap$Config;";
static const bool isStatic = true;
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;
};
static auto ALPHA_8() -> Config::LocalRef;
struct ARGB_8888_t {
typedef Config Owner;
typedef Config::LocalRef ReturnType;
typedef Config::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "ARGB_8888";
static constexpr char signature[] =
"Landroid/graphics/Bitmap$Config;";
static const bool isStatic = true;
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;
};
static auto ARGB_8888() -> Config::LocalRef;
struct RGBA_F16_t {
typedef Config Owner;
typedef Config::LocalRef ReturnType;
typedef Config::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "RGBA_F16";
static constexpr char signature[] =
"Landroid/graphics/Bitmap$Config;";
static const bool isStatic = true;
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;
};
static auto RGBA_F16() -> Config::LocalRef;
struct RGB_565_t {
typedef Config Owner;
typedef Config::LocalRef ReturnType;
typedef Config::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "RGB_565";
static constexpr char signature[] =
"Landroid/graphics/Bitmap$Config;";
static const bool isStatic = true;
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;
};
static auto RGB_565() -> Config::LocalRef;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* sdk */
} /* java */
} /* mozilla */
#endif