コード例 #1
0
 private CompatibilityInfo(android.os.Parcel source)
 {
     mCompatibilityFlags      = source.readInt();
     applicationDensity       = source.readInt();
     applicationScale         = source.readFloat();
     applicationInvertedScale = source.readFloat();
 }
コード例 #2
0
ファイル: RectF.cs プロジェクト: zhouweiaccp/XobotOS
 /// <summary>
 /// Set the rectangle's coordinates from the data stored in the specified
 /// parcel.
 /// </summary>
 /// <remarks>
 /// Set the rectangle's coordinates from the data stored in the specified
 /// parcel. To write a rectangle to a parcel, call writeToParcel().
 /// </remarks>
 /// <param name="in">The parcel to read the rectangle's coordinates from</param>
 public virtual void readFromParcel(android.os.Parcel @in)
 {
     left   = @in.readFloat();
     top    = @in.readFloat();
     right  = @in.readFloat();
     bottom = @in.readFloat();
 }
コード例 #3
0
ファイル: DragEvent.cs プロジェクト: zhouweiaccp/XobotOS
 public android.view.DragEvent createFromParcel(android.os.Parcel @in)
 {
     android.view.DragEvent @event = android.view.DragEvent.obtain();
     @event.mAction     = @in.readInt();
     @event.mX          = @in.readFloat();
     @event.mY          = @in.readFloat();
     @event.mDragResult = (@in.readInt() != 0);
     if (@in.readInt() != 0)
     {
         @event.mClipData = android.content.ClipData.CREATOR.createFromParcel(@in);
     }
     if (@in.readInt() != 0)
     {
         @event.mClipDescription = android.content.ClipDescription.CREATOR.createFromParcel
                                       (@in);
     }
     return(@event);
 }
コード例 #4
0
 /// <summary>
 /// Set the point's coordinates from the data stored in the specified
 /// parcel.
 /// </summary>
 /// <remarks>
 /// Set the point's coordinates from the data stored in the specified
 /// parcel. To write a point to a parcel, call writeToParcel().
 /// </remarks>
 /// <param name="in">The parcel to read the point's coordinates from</param>
 public virtual void readFromParcel(android.os.Parcel @in)
 {
     x = @in.readFloat();
     y = @in.readFloat();
 }