| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.window; |
| 18 |
|
| 19 |
import android.annotation.NonNull; |
| 20 |
import android.annotation.Nullable; |
| 21 |
import android.app.IApplicationThread; |
| 22 |
import android.os.IBinder; |
| 23 |
import android.os.Parcelable; |
| 24 |
|
| 25 |
import com.android.internal.util.DataClass; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
@DataClass(genToString = true, genSetters = true, genAidl = true) |
| 33 |
public class RemoteTransition implements Parcelable { |
| 34 |
|
| 35 |
|
| 36 |
private @NonNull IRemoteTransition mRemoteTransition; |
| 37 |
|
| 38 |
|
| 39 |
private @Nullable IApplicationThread mAppThread; |
| 40 |
|
| 41 |
|
| 42 |
public RemoteTransition(@NonNull IRemoteTransition remoteTransition) { |
| 43 |
this(remoteTransition, null ); |
| 44 |
} |
| 45 |
|
| 46 |
|
| 47 |
public @Nullable IBinder asBinder() { |
| 48 |
return mRemoteTransition.asBinder(); |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
@DataClass.Generated.Member |
| 75 |
public RemoteTransition( |
| 76 |
@NonNull IRemoteTransition remoteTransition, |
| 77 |
@Nullable IApplicationThread appThread) { |
| 78 |
this.mRemoteTransition = remoteTransition; |
| 79 |
com.android.internal.util.AnnotationValidations.validate( |
| 80 |
NonNull.class, null, mRemoteTransition); |
| 81 |
this.mAppThread = appThread; |
| 82 |
|
| 83 |
|
| 84 |
} |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
@DataClass.Generated.Member |
| 90 |
public @NonNull IRemoteTransition getRemoteTransition() { |
| 91 |
return mRemoteTransition; |
| 92 |
} |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
@DataClass.Generated.Member |
| 98 |
public @Nullable IApplicationThread getAppThread() { |
| 99 |
return mAppThread; |
| 100 |
} |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
@DataClass.Generated.Member |
| 106 |
public @NonNull RemoteTransition setRemoteTransition(@NonNull IRemoteTransition value) { |
| 107 |
mRemoteTransition = value; |
| 108 |
com.android.internal.util.AnnotationValidations.validate( |
| 109 |
NonNull.class, null, mRemoteTransition); |
| 110 |
return this; |
| 111 |
} |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
@DataClass.Generated.Member |
| 117 |
public @NonNull RemoteTransition setAppThread(@NonNull IApplicationThread value) { |
| 118 |
mAppThread = value; |
| 119 |
return this; |
| 120 |
} |
| 121 |
|
| 122 |
@Override |
| 123 |
@DataClass.Generated.Member |
| 124 |
public String toString() { |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
return "RemoteTransition { " + |
| 129 |
"remoteTransition = " + mRemoteTransition + ", " + |
| 130 |
"appThread = " + mAppThread + |
| 131 |
" }"; |
| 132 |
} |
| 133 |
|
| 134 |
@Override |
| 135 |
@DataClass.Generated.Member |
| 136 |
public void writeToParcel(@NonNull android.os.Parcel dest, int flags) { |
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
byte flg = 0; |
| 141 |
if (mAppThread != null) flg |= 0x2; |
| 142 |
dest.writeByte(flg); |
| 143 |
dest.writeStrongInterface(mRemoteTransition); |
| 144 |
if (mAppThread != null) dest.writeStrongInterface(mAppThread); |
| 145 |
} |
| 146 |
|
| 147 |
@Override |
| 148 |
@DataClass.Generated.Member |
| 149 |
public int describeContents() { return 0; } |
| 150 |
|
| 151 |
|
| 152 |
@SuppressWarnings({"unchecked", "RedundantCast"}) |
| 153 |
@DataClass.Generated.Member |
| 154 |
protected RemoteTransition(@NonNull android.os.Parcel in) { |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
byte flg = in.readByte(); |
| 159 |
IRemoteTransition remoteTransition = IRemoteTransition.Stub.asInterface(in.readStrongBinder()); |
| 160 |
IApplicationThread appThread = (flg & 0x2) == 0 ? null : IApplicationThread.Stub.asInterface(in.readStrongBinder()); |
| 161 |
|
| 162 |
this.mRemoteTransition = remoteTransition; |
| 163 |
com.android.internal.util.AnnotationValidations.validate( |
| 164 |
NonNull.class, null, mRemoteTransition); |
| 165 |
this.mAppThread = appThread; |
| 166 |
|
| 167 |
|
| 168 |
} |
| 169 |
|
| 170 |
@DataClass.Generated.Member |
| 171 |
public static final @NonNull Parcelable.Creator<RemoteTransition> CREATOR |
| 172 |
= new Parcelable.Creator<RemoteTransition>() { |
| 173 |
@Override |
| 174 |
public RemoteTransition[] newArray(int size) { |
| 175 |
return new RemoteTransition[size]; |
| 176 |
} |
| 177 |
|
| 178 |
@Override |
| 179 |
public RemoteTransition createFromParcel(@NonNull android.os.Parcel in) { |
| 180 |
return new RemoteTransition(in); |
| 181 |
} |
| 182 |
}; |
| 183 |
|
| 184 |
@DataClass.Generated( |
| 185 |
time = 1630690027011L, |
| 186 |
codegenVersion = "1.0.23", |
| 187 |
sourceFile = "frameworks/base/core/java/android/window/RemoteTransition.java", |
| 188 |
inputSignatures = "private @android.annotation.NonNull android.window.IRemoteTransition mRemoteTransition\nprivate @android.annotation.Nullable android.app.IApplicationThread mAppThread\npublic @android.annotation.Nullable android.os.IBinder asBinder()\nclass RemoteTransition extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genToString=true, genSetters=true, genAidl=true)") |
| 189 |
@Deprecated |
| 190 |
private void __metadata() {} |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
} |