/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/ |
D | pan_sdp.cpp | 28 int result = BT_SUCCESS; in Register() local 30 result = RegisterServiceInfo(); in Register() 31 if (result != BT_SUCCESS) { in Register() 32 LOG_ERROR("[PAN SDP] RegisterServiceInfo result = %{public}d", result); in Register() 33 return result; in Register() 35 result = AddPanDescriptionList(); in Register() 36 if (result != BT_SUCCESS) { in Register() 37 LOG_ERROR("[PAN SDP] AddPanDescriptionList result = %{public}d", result); in Register() 38 return result; in Register() 40 result = AddPanSecurityDescriptionId(); in Register() [all …]
|
/foundation/multimedia/audio_framework/frameworks/native/ohaudio/test/unittest/oh_audio_stream_builder_test/src/ |
D | oh_audio_stream_builder_unit_test.cpp | 81 OH_AudioStream_Result result = OH_AudioStreamBuilder_Create(&builder, type); variable 82 EXPECT_EQ(result, AUDIOSTREAM_SUCCESS); 84 result = OH_AudioStreamBuilder_Destroy(builder); 85 EXPECT_EQ(result, AUDIOSTREAM_SUCCESS); 97 OH_AudioStream_Result result = OH_AudioStreamBuilder_Create(&builder, type); variable 98 EXPECT_EQ(result, AUDIOSTREAM_SUCCESS); 100 result = OH_AudioStreamBuilder_Destroy(builder); 101 EXPECT_EQ(result, AUDIOSTREAM_SUCCESS); 113 OH_AudioStream_Result result = OH_AudioStreamBuilder_Destroy(builder); variable 114 EXPECT_TRUE(result == AUDIOSTREAM_ERROR_INVALID_PARAM); [all …]
|
/foundation/distributeddatamgr/relational_store/test/js/rdb/unittest/src/ |
D | RdbstorePredicatesJsunit.test.js | 129 let result = await rdbStore.query(predicates); 130 expect(1).assertEqual(result.rowCount); 131 result.close() 132 result = null 148 let result = await rdbStore.query(predicates); 149 expect(2).assertEqual(result.rowCount); 150 result.close() 151 result = null 167 let result = await rdbStore.query(predicates); 168 expect(3).assertEqual(result.rowCount); [all …]
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/hidumphelper/ |
D | hidump_helper.cpp | 71 int32_t HidumpHelper::Dump(const std::vector<std::string>& args, std::string &result) in Dump() argument 74 result.clear(); in Dump() 78 return ProcessDump(HidumpFlag::GET_HELP, result); in Dump() 83 errCode = ProcessDump(HidumpFlag::UNKNOWN, result); in Dump() 85 errCode = ProcessDump(flag->second, result); in Dump() 91 int32_t HidumpHelper::ProcessDump(const HidumpFlag &flag, std::string &result) in ProcessDump() argument 97 errCode = ShowHelp(result); in ProcessDump() 101 errCode = ShowAllLoadedComps(result); in ProcessDump() 105 errCode = ShowAllEnabledComps(result); in ProcessDump() 109 errCode = ShowAllTaskInfos(result); in ProcessDump() [all …]
|
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/ |
D | RdbstorePredicatesJsunit.test.js | 133 let result = await rdbStore.query(predicates); 134 expect(1).assertEqual(result.rowCount); 135 result.close() 136 result = null 152 let result = await rdbStore.query(predicates); 153 expect(2).assertEqual(result.rowCount); 154 result.close() 155 result = null 171 let result = await rdbStore.query(predicates); 172 expect(3).assertEqual(result.rowCount); [all …]
|
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
D | napi_avsession_enum.cpp | 41 napi_value result = nullptr; in ExportLoopMode() local 42 napi_create_object(env, &result); in ExportLoopMode() 44 (void)SetNamedProperty(env, result, "LOOP_MODE_SEQUENCE", AVPlaybackState::LOOP_MODE_SEQUENCE); in ExportLoopMode() 45 (void)SetNamedProperty(env, result, "LOOP_MODE_SINGLE", AVPlaybackState::LOOP_MODE_SINGLE); in ExportLoopMode() 46 (void)SetNamedProperty(env, result, "LOOP_MODE_LIST", AVPlaybackState::LOOP_MODE_LIST); in ExportLoopMode() 47 (void)SetNamedProperty(env, result, "LOOP_MODE_SHUFFLE", AVPlaybackState::LOOP_MODE_SHUFFLE); in ExportLoopMode() 49 napi_object_freeze(env, result); in ExportLoopMode() 50 return result; in ExportLoopMode() 55 napi_value result = nullptr; in ExportAVCastCategory() local 56 napi_create_object(env, &result); in ExportAVCastCategory() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/ |
D | btm_controller.c | 311 int result = HCI_Reset(); in BtmHciReset() local 312 if (result != BT_SUCCESS) { in BtmHciReset() 313 LOG_ERROR("HCI_Reset failed: %{public}d", result); in BtmHciReset() 314 return result; in BtmHciReset() 319 result = BT_OPERATION_FAILED; in BtmHciReset() 323 result = BT_OPERATION_FAILED; in BtmHciReset() 326 return result; in BtmHciReset() 331 int result = HCI_ReadBufferSize(); in BtmReadBufferSize() local 332 if (result != BT_SUCCESS) { in BtmReadBufferSize() 333 LOG_ERROR("HCI_ReadBufferSize failed: %{public}d", result); in BtmReadBufferSize() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/opp/ |
D | opp_sdp_server.cpp | 27 int result = BT_SUCCESS; in Register() local 31 result = AddServiceClassIdList(); in Register() 32 if (result != BT_SUCCESS) { in Register() 33 HILOGE("[OPP SDP SERVER] Sdp AddServiceClassIdList result = %{public}d", result); in Register() 34 return result; in Register() 37 result = AddProtocolDescriptorList(rfcommScn); in Register() 38 if (result != BT_SUCCESS) { in Register() 39 HILOGE("[OPP SDP SERVER] Sdp AddProtocolDescriptorList result = %{public}d", result); in Register() 40 return result; in Register() 43 result = AddBrowseGroupList(); in Register() [all …]
|
/foundation/communication/netmanager_base/test/netmanagerutils/unittest/netmanager_base_common_test/ |
D | ut_netmanager_base_common.cpp | 101 std::vector<std::string> result = CommonUtils::Split(TEST_TEXT, SPLIT); variable 102 ASSERT_FALSE(result.empty()); 112 std::vector<std::string> result = CommonUtils::Split({}, SPLIT); variable 113 ASSERT_TRUE(result.empty()); 123 auto result = CommonUtils::Strip(TEST_TEXT, '?'); variable 124 ASSERT_FALSE(result.empty()); 134 auto result = CommonUtils::IsValidIPV4(TEST_TEXT); variable 135 ASSERT_FALSE(result); 145 auto result = CommonUtils::IsValidIPV4({}); variable 146 ASSERT_FALSE(result); [all …]
|
/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/ |
D | camera_capture_video.cpp | 35 int32_t result = 0; in PhotoModeUsage() local 37 result = fprintf(fp, in PhotoModeUsage() 47 if (result < 0) { in PhotoModeUsage() 48 MEDIA_ERR_LOG("Failed to display menu, %{public}d", result); in PhotoModeUsage() 54 int32_t result = 0; in VideoModeUsage() local 56 result = fprintf(fp, in VideoModeUsage() 66 if (result < 0) { in VideoModeUsage() 67 MEDIA_ERR_LOG("Failed to display menu, %{public}d", result); in VideoModeUsage() 73 int32_t result = 0; in DoublePreviewModeUsage() local 75 result = fprintf(fp, in DoublePreviewModeUsage() [all …]
|
/foundation/filemanagement/user_file_service/test/unittest/ |
D | external_notify_test.cpp | 163 int result = g_fah->GetRoots(info); variable 164 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 172 result = g_fah->Mkdir(parentUri, "uri_dir1", newDirUriTest1); 173 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 175 result = g_fah->Mkdir(parentUri, "uri_dir2", newDirUriTest2); 176 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 178 result = g_fah->CreateFile(parentUri, "uri_file1", newFileUri1); 179 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 182 result = g_fah->CreateFile(parentUri, "uri_file2", newFileUri2); 183 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); [all …]
|
D | medialibrary_file_access_test.cpp | 115 int result = g_fah->GetRoots(info); in GetParentUri() local 116 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); in GetParentUri() 140 int result = g_fah->Access(g_newDirUri, isExist); variable 141 EXPECT_NE(result, OHOS::FileAccessFwk::ERR_OK); 143 result = g_fah->Mkdir(parentUri, "Download", g_newDirUri); 144 EXPECT_NE(result, OHOS::FileAccessFwk::ERR_OK); 153 result = g_fah->ListFile(fileInfo, offset, maxCount, filter, fileInfoVec); 154 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 162 result = g_fah->Mkdir(g_newDirUri, "test1", newDirUriTest); 163 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); [all …]
|
D | external_file_access_test.cpp | 135 int result = g_fah->GetRoots(info); variable 136 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 141 result = g_fah->Mkdir(parentUri, "test1", newDirUriTest1); 142 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 144 … result = g_fah->CreateFile(newDirUriTest1, "external_file_access_OpenFile_0000.txt", newFileUri); 145 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 147 result = g_fah->OpenFile(newFileUri, WRITE_READ, fd); 148 EXPECT_EQ(result, OHOS::FileAccessFwk::ERR_OK); 149 GTEST_LOG_(INFO) << "OpenFile_0000 result:" << result; 151 result = g_fah->Delete(newDirUriTest1); [all …]
|
/foundation/distributeddatamgr/relational_store/test/js/dataability/unittest/src/ |
D | DataAbilityPredicatesJsunit.test.js | 144 let result = await rdbStore.query(predicates); 145 expect(1).assertEqual(result.rowCount); 146 result = null 164 let result = await rdbStore.query(predicates); 165 expect(2).assertEqual(result.rowCount); 166 result = null 184 let result = await rdbStore.query(predicates); 185 expect(3).assertEqual(result.rowCount); 186 result = null 204 let result = await rdbStore.query(predicates); [all …]
|
/foundation/ability/ability_runtime/services/appmgr/src/ |
D | app_spawn_client.cpp | 82 ErrCode result = ERR_OK; in PreStartNWebSpawnProcessImpl() local 85 result = OpenConnection(); in PreStartNWebSpawnProcessImpl() 86 if (FAILED(result)) { in PreStartNWebSpawnProcessImpl() 88 return result; in PreStartNWebSpawnProcessImpl() 95 return result; in PreStartNWebSpawnProcessImpl() 120 ErrCode result = ERR_OK; in StartProcessImpl() local 123 result = OpenConnection(); in StartProcessImpl() 124 if (FAILED(result)) { in StartProcessImpl() 126 return result; in StartProcessImpl() 139 result = socket_->WriteMessage(msgWrapper.GetMsgBuf(), msgWrapper.GetMsgLength()); in StartProcessImpl() [all …]
|
/foundation/ability/ability_runtime/tools/test/unittest/aa/ |
D | accessibility_ability_utils_test.cpp | 53 auto result = AccessibilityUtils::GetStaticCapabilityNames(abilityInfo); variable 54 EXPECT_EQ(result, ""); 67 auto result = AccessibilityUtils::GetStaticCapabilityNames(abilityInfo); variable 68 EXPECT_EQ(result, "r"); 81 auto result = AccessibilityUtils::GetStaticCapabilityNames(abilityInfo); variable 82 EXPECT_EQ(result, "z"); 98 auto result = AccessibilityUtils::FormatAbilityInfos(installedAbilities); variable 99 EXPECT_EQ(result, headerStream.str()); 117 auto result = AccessibilityUtils::FormatAbilityInfos(installedAbilities); variable 133 EXPECT_EQ(result, resultstring); [all …]
|
/foundation/ability/ability_runtime/test/unittest/extension_config_mgr_test/ |
D | extension_config_mgr_test.cpp | 89 bool result = false; variable 90 …result = (mgr.blocklistConfig_.find(BLOCK_LIST_ITEM_SERVICE_EXTENSION) != mgr.blocklistConfig_.end… 91 EXPECT_TRUE(result); 92 …result = (mgr.blocklistConfig_.find(BLOCK_LIST_ITEM_FORM_EXTENSION) != mgr.blocklistConfig_.end()); 93 EXPECT_TRUE(result); 94 …result = (mgr.blocklistConfig_.find(BLOCK_LIST_ITEM_FILE_ACCESS_EXTENSION) != mgr.blocklistConfig_… 95 EXPECT_TRUE(result); 96 …result = (mgr.blocklistConfig_.find(BLOCK_LIST_ITEM_BACKUP_EXTENSION) != mgr.blocklistConfig_.end(… 97 EXPECT_TRUE(result); 98 …result = (mgr.blocklistConfig_.find(BLOCK_LIST_ITEM_ENTERPRISE_ADMIN_EXTENSION) != mgr.blocklistCo… [all …]
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/input/ |
D | camera_napi.cpp | 63 napi_value result = nullptr; in CameraNapiConstructor() local 66 napi_get_undefined(env, &result); in CameraNapiConstructor() 84 return result; in CameraNapiConstructor() 166 napi_value result = nullptr; in CreateCameraManagerInstance() local 173 napi_get_undefined(env, &result); in CreateCameraManagerInstance() 174 result = CameraManagerNapi::CreateCameraManager(env); in CreateCameraManagerInstance() 175 return result; in CreateCameraManagerInstance() 181 napi_value result = nullptr; in CreateModeManagerInstance() local 188 napi_get_undefined(env, &result); in CreateModeManagerInstance() 189 result = ModeManagerNapi::CreateModeManager(env); in CreateModeManagerInstance() [all …]
|
/foundation/resourceschedule/device_standby/frameworks/src/ |
D | standby_service_proxy.cpp | 53 ErrCode result = InnerTransact( in SubscribeStandbyCallback() local 55 if (result != ERR_OK) { in SubscribeStandbyCallback() 56 STANDBYSERVICE_LOGW("SubscribeSleepStateEvent fail: transact ErrCode=%{public}d", result); in SubscribeStandbyCallback() 59 if (!reply.ReadInt32(result)) { in SubscribeStandbyCallback() 63 if (result != ERR_OK) { in SubscribeStandbyCallback() 66 return result; in SubscribeStandbyCallback() 88 …ErrCode result = InnerTransact(static_cast<uint32_t>(IStandbyInterfaceCode::UNSUBSCRIBE_STANDBY_CA… in UnsubscribeStandbyCallback() local 90 if (result != ERR_OK) { in UnsubscribeStandbyCallback() 91 STANDBYSERVICE_LOGW("UnsubscribeSleepStateEvent fail: transact ErrCode=%{public}d", result); in UnsubscribeStandbyCallback() 94 if (!reply.ReadInt32(result)) { in UnsubscribeStandbyCallback() [all …]
|
/foundation/multimedia/audio_framework/frameworks/native/ohaudio/test/unittest/oh_audio_capture_test/src/ |
D | oh_audio_capture_unit_test.cpp | 48 OH_AudioStream_Result result = OH_AudioStreamBuilder_GenerateCapturer(builder, &audioCapturer); variable 49 EXPECT_TRUE(result == AUDIOSTREAM_SUCCESS); 64 OH_AudioStream_Result result = OH_AudioStreamBuilder_Create(&builder, type); variable 65 EXPECT_TRUE(result == AUDIOSTREAM_SUCCESS); 68 result = OH_AudioStreamBuilder_GenerateCapturer(builder, &audioCapturer); 69 EXPECT_TRUE(result == AUDIOSTREAM_ERROR_INVALID_PARAM); 84 OH_AudioStream_Result result = OH_AudioStreamBuilder_GenerateCapturer(builder, &audioCapturer); variable 86 result = OH_AudioCapturer_Start(audioCapturer); 87 EXPECT_TRUE(result == AUDIOSTREAM_SUCCESS); 103 OH_AudioStream_Result result = OH_AudioStreamBuilder_GenerateCapturer(builder, &audioCapturer); variable [all …]
|
/foundation/multimedia/audio_framework/frameworks/native/ohaudio/test/unittest/oh_audio_render_test/src/ |
D | oh_audio_render_unit_test.cpp | 49 OH_AudioStream_Result result = OH_AudioStreamBuilder_GenerateRenderer(builder, &audioRenderer); variable 50 EXPECT_TRUE(result == AUDIOSTREAM_SUCCESS); 65 OH_AudioStream_Result result = OH_AudioStreamBuilder_Create(&builder, type); variable 66 EXPECT_TRUE(result == AUDIOSTREAM_SUCCESS); 69 result = OH_AudioStreamBuilder_GenerateRenderer(builder, &audioRenderer); 70 EXPECT_TRUE(result == AUDIOSTREAM_ERROR_INVALID_PARAM); 83 OH_AudioStream_Result result = OH_AudioStreamBuilder_GenerateRenderer(builder, &audioRenderer); variable 85 result = OH_AudioRenderer_Start(audioRenderer); 86 EXPECT_TRUE(result == AUDIOSTREAM_SUCCESS); 102 OH_AudioStream_Result result = OH_AudioStreamBuilder_GenerateRenderer(builder, &audioRenderer); variable [all …]
|
/foundation/multimedia/audio_framework/frameworks/js/napi/audio_common/src/ |
D | audio_common_napi.cpp | 93 bool result = false; in IsLegalInputArgumentVolType() local 103 result = true; in IsLegalInputArgumentVolType() 106 result = false; in IsLegalInputArgumentVolType() 109 return result; in IsLegalInputArgumentVolType() 114 bool result = false; in IsLegalInputArgumentDeviceFlag() local 124 result = true; in IsLegalInputArgumentDeviceFlag() 127 result = false; in IsLegalInputArgumentDeviceFlag() 130 return result; in IsLegalInputArgumentDeviceFlag() 135 bool result = false; in IsLegalInputArgumentActiveDeviceType() local 139 result = true; in IsLegalInputArgumentActiveDeviceType() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
D | bluetooth_avrcp_ct_server.cpp | 61 void OnPressButton(const RawAddress &rawAddr, uint8_t button, int result) override in OnPressButton() argument 63 impl_->OnPressButton(rawAddr, button, result); in OnPressButton() 66 void OnReleaseButton(const RawAddress &rawAddr, uint8_t button, int result) override in OnReleaseButton() argument 68 impl_->OnReleaseButton(rawAddr, button, result); in OnReleaseButton() 71 void OnSetAddressedPlayer(const RawAddress &rawAddr, int result, int detail) override in OnSetAddressedPlayer() argument 77 const std::vector<std::string> &folderNames, int result, int detail) override in OnSetBrowsedPlayer() argument 79 impl_->OnSetBrowsedPlayer(rawAddr, uidCounter, numOfItems, folderNames, result, detail); in OnSetBrowsedPlayer() 83 const std::vector<uint8_t> &events, int result) override in OnGetCapabilities() argument 85 impl_->OnGetCapabilities(rawAddr, companies, events, result); in OnGetCapabilities() 89 const RawAddress &rawAddr, std::vector<uint8_t> attributes, int result) override in OnGetPlayerAppSettingAttributes() argument [all …]
|
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/ |
D | dms_version_manager_test.cpp | 61 bool result = DmsVersionManager::CompareDmsVersion(dmsVersion, thresholdDmsVersion); variable 62 EXPECT_EQ(result, true); 63 DTEST_LOG << "DmsVersionManagerTest CompareDmsVersionTest_001 end ret:" << result << std::endl; 77 bool result = DmsVersionManager::CompareDmsVersion(dmsVersion, thresholdDmsVersion); variable 78 EXPECT_EQ(result, true); 79 DTEST_LOG << "DmsVersionManagerTest CompareDmsVersionTest_002 end ret:" << result << std::endl; 93 bool result = DmsVersionManager::CompareDmsVersion(dmsVersion, thresholdDmsVersion); variable 94 EXPECT_EQ(result, true); 95 DTEST_LOG << "DmsVersionManagerTest CompareDmsVersionTest_003 end ret:" << result << std::endl; 109 bool result = DmsVersionManager::CompareDmsVersion(dmsVersion, thresholdDmsVersion); variable [all …]
|
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/ |
D | netpolicy_exec.cpp | 27 int32_t result = NetPolicyClient::GetInstance().SetPolicyByUid(context->uid_, context->policy_); in ExecSetPolicyByUid() local 28 if (result != NETMANAGER_SUCCESS) { in ExecSetPolicyByUid() 30 std::to_string(context->uid_).c_str(), context->policy_, result); in ExecSetPolicyByUid() 31 context->SetErrorCode(result); in ExecSetPolicyByUid() 34 context->SetErrorCode(result); in ExecSetPolicyByUid() 40 int32_t result = NetPolicyClient::GetInstance().GetPolicyByUid(context->uid_, context->policy_); in ExecGetPolicyByUid() local 41 if (result != NETMANAGER_SUCCESS) { in ExecGetPolicyByUid() 42 context->SetErrorCode(result); in ExecGetPolicyByUid() 45 context->SetErrorCode(result); in ExecGetPolicyByUid() 51 …int32_t result = NetPolicyClient::GetInstance().GetUidsByPolicy(context->policy_, context->uidToge… in ExecGetUidsByPolicy() local [all …]
|