blob: 6f2857d4662557acaff5d6febeb634254319af13 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/**
2 * Copyright (c) 2007, The Android Open Source Project
3 *
Eric Olsenf42f15c2009-10-29 16:42:03 -07004 * 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
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08007 *
Eric Olsenf42f15c2009-10-29 16:42:03 -07008 * http://www.apache.org/licenses/LICENSE-2.0
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08009 *
Eric Olsenf42f15c2009-10-29 16:42:03 -070010 * 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
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080014 * limitations under the License.
15 */
16
17package android.os;
18
19/** {@hide} */
Mike Lockwood3a322132009-11-24 00:30:52 -050020interface IVibratorService
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080021{
Dianne Hackbornea9020e2010-11-04 11:39:12 -070022 boolean hasVibrator();
John Spurlock7b414672014-07-18 13:02:39 -040023 void vibrate(int uid, String opPkg, long milliseconds, int usageHint, IBinder token);
24 void vibratePattern(int uid, String opPkg, in long[] pattern, int repeat, int usageHint, IBinder token);
Patrick Scott18dd5f02009-07-02 11:31:12 -040025 void cancelVibrate(IBinder token);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080026}
27