1/*
2 * Copyright (C) 2020 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
17syntax = "proto2";
18
19package perfetto.protos;
20
21
22// Trace event arguments for application state changes.
23message ChromeApplicationStateInfo {
24  // Enum definition taken from:
25  // https://source.chromium.org/chromium/chromium/src/+/master:base/android/application_status_listener.h
26  enum ChromeApplicationState {
27    APPLICATION_STATE_UNKNOWN = 0;
28    APPLICATION_STATE_HAS_RUNNING_ACTIVITIES = 1;
29    APPLICATION_STATE_HAS_PAUSED_ACTIVITIES = 2;
30    APPLICATION_STATE_HAS_STOPPED_ACTIVITIES = 3;
31    APPLICATION_STATE_HAS_DESTROYED_ACTIVITIES = 4;
32  };
33  optional ChromeApplicationState application_state = 1;
34}
35