1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "usb_callback_test.h"
17 
18 #include <sys/time.h>
19 
20 #include <unistd.h>
21 #include <iostream>
22 #include <vector>
23 
24 #include "ashmem.h"
25 #include "delayed_sp_singleton.h"
26 #include "hilog_wrapper.h"
27 #include "if_system_ability_manager.h"
28 #include "iservice_registry.h"
29 #include "securec.h"
30 #include "system_ability_definition.h"
31 #include "usb_callback_test.h"
32 #include "usb_common_test.h"
33 #include "usb_errors.h"
34 #include "usb_srv_client.h"
35 
36 using namespace OHOS;
37 using namespace OHOS::USB;
38 using namespace std;
39 using namespace OHOS::USB::Common;
40 
OnBulkWriteCallback(int32_t status,int32_t actLength)41 int32_t UsbCallbackTest::OnBulkWriteCallback(int32_t status, int32_t actLength)
42 {
43     USB_HILOGE(MODULE_USB_SERVICE, "yu_test_, status %{public}d, actLength:%{public}d", status, actLength);
44     return 0;
45 }
46 
OnBulkReadCallback(int32_t status,int32_t actLength)47 int32_t UsbCallbackTest::OnBulkReadCallback(int32_t status, int32_t actLength)
48 {
49     USB_HILOGE(MODULE_USB_SERVICE, "yu_test_, status %{public}d, actLength:%{public}d", status, actLength);
50     return 0;
51 }