Christopher Tate | d417d62 | 2013-08-19 16:14:25 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright 2014, 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.app.maintenance; |
| 18 | |
| 19 | import android.app.maintenance.IIdleCallback; |
| 20 | |
| 21 | /** |
| 22 | * Interface that the framework uses to communicate with application code |
| 23 | * that implements an idle-time "maintenance" service. End user code does |
| 24 | * not implement this interface directly; instead, the app's idle service |
| 25 | * implementation will extend android.app.maintenance.IdleService. |
| 26 | * {@hide} |
| 27 | */ |
| 28 | oneway interface IIdleService { |
| 29 | /** |
| 30 | * Begin your idle-time work. |
| 31 | */ |
| 32 | void startIdleMaintenance(IIdleCallback callbackBinder, int token); |
| 33 | void stopIdleMaintenance(IIdleCallback callbackBinder, int token); |
| 34 | } |