android13/packages/services/Car/tests/CarTelemetryApp/res/xml/configs.xml

88 lines
3.1 KiB
XML
Raw Normal View History

2024-06-22 08:45:49 -04:00
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2022 The Android Open Source Project
~
~ 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.
-->
<!-- Each config is enclosed by <config> tags, a config must include "name", "version" and
"script_name" attributes. The "script_name" should correspond to a script name of a lua script in
the res/raw/ folder.
Each config must have a pair of <subscribers> tags that encloses one or more
<subscriber> tags.
Each <subscriber> must contain "handler" and "priority" attributes, where handler is the name of
the entry function in the lua script and priority is used to prioritize tasks in low system
resource environments, from 1 to 100, with 1 having most priority.
Each <subscriber> must also contain one and only one <publisher> that's the publisher the
subscriber listens to for data.
The <publisher> has a "type" attribute that denotes one of the several types of publishers
available (refer to the telemetry proto for all types). Depending on the type, the enclosed
tags will be different since each type of publisher requires different settings. The format
is simply <setting_fieldd_name>SETTING_VALUE</setting_field_name> for each of the publisher
fields (refer to telemetry proto for each type's fields). -->
<configs>
<config
name="wifi_with_session_metrics_config"
version="1"
script_name="conn_sessions">
<subscribers>
<subscriber
handler="onConnectivityDataWithSession"
priority="1">
<publisher
type="connectivity">
<transport>TRANSPORT_WIFI</transport>
<oem_type>OEM_NONE</oem_type>
</publisher>
</subscriber>
</subscribers>
</config>
<config
name="cellular_with_session_metrics_config"
version="1"
script_name="conn_sessions">
<subscribers>
<subscriber
handler="onConnectivityDataWithSession"
priority="1">
<publisher
type="connectivity">
<transport>TRANSPORT_CELLULAR</transport>
<oem_type>OEM_NONE</oem_type>
</publisher>
</subscriber>
</subscribers>
</config>
<config
name="ethernet_with_session_metrics_config"
version="1"
script_name="conn_sessions">
<subscribers>
<subscriber
handler="onConnectivityDataWithSession"
priority="1">
<publisher
type="connectivity">
<transport>TRANSPORT_ETHERNET</transport>
<oem_type>OEM_NONE</oem_type>
</publisher>
</subscriber>
</subscribers>
</config>
</configs>