Home | History | Annotate | Download | only in 1.0
      1 /*
      2  * Copyright (C) 2016 The Android Open Source Project
      3  *
      4  * 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
      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,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package android.hardware.vibrator@1.0;
     18 
     19 enum Status : uint32_t {
     20     OK,
     21     UNKNOWN_ERROR,
     22     BAD_VALUE,
     23     UNSUPPORTED_OPERATION
     24 };
     25 
     26 @export
     27 enum Effect : uint32_t {
     28     /**
     29      * A single click effect.
     30      *
     31      * This effect should produce a sharp, crisp click sensation.
     32      */
     33     CLICK,
     34     /**
     35      * A double click effect.
     36      *
     37      * This effect should produce two sequential sharp, crisp click sensations with a minimal
     38      * amount of time between them.
     39      */
     40     DOUBLE_CLICK
     41 };
     42 
     43 @export
     44 enum EffectStrength : uint8_t {
     45     LIGHT,
     46     MEDIUM,
     47     STRONG
     48 };
     49