• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2016 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 = "proto3";
18
19option java_multiple_files = true;
20option java_outer_classname = "IncidentProtoMetadata";
21
22import "frameworks/base/libs/incident/proto/android/privacy.proto";
23import "frameworks/base/core/proto/android/service/appwidget.proto";
24import "frameworks/base/core/proto/android/service/battery.proto";
25import "frameworks/base/core/proto/android/service/fingerprint.proto";
26import "frameworks/base/core/proto/android/service/diskstats.proto";
27import "frameworks/base/core/proto/android/service/netstats.proto";
28import "frameworks/base/core/proto/android/service/notification.proto";
29import "frameworks/base/core/proto/android/service/package.proto";
30import "frameworks/base/core/proto/android/service/power.proto";
31import "frameworks/base/core/proto/android/providers/settings.proto";
32
33package android.os;
34
35message IncidentHeaderProto {
36    enum Cause {
37        CAUSE_UNKNOWN = 0;
38        CAUSE_USER = 1;
39        CAUSE_ANR = 2;
40        CAUSE_CRASH = 3;
41    }
42
43    Cause cause = 1;
44}
45
46message IncidentProto {
47    // Incident header
48    repeated IncidentHeaderProto header = 1;
49
50    // Device information
51    //SystemProperties system_properties = 1000;
52
53    // Linux services
54    //Procrank procrank = 2000;
55    //PageTypeInfo page_type_info = 2001;
56    //KernelWakeSources kernel_wake_sources = 2002;
57
58    // System Services
59    android.service.fingerprint.FingerprintServiceDumpProto fingerprint = 3000;
60    android.service.NetworkStatsServiceDumpProto netstats = 3001;
61    android.providers.settings.SettingsServiceDumpProto settings = 3002;
62    android.service.appwidget.AppWidgetServiceDumpProto appwidget = 3003;
63    android.service.battery.BatteryServiceDumpProto battery = 3006;
64    android.service.diskstats.DiskStatsServiceDumpProto diskstats = 3007;
65    android.service.notification.NotificationServiceDumpProto notification = 3004;
66    android.service.pm.PackageServiceDumpProto package = 3008;
67    android.service.power.PowerServiceDumpProto power = 3009;
68}
69