Debian Codegraph @

core/java/android/app/servertransaction/ClientTransactionItem.java

raw symbols SCIP
1 /*
2 * Copyright 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package android.app.servertransaction;
18
19 import static android.app.servertransaction.ActivityLifecycleItem.LifecycleState;
20 import static android.app.servertransaction.ActivityLifecycleItem.UNDEFINED;
21
22 import android.os.Parcelable;
23
24 /**
25 * A callback message to a client that can be scheduled and executed.
26 * Examples of these might be activity configuration change, multi-window mode change, activity
27 * result delivery etc.
28 *
29 * @see ClientTransaction
30 * @see com.android.server.am.ClientLifecycleManager
31 * @hide
32 */
33 public abstract class ClientTransactionItem implements BaseClientRequest, Parcelable {
34
35 /** Get the state that must follow this callback. */
36 @LifecycleState
37 public int getPostExecutionState() {
38 return UNDEFINED;
39 }
40
41 boolean shouldHaveDefinedPreExecutionState() {
42 return true;
43 }
44
45 // Parcelable
46
47 @Override
48 public int describeContents() {
49 return 0;
50 }
51 }