# Copyright (c) 2022 Huawei Device Co., Ltd. # 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. domain: USB PLUG_IN_OUT_HOST_MODE: __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInHostMode} DEVICE_NAME: {type: STRING, desc: device name} DEVICE_PROTOCOL: {type: INT32, desc: device protocol} DEVICE_CLASS: {type: INT32, desc: device class} VENDOR_ID: {type: INT32, desc: vendor id} PRODUCT_ID: {type: INT32, desc: product id} VERSION: {type: STRING, desc: device version} EVENT_NAME: {type: STRING, desc: event name} PLUG_IN_OUT_DEVICE_MODE: __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInDeviceMode} CURRENT_FUNCTIONS: {type: INT32, desc: current functios} CONNECTED: {type: BOOL, desc: event name} FUNCTION_CHANGED: __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDeviceFunctionChanged} CURRENT_FUNCTION: {type: INT32, desc: current function} UPDATE_FUNCTION: {type: INT32, desc: update function} PORT_ROLE_CHANGED: __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbPortRoleChanged} CURRENT_POWERROLE: {type: INT32, desc: current powerrole} UPDATE_POWERROLE: {type: INT32, desc: update powerrole} CURRENT_DATAROLE: {type: INT32, desc: current datarole} UPDATE_DATAROLE: {type: INT32, desc: update datarole}