Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 | * use this file except in compliance with the License. You may obtain a copy |
| 6 | * 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, WITHOUT |
| 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | * License for the specific language governing permissions and limitations |
| 14 | * under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.app.usage; |
| 18 | |
| 19 | import android.content.ComponentName; |
| 20 | |
| 21 | /** |
| 22 | * UsageStatsManager local system service interface. |
| 23 | * |
| 24 | * {@hide} Only for use within the system server. |
| 25 | */ |
| 26 | public abstract class UsageStatsManagerInternal { |
| 27 | |
| 28 | /** |
| 29 | * Reports an event to the UsageStatsManager. |
| 30 | * |
| 31 | * @param component The component for which this event ocurred. |
Adam Lesinski | 3c15351 | 2014-07-23 17:34:34 -0700 | [diff] [blame^] | 32 | * @param userId The user id to which the component belongs to. |
Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 33 | * @param timeStamp The time at which this event ocurred. |
| 34 | * @param eventType The event that occured. Valid values can be found at |
| 35 | * {@link android.app.usage.UsageStats.Event} |
| 36 | */ |
Adam Lesinski | 3c15351 | 2014-07-23 17:34:34 -0700 | [diff] [blame^] | 37 | public abstract void reportEvent(ComponentName component, int userId, |
| 38 | long timeStamp, int eventType); |
Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 39 | |
| 40 | /** |
| 41 | * Prepares the UsageStatsService for shutdown. |
| 42 | */ |
| 43 | public abstract void prepareShutdown(); |
| 44 | } |