ProfilerInfopublic class ProfilerInfo extends Object implements android.os.ParcelableSystem private API for passing profiler settings.
{@hide} |
Fields Summary |
---|
public final String | profileFile | public android.os.ParcelFileDescriptor | profileFd | public final int | samplingInterval | public final boolean | autoStopProfiler | public static final Parcelable.Creator | CREATOR |
Constructors Summary |
---|
public ProfilerInfo(String filename, android.os.ParcelFileDescriptor fd, int interval, boolean autoStop)
profileFile = filename;
profileFd = fd;
samplingInterval = interval;
autoStopProfiler = autoStop;
| private ProfilerInfo(android.os.Parcel in)
profileFile = in.readString();
profileFd = in.readInt() != 0 ? ParcelFileDescriptor.CREATOR.createFromParcel(in) : null;
samplingInterval = in.readInt();
autoStopProfiler = in.readInt() != 0;
|
Methods Summary |
---|
public int | describeContents()
if (profileFd != null) {
return profileFd.describeContents();
} else {
return 0;
}
| public void | writeToParcel(android.os.Parcel out, int flags)
out.writeString(profileFile);
if (profileFd != null) {
out.writeInt(1);
profileFd.writeToParcel(out, flags);
} else {
out.writeInt(0);
}
out.writeInt(samplingInterval);
out.writeInt(autoStopProfiler ? 1 : 0);
|
|