| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.app.servertransaction; |
| 18 |
|
| 19 |
import android.annotation.Nullable; |
| 20 |
import android.app.ActivityThread.ActivityClientRecord; |
| 21 |
import android.app.ClientTransactionHandler; |
| 22 |
import android.os.Parcel; |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
public final class EnterPipRequestedItem extends ActivityTransactionItem { |
| 29 |
|
| 30 |
@Override |
| 31 |
public void execute(ClientTransactionHandler client, ActivityClientRecord r, |
| 32 |
PendingTransactionActions pendingActions) { |
| 33 |
client.handlePictureInPictureRequested(r); |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
private EnterPipRequestedItem() {} |
| 39 |
|
| 40 |
|
| 41 |
public static EnterPipRequestedItem obtain() { |
| 42 |
EnterPipRequestedItem instance = ObjectPool.obtain(EnterPipRequestedItem.class); |
| 43 |
if (instance == null) { |
| 44 |
instance = new EnterPipRequestedItem(); |
| 45 |
} |
| 46 |
return instance; |
| 47 |
} |
| 48 |
|
| 49 |
@Override |
| 50 |
public void recycle() { |
| 51 |
ObjectPool.recycle(this); |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
@Override |
| 57 |
public void writeToParcel(Parcel dest, int flags) { } |
| 58 |
|
| 59 |
public static final @android.annotation.NonNull Creator<EnterPipRequestedItem> CREATOR = |
| 60 |
new Creator<EnterPipRequestedItem>() { |
| 61 |
public EnterPipRequestedItem createFromParcel(Parcel in) { |
| 62 |
return new EnterPipRequestedItem(); |
| 63 |
} |
| 64 |
|
| 65 |
public EnterPipRequestedItem[] newArray(int size) { |
| 66 |
return new EnterPipRequestedItem[size]; |
| 67 |
} |
| 68 |
}; |
| 69 |
|
| 70 |
@Override |
| 71 |
public boolean equals(@Nullable Object o) { |
| 72 |
return this == o; |
| 73 |
} |
| 74 |
|
| 75 |
@Override |
| 76 |
public String toString() { |
| 77 |
return "EnterPipRequestedItem{}"; |
| 78 |
} |
| 79 |
} |