1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14domain: USB 15 16PLUG_IN_OUT_HOST_MODE: 17 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInHostMode} 18 DEVICE_NAME: {type: STRING, desc: device name} 19 DEVICE_PROTOCOL: {type: INT32, desc: device protocol} 20 DEVICE_CLASS: {type: INT32, desc: device class} 21 VENDOR_ID: {type: INT32, desc: vendor id} 22 PRODUCT_ID: {type: INT32, desc: product id} 23 VERSION: {type: STRING, desc: device version} 24 EVENT_NAME: {type: STRING, desc: event name} 25 26PLUG_IN_OUT_DEVICE_MODE: 27 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInDeviceMode} 28 CURRENT_FUNCTIONS: {type: INT32, desc: current functios} 29 CONNECTED: {type: BOOL, desc: event name} 30 31FUNCTION_CHANGED: 32 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDeviceFunctionChanged} 33 CURRENT_FUNCTION: {type: INT32, desc: current function} 34 UPDATE_FUNCTION: {type: INT32, desc: update function} 35 36PORT_ROLE_CHANGED: 37 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbPortRoleChanged} 38 CURRENT_POWERROLE: {type: INT32, desc: current powerrole} 39 UPDATE_POWERROLE: {type: INT32, desc: update powerrole} 40 CURRENT_DATAROLE: {type: INT32, desc: current datarole} 41 UPDATE_DATAROLE: {type: INT32, desc: update datarole}