Android Open Source - lucene Matrix Bundler






From Project

Back to project page lucene.

License

The source code is released under:

GNU General Public License

If you think the Android project lucene listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.gmail.altakey.lucene;
//from ww w  . jav  a  2s .co m
import android.graphics.Matrix;
import android.os.Parcel;
import android.os.Parcelable;

public class MatrixBundler implements Parcelable {
    private Matrix mMatrix;

    public MatrixBundler(final Matrix m) {
        mMatrix = m;
    }

    private MatrixBundler(final Parcel in) {
        final float[] values = new float[9];
        in.readFloatArray(values);

        mMatrix = new Matrix();
        mMatrix.setValues(values);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel out, int flags) {
        final float[] values = new float[9];
        mMatrix.getValues(values);
        out.writeFloatArray(values);
    }

    public static final Parcelable.Creator<MatrixBundler> CREATOR = new Parcelable.Creator<MatrixBundler>() {
        public MatrixBundler createFromParcel(Parcel in) {
            return new MatrixBundler(in);
        }
        
        public MatrixBundler[] newArray(int size) {
            return new MatrixBundler[size];
        }
    };

    public Matrix getMatrix() {
        return mMatrix;
    }

    public void setMatrix(final Matrix matrix) {
        mMatrix = matrix;
    }
}




Java Source Code List

com.gmail.altakey.lucene.ActivityRestartRequired.java
com.gmail.altakey.lucene.AdLoader.java
com.gmail.altakey.lucene.AsyncImageLoader.java
com.gmail.altakey.lucene.BrightnessLock.java
com.gmail.altakey.lucene.ConfigActivity.java
com.gmail.altakey.lucene.FullscreenController.java
com.gmail.altakey.lucene.HWAcceleration.java
com.gmail.altakey.lucene.HWImageView.java
com.gmail.altakey.lucene.ImageUnloader.java
com.gmail.altakey.lucene.MainActivity.java
com.gmail.altakey.lucene.MatrixBundler.java
com.gmail.altakey.lucene.ProgressReportingInputStream.java
com.gmail.altakey.lucene.ViewActivity.java
com.gmail.altakey.lucene.motion.HorizontalFlipController.java
com.gmail.altakey.lucene.motion.PanController.java
com.gmail.altakey.lucene.motion.RotateController.java
com.gmail.altakey.lucene.motion.VerticalFlipController.java
com.gmail.altakey.lucene.motion.ZoomController.java
x.y.z.test-unit-TestRunner.template.java