Home
last modified time | relevance | path

Searched full:cmd (Results 1 – 25 of 1057) sorted by relevance

12345678910>>...43

/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_p2p_hal/
Dwifi_p2p_hal.c67 char cmd[P2P_CMD_BUF_LENGTH] = {0}; in WpaP2pCliCmdWpsPbc() local
68 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PBC", this->groupIfname) < 0) { in WpaP2pCliCmdWpsPbc()
73 unsigned pos = strlen(cmd); in WpaP2pCliCmdWpsPbc()
74 if (snprintf_s(cmd + pos, sizeof(cmd) - pos, sizeof(cmd) - pos - 1, " %s", bssid) < 0) { in WpaP2pCliCmdWpsPbc()
79 if (WpaCliCmd(cmd, buf, sizeof(buf)) != 0) { in WpaP2pCliCmdWpsPbc()
100 char cmd[P2P_CMD_BUF_LENGTH] = {0}; in WpaP2pCliCmdWpsPin() local
103 … res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any %s", this->groupIfname, in WpaP2pCliCmdWpsPin()
106 … res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any", this->groupIfname); in WpaP2pCliCmdWpsPin()
108 …res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN %s", this->groupIfname, arg… in WpaP2pCliCmdWpsPin()
114 if (WpaCliCmd(cmd, buf, sizeof(buf)) != 0) { in WpaP2pCliCmdWpsPin()
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_smartalbum_map_operations_test/src/
Dmedialibrary_smartalbum_map_operations_test.cpp45 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::DELETE);
46 int32_t ret = MediaLibrarySmartAlbumMapOperations::HandleSmartAlbumMapOperation(cmd);
64 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::CREATE);
65 int32_t ret = MediaLibrarySmartAlbumMapOperations::HandleSmartAlbumMapOperation(cmd);
68 cmd.SetTableName(MEDIALIBRARY_TABLE);
71 cmd.SetValueBucket(values);
72 ret = MediaLibrarySmartAlbumMapOperations::HandleSmartAlbumMapOperation(cmd);
77 cmd.SetValueBucket(values);
78 ret = MediaLibrarySmartAlbumMapOperations::HandleSmartAlbumMapOperation(cmd);
84 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::CREATE);
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/cmd/
Dhci_cmd.c58 static void HciFreeCmd(void *cmd);
93 static int HciCmdPushToTxQueue(HciCmd *cmd) in HciCmdPushToTxQueue() argument
99 hciPacket->packet = cmd->packet; in HciCmdPushToTxQueue()
100 cmd->packet = NULL; in HciCmdPushToTxQueue()
150 HciCmd *cmd = NULL; in HciSetNumberOfHciCmd() local
153 cmd = QueueTryDequeue(g_cmdCache); in HciSetNumberOfHciCmd()
154 if (cmd != NULL) { in HciSetNumberOfHciCmd()
155 int result = HciCmdPushToTxQueue(cmd); in HciSetNumberOfHciCmd()
160 AlarmSet(cmd->alarm, CMD_TIMEOUT, HciCmdOnCmdTimeout, cmd); in HciSetNumberOfHciCmd()
161 ListAddLast(g_processingCmds, cmd); in HciSetNumberOfHciCmd()
[all …]
Dhci_cmd_link_ctrl.c32 HciCmd *cmd = HciAllocCmd(HCI_INQUIRY, (void *)param, sizeof(HciInquiryeParam)); in HCI_Inquiry() local
33 return HciSendCmd(cmd); in HCI_Inquiry()
40 HciCmd *cmd = HciAllocCmd(HCI_INQUIRY_CANCEL, NULL, 0); in HCI_InquiryCancel() local
41 return HciSendCmd(cmd); in HCI_InquiryCancel()
52 … HciCmd *cmd = HciAllocCmd(HCI_CREATE_CONNECTION, (void *)param, sizeof(HciCreateConnectionParam)); in HCI_CreateConnection() local
53 return HciSendCmd(cmd); in HCI_CreateConnection()
64 HciCmd *cmd = HciAllocCmd(HCI_DISCONNECT, (void *)param, sizeof(HciDisconnectParam)); in HCI_Disconnect() local
65 return HciSendCmd(cmd); in HCI_Disconnect()
76 …HciCmd *cmd = HciAllocCmd(HCI_CREATE_CONNECTION_CANCEL, (void *)param, sizeof(HciCreateConnectionC… in HCI_CreateConnectionCancel() local
77 return HciSendCmd(cmd); in HCI_CreateConnectionCancel()
[all …]
Dhci_cmd_le_controller.c31 HciCmd *cmd = HciAllocCmd(HCI_LE_SET_EVENT_MASK, (void *)param, sizeof(HciLeSetEventMaskParam)); in HCI_LeSetEventMask() local
32 return HciSendCmd(cmd); in HCI_LeSetEventMask()
39 HciCmd *cmd = HciAllocCmd(HCI_LE_READ_BUFFER_SIZE, NULL, 0); in HCI_LeReadBufferSize() local
40 return HciSendCmd(cmd); in HCI_LeReadBufferSize()
47 HciCmd *cmd = HciAllocCmd(HCI_LE_READ_LOCAL_SUPPORTED_FEATURES, NULL, 0); in HCI_LeReadLocalSupportedFeatures() local
48 return HciSendCmd(cmd); in HCI_LeReadLocalSupportedFeatures()
59 …HciCmd *cmd = HciAllocCmd(HCI_LE_SET_RANDOM_ADDRESS, (void *)param, sizeof(HciLeSetRandomAddressPa… in HCI_LeSetRandomAddress() local
60 return HciSendCmd(cmd); in HCI_LeSetRandomAddress()
71 HciCmd *cmd = in HCI_LeSetAdvertisingParameters() local
73 return HciSendCmd(cmd); in HCI_LeSetAdvertisingParameters()
[all …]
Dhci_cmd_controller_baseband.c29 HciCmd *cmd = HciAllocCmd(HCI_SET_EVENT_MASK, (void *)param, sizeof(HciSetEventMaskParam)); in HCI_SetEventMask() local
30 return HciSendCmd(cmd); in HCI_SetEventMask()
37 HciCmd *cmd = HciAllocCmd(HCI_RESET, NULL, 0); in HCI_Reset() local
38 return HciSendCmd(cmd); in HCI_Reset()
45 HciCmd *cmd = HciAllocCmd(HCI_FLUSH, (void *)param, sizeof(HciFlushParam)); in HCI_Flush() local
46 return HciSendCmd(cmd); in HCI_Flush()
53 HciCmd *cmd = HciAllocCmd(HCI_WRITE_LOCAL_NAME, (void *)param, sizeof(HciWriteLocalNameParam)); in HCI_WriteLocalName() local
54 return HciSendCmd(cmd); in HCI_WriteLocalName()
65 … HciCmd *cmd = HciAllocCmd(HCI_WRITE_SCAN_ENABLE, (void *)param, sizeof(HciWriteScanEnableParam)); in HCI_WriteScanEnable() local
66 return HciSendCmd(cmd); in HCI_WriteScanEnable()
[all …]
/foundation/multimedia/av_session/services/session/server/
Davsession_item.h124 int32_t AddSupportCommand(int32_t cmd) override;
126 int32_t DeleteSupportCommand(int32_t cmd) override;
158 void ExecuteControllerCommand(const AVControlCommand& cmd);
214 void AddSessionCommandToCast(int32_t cmd);
216 void RemoveSessionCommandFromCast(int32_t cmd);
218 int32_t SessionCommandToCastCommand(int32_t cmd);
220 int32_t AddSupportCastCommand(int32_t cmd);
222 bool IsCastRelevancyCommand(int32_t cmd);
224 int32_t DeleteSupportCastCommand(int32_t cmd);
271 void HandleOnAVCallAnswer(const AVControlCommand& cmd);
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
Dmedialibrary_photo_operations.h35 EXPORT static int32_t Create(MediaLibraryCommand &cmd);
36 EXPORT static std::shared_ptr<NativeRdb::ResultSet> Query(MediaLibraryCommand &cmd,
38 EXPORT static int32_t Update(MediaLibraryCommand &cmd);
39 EXPORT static int32_t Delete(MediaLibraryCommand &cmd);
40 EXPORT static int32_t Open(MediaLibraryCommand &cmd, const std::string &mode);
41 EXPORT static int32_t Close(MediaLibraryCommand &cmd);
42 EXPORT static int32_t SubmitCache(MediaLibraryCommand &cmd);
43 EXPORT static int32_t CommitEditInsert(MediaLibraryCommand &cmd);
44 EXPORT static int32_t RevertToOrigin(MediaLibraryCommand &cmd);
46 EXPORT static std::shared_ptr<NativeRdb::ResultSet> ScanMovingPhoto(MediaLibraryCommand &cmd,
[all …]
/foundation/communication/nfc/interfaces/inner_api/common/
Dnfc_basic_proxy.cpp21 int NfcBasicProxy::SendRequestExpectReplyStringAndStatusCode(uint32_t cmd, in SendRequestExpectReplyStringAndStatusCode() argument
24 int ret = remoteObj_->SendRequest(cmd, data, reply, option); in SendRequestExpectReplyStringAndStatusCode()
28 InfoLog("SendRequestExpectReplyStringAndStatusCode, cmd %{public}d, ret %{public}d", cmd, ret); in SendRequestExpectReplyStringAndStatusCode()
32 int NfcBasicProxy::SendRequestExpectReplyIntAndStatusCode(uint32_t cmd, in SendRequestExpectReplyIntAndStatusCode() argument
35 int ret = remoteObj_->SendRequest(cmd, data, reply, option); in SendRequestExpectReplyIntAndStatusCode()
39 …InfoLog("SendRequestExpectReplyIntAndStatusCode, cmd %{public}d, ret %{public}d, result %{public}d… in SendRequestExpectReplyIntAndStatusCode()
40 cmd, ret, result); in SendRequestExpectReplyIntAndStatusCode()
44 int NfcBasicProxy::SendRequestExpectReplyBoolAndStatusCode(uint32_t cmd, in SendRequestExpectReplyBoolAndStatusCode() argument
47 int32_t ret = remoteObj_->SendRequest(cmd, data, reply, option); in SendRequestExpectReplyBoolAndStatusCode()
51 …InfoLog("SendRequestExpectReplyBoolAndStatusCode, cmd %{public}d, ret %{public}d, result %{public}… in SendRequestExpectReplyBoolAndStatusCode()
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_smartalbum_operations_test/src/
Dmedialibrary_smartalbum_operations_test.cpp42 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::DELETE);
43 int32_t ret = MediaLibrarySmartAlbumOperations::HandleSmartAlbumOperation(cmd);
56 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::CREATE);
57 int32_t ret = MediaLibrarySmartAlbumOperations::HandleSmartAlbumOperation(cmd);
59 cmd.SetTableName(MEDIALIBRARY_TABLE);
62 cmd.SetValueBucket(values);
63 ret = MediaLibrarySmartAlbumOperations::HandleSmartAlbumOperation(cmd);
67 cmd.SetValueBucket(values);
68 ret = MediaLibrarySmartAlbumOperations::HandleSmartAlbumOperation(cmd);
75 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::CREATE);
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_cloud_enhancement_test/src/
Dmedialibrary_cloud_enhancement_get_pair_test.cpp129 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_PHOTO, OperationType::CREATE, in CreatePhotoApi10() local
134 cmd.SetValueBucket(values); in CreatePhotoApi10()
135 return MediaLibraryPhotoOperations::Create(cmd); in CreatePhotoApi10()
146 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_PHOTO, OperationType::QUERY, in GetFilePath() local
148 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in GetFilePath()
153 auto resultSet = g_rdbStore->Query(cmd, columns); in GetFilePath()
184 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_PHOTO, OperationType::UPDATE); in MakePhotoUnpending() local
190 cmd.SetValueBucket(values); in MakePhotoUnpending()
191 cmd.GetAbsRdbPredicates()->EqualTo(PhotoColumn::MEDIA_ID, to_string(fileId)); in MakePhotoUnpending()
193 errCode = g_rdbStore->Update(cmd, changedRows); in MakePhotoUnpending()
[all …]
/foundation/bundlemanager/bundle_tool/test/unittest/bm/
Dbm_command_test.cpp48 void SetMockObjects(BundleManagerShellCommand &cmd) const;
85 void BmCommandTest::SetMockObjects(BundleManagerShellCommand &cmd) const in SetMockObjects()
88 cmd.bundleMgrProxy_ = mgrProxyPtr_; in SetMockObjects()
91 cmd.bundleInstallerProxy_ = installerProxyPtr_; in SetMockObjects()
107 BundleManagerShellCommand cmd(argc, argv);
110 SetMockObjects(cmd);
123 EXPECT_EQ(cmd.ExecCommand(), message);
140 BundleManagerShellCommand cmd(argc, argv);
143 SetMockObjects(cmd);
156 EXPECT_EQ(cmd.ExecCommand(), cmd.GetCommandErrorMsg() + message);
[all …]
Dbm_command_dump_test.cpp41 void SetMockObjects(BundleManagerShellCommand &cmd) const;
81 void BmCommandDumpTest::SetMockObjects(BundleManagerShellCommand &cmd) const in SetMockObjects()
84 cmd.bundleMgrProxy_ = mgrProxyPtr_; in SetMockObjects()
87 cmd.bundleInstallerProxy_ = installerProxyPtr_; in SetMockObjects()
104 BundleManagerShellCommand cmd(argc, argv);
107 SetMockObjects(cmd);
109 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_DUMP);
127 BundleManagerShellCommand cmd(argc, argv);
130 SetMockObjects(cmd);
132 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_DUMP);
[all …]
Dbm_command_install_test.cpp42 void SetMockObjects(BundleManagerShellCommand &cmd) const;
80 void BmCommandInstallTest::SetMockObjects(BundleManagerShellCommand &cmd) const in SetMockObjects()
83 cmd.bundleMgrProxy_ = mgrProxyPtr_; in SetMockObjects()
86 cmd.bundleInstallerProxy_ = installerProxyPtr_; in SetMockObjects()
103 BundleManagerShellCommand cmd(argc, argv);
106 SetMockObjects(cmd);
108 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_INSTALL);
126 BundleManagerShellCommand cmd(argc, argv);
129 SetMockObjects(cmd);
131 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_INSTALL);
[all …]
Dbm_command_uninstall_test.cpp41 void SetMockObjects(BundleManagerShellCommand &cmd) const;
79 void BmCommandUninstallTest::SetMockObjects(BundleManagerShellCommand &cmd) const in SetMockObjects()
82 cmd.bundleMgrProxy_ = mgrProxyPtr_; in SetMockObjects()
85 cmd.bundleInstallerProxy_ = installerProxyPtr_; in SetMockObjects()
102 BundleManagerShellCommand cmd(argc, argv);
105 SetMockObjects(cmd);
107 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_UNINSTALL);
125 BundleManagerShellCommand cmd(argc, argv);
128 SetMockObjects(cmd);
130 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_UNINSTALL);
[all …]
Dbm_command_overlay_test.cpp40 void SetMockObjects(BundleManagerShellCommand &cmd) const;
79 void BmCommandOverlayTest::SetMockObjects(BundleManagerShellCommand &cmd) const in SetMockObjects()
82 cmd.bundleMgrProxy_ = mgrProxyPtr_; in SetMockObjects()
85 cmd.bundleInstallerProxy_ = installerProxyPtr_; in SetMockObjects()
102 BundleManagerShellCommand cmd(argc, argv);
105 SetMockObjects(cmd);
107 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_OVERLAY);
125 BundleManagerShellCommand cmd(argc, argv);
128 SetMockObjects(cmd);
130 EXPECT_EQ(cmd.ExecCommand(), "error: unknown option.\n" + HELP_MSG_OVERLAY);
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
Dhfp_ag_command_parser.cpp51 std::string cmd; in Parse() local
67 cmdType = Extract(partData, cmd, arg, cmdLen, len - pos); in Parse()
69 HfpAgCommandProcessor::GetInstance().Handle(dataConn, cmd, arg, cmdType); in Parse()
74 int HfpAgCommandParser::Extract(std::vector<uint8_t> &data, std::string &cmd, std::string &arg, in Extract() argument
97 // cmd include cmd itself and cmd arguments in Extract()
98 cmd = std::string((char *)&data[position.startPos], cmdLen); in Extract()
99 if (cmd.compare(0, ATA_LENGTH, "ATA", 0, ATA_LENGTH) == 0) { in Extract()
101 cmd = "ATA"; in Extract()
102 } else if (cmd.compare(0, ATD_LENGTH, "ATD", 0, ATD_LENGTH) == 0) { in Extract()
104 arg = std::string(cmd, ATD_LENGTH, cmd.length() - (ATD_LENGTH - 1)); in Extract()
[all …]
/foundation/ability/dmsfwk/services/dtbschedmgr/src/continue/
Ddsched_continue.cpp290 int32_t DSchedContinue::OnReplyCmd(std::shared_ptr<DSchedContinueReplyCmd> cmd) in OnReplyCmd() argument
293 return PostReplyTask(cmd); in OnReplyCmd()
296 int32_t DSchedContinue::PostReplyTask(std::shared_ptr<DSchedContinueReplyCmd> cmd) in PostReplyTask() argument
298 if (cmd == nullptr) { in PostReplyTask()
299 HILOGE("cmd is null"); in PostReplyTask()
302 …ostReplyTask called, replyCmd: %{public}d, result: %{public}d, reason: %{public}s", cmd->replyCmd_, in PostReplyTask()
303 cmd->result_, cmd->reason_.c_str()); in PostReplyTask()
306 switch (cmd->replyCmd_) { in PostReplyTask()
316 … HILOGW("PostReplyTask %{public}d, receive irrelevant reply to cmd %{public}d", eventType, in PostReplyTask()
317 cmd->replyCmd_); in PostReplyTask()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
Dhfp_hf_profile.cpp232 std::string cmd("AT+CLCC"); in QueryCurrentCalls() local
233 commandProcessor_.SendAtCommand(dataConn_, cmd, HfpHfCommandProcessor::AT_CLCC_EXECUTER); in QueryCurrentCalls()
241 std::string cmd("AT+COPS"); in QueryOperatorName() local
244 cmd.append("?"); in QueryOperatorName()
247 cmd.append("=3,0"); in QueryOperatorName()
250 commandProcessor_.SendAtCommand(dataConn_, cmd, commandId); in QueryOperatorName()
258 std::string cmd("AT+CNUM"); in QuerySubscriberInfo() local
259 commandProcessor_.SendAtCommand(dataConn_, cmd, HfpHfCommandProcessor::AT_CNUM_EXECUTER); in QuerySubscriberInfo()
267 std::string cmd("AT+VTS="); in SendDtmf() local
268 cmd += code; in SendDtmf()
[all …]
/foundation/multimedia/media_library/frameworks/services/media_permission/src/
Dread_write_permission_handler.cpp43 static int32_t SystemApiCheck(MediaLibraryCommand &cmd) in SystemApiCheck() argument
65 OperationObject obj = cmd.GetOprnObject(); in SystemApiCheck()
66 string uri = cmd.GetUriStringWithoutSegment(); in SystemApiCheck()
77 static inline void AddHiddenAlbumPermission(MediaLibraryCommand &cmd, vector<string> &outPerms) in AddHiddenAlbumPermission() argument
79 Media::OperationType type = cmd.GetOprnType(); in AddHiddenAlbumPermission()
85 static int32_t HandleSecurityComponentPermission(MediaLibraryCommand &cmd) in HandleSecurityComponentPermission() argument
87 if (cmd.GetUri().ToString().find(OPRN_CREATE_COMPONENT) != string::npos || in HandleSecurityComponentPermission()
88 cmd.GetUri().ToString().find(OPRN_SAVE_CAMERA_PHOTO_COMPONENT) != string::npos) { in HandleSecurityComponentPermission()
105 static void UnifyOprnObject(MediaLibraryCommand &cmd) in UnifyOprnObject() argument
120 OperationObject obj = cmd.GetOprnObject(); in UnifyOprnObject()
[all …]
/foundation/ability/ability_runtime/tools/test/unittest/ability_delegator/
Daccessibility_ability_command_first_test.cpp86 AccessibilityAbilityShellCommand cmd(argc, argv);
87 EXPECT_EQ(cmd.init(), OHOS::ERR_OK);
104 AccessibilityAbilityShellCommand cmd(argc, argv);
105 EXPECT_EQ(cmd.CreateMessageMap(), OHOS::ERR_OK);
123 AccessibilityAbilityShellCommand cmd(argc, argv);
124 EXPECT_EQ(cmd.RunAsHelpCommand(), OHOS::ERR_OK);
125 EXPECT_EQ(cmd.resultReceiver_, ACCESSIBILITY_HELP_MSG);
144 AccessibilityAbilityShellCommand cmd(argc, argv);
145 enabledAbilities = cmd.GetEnabledAbilities();
164 AccessibilityAbilityShellCommand cmd(argc, argv);
[all …]
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_sta_hal/
Dwifi_supplicant_hal.c112 char cmd[CMD_BUFFER_SIZE] = {0}; in WpaCliCmdStatus() local
113 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s STATUS", this->ifname) < 0) { in WpaCliCmdStatus()
121 if (WpaCliCmd(cmd, buf, REPLY_BUF_LENGTH) != 0) { in WpaCliCmdStatus()
164 char cmd[CMD_BUFFER_SIZE] = {0}; in WpaCliCmdAddNetworks() local
165 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s ADD_NETWORK", this->ifname) < 0) { in WpaCliCmdAddNetworks()
169 if (WpaCliCmd(cmd, buf, sizeof(buf)) != 0) { in WpaCliCmdAddNetworks()
181 char cmd[CMD_BUFFER_SIZE] = {0}; in WpaCliCmdReconnect() local
182 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s RECONNECT", this->ifname) < 0) { in WpaCliCmdReconnect()
186 return WpaCliCmd(cmd, buf, sizeof(buf)); in WpaCliCmdReconnect()
195 char cmd[CMD_BUFFER_SIZE] = {0}; in WpaCliCmdReassociate() local
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
Dmedialibrary_file_operations.cpp47 int32_t MediaLibraryFileOperations::HandleFileOperation(MediaLibraryCommand &cmd) in HandleFileOperation() argument
50 auto values = cmd.GetValueBucket(); in HandleFileOperation()
60 if (!networkId.empty() && cmd.GetOprnType() != OperationType::CLOSE) { in HandleFileOperation()
64 switch (cmd.GetOprnType()) { in HandleFileOperation()
66 errCode = CreateFileOperation(cmd); in HandleFileOperation()
69 errCode = CloseFileOperation(cmd); in HandleFileOperation()
72 errCode = GetAlbumCapacityOperation(cmd); in HandleFileOperation()
75 errCode = CopyFileOperation(cmd); in HandleFileOperation()
78 MEDIA_ERR_LOG("unknown operation type %{public}d", cmd.GetOprnType()); in HandleFileOperation()
84 int32_t MediaLibraryFileOperations::CreateFileOperation(MediaLibraryCommand &cmd) in CreateFileOperation() argument
[all …]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_rdb_test/src/
Dmedialibrary_dir_operations_test.cpp34 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::CREATE);
35 int32_t ret = MediaLibraryDirOperations::HandleDirOperation(cmd);
49 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::CREATE);
50 int32_t ret = MediaLibraryDirOperations::HandleDirOperation(cmd);
55 cmd.SetValueBucket(values);
56 ret = MediaLibraryDirOperations::HandleDirOperation(cmd);
70 MediaLibraryCommand cmd(OperationObject::FILESYSTEM_ASSET, OperationType::TRASH);
71 int32_t ret = MediaLibraryDirOperations::HandleDirOperation(cmd);
76 cmd.SetValueBucket(valuesBucket);
77 ret = MediaLibraryDirOperations::HandleDirOperation(cmd);
[all …]
/foundation/communication/dsoftbus/tests/core/discovery/ble/bt_state/
Ddisc_bt_state_mock_test.cpp101 using CMD = ExpectWrapper::ExpectCommand; typedef
222 …wrapper.Call(CMD::BLE_START_SCAN_EX, 1).Call(CMD::BLE_START_ADV_EX, 1).Call(CMD::GET_LOCAL_ADDR, 0…
247 wrapper.Call(CMD::BLE_STOP_ADV, 1).Call(CMD::BLE_STOP_SCAN, 1).Build();
274 wrapper.Call(CMD::BLE_START_SCAN_EX, 1).Build();
299 wrapper.Call(CMD::BLE_STOP_SCAN, 1).Build();
325 wrapper.Call(CMD::BLE_START_ADV_EX, 1).Call(CMD::GET_LOCAL_ADDR, 0).Build();
342 wrapper.Call(CMD::BLE_STOP_ADV, 1).Build();
369 wrapper.Call(CMD::BLE_START_SCAN_EX, 1).Build();
381 wrapper.Call(CMD::BLE_START_ADV_EX, 1).Call(CMD::GET_LOCAL_ADDR, 1).Build();
388 wrapper.Call(CMD::BLE_STOP_ADV, 1).Call(CMD::BLE_STOP_SCAN, 1).Build();
[all …]

12345678910>>...43