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 17 package android.os; 18 19 import android.os.IIncidentReportStatusListener; 20 import android.os.IncidentReportArgs; 21 22 /** 23 * Binder interface to report system health incidents. 24 * {@hide} 25 */ 26 oneway interface IIncidentManager { 27 28 /** 29 * Takes a report with the given args, reporting status to the optional listener. 30 * 31 * When the report is completed, the system report listener will be notified. 32 */ reportIncident(in IncidentReportArgs args)33 void reportIncident(in IncidentReportArgs args); 34 35 /** 36 * Takes a report with the given args, reporting status to the optional listener. 37 * 38 * When the report is completed, the system report listener will be notified. 39 */ reportIncidentToStream(in IncidentReportArgs args, @nullable IIncidentReportStatusListener listener, FileDescriptor stream)40 void reportIncidentToStream(in IncidentReportArgs args, 41 @nullable IIncidentReportStatusListener listener, 42 FileDescriptor stream); 43 44 /** 45 * Tell the incident daemon that the android system server is up and running. 46 */ systemRunning()47 void systemRunning(); 48 } 49