Skip to content

Commit

Permalink
lmi: Import Xiaomi HAL definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Ayrton Lopez Arroyo <[email protected]>
  • Loading branch information
phhusson authored and Official-Ayrton990 committed Oct 9, 2020
1 parent 87685a8 commit bede8e9
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
soong_namespace {
}

hidl_package_root {
name: "vendor.xiaomi",
path: "device/xiaomi/lmi/interfaces",
}
14 changes: 14 additions & 0 deletions interfaces/hardware/displayfeature/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: [
"IDisplayFeature.hal",
],
interfaces: [
"[email protected]",
],
gen_java: true,
}

6 changes: 6 additions & 0 deletions interfaces/hardware/displayfeature/1.0/IDisplayFeature.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package [email protected];

interface IDisplayFeature {
setFeature(uint32_t displayId, uint32_t mode, uint32_t value, uint32_t cookie);
};

14 changes: 14 additions & 0 deletions interfaces/hardware/fingerprintextension/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: [
"IXiaomiFingerprint.hal",
],
interfaces: [
"[email protected]",
],
gen_java: true,
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package [email protected];

interface IXiaomiFingerprint {
extCmd(int32_t cmd, int32_t param) generates (int32_t result);
};
19 changes: 19 additions & 0 deletions interfaces/hardware/motor/1.0/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// This file is autogenerated by hidl-gen -Landroidbp.

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

14 changes: 14 additions & 0 deletions interfaces/hardware/motor/1.0/IMotor.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package [email protected];

import [email protected]::IMotorCallback;

interface IMotor {
popupMotor(int32_t cookie);
takebackMotor(int32_t cookie);
setMotorCallback(IMotorCallback motorcallback);
init();
release();
getMotorStatus() generates (int32_t result);
calibration();
takebackMotorShortly();
};
5 changes: 5 additions & 0 deletions interfaces/hardware/motor/1.0/IMotorCallback.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package [email protected];

interface IMotorCallback {
oneway onNotify(MotorEvent event);
};
6 changes: 6 additions & 0 deletions interfaces/hardware/motor/1.0/types.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package [email protected];

struct MotorEvent {
int32_t vaalue;
int32_t cookie;
};
6 changes: 6 additions & 0 deletions interfaces/update-makefiles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

source $ANDROID_BUILD_TOP/system/tools/hidl/update-makefiles-helper.sh

do_makefiles_update \
"vendor.xiaomi:device/xiaomi/lmi/interfaces"

0 comments on commit bede8e9

Please sign in to comment.