Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 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 | |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 17 | syntax = "proto3"; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 18 | |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 19 | option java_multiple_files = true; |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 20 | option java_outer_classname = "IncidentProtoMetadata"; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 21 | |
| 22 | import "frameworks/base/libs/incident/proto/android/privacy.proto"; |
Mario Bertschler | 86882f4 | 2017-01-25 15:36:55 -0800 | [diff] [blame] | 23 | import "frameworks/base/core/proto/android/service/appwidget.proto"; |
Makoto Onuki | 9b1613d | 2017-04-17 15:31:31 -0700 | [diff] [blame] | 24 | import "frameworks/base/core/proto/android/service/battery.proto"; |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 25 | import "frameworks/base/core/proto/android/service/fingerprint.proto"; |
Makoto Onuki | 9b1613d | 2017-04-17 15:31:31 -0700 | [diff] [blame] | 26 | import "frameworks/base/core/proto/android/service/diskstats.proto"; |
Makoto Onuki | da65a52 | 2017-01-13 10:23:30 -0800 | [diff] [blame] | 27 | import "frameworks/base/core/proto/android/service/netstats.proto"; |
Julia Reynolds | c9842c1 | 2017-02-07 12:46:41 -0500 | [diff] [blame] | 28 | import "frameworks/base/core/proto/android/service/notification.proto"; |
Makoto Onuki | 9b1613d | 2017-04-17 15:31:31 -0700 | [diff] [blame] | 29 | import "frameworks/base/core/proto/android/service/package.proto"; |
| 30 | import "frameworks/base/core/proto/android/service/power.proto"; |
Eugene Susla | d72c397 | 2016-12-27 15:49:30 -0800 | [diff] [blame] | 31 | import "frameworks/base/core/proto/android/providers/settings.proto"; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 32 | |
| 33 | package android.os; |
| 34 | |
| 35 | message IncidentHeaderProto { |
| 36 | enum Cause { |
| 37 | CAUSE_UNKNOWN = 0; |
| 38 | CAUSE_USER = 1; |
| 39 | CAUSE_ANR = 2; |
| 40 | CAUSE_CRASH = 3; |
| 41 | } |
| 42 | |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 43 | Cause cause = 1; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | message IncidentProto { |
| 47 | // Incident header |
| 48 | repeated IncidentHeaderProto header = 1; |
| 49 | |
| 50 | // Device information |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 51 | //SystemProperties system_properties = 1000; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 52 | |
| 53 | // Linux services |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 54 | //Procrank procrank = 2000; |
| 55 | //PageTypeInfo page_type_info = 2001; |
| 56 | //KernelWakeSources kernel_wake_sources = 2002; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 57 | |
| 58 | // System Services |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 59 | android.service.fingerprint.FingerprintServiceDumpProto fingerprint = 3000; |
Makoto Onuki | da65a52 | 2017-01-13 10:23:30 -0800 | [diff] [blame] | 60 | android.service.NetworkStatsServiceDumpProto netstats = 3001; |
Eugene Susla | d72c397 | 2016-12-27 15:49:30 -0800 | [diff] [blame] | 61 | android.providers.settings.SettingsServiceDumpProto settings = 3002; |
Mario Bertschler | 86882f4 | 2017-01-25 15:36:55 -0800 | [diff] [blame] | 62 | android.service.appwidget.AppWidgetServiceDumpProto appwidget = 3003; |
Makoto Onuki | 9b1613d | 2017-04-17 15:31:31 -0700 | [diff] [blame] | 63 | android.service.battery.BatteryServiceDumpProto battery = 3006; |
| 64 | android.service.diskstats.DiskStatsServiceDumpProto diskstats = 3007; |
Julia Reynolds | c9842c1 | 2017-02-07 12:46:41 -0500 | [diff] [blame] | 65 | android.service.notification.NotificationServiceDumpProto notification = 3004; |
Makoto Onuki | 9b1613d | 2017-04-17 15:31:31 -0700 | [diff] [blame] | 66 | android.service.pm.PackageServiceDumpProto package = 3008; |
| 67 | android.service.power.PowerServiceDumpProto power = 3009; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 68 | } |