| <?xml version="1.0" encoding="UTF-8" ?> |
| |
| <!-- |
| Copyright (c) 2021 The Chromium OS Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| |
| <!-- |
| The interface defined in this file is used with the service name |
| "org.chromium.MachineLearning.AdaptiveCharging" |
| We don't use proto in because we need a non-const one. |
| --> |
| |
| <node name="/org/chromium/MachineLearning/AdaptiveCharging" |
| xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> |
| <interface name="org.chromium.MachineLearning.AdaptiveCharging"> |
| <method name="RequestAdaptiveChargingDecision"> |
| <arg name="serialized_example_proto" type="s" direction="in"> |
| <tp:docstring> |
| A serialized RankerExample proto message that contains features. |
| </tp:docstring> |
| </arg> |
| <arg name="status" type="b" direction="out"> |
| <tp:docstring> |
| True if the inference finishes without errors, false otherwise. |
| </tp:docstring> |
| </arg> |
| <arg name="result" type="ad" direction="out"> |
| <tp:docstring> |
| Result for the requested feature. Valid only when status = true. |
| </tp:docstring> |
| </arg> |
| <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| </method> |
| </interface> |
| </node> |