blob: 0d41be27bffa9e8b99477b0f26c005b75a73a02d [file] [log] [blame]
Adam Lesinski0debc9a2014-07-16 19:09:13 -07001/**
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
17package android.app.usage;
18
19import android.content.ComponentName;
20
21/**
22 * UsageStatsManager local system service interface.
23 *
24 * {@hide} Only for use within the system server.
25 */
26public abstract class UsageStatsManagerInternal {
27
28 /**
29 * Reports an event to the UsageStatsManager.
30 *
31 * @param component The component for which this event ocurred.
Adam Lesinski3c153512014-07-23 17:34:34 -070032 * @param userId The user id to which the component belongs to.
Adam Lesinski0debc9a2014-07-16 19:09:13 -070033 * @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 Lesinski3c153512014-07-23 17:34:34 -070037 public abstract void reportEvent(ComponentName component, int userId,
38 long timeStamp, int eventType);
Adam Lesinski0debc9a2014-07-16 19:09:13 -070039
40 /**
41 * Prepares the UsageStatsService for shutdown.
42 */
43 public abstract void prepareShutdown();
44}