blob: e8b3ca6cb7ae369063e25f5aa811c92c9b6037fd [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
Michael Wright71216972017-01-31 18:33:54 +000019import android.os.VibrationEffect;
20
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080021/** {@hide} */
Mike Lockwood3a322132009-11-24 00:30:52 -050022interface IVibratorService
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080023{
Dianne Hackbornea9020e2010-11-04 11:39:12 -070024 boolean hasVibrator();
Michael Wright71216972017-01-31 18:33:54 +000025 boolean hasAmplitudeControl();
Alexey Kuzmine1f06b82018-06-20 17:48:43 +010026 void vibrate(int uid, String opPkg, in VibrationEffect effect, int usageHint, String reason,
27 IBinder token);
Patrick Scott18dd5f02009-07-02 11:31:12 -040028 void cancelVibrate(IBinder token);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080029}
30