Skip to content

Commit

Permalink
interfaces: Dump vendor.semc.hardware.display service
Browse files Browse the repository at this point in the history
Signed-off-by: Luofan Chen <[email protected]>
  • Loading branch information
hellobbn committed Aug 10, 2022
1 parent 218dd0c commit 1b27c91
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 0 deletions.
16 changes: 16 additions & 0 deletions interfaces/semc/hardware/display/2.0/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "[email protected]",
root: "vendor.semc",
system_ext_specific: true,
srcs: [
"IDisplay.hal",
"IDisplayCallback.hal",
"types.hal"
],
interfaces: [
"[email protected]",
],
gen_java: true,
gen_java_constants: true,
}
21 changes: 21 additions & 0 deletions interfaces/semc/hardware/display/2.0/IDisplay.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package [email protected];

import [email protected]::IDisplayCallback;

interface IDisplay {
get_wp_limits_pcc() generates (PccLimits limit);
oneway setVendorProperty(string key, string value);
set_primary_pcc_matrix(PccMatrix cc_matrix) generates (int32_t status);
get_primary_pcc_matrix() generates (PccMatrix cc_matrix);
save_primary_pcc_matrix(PccMatrix cc_matrix) generates (int32_t status);
setup() generates (int32_t status);
set_color_mode(int32_t mode_id) generates (int32_t status);
set_sspp_color_mode(int32_t mode_id) generates (int32_t status);
registerCallback(IDisplayCallback callback);
};
11 changes: 11 additions & 0 deletions interfaces/semc/hardware/display/2.0/IDisplayCallback.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package [email protected];

interface IDisplayCallback {
onWhiteBalanceMatrixChanged(PccMatrix matrix);
};
22 changes: 22 additions & 0 deletions interfaces/semc/hardware/display/2.0/types.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package [email protected];

struct PccLimits {
float red_low;
float red_high;
float green_low;
float green_high;
float blue_low;
float blue_high;
};

struct PccMatrix {
float red;
float green;
float blue;
};
15 changes: 15 additions & 0 deletions interfaces/semc/hardware/display/2.1/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "[email protected]",
root: "vendor.semc",
system_ext_specific: true,
srcs: [
"IDisplay.hal",
"IFramerateController.hal"
],
interfaces: [
"[email protected]",
"[email protected]"
],
gen_java: true,
}
14 changes: 14 additions & 0 deletions interfaces/semc/hardware/display/2.1/IDisplay.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package [email protected];

import @2.0::IDisplay;
import @2.0::types;
import @2.0::IDisplayCallback;

interface IDisplay extends @2.0::IDisplay {
};
12 changes: 12 additions & 0 deletions interfaces/semc/hardware/display/2.1/IFramerateController.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package [email protected];

interface IFramerateController {
set_fps_mode(int32_t mode) generates (int32_t status);
};

16 changes: 16 additions & 0 deletions interfaces/semc/hardware/display/2.2/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "[email protected]",
root: "vendor.semc",
system_ext_specific: true,
srcs: [
"IDisplay.hal",
"IFramerateController.hal",
],
interfaces: [
"[email protected]",
"[email protected]",
"[email protected]"
],
gen_java: true,
}
14 changes: 14 additions & 0 deletions interfaces/semc/hardware/display/2.2/IDisplay.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package [email protected];

import [email protected]::IDisplay;
import [email protected]::types;
import [email protected]::IDisplayCallback;

interface IDisplay extends @2.1::IDisplay {
};
16 changes: 16 additions & 0 deletions interfaces/semc/hardware/display/2.2/IFramerateController.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package [email protected];

import [email protected]::IFramerateController;

interface IFramerateController extends @2.1::IFramerateController {
set_opec_mode(int32_t mode) generates (int32_t status);
set_hmd_mode(int32_t mode) generates (int32_t status);
};


0 comments on commit 1b27c91

Please sign in to comment.