mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: parts-hidl -> parts-aidl
This commit is contained in:
parent
a8eed8f2aa
commit
1603054a6e
7 changed files with 170 additions and 0 deletions
25
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/BatterySys.aidl
vendored
Normal file
25
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/BatterySys.aidl
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
@Backing(type="int")
|
||||
enum BatterySys {
|
||||
CAPACITY_MAX,
|
||||
TEMP,
|
||||
CAPACITY_CURRENT,
|
||||
CURRENT,
|
||||
FASTCHARGE,
|
||||
CHARGE,
|
||||
}
|
||||
21
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/DisplaySys.aidl
vendored
Normal file
21
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/DisplaySys.aidl
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
@Backing(type="int")
|
||||
enum DisplaySys {
|
||||
DOUBLE_TAP,
|
||||
GLOVE_MODE,
|
||||
}
|
||||
24
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IBatteryStats.aidl
vendored
Normal file
24
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IBatteryStats.aidl
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
import vendor.eureka.hardware.parts.BatterySys;
|
||||
import vendor.eureka.hardware.parts.Status;
|
||||
|
||||
interface IBatteryStats {
|
||||
int getBatteryStats(in BatterySys stats);
|
||||
|
||||
void setBatteryWritable(in BatterySys stats, in Status value);
|
||||
}
|
||||
21
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IDisplayConfigs.aidl
vendored
Normal file
21
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IDisplayConfigs.aidl
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
import vendor.eureka.hardware.parts.DisplaySys;
|
||||
|
||||
interface IDisplayConfigs {
|
||||
void writeDisplay(in boolean enable, in DisplaySys type);
|
||||
}
|
||||
23
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IFlashBrightness.aidl
vendored
Normal file
23
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IFlashBrightness.aidl
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
interface IFlashBrightness {
|
||||
int readFlashlightstats(in boolean s2mu106);
|
||||
|
||||
void setFlashlightEnable(in boolean enable);
|
||||
|
||||
void setFlashlightWritable(in int value);
|
||||
}
|
||||
27
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISmartCharge.aidl
vendored
Normal file
27
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISmartCharge.aidl
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
interface ISmartCharge {
|
||||
int getLimitCnt();
|
||||
|
||||
int getRestartCnt();
|
||||
|
||||
void setConfig(in int limit, in int restart);
|
||||
|
||||
void start();
|
||||
|
||||
void stop();
|
||||
}
|
||||
29
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISwapOnData.aidl
vendored
Normal file
29
universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISwapOnData.aidl
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// Copyright (C) 2022 Eureka Team
|
||||
//
|
||||
// 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 vendor.eureka.hardware.parts;
|
||||
|
||||
interface ISwapOnData {
|
||||
boolean getSwapOnResult();
|
||||
|
||||
boolean isMutexLocked();
|
||||
|
||||
void removeSwapFile();
|
||||
|
||||
void setSwapOff();
|
||||
|
||||
void setSwapOn();
|
||||
|
||||
void setSwapSize(in int size);
|
||||
}
|
||||
Loading…
Reference in a new issue