| /* |
| * Copyright (C) 2020 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. |
| */ |
| |
| syntax = "proto2"; |
| package com.android.server; |
| |
| option java_multiple_files = true; |
| |
| import "frameworks/base/core/proto/android/privacy.proto"; |
| |
| message WaveformProto { |
| option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| repeated int32 timings = 1; |
| repeated int32 amplitudes = 2; |
| required bool repeat = 3; |
| } |
| |
| message PrebakedProto { |
| option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| optional int32 effect_id = 1; |
| optional int32 effect_strength = 2; |
| optional int32 fallback = 3; |
| } |
| |
| // A com.android.os.VibrationEffect object. |
| message VibrationEffectProto { |
| option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| optional WaveformProto waveform = 1; |
| optional PrebakedProto prebaked = 2; |
| } |
| |
| message VibrationProto { |
| option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| optional int64 start_time = 1; |
| optional VibrationEffectProto effect = 2; |
| optional VibrationEffectProto origin_effect = 3; |
| } |
| |
| message VibratorServiceDumpProto { |
| option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| optional VibrationProto current_vibration = 1; |
| optional bool is_vibrating = 2; |
| optional VibrationProto current_external_vibration = 3; |
| optional bool vibrator_under_external_control = 4; |
| optional bool low_power_mode = 5; |
| optional int32 haptic_feedback_intensity = 6; |
| optional int32 notification_intensity = 7; |
| optional int32 ring_intensity = 8; |
| repeated VibrationProto previous_ring_vibrations = 9; |
| repeated VibrationProto previous_notification_vibrations = 10; |
| repeated VibrationProto previous_alarm_vibrations = 11; |
| repeated VibrationProto previous_vibrations = 12; |
| } |