• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2007 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.IParentalControlCallback;
20 
21 /**
22  * System private API for direct access to the checkin service.
23  * Users should use the content provider instead.
24  *
25  * @see android.provider.Checkin
26  * {@hide}
27  */
28 interface ICheckinService {
29     /** Synchronously attempt a checkin with the server, return true
30       * on success.
31       * @throws IllegalStateException whenever an error occurs.  The
32       * cause of the exception will be the real exception:
33       * IOException for network errors, JSONException for invalid
34       * server responses, etc.
35       */
checkin()36     boolean checkin();
37 
38     /** Direct submission of crash data; returns after writing the crash. */
reportCrashSync(in byte[] crashData)39     void reportCrashSync(in byte[] crashData);
40 
41     /** Asynchronous "fire and forget" version of crash reporting. */
reportCrashAsync(in byte[] crashData)42     oneway void reportCrashAsync(in byte[] crashData);
43 
44     /** Reboot into the recovery system and wipe all user data. */
masterClear()45     void masterClear();
46 
47     /**
48      * Determine if the device is under parental control. Return null if
49      * we are unable to check the parental control status.
50      */
getParentalControlState(IParentalControlCallback p, String requestingApp)51     void getParentalControlState(IParentalControlCallback p,
52                                  String requestingApp);
53 }
54