__jni_bindgen! {
#[cfg(any(feature = "all", feature = "android-os-Debug"))]
public final class Debug extends crate::java::lang::Object {
pub fn wait_for_debugger<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "waitForDebugger\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn waiting_for_debugger<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<bool> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "waitingForDebugger\0", "()Z\0");
__jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn is_debugger_connected<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<bool> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "isDebuggerConnected\0", "()Z\0");
__jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn change_debug_port<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "changeDebugPort\0", "(I)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn start_native_tracing<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "startNativeTracing\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn stop_native_tracing<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "stopNativeTracing\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn enable_emulator_trace_output<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "enableEmulatorTraceOutput\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn start_method_tracing<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "startMethodTracing\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn start_method_tracing_string<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "startMethodTracing\0", "(Ljava/lang/String;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn start_method_tracing_string_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "startMethodTracing\0", "(Ljava/lang/String;I)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn start_method_tracing_string_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32, arg2: i32) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "startMethodTracing\0", "(Ljava/lang/String;II)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn start_method_tracing_sampling<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32, arg2: i32) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "startMethodTracingSampling\0", "(Ljava/lang/String;II)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn stop_method_tracing<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "stopMethodTracing\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn thread_cpu_time_nanos<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i64> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "threadCpuTimeNanos\0", "()J\0");
__jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn start_alloc_counting<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "startAllocCounting\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn stop_alloc_counting<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "stopAllocCounting\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalAllocCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalAllocCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalAllocSize\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalAllocSize\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_freed_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalFreedCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_freed_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalFreedCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_freed_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalFreedSize\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_freed_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalFreedSize\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_gc_invocation_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalGcInvocationCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_gc_invocation_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalGcInvocationCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_class_init_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalClassInitCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_class_init_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalClassInitCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_class_init_time<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalClassInitTime\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_class_init_time<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalClassInitTime\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_external_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalExternalAllocCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_external_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalExternalAllocSize\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_external_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalExternalAllocCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_external_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalExternalAllocSize\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_external_freed_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalExternalFreedCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_external_freed_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalExternalFreedCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_global_external_freed_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getGlobalExternalFreedSize\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_global_external_freed_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetGlobalExternalFreedSize\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_thread_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getThreadAllocCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_thread_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetThreadAllocCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_thread_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getThreadAllocSize\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_thread_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetThreadAllocSize\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_thread_external_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getThreadExternalAllocCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_thread_external_alloc_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetThreadExternalAllocCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_thread_external_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getThreadExternalAllocSize\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_thread_external_alloc_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetThreadExternalAllocSize\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn get_thread_gc_invocation_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getThreadGcInvocationCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_thread_gc_invocation_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetThreadGcInvocationCount\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn reset_all_counts<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "resetAllCounts\0", "()V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn get_runtime_stat<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getRuntimeStat\0", "(Ljava/lang/String;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-util-Map")))]
pub fn get_runtime_stats<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Map>>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getRuntimeStats\0", "()Ljava/util/Map;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_native_heap_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i64> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getNativeHeapSize\0", "()J\0");
__jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_native_heap_allocated_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i64> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getNativeHeapAllocatedSize\0", "()J\0");
__jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_native_heap_free_size<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i64> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getNativeHeapFreeSize\0", "()J\0");
__jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-os-Debug_MemoryInfo")))]
pub fn get_memory_info<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Debug_MemoryInfo>>) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getMemoryInfo\0", "(Landroid/os/Debug$MemoryInfo;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_pss<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i64> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getPss\0", "()J\0");
__jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn set_allocation_limit<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "setAllocationLimit\0", "(I)I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[deprecated] pub fn set_global_allocation_limit<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "setGlobalAllocationLimit\0", "(I)I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn print_loaded_classes<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "printLoadedClasses\0", "(I)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_loaded_class_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getLoadedClassCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn dump_hprof_data<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "dumpHprofData\0", "(Ljava/lang/String;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_binder_sent_transactions<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getBinderSentTransactions\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_binder_received_transactions<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getBinderReceivedTransactions\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_binder_local_object_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getBinderLocalObjectCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_binder_proxy_object_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getBinderProxyObjectCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_binder_death_object_count<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<i32> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "getBinderDeathObjectCount\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-ClassLoader", feature = "java-lang-String")))]
pub fn attach_jvmti_agent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::ClassLoader>>) -> __jni_bindgen::Result<()> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Debug\0", "attachJvmtiAgent\0", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub const SHOW_CLASSLOADER : i32 = 2;
pub const SHOW_FULL_DETAIL : i32 = 1;
pub const SHOW_INITIALIZED : i32 = 4;
#[deprecated] pub const TRACE_COUNT_ALLOCS : i32 = 1;
}
}