Home
last modified time | relevance | path

Searched full:result (Results 1 – 25 of 3508) sorted by relevance

12345678910>>...141

/base/telephony/core_service/utils/common/src/
Denum_convert.cpp24 std::string result = ""; in GetBoolValue() local
26 result = "FALSE"; in GetBoolValue()
28 result = "TRUE"; in GetBoolValue()
30 return result; in GetBoolValue()
35 std::string result = ""; in GetSimState() local
38 result = "SIM_STATE_UNKNOWN"; in GetSimState()
41 result = "SIM_STATE_NOT_PRESENT"; in GetSimState()
44 result = "SIM_STATE_LOCKED"; in GetSimState()
47 result = "SIM_STATE_NOT_READY"; in GetSimState()
50 result = "SIM_STATE_READY"; in GetSimState()
[all …]
/base/telephony/cellular_data/services/src/
Dcellular_data_dump_helper.cpp27 bool CellularDataDumpHelper::Dump(const std::vector<std::string> &args, std::string &result) const in Dump()
29 result.clear(); in Dump()
32 ShowHelp(result); in Dump()
36 ShowCellularDataInfo(result); in Dump()
47 void CellularDataDumpHelper::ShowHelp(std::string &result) const in ShowHelp()
49 result.append("CellularData:\n"); in ShowHelp()
50 result.append("Usage:dump <command> [options]\n"); in ShowHelp()
51 result.append("Description:\n"); in ShowHelp()
52 result.append("-cellular_data_info "); in ShowHelp()
53 result.append("dump all cellular_data information in the system\n"); in ShowHelp()
[all …]
Dcellular_data_service_stub.cpp53 int32_t result = it->second(data, reply); in OnRemoteRequest() local
55 return result; in OnRemoteRequest()
102 int32_t result = IsCellularDataEnabled(dataEnabled); in OnIsCellularDataEnabled() local
103 if (!reply.WriteInt32(result)) { in OnIsCellularDataEnabled()
107 if (result != TELEPHONY_ERR_SUCCESS) { in OnIsCellularDataEnabled()
108 return result; in OnIsCellularDataEnabled()
120 int32_t result = EnableCellularData(enable); in OnEnableCellularData() local
121 if (!reply.WriteInt32(result)) { in OnEnableCellularData()
125 return result; in OnEnableCellularData()
131 int32_t result = EnableIntelligenceSwitch(enable); in OnEnableIntelligenceSwitch() local
[all …]
/base/account/os_account/frameworks/osaccount/core/src/
Dos_account_proxy.cpp50 ErrCode result = SendRequest(OsAccountInterfaceCode::CREATE_OS_ACCOUNT, data, reply); in CreateOsAccount() local
51 if (result != ERR_OK) { in CreateOsAccount()
52 ACCOUNT_LOGE("SendRequest err, result %{public}d.", result); in CreateOsAccount()
53 return result; in CreateOsAccount()
56 result = reply.ReadInt32(); in CreateOsAccount()
57 if (result != ERR_OK) { in CreateOsAccount()
59 return result; in CreateOsAccount()
104 …ErrCode result = SendRequest(OsAccountInterfaceCode::CREATE_OS_ACCOUNT_WITH_SHORT_NAME, data, repl… in CreateOsAccount() local
105 if (result != ERR_OK) { in CreateOsAccount()
106 ACCOUNT_LOGE("SendRequest err, result %{public}d.", result); in CreateOsAccount()
[all …]
/base/telephony/state_registry/services/src/
Dtelephony_state_registry_dump_helper.cpp25 std::vector<TelephonyStateRegistryRecord> &stateRecords, std::string &result) const in Dump()
27 result.clear(); in Dump()
28 ShowTelephonyChangeState(result); in Dump()
29 return ShowTelephonyStateRegistryInfo(stateRecords, result); in Dump()
42 std::vector<TelephonyStateRegistryRecord> &stateRecords, std::string &result) const in ShowTelephonyStateRegistryInfo()
44result.append("registrations: count= ").append(std::to_string(stateRecords.size())).append("\n"); in ShowTelephonyStateRegistryInfo()
48 result.append("CellularDataConnectState Register: "); in ShowTelephonyStateRegistryInfo()
50 result.append("CellularDataFlow Register: "); in ShowTelephonyStateRegistryInfo()
52 result.append("CallState Register: "); in ShowTelephonyStateRegistryInfo()
54 result.append("SimState Register: "); in ShowTelephonyStateRegistryInfo()
[all …]
/base/powermgr/battery_statistics/utils/native/src/
Dstats_utils.cpp24 std::string result = ""; in ConvertTypeForConn() local
27 result = GET_VARIABLE_NAME(STATS_TYPE_BLUETOOTH_BR_ON); in ConvertTypeForConn()
30 result = GET_VARIABLE_NAME(STATS_TYPE_BLUETOOTH_BR_SCAN); in ConvertTypeForConn()
33 result = GET_VARIABLE_NAME(STATS_TYPE_BLUETOOTH_BLE_ON); in ConvertTypeForConn()
36 result = GET_VARIABLE_NAME(STATS_TYPE_BLUETOOTH_BLE_SCAN); in ConvertTypeForConn()
39 result = GET_VARIABLE_NAME(STATS_TYPE_WIFI_ON); in ConvertTypeForConn()
42 result = GET_VARIABLE_NAME(STATS_TYPE_WIFI_SCAN); in ConvertTypeForConn()
45 result = GET_VARIABLE_NAME(STATS_TYPE_PHONE_ACTIVE); in ConvertTypeForConn()
48 result = GET_VARIABLE_NAME(STATS_TYPE_PHONE_DATA); in ConvertTypeForConn()
53 STATS_HILOGD(COMP_UTILS, "Convert to %{public}s", result.c_str()); in ConvertTypeForConn()
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_module_test.cpp91 MOCK_METHOD2(OnResult, void(int32_t resultCode, const AAFwk::Want &result));
130 ErrCode result = dataStoragePtr->DeleteKvStore(); in TearDownTestCase() local
131 ASSERT_EQ(result, ERR_OK); in TearDownTestCase()
137 result = dataStoragePtr->DeleteKvStore(); in TearDownTestCase()
138 ASSERT_EQ(result, ERR_OK); in TearDownTestCase()
168 ErrCode result = g_accountManagerService->AddAccount(STRING_NAME, STRING_EXTRA_INFO); variable
169 EXPECT_EQ(result, ERR_OK);
171 result = g_accountManagerService->DeleteAccount(STRING_NAME);
172 EXPECT_EQ(result, ERR_OK);
185 ErrCode result = g_accountManagerService->AddAccount(STRING_NAME, STRING_EMPTY); variable
[all …]
Dapp_account_manager_service_module_not_mock_test.cpp83 ErrCode result = g_accountManagerService->CreateAccount(STRING_NAME, option); variable
84 EXPECT_NE(result, ERR_OK);
98 ErrCode result = g_accountManagerService->CheckAppAccountSyncEnable(STRING_NAME, syncEnable); variable
99 EXPECT_NE(result, ERR_OK);
101 result = g_accountManagerService->SetAppAccess(STRING_NAME, STRING_BUNDLE_NAME, false);
102 EXPECT_NE(result, ERR_OK);
104 result = g_accountManagerService->EnableAppAccess(STRING_NAME, STRING_BUNDLE_NAME);
105 EXPECT_NE(result, ERR_OK);
107 result = g_accountManagerService->DisableAppAccess(STRING_NAME, STRING_BUNDLE_NAME);
108 EXPECT_NE(result, ERR_OK);
[all …]
/base/startup/appspawn/test/moduletest/
Dappspawn_module_test.cpp671 AppSpawnResult result; variable
673 int ret = AppSpawnClientSendMsg(commander.GetClientHandle(), reqHandle, &result);
675 EXPECT_EQ(0, result.result);
676 if (result.pid > 0) {
677 EXPECT_EQ(0, kill(result.pid, SIGKILL));
678 result.pid = DEFAULT_PID;
699 AppSpawnResult result; variable
701 int ret = AppSpawnClientSendMsg(commander.GetClientHandle(), reqHandle, &result);
703 EXPECT_EQ(0, result.result);
704 if (result.pid > 0) {
[all …]
/base/powermgr/display_manager/state_manager/service/zidl/src/
Ddisplay_power_mgr_proxy.cpp32 bool result = false; in SetDisplayState() local
39 return result; in SetDisplayState()
51 return result; in SetDisplayState()
54 if (!reply.ReadBool(result)) { in SetDisplayState()
56 return result; in SetDisplayState()
59 return result; in SetDisplayState()
67 uint32_t result = 0; in GetDisplayState() local
87 if (!reply.ReadUint32(result)) { in GetDisplayState()
92 return static_cast<DisplayState>(result); in GetDisplayState()
98 std::vector<uint32_t> result; in GetDisplayIds() local
[all …]
/base/global/resource_management/test/fuzztest/resmgr_fuzzer/
Dresmgr_fuzzer.cpp35 bool result = false; in AddResourceFuzzTest() local
38 result = rm->AddResource(testName.c_str()); in AddResourceFuzzTest()
40 return result; in AddResourceFuzzTest()
45 bool result = false; in RemoveResourceFuzzTest() local
49 result = rm->RemoveResource(testName.c_str(), overlayPaths); in RemoveResourceFuzzTest()
51 return result; in RemoveResourceFuzzTest()
56 bool result = false; in AddAppOverlayFuzzTest() local
59 result = rm->AddAppOverlay(testName.c_str()); in AddAppOverlayFuzzTest()
61 return result; in AddAppOverlayFuzzTest()
66 bool result = false; in RemoveAppOverlayFuzzTest() local
[all …]
/base/account/os_account/frameworks/appaccount/native/test/unittest/
Dapp_account_manager_test.cpp140 ErrCode result = AppAccountManager::AddAccount(STRING_EMPTY); variable
141 EXPECT_EQ(result, ERR_ACCOUNT_COMMON_INVALID_PARAMETER);
154 ErrCode result = AppAccountManager::AddAccount(STRING_NAME_OUT_OF_RANGE); variable
155 EXPECT_EQ(result, ERR_ACCOUNT_COMMON_INVALID_PARAMETER);
168 ErrCode result = AppAccountManager::AddAccount(STRING_NAME, STRING_EXTRA_INFO_OUT_OF_RANGE); variable
169 EXPECT_EQ(result, ERR_ACCOUNT_COMMON_INVALID_PARAMETER);
182 ErrCode result = AppAccountManager::AddAccount(STRING_NAME, STRING_EXTRA_INFO); variable
183 EXPECT_EQ(result, ERR_APPACCOUNT_SERVICE_GET_BUNDLE_NAME);
196 ErrCode result = AppAccountManager::CreateAccount(STRING_NAME_OUT_OF_RANGE, option); variable
197 EXPECT_EQ(result, ERR_ACCOUNT_COMMON_INVALID_PARAMETER);
[all …]
/base/telephony/call_manager/services/call_manager_service/src/
Dcall_manager_service_stub.cpp246 int32_t result = RegisterVoipCallManagerCallback(); in OnRegisterVoipCallManagerCallback() local
247 TELEPHONY_LOGI("OnRegisterVoipCallManagerCallback result:%{public}d", result); in OnRegisterVoipCallManagerCallback()
248 if (!reply.WriteInt32(result)) { in OnRegisterVoipCallManagerCallback()
258 int32_t result = TELEPHONY_ERR_FAIL; in OnUnRegisterVoipCallManagerCallback() local
259 result = UnRegisterVoipCallManagerCallback(); in OnUnRegisterVoipCallManagerCallback()
260 if (!reply.WriteInt32(result)) { in OnUnRegisterVoipCallManagerCallback()
264 return result; in OnUnRegisterVoipCallManagerCallback()
282 int32_t result = memberFunc(data, reply); in OnRemoteRequest() local
284 return result; in OnRemoteRequest()
292 int32_t result = TELEPHONY_ERR_FAIL; in OnRegisterCallBack() local
[all …]
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_control_manager.cpp195 ErrCode result = newPtr->MoveData(oldPtr); in MoveData() local
196 if (result != ERR_OK) { in MoveData()
197 ACCOUNT_LOGE("MoveData failed, storeId=%{public}s, result=%{public}u", in MoveData()
198 storeId.c_str(), result); in MoveData()
201 result = oldPtr->DeleteKvStore(); in MoveData()
202 if (result != ERR_OK) { in MoveData()
203 …CCOUNT_LOGE("DeleteKvStore failed, storeId=%{public}s, result=%{public}u", storeId.c_str(), result in MoveData()
230 ErrCode result = GetAccountInfoFromDataStorage(appAccountInfo, dataStoragePtr); in AddAccount() local
231 if (result != ERR_OK) { in AddAccount()
232 ACCOUNT_LOGE("failed to get account info from data storage, result %{public}d.", result); in AddAccount()
[all …]
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_proxy.cpp48 ErrCode result = SendRequest(code, data, reply); in SendRequestWithTwoStr() local
49 if (result != ERR_OK) { in SendRequestWithTwoStr()
50 return result; in SendRequestWithTwoStr()
52 if (!reply.ReadInt32(result)) { in SendRequestWithTwoStr()
53 ACCOUNT_LOGE("failed to read result for code %{public}d.", code); in SendRequestWithTwoStr()
56 if (result != ERR_OK) { in SendRequestWithTwoStr()
57 ACCOUNT_LOGE("result failed for code %{public}d, result %{public}d.", code, result); in SendRequestWithTwoStr()
59 return result; in SendRequestWithTwoStr()
95 ErrCode result = SendRequest(AppAccountInterfaceCode::ADD_ACCOUNT_IMPLICITLY, data, reply); in AddAccountImplicitly() local
96 if (result != ERR_OK) { in AddAccountImplicitly()
[all …]
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_manager_stub.cpp44 ErrCode result = NO_ERROR; in OnRemoteRequest() local
47 result = HandlePublish(data, reply); in OnRemoteRequest()
51 result = HandlePublishNotificationForIndirectProxy(data, reply); in OnRemoteRequest()
55 result = HandleCancel(data, reply); in OnRemoteRequest()
59 result = HandleCancelAll(data, reply); in OnRemoteRequest()
63 result = HandleCancelAsBundleOption(data, reply); in OnRemoteRequest()
67 result = HandleCancelAsBundleAndUser(data, reply); in OnRemoteRequest()
71 result = HandleCancelAsBundle(data, reply); in OnRemoteRequest()
75 result = HandleAddSlotByType(data, reply); in OnRemoteRequest()
79 result = HandleAddSlots(data, reply); in OnRemoteRequest()
[all …]
Dans_manager_proxy.cpp67 …ErrCode result = InnerTransact(NotificationInterfaceCode::PUBLISH_NOTIFICATION, option, data, repl… in Publish() local
68 if (result != ERR_OK) { in Publish()
69 ANS_LOGE("[Publish] fail: transact ErrCode=%{public}d", result); in Publish()
73 if (!reply.ReadInt32(result)) { in Publish()
74 ANS_LOGE("[Publish] fail: read result failed."); in Publish()
78 return result; in Publish()
106 …ErrCode result = InnerTransact(NotificationInterfaceCode::PUBLISH_NOTIFICATION_INDIRECTPROXY, opti… in PublishNotificationForIndirectProxy() local
107 if (result != ERR_OK) { in PublishNotificationForIndirectProxy()
108 ANS_LOGE("[PublishNotificationForIndirectProxy] fail: transact ErrCode=%{public}d", result); in PublishNotificationForIndirectProxy()
112 if (!reply.ReadInt32(result)) { in PublishNotificationForIndirectProxy()
[all …]
/base/telephony/sms_mms/services/sms/
Dsms_dump_helper.cpp24 bool SmsDumpHelper::Dump(const std::vector<std::string> &args, std::string &result) const in Dump()
26 result.clear(); in Dump()
27 ShowHelp(result); in Dump()
28 ShowSmsInfo(result); in Dump()
49 void SmsDumpHelper::ShowHelp(std::string &result) const in ShowHelp()
51 result.append("Usage:dump <command> [options]\n") in ShowHelp()
61 void SmsDumpHelper::ShowSmsInfo(std::string &result) const in ShowSmsInfo()
63 result.append("SmsService: \n"); in ShowSmsInfo()
64 result.append("BindTime = "); in ShowSmsInfo()
65 result.append(DelayedSingleton<SmsService>::GetInstance()->GetBindTime()); in ShowSmsInfo()
[all …]
/base/web/webview/test/unittest/ohos_adapter/res_sched_adapter_impl_test/
Dres_sched_adapter_impl_test.cpp61 bool result = resAdapter->ReportKeyThread(static_cast<ResSchedStatusAdapter>(-1), variable
63 EXPECT_FALSE(result);
64 result = resAdapter->ReportKeyThread(ResSchedStatusAdapter::THREAD_CREATED,
66 EXPECT_FALSE(result);
67 result = resAdapter->ReportKeyThread(ResSchedStatusAdapter::THREAD_CREATED,
69 EXPECT_TRUE(result);
70 result = resAdapter->ReportKeyThread(ResSchedStatusAdapter::THREAD_CREATED,
72 EXPECT_TRUE(result);
74 result = resAdapter->ReportKeyThread(ResSchedStatusAdapter::THREAD_CREATED,
76 EXPECT_TRUE(result);
[all …]
/base/telephony/call_manager/interfaces/innerkits/
Di_call_status_callback.h57 * @brief update the event result
75 * @param callWaitResponse[in], contains result, status and calssCw
83 * @param result[in], 0 means the result is success, others is failure
86 virtual int32_t UpdateSetWaitingResult(const int32_t result) = 0;
91 * @param callRestrictionResult[in], contains result, status and calssCw
99 * @param result[in], 0 means the result is success, others is failure
102 virtual int32_t UpdateSetRestrictionResult(int32_t result) = 0;
107 * @param result[in], 0 means the result is success, others is failure
110 virtual int32_t UpdateSetRestrictionPasswordResult(int32_t result) = 0;
115 * @param callTransferResponse[in], contains result, status, calssx, reason, number, time .etc
[all …]
Dcall_status_callback_proxy.h60 * @brief update the event result
78 * @param callWaitResponse[in], contains result, status and calssCw
86 * @param result[in], 0 means the result is success, others is failure
89 int32_t UpdateSetWaitingResult(const int32_t result) override;
94 * @param callRestrictionResult[in], contains result, status and calssCw
102 * @param result[in], 0 means the result is success, others is failure
105 int32_t UpdateSetRestrictionResult(const int32_t result) override;
110 * @param result[in], 0 means the result is success, others is failure
113 int32_t UpdateSetRestrictionPasswordResult(const int32_t result) override;
118 * @param callTransferResponse[in], contains result, status, calssx, reason, number, time .etc
[all …]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
Dark_media_codec_decoder_adapter_wrapper.cpp32 int32_t result = ctocpp_->CreateVideoDecoderByMime(str); in CreateVideoDecoderByMime() local
34 return (OHOS::NWeb::DecoderAdapterCode)result; in CreateVideoDecoderByMime()
40 int32_t result = ctocpp_->CreateVideoDecoderByName(str); in CreateVideoDecoderByName() local
42 return (OHOS::NWeb::DecoderAdapterCode)result; in CreateVideoDecoderByName()
48 int32_t result; in ConfigureDecoder() local
50 result = ctocpp_->ConfigureDecoder(nullptr); in ConfigureDecoder()
52 result = ctocpp_->ConfigureDecoder(new ArkDecoderFormatAdapterImpl(format)); in ConfigureDecoder()
54 return (OHOS::NWeb::DecoderAdapterCode)result; in ConfigureDecoder()
60 int32_t result; in SetParameterDecoder() local
62 result = ctocpp_->SetParameterDecoder(nullptr); in SetParameterDecoder()
[all …]
/base/useriam/face_auth/services/src/
Dface_auth_all_in_one_executor_hdi.cpp56 IamResultCode result = ConvertResultCode(status); in GetExecutorInfo() local
57 if (result != IamResultCode::SUCCESS) { in GetExecutorInfo()
58 IAM_LOGE("GetExecutorInfo fail result %{public}d", result); in GetExecutorInfo()
59 return result; in GetExecutorInfo()
61 result = MoveHdiExecutorInfo(localInfo, info); in GetExecutorInfo()
62 if (result != IamResultCode::SUCCESS) { in GetExecutorInfo()
63 IAM_LOGE("MoveHdiExecutorInfo fail result %{public}d", result); in GetExecutorInfo()
64 return result; in GetExecutorInfo()
74 IamResultCode result = ConvertResultCode(status); in OnRegisterFinish() local
75 if (result != IamResultCode::SUCCESS) { in OnRegisterFinish()
[all …]
/base/useriam/fingerprint_auth/services/src/
Dfingerprint_auth_all_in_one_executor_hdi.cpp56 IamResultCode result = ConvertResultCode(status); in GetExecutorInfo() local
57 if (result != IamResultCode::SUCCESS) { in GetExecutorInfo()
58 IAM_LOGE("GetExecutorInfo fail result %{public}d", result); in GetExecutorInfo()
59 return result; in GetExecutorInfo()
61 result = MoveHdiExecutorInfo(localInfo, info); in GetExecutorInfo()
62 if (result != IamResultCode::SUCCESS) { in GetExecutorInfo()
63 IAM_LOGE("MoveHdiExecutorInfo fail result %{public}d", result); in GetExecutorInfo()
64 return result; in GetExecutorInfo()
74 IamResultCode result = ConvertResultCode(status); in OnRegisterFinish() local
75 if (result != IamResultCode::SUCCESS) { in OnRegisterFinish()
[all …]
/base/telephony/core_service/services/core/src/
Dcore_service_dump_helper.cpp25 bool CoreServiceDumpHelper::Dump(const std::vector<std::string> &args, std::string &result) const in Dump()
27 result.clear(); in Dump()
28 ShowHelp(result); in Dump()
29 ShowCoreServiceTimeInfo(result); in Dump()
30 ShowCoreServiceInfo(result); in Dump()
34 void CoreServiceDumpHelper::ShowHelp(std::string &result) const in ShowHelp()
36 result.append("CoreService:\n") in ShowHelp()
58 void CoreServiceDumpHelper::ShowCoreServiceTimeInfo(std::string &result) const in ShowCoreServiceTimeInfo()
60 result.append("Ohos core_service service:\n"); in ShowCoreServiceTimeInfo()
61 result.append("BindTime = "); in ShowCoreServiceTimeInfo()
[all …]

12345678910>>...141