blob: 1456ff7e6c5e880d0fd8a692c8e644c4f1b4c6d4 [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 Wright7f378782019-06-20 19:36:57 +010019import android.media.AudioAttributes;
Michael Wright71216972017-01-31 18:33:54 +000020import android.os.VibrationEffect;
21
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080022/** {@hide} */
Mike Lockwood3a322132009-11-24 00:30:52 -050023interface IVibratorService
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080024{
Dianne Hackbornea9020e2010-11-04 11:39:12 -070025 boolean hasVibrator();
Michael Wright71216972017-01-31 18:33:54 +000026 boolean hasAmplitudeControl();
Michael Wright7f378782019-06-20 19:36:57 +010027 void vibrate(int uid, String opPkg, in VibrationEffect effect, in AudioAttributes attributes,
28 String reason, IBinder token);
Patrick Scott18dd5f02009-07-02 11:31:12 -040029 void cancelVibrate(IBinder token);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080030}
31