Skip to content

Commit

Permalink
lmi: Import Xiaomi TouchFeature HAL definitions
Browse files Browse the repository at this point in the history
Change-Id: I257a9e3b8187a9bb003a6e62b0e894e484230321
Signed-off-by: Carlos Ayrton Lopez Arroyo <[email protected]>
  • Loading branch information
TheScarastic authored and Official-Ayrton990 committed Oct 12, 2020
1 parent d3d1ea3 commit e332d88
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
14 changes: 14 additions & 0 deletions interfaces/hardware/touchfeature/1.0/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This file is autogenerated by hidl-gen -Landroidbp.

hidl_interface {
name: "[email protected]",
root: "vendor.xiaomi",
srcs: [
"ITouchFeature.hal",
],
interfaces: [
"[email protected]",
],
gen_java: true,
}

27 changes: 27 additions & 0 deletions interfaces/hardware/touchfeature/1.0/ITouchFeature.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (C) 2019-2020 The LineageOS 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 [email protected];

interface ITouchFeature {
setTouchMode(int32_t mode, int32_t value) generates (int32_t result);
getTouchModeCurValue(int32_t mode) generates (int32_t result);
getTouchModeMaxValue(int32_t mode) generates (int32_t result);
getTouchModeMinValue(int32_t mode) generates (int32_t result);
getTouchModeDefValue(int32_t mode) generates (int32_t result);
resetTouchMode(int32_t mode) generates (int32_t result);
getModeValues(int32_t mode) generates (vec<int32_t> result);
};

0 comments on commit e332d88

Please sign in to comment.