ca45b2dc29
Test: Builds, boots and vibrator works on bullhead Change-Id: I0ad3a362d83e5063bdaef2d66bfd785fc5ee6757
35 lines
1.2 KiB
Text
35 lines
1.2 KiB
Text
/*
|
|
* Copyright (C) 2016 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.hardware.vibrator@1.0;
|
|
|
|
interface IVibrator {
|
|
/** Turn on vibrator
|
|
*
|
|
* This function must only be called after the previous timeout has expired or
|
|
* was canceled (through off()).
|
|
* @param timeout_ms number of milliseconds to vibrate.
|
|
* @return vibratorOnRet whether vibrator command was successful or not.
|
|
*/
|
|
on(uint32_t timeoutMs) generates (Status vibratorOnRet);
|
|
|
|
/** Turn off vibrator
|
|
*
|
|
* Cancel a previously-started vibration, if any.
|
|
* @return vibratorOffRet whether vibrator command was successful or not.
|
|
*/
|
|
off() generates (Status vibratorOffRet);
|
|
};
|