Exemplo n.º 1
0
 static void n_WriteToParcel_Landroid_os_Parcel_I(IntPtr jnienv, IntPtr native__this, IntPtr native_dest, int native_flags)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Parcel dest = global::Java.Lang.Object.GetObject <global::Android.OS.Parcel> (native_dest, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.ParcelableWriteFlags flags = (global::Android.OS.ParcelableWriteFlags)native_flags;
     __this.WriteToParcel(dest, flags);
 }
Exemplo n.º 2
0
        static IntPtr n_AddDimension_Lcom_alibaba_mtl_appmonitor_model_Dimension_(IntPtr jnienv, IntPtr native__this, IntPtr native_dimension)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __this    = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension    dimension = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension> (native_dimension, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddDimension(dimension));

            return(__ret);
        }
Exemplo n.º 3
0
        static IntPtr n_GetDimension_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_name)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string name  = JNIEnv.GetString(native_name, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.GetDimension(name));

            return(__ret);
        }
Exemplo n.º 4
0
        static bool n_Valid_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_dimensionValues)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet      __this          = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet dimensionValues = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet> (native_dimensionValues, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.Valid(dimensionValues);

            return(__ret);
        }
        static IntPtr n_RegisterRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z(IntPtr jnienv, IntPtr native__this, IntPtr native_rows, IntPtr native_columns, bool isDetail)
        {
            global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable __this  = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet  rows    = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (native_rows, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet    columns = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet> (native_columns, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.RegisterRowAndColumn(rows, columns, isDetail));

            return(__ret);
        }
Exemplo n.º 6
0
        public static unsafe global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet Create(global::System.Collections.Generic.ICollection <string> dimensions)
        {
            if (id_create_Ljava_util_Collection_ == IntPtr.Zero)
            {
                id_create_Ljava_util_Collection_ = JNIEnv.GetStaticMethodID(class_ref, "create", "(Ljava/util/Collection;)Lcom/alibaba/mtl/appmonitor/model/DimensionSet;");
            }
            IntPtr native_dimensions = global::Android.Runtime.JavaCollection <string> .ToLocalJniHandle(dimensions);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_dimensions);
                global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_Ljava_util_Collection_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_dimensions);
            }
        }
Exemplo n.º 7
0
        public static unsafe global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet Create(string[] dimensions)
        {
            if (id_create_arrayLjava_lang_String_ == IntPtr.Zero)
            {
                id_create_arrayLjava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "create", "([Ljava/lang/String;)Lcom/alibaba/mtl/appmonitor/model/DimensionSet;");
            }
            IntPtr native_dimensions = JNIEnv.NewArray(dimensions);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_dimensions);
                global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_arrayLjava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                if (dimensions != null)
                {
                    JNIEnv.CopyArray(native_dimensions, dimensions);
                    JNIEnv.DeleteLocalRef(native_dimensions);
                }
            }
        }
Exemplo n.º 8
0
 static IntPtr n_GetDimensions(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.JavaList <global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension> .ToLocalJniHandle(__this.Dimensions));
 }
Exemplo n.º 9
0
 static void n_SetConstantValue_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_dimensionValues)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet      __this          = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet dimensionValues = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet> (native_dimensionValues, JniHandleOwnership.DoNotTransfer);
     __this.SetConstantValue(dimensionValues);
 }
Exemplo n.º 10
0
 static int n_DescribeContents(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.DescribeContents());
 }
        public virtual unsafe global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable RegisterRowAndColumn(global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet rows, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet columns, bool isDetail)
        {
            if (id_registerRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z == IntPtr.Zero)
            {
                id_registerRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z = JNIEnv.GetMethodID(class_ref, "registerRowAndColumn", "(Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Z)Lcom/alibaba/mtl/appmonitor/AppMonitorStatTable;");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(rows);
                __args [1] = new JValue(columns);
                __args [2] = new JValue(isDetail);

                global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_registerRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "registerRowAndColumn", "(Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Z)Lcom/alibaba/mtl/appmonitor/AppMonitorStatTable;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Exemplo n.º 12
0
        public unsafe Metric(string module, string monitorPoint, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet measureSet, global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet dimensionSet, bool isCommitDetail)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_module       = JNIEnv.NewString(module);
            IntPtr native_monitorPoint = JNIEnv.NewString(monitorPoint);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(native_module);
                __args [1] = new JValue(native_monitorPoint);
                __args [2] = new JValue(measureSet);
                __args [3] = new JValue(dimensionSet);
                __args [4] = new JValue(isCommitDetail);
                if (((object)this).GetType() != typeof(Metric))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Z)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Z)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Z)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_module);
                JNIEnv.DeleteLocalRef(native_monitorPoint);
            }
        }