Home
last modified time | relevance | path

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

12345678910>>...135

/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/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_module_test.cpp90 MOCK_METHOD2(OnResult, void(int32_t resultCode, const AAFwk::Want &result));
129 ErrCode result = dataStoragePtr->DeleteKvStore(); in TearDownTestCase() local
130 ASSERT_EQ(result, ERR_OK); in TearDownTestCase()
136 result = dataStoragePtr->DeleteKvStore(); in TearDownTestCase()
137 ASSERT_EQ(result, ERR_OK); in TearDownTestCase()
167 ErrCode result = g_accountManagerService->AddAccount(STRING_NAME, STRING_EXTRA_INFO); variable
168 EXPECT_EQ(result, ERR_OK);
170 result = g_accountManagerService->DeleteAccount(STRING_NAME);
171 EXPECT_EQ(result, ERR_OK);
184 ErrCode result = g_accountManagerService->AddAccount(STRING_NAME, STRING_EMPTY); variable
[all …]
Dapp_account_manager_service_module_not_mock_test.cpp80 ErrCode result = g_accountManagerService->CreateAccount(STRING_NAME, option); variable
81 EXPECT_NE(result, ERR_OK);
95 ErrCode result = g_accountManagerService->CheckAppAccountSyncEnable(STRING_NAME, syncEnable); variable
96 EXPECT_NE(result, ERR_OK);
98 result = g_accountManagerService->SetAppAccess(STRING_NAME, STRING_BUNDLE_NAME, false);
99 EXPECT_NE(result, ERR_OK);
101 result = g_accountManagerService->EnableAppAccess(STRING_NAME, STRING_BUNDLE_NAME);
102 EXPECT_NE(result, ERR_OK);
104 result = g_accountManagerService->DisableAppAccess(STRING_NAME, STRING_BUNDLE_NAME);
105 EXPECT_NE(result, ERR_OK);
[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/print/print_fwk/test/unittest/others/
Djs_print_extension_context_other_test.cpp39 napi_value result = GetUndefinedValue(engine); in HWTEST_F() local
40 EXPECT_EQ(result, nullptr); in HWTEST_F()
47 napi_value result = OnStartAbility(engine, info); variable
48 EXPECT_EQ(napi_undefined, result);
55 napi_value result = OnStartAbilityWithAccount(engine, info); in HWTEST_F() local
56 EXPECT_EQ(result, GetUndefinedValue(engine)); in HWTEST_F()
66 napi_value result = OnStartAbilityWithAccount(engine, info); in HWTEST_F() local
67 EXPECT_EQ(result, GetUndefinedValue(engine)); in HWTEST_F()
77 napi_value result = OnStartAbilityWithAccount(engine, info); in HWTEST_F() local
78 EXPECT_EQ(result, GetUndefinedValue(engine)); in HWTEST_F()
[all …]
/base/startup/init/test/autotest/testcases/SUB_STARTUP_TOYBOX_TOUCHTEST/
Dsub_startup_toybox_touchtest_1100.py44 result = self.driver.shell(f"help tar")
45 self.driver.Assert.contains(result, "usage: tar [-cxt] [-fvohmjkOS] [-XTCf NAME] [FILES]")
46 self.driver.Assert.contains(result, "Create, extract, or list files in a .tar ")
47 …self.driver.Assert.contains(result, "c Create x Extract t Test (li…
48 …self.driver.Assert.contains(result, "f tar FILE (default -) C Change to DIR first v Verbose …
49 …self.driver.Assert.contains(result, "o Ignore owner h Follow symlinks m Ignore m…
50 …self.driver.Assert.contains(result, "J xz compression j bzip2 compression z gzip com…
51 self.driver.Assert.contains(result,
54 result = self.driver.shell(f"tar --help")
55 self.driver.Assert.contains(result, "usage: tar [-cxt] [-fvohmjkOS] [-XTCf NAME] [FILES]")
[all …]
Dsub_startup_toybox_touchtest_0500.py38 result = self.driver.shell(f"help seq")
39 …self.driver.Assert.contains(result, "usage: seq [-w|-f fmt_str] [-s sep_str] [first] [increment] l…
40 …self.driver.Assert.contains(result, "Count from first to last, by increment. Omitted arguments def…
41 …self.driver.Assert.contains(result, "to 1. Two arguments are used as first and last. Arguments can…
42 self.driver.Assert.contains(result, "negative or floating point.")
43 …self.driver.Assert.contains(result, "-f Use fmt_str as a printf-style floating point format string…
44 … self.driver.Assert.contains(result, "-s Use sep_str as separator, default is a newline character")
45 self.driver.Assert.contains(result, "-w Pad to equal width with leading zeroes")
47 result = self.driver.shell(f"seq --help")
48 …self.driver.Assert.contains(result, "usage: seq [-w|-f fmt_str] [-s sep_str] [first] [increment] l…
[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/services/accountmgr/src/appaccount/
Dapp_account_control_manager.cpp201 ErrCode result = newPtr->MoveData(oldPtr); in MoveData() local
202 if (result != ERR_OK) { in MoveData()
203 ACCOUNT_LOGE("MoveData failed, storeId=%{public}s, result=%{public}u", in MoveData()
204 storeId.c_str(), result); in MoveData()
207 result = oldPtr->DeleteKvStore(); in MoveData()
208 if (result != ERR_OK) { in MoveData()
209 …CCOUNT_LOGE("DeleteKvStore failed, storeId=%{public}s, result=%{public}u", storeId.c_str(), result in MoveData()
242 ErrCode result = GetAccountInfoFromDataStorage(appAccountInfo, dataStoragePtr); in AddAccount() local
243 if (result != ERR_OK) { in AddAccount()
244 ACCOUNT_LOGE("failed to get account info from data storage, result %{public}d.", result); in AddAccount()
[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/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 ret = kill(result.pid, SIGKILL);
679 result.pid = DEFAULT_PID;
700 AppSpawnResult result; variable
702 int ret = AppSpawnClientSendMsg(commander.GetClientHandle(), reqHandle, &result);
704 EXPECT_EQ(0, result.result);
705 if (result.pid > 0) {
[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/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/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
Dark_media_codec_decoder_adapter_wrapper.cpp33 int32_t result = ctocpp_->CreateVideoDecoderByMime(str); in CreateVideoDecoderByMime() local
35 return (OHOS::NWeb::DecoderAdapterCode)result; in CreateVideoDecoderByMime()
41 int32_t result = ctocpp_->CreateVideoDecoderByName(str); in CreateVideoDecoderByName() local
43 return (OHOS::NWeb::DecoderAdapterCode)result; in CreateVideoDecoderByName()
49 int32_t result; in ConfigureDecoder() local
51 result = ctocpp_->ConfigureDecoder(nullptr); in ConfigureDecoder()
53 result = ctocpp_->ConfigureDecoder(new ArkDecoderFormatAdapterImpl(format)); in ConfigureDecoder()
55 return (OHOS::NWeb::DecoderAdapterCode)result; in ConfigureDecoder()
61 int32_t result; in SetParameterDecoder() local
63 result = ctocpp_->SetParameterDecoder(nullptr); in SetParameterDecoder()
[all …]
/base/notification/distributed_notification_service/services/ans/src/
Dans_manager_stub.cpp47 ErrCode result = NO_ERROR; in OnRemoteRequest() local
50 result = HandlePublish(data, reply); in OnRemoteRequest()
54 result = HandlePublishNotificationForIndirectProxy(data, reply); in OnRemoteRequest()
58 result = HandleCancel(data, reply); in OnRemoteRequest()
62 result = HandleCancelAll(data, reply); in OnRemoteRequest()
66 result = HandleCancelAsBundleOption(data, reply); in OnRemoteRequest()
70 result = HandleCancelAsBundleAndUser(data, reply); in OnRemoteRequest()
74 result = HandleCancelAsBundle(data, reply); in OnRemoteRequest()
78 result = HandleAddSlotByType(data, reply); in OnRemoteRequest()
83result = DelayedSingleton<SlotManager>::GetInstance()->OnRemoteRequest(code, data, reply); in OnRemoteRequest()
[all …]
/base/telephony/call_manager/services/call_manager_service/src/
Dcall_manager_service_stub.cpp262 int32_t result = RegisterVoipCallManagerCallback(); in OnRegisterVoipCallManagerCallback() local
263 TELEPHONY_LOGI("OnRegisterVoipCallManagerCallback result:%{public}d", result); in OnRegisterVoipCallManagerCallback()
264 if (!reply.WriteInt32(result)) { in OnRegisterVoipCallManagerCallback()
274 int32_t result = TELEPHONY_ERR_FAIL; in OnUnRegisterVoipCallManagerCallback() local
275 result = UnRegisterVoipCallManagerCallback(); in OnUnRegisterVoipCallManagerCallback()
276 if (!reply.WriteInt32(result)) { in OnUnRegisterVoipCallManagerCallback()
280 return result; in OnUnRegisterVoipCallManagerCallback()
298 int32_t result = memberFunc(data, reply); in OnRemoteRequest() local
300 return result; in OnRemoteRequest()
308 int32_t result = TELEPHONY_ERR_FAIL; in OnRegisterCallBack() local
[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/telephony/call_manager/interfaces/innerkits/
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 …]
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 …]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/impl/perf/
Dperf_collector_impl.cpp121 CollectResult<bool> result; in CheckUseCount() local
124 result.data = false; in CheckUseCount()
125 result.retCode = UcError::PERF_CALLER_NOT_FIND; in CheckUseCount()
126 return result; in CheckUseCount()
132 result.data = false; in CheckUseCount()
133 result.retCode = UcError::USAGE_EXCEED_LIMIT; in CheckUseCount()
135 return result; in CheckUseCount()
137 result.data = true; in CheckUseCount()
138 result.retCode = UcError::SUCCESS; in CheckUseCount()
139 return result; in CheckUseCount()
[all …]

12345678910>>...135