mirror of
https://github.com/oplus-giulia-dev/android_hardware_oplus
synced 2025-11-04 05:45:34 +08:00
interfaces: Bump ICharger directly to V5
Looks like V4 never existed. Change-Id: I1999da190461411913e98d98c258a2825fb039d5
This commit is contained in:
@@ -56,6 +56,10 @@ aidl_interface {
|
||||
version: "3",
|
||||
imports: [],
|
||||
},
|
||||
{
|
||||
version: "5",
|
||||
imports: [],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
35
interfaces/aidl/vendor/oplus/hardware/charger/ChgFuncFlag.aidl
vendored
Normal file
35
interfaces/aidl/vendor/oplus/hardware/charger/ChgFuncFlag.aidl
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 The LineageOS Project
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package vendor.oplus.hardware.charger;
|
||||
|
||||
@VintfStability
|
||||
@Backing(type="int")
|
||||
enum ChgFuncFlag {
|
||||
GET_UI_CHG_ICON_TYPE = 0,
|
||||
GET_UI_POWER_VALUE = 1,
|
||||
GET_DEVICE_POWER_VALUE = 2,
|
||||
GET_ADAPTER_POWER_VALUE = 3,
|
||||
GET_CPA_POWER_VALUE = 4,
|
||||
SET_CHG_UP_LIMIT_VALUE = 5,
|
||||
IS_SUPPORT_SINGLE_HYPER_SPEED = 6,
|
||||
GET_BATT_EXPANSION_STATE = 7,
|
||||
IS_SUPPORT_ECO_DESIGN = 8,
|
||||
GET_BATT_MANU_DATE = 9,
|
||||
GET_BATT_FIRST_USAGE_DATE = 10,
|
||||
SET_BATT_FIRST_USAGE_DATE = 11,
|
||||
CLEAR_BATT_ECO_DATA = 12,
|
||||
SET_RECHG_SOC_EN = 13,
|
||||
SET_CHG_UP_LIMIT_STATE = 14,
|
||||
GET_BATTERY_STATUS_PM_VPH = 15,
|
||||
GET_BATTERY_STATUS_PM_VBAT = 16,
|
||||
GET_DEEP_DISCHG_COUNTS_VALUE = 17,
|
||||
GET_ANTI_EXPANSION_INFO = 18,
|
||||
SET_ANTI_EXPANSION_INFO = 19,
|
||||
GET_BATT_UI_CYCLE_COUNT = 20,
|
||||
GET_BATTERY_TYPE = 21,
|
||||
WIRELESS_PENCIL_QCALI = 22,
|
||||
GET_BATTERY_GAUGE_TYPE = 23,
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
package vendor.oplus.hardware.charger;
|
||||
|
||||
import vendor.oplus.hardware.charger.ChgFuncFlag;
|
||||
import vendor.oplus.hardware.charger.testKitFeatureTestResult;
|
||||
|
||||
@VintfStability
|
||||
@@ -135,4 +136,6 @@ interface ICharger {
|
||||
int setChgRusConfig(String data);
|
||||
String getPsyBatterySN();
|
||||
String getBattGaugeInfo();
|
||||
int setChgConfig(ChgFuncFlag flag, String extra, int callname);
|
||||
String getChgConfig(ChgFuncFlag flag, String extra, int callname);
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
08c9338f46f14f1f9d7506d3e0801baa6f8cf7d8
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 The LineageOS Project
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.oplus.hardware.charger;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum ChgFuncFlag {
|
||||
GET_UI_CHG_ICON_TYPE = 0,
|
||||
GET_UI_POWER_VALUE = 1,
|
||||
GET_DEVICE_POWER_VALUE = 2,
|
||||
GET_ADAPTER_POWER_VALUE = 3,
|
||||
GET_CPA_POWER_VALUE = 4,
|
||||
SET_CHG_UP_LIMIT_VALUE = 5,
|
||||
IS_SUPPORT_SINGLE_HYPER_SPEED = 6,
|
||||
GET_BATT_EXPANSION_STATE = 7,
|
||||
IS_SUPPORT_ECO_DESIGN = 8,
|
||||
GET_BATT_MANU_DATE = 9,
|
||||
GET_BATT_FIRST_USAGE_DATE = 10,
|
||||
SET_BATT_FIRST_USAGE_DATE = 11,
|
||||
CLEAR_BATT_ECO_DATA = 12,
|
||||
SET_RECHG_SOC_EN = 13,
|
||||
SET_CHG_UP_LIMIT_STATE = 14,
|
||||
GET_BATTERY_STATUS_PM_VPH = 15,
|
||||
GET_BATTERY_STATUS_PM_VBAT = 16,
|
||||
GET_DEEP_DISCHG_COUNTS_VALUE = 17,
|
||||
GET_ANTI_EXPANSION_INFO = 18,
|
||||
SET_ANTI_EXPANSION_INFO = 19,
|
||||
GET_BATT_UI_CYCLE_COUNT = 20,
|
||||
GET_BATTERY_TYPE = 21,
|
||||
WIRELESS_PENCIL_QCALI = 22,
|
||||
GET_BATTERY_GAUGE_TYPE = 23,
|
||||
}
|
||||
154
interfaces/aidl_api/vendor.oplus.hardware.charger/5/vendor/oplus/hardware/charger/ICharger.aidl
vendored
Normal file
154
interfaces/aidl_api/vendor.oplus.hardware.charger/5/vendor/oplus/hardware/charger/ICharger.aidl
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 The LineageOS Project
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.oplus.hardware.charger;
|
||||
@VintfStability
|
||||
interface ICharger {
|
||||
int VolDividerIcWorkModeSet(String data);
|
||||
int chgExchangeMesgInit();
|
||||
int chgExchangeSohMesgInit();
|
||||
int getAcType();
|
||||
int getBattAuthenticate();
|
||||
int getBattPPSChgIng();
|
||||
int getBattPPSChgPower();
|
||||
String getBattParamNoplug();
|
||||
int getBattShortIcOtpStatus();
|
||||
int getBattSubCurrent();
|
||||
int getBattVoocChgIng();
|
||||
int getBatteryVoltageNow();
|
||||
String getBccCsvData();
|
||||
int getBccExpStatus();
|
||||
String getBmsHeatingRunningStatus();
|
||||
int getBmsHeatingStatus();
|
||||
String getChargerControl();
|
||||
int getChargerCoolDown();
|
||||
int getChargerCriticalLog();
|
||||
int getChargerIdVolt();
|
||||
int getChargerLog();
|
||||
int getCustomSelectChgMode();
|
||||
String getDevinfoFastchg();
|
||||
int getFastCharge();
|
||||
int getParallelChgMosTestResult();
|
||||
int getPsyAcOnline();
|
||||
int getPsyBatteryCC();
|
||||
int getPsyBatteryCurrentNow();
|
||||
int getPsyBatteryFcc();
|
||||
int getPsyBatteryHmac();
|
||||
int getPsyBatteryLevel();
|
||||
int getPsyBatteryNotify();
|
||||
int getPsyBatteryPchg();
|
||||
int getPsyBatteryPchgResetCount();
|
||||
int getPsyBatteryRm();
|
||||
int getPsyBatteryShortFeature();
|
||||
int getPsyBatteryShortStatus();
|
||||
String getPsyBatteryStatus();
|
||||
int getPsyBatteryTemp();
|
||||
int getPsyChargeTech();
|
||||
int getPsyFastChgType();
|
||||
int getPsyInputCurrent();
|
||||
int getPsyOtgOnline();
|
||||
int getPsyOtgSwitch();
|
||||
int getPsyPcPortOnline();
|
||||
int getPsyQGVbatDeviation();
|
||||
int getPsyTypeOrientation();
|
||||
int getPsyUsbOnline();
|
||||
int getPsyUsbStatus();
|
||||
String getPsyWirelessRX();
|
||||
String getPsyWirelessRxVersion();
|
||||
String getPsyWirelessTX();
|
||||
String getPsyWirelessTxVersion();
|
||||
int getQgVbatDeviation();
|
||||
String getQuickModeGain();
|
||||
String getReserveSocDebug();
|
||||
int getSmartChgMode();
|
||||
int getUIsohValue();
|
||||
String getUisohDebugParameterInfo();
|
||||
int getUsbInputCurrentNow();
|
||||
int getUsbPrimalType();
|
||||
int getWiredOtgOnline();
|
||||
int getWirelessAdapterPower();
|
||||
int getWirelessCapacity();
|
||||
int getWirelessChargePumpEn();
|
||||
int getWirelessCurrentNow();
|
||||
String getWirelessDeviated();
|
||||
int getWirelessOnline();
|
||||
int getWirelessPenPresent();
|
||||
int getWirelessPtmcId();
|
||||
int getWirelessRXEnable();
|
||||
int getWirelessRealType();
|
||||
String getWirelessTXEnable();
|
||||
int getWirelessUserSleepMode();
|
||||
int getWirelessVoltageNow();
|
||||
String healthd_update_ui_soc_decimal();
|
||||
int nightstandby(int status);
|
||||
int notifyScreenStatus(int status);
|
||||
String queryChargeInfo();
|
||||
int setChargeEMMode(String data);
|
||||
int setChargerControl(String data);
|
||||
int setChargerCoolDown(String data);
|
||||
int setChargerCriticalLog(String data);
|
||||
int setChargerCycle(String data);
|
||||
int setChargerFactoryModeTest(String data);
|
||||
int setChargerLog(String data);
|
||||
int setChgStatusToBcc(int status);
|
||||
int setCustomSelectChgMode(int mode, boolean enable);
|
||||
int setFastchgFwUpdate(String data);
|
||||
int setPsyMmiChgEn(String data);
|
||||
int setPsyOtgSwitch(String data);
|
||||
int setReserveSocDebug(String data);
|
||||
int setShipMode(String data);
|
||||
int setSmartChgMode(String data);
|
||||
int setSmartCoolDown(int coolDown, int normalCoolDown, String pkgName);
|
||||
int setTbattPwrOff(String data);
|
||||
int setUisohDebugInfo(String data);
|
||||
int setUsbPrimalType(String data);
|
||||
int setWirelessChargePumpEn(String data);
|
||||
int setWirelessFtmMode(String data);
|
||||
int setWirelessIconDelay(String data);
|
||||
int setWirelessIdtAdcTest(String data);
|
||||
int setWirelessPenSoc(String data);
|
||||
int setWirelessRXEnable(String data);
|
||||
int setWirelessTXEnable(String data);
|
||||
int setWirelessUserSleepMode(String data);
|
||||
int setWlsThirdPartitionInfo(String data);
|
||||
vendor.oplus.hardware.charger.testKitFeatureTestResult testKitFeatureTest(int index);
|
||||
String testKitGetFeatureList();
|
||||
String testKitGetFeatureName(int index);
|
||||
int testKitGetFeatureNum();
|
||||
int updateUiSohToPartion();
|
||||
String queryWlsPencilInfo();
|
||||
String getChgOlcConfig();
|
||||
int setChgOlcConfig(String data);
|
||||
int setSuperEnduranceStatus(String data);
|
||||
int setSuperEnduranceCount(String data);
|
||||
int setBobStatus(String data);
|
||||
int setPsySlowChgEn(String data);
|
||||
int getCpVbatDeviation();
|
||||
int setBatteryLogPush(String data);
|
||||
int getChargingModeInGsmCall();
|
||||
int setChargingModeInGsmCall(String data);
|
||||
int setChgRusConfig(String data);
|
||||
String getPsyBatterySN();
|
||||
String getBattGaugeInfo();
|
||||
int setChgConfig(vendor.oplus.hardware.charger.ChgFuncFlag flag, String extra, int callname);
|
||||
String getChgConfig(vendor.oplus.hardware.charger.ChgFuncFlag flag, String extra, int callname);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 The LineageOS Project
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.oplus.hardware.charger;
|
||||
@VintfStability
|
||||
parcelable testKitFeatureTestResult {
|
||||
int ret;
|
||||
String str;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 The LineageOS Project
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package vendor.oplus.hardware.charger;
|
||||
@Backing(type="int") @VintfStability
|
||||
enum ChgFuncFlag {
|
||||
GET_UI_CHG_ICON_TYPE = 0,
|
||||
GET_UI_POWER_VALUE = 1,
|
||||
GET_DEVICE_POWER_VALUE = 2,
|
||||
GET_ADAPTER_POWER_VALUE = 3,
|
||||
GET_CPA_POWER_VALUE = 4,
|
||||
SET_CHG_UP_LIMIT_VALUE = 5,
|
||||
IS_SUPPORT_SINGLE_HYPER_SPEED = 6,
|
||||
GET_BATT_EXPANSION_STATE = 7,
|
||||
IS_SUPPORT_ECO_DESIGN = 8,
|
||||
GET_BATT_MANU_DATE = 9,
|
||||
GET_BATT_FIRST_USAGE_DATE = 10,
|
||||
SET_BATT_FIRST_USAGE_DATE = 11,
|
||||
CLEAR_BATT_ECO_DATA = 12,
|
||||
SET_RECHG_SOC_EN = 13,
|
||||
SET_CHG_UP_LIMIT_STATE = 14,
|
||||
GET_BATTERY_STATUS_PM_VPH = 15,
|
||||
GET_BATTERY_STATUS_PM_VBAT = 16,
|
||||
GET_DEEP_DISCHG_COUNTS_VALUE = 17,
|
||||
GET_ANTI_EXPANSION_INFO = 18,
|
||||
SET_ANTI_EXPANSION_INFO = 19,
|
||||
GET_BATT_UI_CYCLE_COUNT = 20,
|
||||
GET_BATTERY_TYPE = 21,
|
||||
WIRELESS_PENCIL_QCALI = 22,
|
||||
GET_BATTERY_GAUGE_TYPE = 23,
|
||||
}
|
||||
@@ -149,4 +149,6 @@ interface ICharger {
|
||||
int setChgRusConfig(String data);
|
||||
String getPsyBatterySN();
|
||||
String getBattGaugeInfo();
|
||||
int setChgConfig(vendor.oplus.hardware.charger.ChgFuncFlag flag, String extra, int callname);
|
||||
String getChgConfig(vendor.oplus.hardware.charger.ChgFuncFlag flag, String extra, int callname);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user