Merge "Parcelable classes should always be final." into nyc-dev
This commit is contained in:
@@ -4126,7 +4126,7 @@ package android.app {
|
|||||||
field public java.lang.String serviceDetails;
|
field public java.lang.String serviceDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AutomaticZenRule implements android.os.Parcelable {
|
public final class AutomaticZenRule implements android.os.Parcelable {
|
||||||
ctor public AutomaticZenRule(java.lang.String, android.content.ComponentName, android.net.Uri, int, boolean);
|
ctor public AutomaticZenRule(java.lang.String, android.content.ComponentName, android.net.Uri, int, boolean);
|
||||||
ctor public AutomaticZenRule(android.os.Parcel);
|
ctor public AutomaticZenRule(android.os.Parcel);
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
@@ -6591,7 +6591,7 @@ package android.auditing {
|
|||||||
field public static final int TAG_SYNC_SEND_FILE = 210004; // 0x33454
|
field public static final int TAG_SYNC_SEND_FILE = 210004; // 0x33454
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class SecurityLog.SecurityEvent implements android.os.Parcelable {
|
public static final class SecurityLog.SecurityEvent implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public java.lang.Object getData();
|
method public java.lang.Object getData();
|
||||||
method public int getTag();
|
method public int getTag();
|
||||||
@@ -7335,7 +7335,7 @@ package android.bluetooth {
|
|||||||
field public static final int TYPE_SCO = 2; // 0x2
|
field public static final int TYPE_SCO = 2; // 0x2
|
||||||
}
|
}
|
||||||
|
|
||||||
public class OobData implements android.os.Parcelable {
|
public final class OobData implements android.os.Parcelable {
|
||||||
ctor public OobData();
|
ctor public OobData();
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public byte[] getSecurityManagerTk();
|
method public byte[] getSecurityManagerTk();
|
||||||
@@ -19708,7 +19708,7 @@ package android.media {
|
|||||||
field public static final int TYPE_WIRED_HEADSET = 3; // 0x3
|
field public static final int TYPE_WIRED_HEADSET = 3; // 0x3
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AudioFormat implements android.os.Parcelable {
|
public final class AudioFormat implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public int getChannelCount();
|
method public int getChannelCount();
|
||||||
method public int getChannelIndexMask();
|
method public int getChannelIndexMask();
|
||||||
@@ -20008,7 +20008,7 @@ package android.media {
|
|||||||
method public abstract void onRoutingChanged(android.media.AudioRecord);
|
method public abstract void onRoutingChanged(android.media.AudioRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AudioRecordConfiguration implements android.os.Parcelable {
|
public final class AudioRecordConfiguration implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public android.media.AudioDeviceInfo getAudioDevice();
|
method public android.media.AudioDeviceInfo getAudioDevice();
|
||||||
method public int getClientAudioSessionId();
|
method public int getClientAudioSessionId();
|
||||||
@@ -23523,17 +23523,6 @@ package android.net {
|
|||||||
method public abstract void onNetworkActive();
|
method public abstract void onNetworkActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ConnectivityMetricsEvent implements android.os.Parcelable {
|
|
||||||
ctor public ConnectivityMetricsEvent(long, int, int, android.os.Parcelable);
|
|
||||||
method public int describeContents();
|
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
|
||||||
field public static final android.os.Parcelable.Creator<android.net.ConnectivityMetricsEvent> CREATOR;
|
|
||||||
field public final int componentTag;
|
|
||||||
field public final android.os.Parcelable data;
|
|
||||||
field public final int eventTag;
|
|
||||||
field public final long timestamp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Credentials {
|
public class Credentials {
|
||||||
ctor public Credentials(int, int, int);
|
ctor public Credentials(int, int, int);
|
||||||
method public int getGid();
|
method public int getGid();
|
||||||
@@ -23541,7 +23530,7 @@ package android.net {
|
|||||||
method public int getUid();
|
method public int getUid();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DataUsageRequest implements android.os.Parcelable {
|
public final class DataUsageRequest implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
method public void writeToParcel(android.os.Parcel, int);
|
||||||
field public static final android.os.Parcelable.Creator<android.net.DataUsageRequest> CREATOR;
|
field public static final android.os.Parcelable.Creator<android.net.DataUsageRequest> CREATOR;
|
||||||
@@ -29429,7 +29418,7 @@ package android.os.storage {
|
|||||||
method public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
method public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class StorageVolume implements android.os.Parcelable {
|
public final class StorageVolume implements android.os.Parcelable {
|
||||||
method public android.content.Intent createAccessIntent(java.lang.String);
|
method public android.content.Intent createAccessIntent(java.lang.String);
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public java.lang.String getDescription(android.content.Context);
|
method public java.lang.String getDescription(android.content.Context);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ package android.database {
|
|||||||
|
|
||||||
package android.media {
|
package android.media {
|
||||||
|
|
||||||
public class AudioFormat implements android.os.Parcelable {
|
public final class AudioFormat implements android.os.Parcelable {
|
||||||
ctor public AudioFormat();
|
ctor public AudioFormat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4252,7 +4252,7 @@ package android.app {
|
|||||||
field public java.lang.String serviceDetails;
|
field public java.lang.String serviceDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AutomaticZenRule implements android.os.Parcelable {
|
public final class AutomaticZenRule implements android.os.Parcelable {
|
||||||
ctor public AutomaticZenRule(java.lang.String, android.content.ComponentName, android.net.Uri, int, boolean);
|
ctor public AutomaticZenRule(java.lang.String, android.content.ComponentName, android.net.Uri, int, boolean);
|
||||||
ctor public AutomaticZenRule(android.os.Parcel);
|
ctor public AutomaticZenRule(android.os.Parcel);
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
@@ -6858,7 +6858,7 @@ package android.auditing {
|
|||||||
field public static final int TAG_SYNC_SEND_FILE = 210004; // 0x33454
|
field public static final int TAG_SYNC_SEND_FILE = 210004; // 0x33454
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class SecurityLog.SecurityEvent implements android.os.Parcelable {
|
public static final class SecurityLog.SecurityEvent implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public java.lang.Object getData();
|
method public java.lang.Object getData();
|
||||||
method public int getTag();
|
method public int getTag();
|
||||||
@@ -7610,7 +7610,7 @@ package android.bluetooth {
|
|||||||
field public static final int TYPE_SCO = 2; // 0x2
|
field public static final int TYPE_SCO = 2; // 0x2
|
||||||
}
|
}
|
||||||
|
|
||||||
public class OobData implements android.os.Parcelable {
|
public final class OobData implements android.os.Parcelable {
|
||||||
ctor public OobData();
|
ctor public OobData();
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public byte[] getSecurityManagerTk();
|
method public byte[] getSecurityManagerTk();
|
||||||
@@ -21204,7 +21204,7 @@ package android.media {
|
|||||||
field public static final android.os.Parcelable.Creator<android.media.AudioFocusInfo> CREATOR;
|
field public static final android.os.Parcelable.Creator<android.media.AudioFocusInfo> CREATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AudioFormat implements android.os.Parcelable {
|
public final class AudioFormat implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public int getChannelCount();
|
method public int getChannelCount();
|
||||||
method public int getChannelIndexMask();
|
method public int getChannelIndexMask();
|
||||||
@@ -21516,7 +21516,7 @@ package android.media {
|
|||||||
method public abstract void onRoutingChanged(android.media.AudioRecord);
|
method public abstract void onRoutingChanged(android.media.AudioRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AudioRecordConfiguration implements android.os.Parcelable {
|
public final class AudioRecordConfiguration implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public android.media.AudioDeviceInfo getAudioDevice();
|
method public android.media.AudioDeviceInfo getAudioDevice();
|
||||||
method public int getClientAudioSessionId();
|
method public int getClientAudioSessionId();
|
||||||
@@ -25344,17 +25344,6 @@ package android.net {
|
|||||||
method public void onTetheringStarted();
|
method public void onTetheringStarted();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ConnectivityMetricsEvent implements android.os.Parcelable {
|
|
||||||
ctor public ConnectivityMetricsEvent(long, int, int, android.os.Parcelable);
|
|
||||||
method public int describeContents();
|
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
|
||||||
field public static final android.os.Parcelable.Creator<android.net.ConnectivityMetricsEvent> CREATOR;
|
|
||||||
field public final int componentTag;
|
|
||||||
field public final android.os.Parcelable data;
|
|
||||||
field public final int eventTag;
|
|
||||||
field public final long timestamp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Credentials {
|
public class Credentials {
|
||||||
ctor public Credentials(int, int, int);
|
ctor public Credentials(int, int, int);
|
||||||
method public int getGid();
|
method public int getGid();
|
||||||
@@ -25362,7 +25351,7 @@ package android.net {
|
|||||||
method public int getUid();
|
method public int getUid();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DataUsageRequest implements android.os.Parcelable {
|
public final class DataUsageRequest implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
method public void writeToParcel(android.os.Parcel, int);
|
||||||
field public static final android.os.Parcelable.Creator<android.net.DataUsageRequest> CREATOR;
|
field public static final android.os.Parcelable.Creator<android.net.DataUsageRequest> CREATOR;
|
||||||
@@ -31800,7 +31789,7 @@ package android.os.storage {
|
|||||||
method public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
method public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class StorageVolume implements android.os.Parcelable {
|
public final class StorageVolume implements android.os.Parcelable {
|
||||||
method public android.content.Intent createAccessIntent(java.lang.String);
|
method public android.content.Intent createAccessIntent(java.lang.String);
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public java.lang.String getDescription(android.content.Context);
|
method public java.lang.String getDescription(android.content.Context);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ package android.database {
|
|||||||
|
|
||||||
package android.media {
|
package android.media {
|
||||||
|
|
||||||
public class AudioFormat implements android.os.Parcelable {
|
public final class AudioFormat implements android.os.Parcelable {
|
||||||
ctor public AudioFormat();
|
ctor public AudioFormat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4126,7 +4126,7 @@ package android.app {
|
|||||||
field public java.lang.String serviceDetails;
|
field public java.lang.String serviceDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AutomaticZenRule implements android.os.Parcelable {
|
public final class AutomaticZenRule implements android.os.Parcelable {
|
||||||
ctor public AutomaticZenRule(java.lang.String, android.content.ComponentName, android.net.Uri, int, boolean);
|
ctor public AutomaticZenRule(java.lang.String, android.content.ComponentName, android.net.Uri, int, boolean);
|
||||||
ctor public AutomaticZenRule(android.os.Parcel);
|
ctor public AutomaticZenRule(android.os.Parcel);
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
@@ -6593,7 +6593,7 @@ package android.auditing {
|
|||||||
field public static final int TAG_SYNC_SEND_FILE = 210004; // 0x33454
|
field public static final int TAG_SYNC_SEND_FILE = 210004; // 0x33454
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class SecurityLog.SecurityEvent implements android.os.Parcelable {
|
public static final class SecurityLog.SecurityEvent implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public java.lang.Object getData();
|
method public java.lang.Object getData();
|
||||||
method public int getTag();
|
method public int getTag();
|
||||||
@@ -7337,7 +7337,7 @@ package android.bluetooth {
|
|||||||
field public static final int TYPE_SCO = 2; // 0x2
|
field public static final int TYPE_SCO = 2; // 0x2
|
||||||
}
|
}
|
||||||
|
|
||||||
public class OobData implements android.os.Parcelable {
|
public final class OobData implements android.os.Parcelable {
|
||||||
ctor public OobData();
|
ctor public OobData();
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public byte[] getSecurityManagerTk();
|
method public byte[] getSecurityManagerTk();
|
||||||
@@ -19717,7 +19717,7 @@ package android.media {
|
|||||||
field public static final int TYPE_WIRED_HEADSET = 3; // 0x3
|
field public static final int TYPE_WIRED_HEADSET = 3; // 0x3
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AudioFormat implements android.os.Parcelable {
|
public final class AudioFormat implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public int getChannelCount();
|
method public int getChannelCount();
|
||||||
method public int getChannelIndexMask();
|
method public int getChannelIndexMask();
|
||||||
@@ -20017,7 +20017,7 @@ package android.media {
|
|||||||
method public abstract void onRoutingChanged(android.media.AudioRecord);
|
method public abstract void onRoutingChanged(android.media.AudioRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AudioRecordConfiguration implements android.os.Parcelable {
|
public final class AudioRecordConfiguration implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public android.media.AudioDeviceInfo getAudioDevice();
|
method public android.media.AudioDeviceInfo getAudioDevice();
|
||||||
method public int getClientAudioSessionId();
|
method public int getClientAudioSessionId();
|
||||||
@@ -23532,17 +23532,6 @@ package android.net {
|
|||||||
method public abstract void onNetworkActive();
|
method public abstract void onNetworkActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ConnectivityMetricsEvent implements android.os.Parcelable {
|
|
||||||
ctor public ConnectivityMetricsEvent(long, int, int, android.os.Parcelable);
|
|
||||||
method public int describeContents();
|
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
|
||||||
field public static final android.os.Parcelable.Creator<android.net.ConnectivityMetricsEvent> CREATOR;
|
|
||||||
field public final int componentTag;
|
|
||||||
field public final android.os.Parcelable data;
|
|
||||||
field public final int eventTag;
|
|
||||||
field public final long timestamp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Credentials {
|
public class Credentials {
|
||||||
ctor public Credentials(int, int, int);
|
ctor public Credentials(int, int, int);
|
||||||
method public int getGid();
|
method public int getGid();
|
||||||
@@ -23550,7 +23539,7 @@ package android.net {
|
|||||||
method public int getUid();
|
method public int getUid();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DataUsageRequest implements android.os.Parcelable {
|
public final class DataUsageRequest implements android.os.Parcelable {
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
method public void writeToParcel(android.os.Parcel, int);
|
||||||
field public static final android.os.Parcelable.Creator<android.net.DataUsageRequest> CREATOR;
|
field public static final android.os.Parcelable.Creator<android.net.DataUsageRequest> CREATOR;
|
||||||
@@ -29439,7 +29428,7 @@ package android.os.storage {
|
|||||||
method public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
method public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class StorageVolume implements android.os.Parcelable {
|
public final class StorageVolume implements android.os.Parcelable {
|
||||||
method public android.content.Intent createAccessIntent(java.lang.String);
|
method public android.content.Intent createAccessIntent(java.lang.String);
|
||||||
method public int describeContents();
|
method public int describeContents();
|
||||||
method public java.lang.String getDescription(android.content.Context);
|
method public java.lang.String getDescription(android.content.Context);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ package android.database {
|
|||||||
|
|
||||||
package android.media {
|
package android.media {
|
||||||
|
|
||||||
public class AudioFormat implements android.os.Parcelable {
|
public final class AudioFormat implements android.os.Parcelable {
|
||||||
ctor public AudioFormat();
|
ctor public AudioFormat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import java.util.Objects;
|
|||||||
/**
|
/**
|
||||||
* Rule instance information for zen mode.
|
* Rule instance information for zen mode.
|
||||||
*/
|
*/
|
||||||
public class AutomaticZenRule implements Parcelable {
|
public final class AutomaticZenRule implements Parcelable {
|
||||||
|
|
||||||
private boolean enabled = false;
|
private boolean enabled = false;
|
||||||
private String name;
|
private String name;
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ public class SecurityLog {
|
|||||||
/**
|
/**
|
||||||
* A class representing a security event log entry.
|
* A class representing a security event log entry.
|
||||||
*/
|
*/
|
||||||
public static class SecurityEvent implements Parcelable {
|
public static final class SecurityEvent implements Parcelable {
|
||||||
private Event mEvent;
|
private Event mEvent;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import android.util.Log;
|
|||||||
/**
|
/**
|
||||||
* Out Of Band Data for Bluetooth device.
|
* Out Of Band Data for Bluetooth device.
|
||||||
*/
|
*/
|
||||||
public class OobData implements Parcelable {
|
public final class OobData implements Parcelable {
|
||||||
private byte[] securityManagerTk;
|
private byte[] securityManagerTk;
|
||||||
|
|
||||||
public byte[] getSecurityManagerTk() {
|
public byte[] getSecurityManagerTk() {
|
||||||
|
|||||||
@@ -16,12 +16,11 @@
|
|||||||
|
|
||||||
package android.net;
|
package android.net;
|
||||||
|
|
||||||
import android.annotation.SystemApi;
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
@SystemApi
|
/** {@hide} */
|
||||||
public class ConnectivityMetricsEvent implements Parcelable {
|
public final class ConnectivityMetricsEvent implements Parcelable {
|
||||||
|
|
||||||
/** The time when this event was collected, as returned by System.currentTimeMillis(). */
|
/** The time when this event was collected, as returned by System.currentTimeMillis(). */
|
||||||
final public long timestamp;
|
final public long timestamp;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import java.util.Objects;
|
|||||||
* If no {@code uid}s are set, callbacks are restricted to device-owners,
|
* If no {@code uid}s are set, callbacks are restricted to device-owners,
|
||||||
* carrier-privileged apps, or system apps.
|
* carrier-privileged apps, or system apps.
|
||||||
*/
|
*/
|
||||||
public class DataUsageRequest implements Parcelable {
|
public final class DataUsageRequest implements Parcelable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hide
|
* @hide
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ import java.io.File;
|
|||||||
*/
|
*/
|
||||||
// NOTE: This is a legacy specialization of VolumeInfo which describes the volume for a specific
|
// NOTE: This is a legacy specialization of VolumeInfo which describes the volume for a specific
|
||||||
// user, but is now part of the public API.
|
// user, but is now part of the public API.
|
||||||
public class StorageVolume implements Parcelable {
|
public final class StorageVolume implements Parcelable {
|
||||||
|
|
||||||
private final String mId;
|
private final String mId;
|
||||||
private final int mStorageId;
|
private final int mStorageId;
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ import java.util.Objects;
|
|||||||
* AudioTrack.getPlaybackHeadPosition()}),
|
* AudioTrack.getPlaybackHeadPosition()}),
|
||||||
* depending on the context where audio frame is used.
|
* depending on the context where audio frame is used.
|
||||||
*/
|
*/
|
||||||
public class AudioFormat implements Parcelable {
|
public final class AudioFormat implements Parcelable {
|
||||||
|
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
// Constants
|
// Constants
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import java.util.Objects;
|
|||||||
* {@link AudioManager#getActiveRecordConfigurations()} method.
|
* {@link AudioManager#getActiveRecordConfigurations()} method.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class AudioRecordConfiguration implements Parcelable {
|
public final class AudioRecordConfiguration implements Parcelable {
|
||||||
private final static String TAG = new String("AudioRecordConfiguration");
|
private final static String TAG = new String("AudioRecordConfiguration");
|
||||||
|
|
||||||
private final int mSessionId;
|
private final int mSessionId;
|
||||||
|
|||||||
Reference in New Issue
Block a user