Loading fastboot/1.0/IFastboot.hal +15 −5 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ interface IFastboot { * Executes a fastboot OEM command. * * @param oemCmdArgs The oem command that is passed to the fastboot HAL. * @response result Returns the status SUCCESS if the operation is successful, * @return result Returns the status SUCCESS if the operation is successful, * INVALID_ARGUMENT for bad arguments, * FAILURE_UNKNOWN for an invalid/unsupported command. */ Loading @@ -44,8 +44,8 @@ interface IFastboot { * Returns an OEM-defined string indicating the variant of the device, for * example, US and ROW. * * @response variant Indicates the device variant. * @response result Returns the status SUCCESS if the operation is successful, * @return variant Indicates the device variant. * @return result Returns the status SUCCESS if the operation is successful, * FAILURE_UNKNOWN otherwise. */ getVariant() generates (string variant, Result result); Loading @@ -54,9 +54,19 @@ interface IFastboot { * Returns whether off-mode-charging is enabled. If enabled, the device * autoboots into a special mode when power is applied. * * @response state Returns whether off mode charging is enabled. * @response result Returns the status SUCCESS if the operation is successful, * @return state Returns whether off mode charging is enabled. * @return result Returns the status SUCCESS if the operation is successful, * FAILURE_UNKNOWN otherwise. */ getOffModeChargeState() generates (bool state, Result result); /** * Returns the minimum battery voltage required for flashing in mV. * * @return batteryVoltage Minimum batterery voltage (in mV) required for * flashing to be successful. * @return result Returns the status SUCCESS if the operation is successful, * FAILURE_UNKNOWN otherwise. */ getBatteryVoltageFlashingThreshold() generates (int32_t batteryVoltage, Result result); }; Loading
fastboot/1.0/IFastboot.hal +15 −5 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ interface IFastboot { * Executes a fastboot OEM command. * * @param oemCmdArgs The oem command that is passed to the fastboot HAL. * @response result Returns the status SUCCESS if the operation is successful, * @return result Returns the status SUCCESS if the operation is successful, * INVALID_ARGUMENT for bad arguments, * FAILURE_UNKNOWN for an invalid/unsupported command. */ Loading @@ -44,8 +44,8 @@ interface IFastboot { * Returns an OEM-defined string indicating the variant of the device, for * example, US and ROW. * * @response variant Indicates the device variant. * @response result Returns the status SUCCESS if the operation is successful, * @return variant Indicates the device variant. * @return result Returns the status SUCCESS if the operation is successful, * FAILURE_UNKNOWN otherwise. */ getVariant() generates (string variant, Result result); Loading @@ -54,9 +54,19 @@ interface IFastboot { * Returns whether off-mode-charging is enabled. If enabled, the device * autoboots into a special mode when power is applied. * * @response state Returns whether off mode charging is enabled. * @response result Returns the status SUCCESS if the operation is successful, * @return state Returns whether off mode charging is enabled. * @return result Returns the status SUCCESS if the operation is successful, * FAILURE_UNKNOWN otherwise. */ getOffModeChargeState() generates (bool state, Result result); /** * Returns the minimum battery voltage required for flashing in mV. * * @return batteryVoltage Minimum batterery voltage (in mV) required for * flashing to be successful. * @return result Returns the status SUCCESS if the operation is successful, * FAILURE_UNKNOWN otherwise. */ getBatteryVoltageFlashingThreshold() generates (int32_t batteryVoltage, Result result); };