示例#1
0
 public virtual int compare(android.content.pm.PackageItemInfo arg0, android.content.pm.PackageItemInfo arg1)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         return(@__env.CallIntMethod(this.JvmHandle, global::android.content.pm.PackageItemInfo.DisplayNameComparator._compare1962, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1)));
     }
     else
     {
         return(@__env.CallNonVirtualIntMethod(this.JvmHandle, global::android.content.pm.PackageItemInfo.DisplayNameComparator.staticClass, global::android.content.pm.PackageItemInfo.DisplayNameComparator._compare1962, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1)));
     }
 }
示例#2
0
 public PackageItemInfo(android.content.pm.PackageItemInfo orig)
 {
     name = orig.name;
     if (name != null)
     {
         name = name.Trim();
     }
     packageName       = orig.packageName;
     labelRes          = orig.labelRes;
     nonLocalizedLabel = orig.nonLocalizedLabel;
     if (nonLocalizedLabel != null)
     {
         nonLocalizedLabel = java.lang.CharSequenceProxy.Wrap(nonLocalizedLabel.ToString()
                                                              .Trim());
     }
     icon     = orig.icon;
     logo     = orig.logo;
     metaData = orig.metaData;
 }
示例#3
0
 public PackageItemInfo(android.content.pm.PackageItemInfo arg0)  : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
 {
     global::MonoJavaBridge.JNIEnv         @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.content.pm.PackageItemInfo.staticClass, global::android.content.pm.PackageItemInfo._PackageItemInfo1972, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     Init(@__env, handle);
 }