FileDocCategorySizeDatePackage
FusedBatchOptions.javaAPI DocAndroid 5.1 API3889Thu Mar 12 22:22:30 GMT 2015android.location

FusedBatchOptions

public class FusedBatchOptions extends Object implements android.os.Parcelable
A data class representing a set of options to configure batching sessions.
hide

Fields Summary
private volatile long
mPeriodInNS
private volatile int
mSourcesToUse
private volatile int
mFlags
private volatile double
mMaxPowerAllocationInMW
public static final Parcelable.Creator
CREATOR
Constructors Summary
Methods Summary
public intdescribeContents()


    
       
        return 0;
    
public intgetFlags()

        return mFlags;
    
public doublegetMaxPowerAllocationInMW()

        return mMaxPowerAllocationInMW;
    
public longgetPeriodInNS()

        return mPeriodInNS;
    
public intgetSourcesToUse()

        return mSourcesToUse;
    
public booleanisFlagSet(int flag)

        return (mFlags & flag) != 0;
    
public booleanisSourceToUseSet(int source)

        return (mSourcesToUse & source) != 0;
    
public voidresetFlag(int flag)

        mFlags &= ~flag;
    
public voidresetSourceToUse(int source)

        mSourcesToUse &= ~source;
    
public voidsetFlag(int flag)

        mFlags |= flag;
    
public voidsetMaxPowerAllocationInMW(double value)


    /*
     * Getters and setters for properties needed to hold the options.
     */
        
        mMaxPowerAllocationInMW = value;
    
public voidsetPeriodInNS(long value)

        mPeriodInNS = value;
    
public voidsetSourceToUse(int source)

        mSourcesToUse |= source;
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeDouble(mMaxPowerAllocationInMW);
        parcel.writeLong(mPeriodInNS);
        parcel.writeInt(mSourcesToUse);
        parcel.writeInt(mFlags);