Home
last modified time | relevance | path

Searched refs:helper (Results 1 – 25 of 61) sorted by relevance

123

/base/telephony/sms_mms/test/gtest/
Dsms_gtest.cpp119 void SetDefaultSmsSlotIdTestFuc(SmsMmsTestHelper &helper) in SetDefaultSmsSlotIdTestFuc() argument
121 …ult = DelayedSingleton<SmsServiceManagerClient>::GetInstance()->SetDefaultSmsSlotId(helper.slotId); in SetDefaultSmsSlotIdTestFuc()
122 helper.SetIntResult(result); in SetDefaultSmsSlotIdTestFuc()
123 helper.NotifyAll(); in SetDefaultSmsSlotIdTestFuc()
140 SmsMmsTestHelper helper; variable
141 helper.slotId = DEFAULT_SIM_SLOT_ID;
142 if (!helper.Run(SetDefaultSmsSlotIdTestFuc, std::ref(helper))) {
147 ASSERT_EQ(helper.GetIntResult(), 0);
164 SmsMmsTestHelper helper; variable
165 helper.slotId = DEFAULT_SIM_SLOT_ID_1;
[all …]
Dcb_gtest.cpp91 void OpenCellBroadcastTestFuc(SmsMmsTestHelper &helper) in OpenCellBroadcastTestFuc() argument
98 helper.slotId, enable, fromMsgId, toMsgId, netType); in OpenCellBroadcastTestFuc()
99 helper.SetIntResult(result); in OpenCellBroadcastTestFuc()
100 helper.NotifyAll(); in OpenCellBroadcastTestFuc()
117 SmsMmsTestHelper helper; variable
118 helper.slotId = DEFAULT_SIM_SLOT_ID_REMOVE;
119 if (!helper.Run(OpenCellBroadcastTestFuc, std::ref(helper))) {
124 EXPECT_NE(helper.GetIntResult(), 0);
127 void OpenCellBroadcastTestFuc2(SmsMmsTestHelper &helper) in OpenCellBroadcastTestFuc2() argument
134 helper.slotId, enable, fromMsgId, toMsgId, netType); in OpenCellBroadcastTestFuc2()
[all …]
/base/web/webview/test/unittest/ohos_adapter_helper/
Dohos_adapter_helper_test.cpp74 NWebHelper &helper = NWebHelper::Instance(); variable
75 helper.SetBundlePath(MOCK_INSTALLATION_DIR);
76 helper.Init(false);
77 auto cook = helper.GetCookieManager();
79 auto base = helper.GetDataBase();
81 auto storage = helper.GetWebStorage();
83 auto nweb = helper.GetNWeb(nweb_id);
86 helper.SetHttpDns(config);
97 OhosAdapterHelper &helper = OhosAdapterHelper::GetInstance(); variable
98 std::unique_ptr<AafwkAppMgrClientAdapter> client = helper.CreateAafwkAdapter();
[all …]
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_test_util.h182 static void QueryIccAdnDiallingNumbersTestFunc(CoreServiceTestHelper &helper);
183 static void QueryIccAdnDiallingNumbersTestFunc1(CoreServiceTestHelper &helper);
184 static void QueryIccFdnDiallingNumbersTestFunc(CoreServiceTestHelper &helper);
185 static void QueryIccFdnDiallingNumbersTestFunc1(CoreServiceTestHelper &helper);
186 static void SetLockStateTestFunc(CoreServiceTestHelper &helper);
187 static void SetLockStateTestFunc1(CoreServiceTestHelper &helper);
188 static void SetFDNStateTestFunc(CoreServiceTestHelper &helper);
189 static void SetFDNStateTestFunc1(CoreServiceTestHelper &helper);
190 static void GetLockStateTestFunc(CoreServiceTestHelper &helper);
191 static void GetLockStateTestFunc1(CoreServiceTestHelper &helper);
[all …]
Dsim_test_util.cpp150 void SimTest::QueryIccAdnDiallingNumbersTestFunc(CoreServiceTestHelper &helper) in QueryIccAdnDiallingNumbersTestFunc() argument
155 helper.NotifyAll(); in QueryIccAdnDiallingNumbersTestFunc()
157 void SimTest::QueryIccAdnDiallingNumbersTestFunc1(CoreServiceTestHelper &helper) in QueryIccAdnDiallingNumbersTestFunc1() argument
162 helper.NotifyAll(); in QueryIccAdnDiallingNumbersTestFunc1()
164 void SimTest::QueryIccFdnDiallingNumbersTestFunc(CoreServiceTestHelper &helper) in QueryIccFdnDiallingNumbersTestFunc() argument
169 helper.NotifyAll(); in QueryIccFdnDiallingNumbersTestFunc()
171 void SimTest::QueryIccFdnDiallingNumbersTestFunc1(CoreServiceTestHelper &helper) in QueryIccFdnDiallingNumbersTestFunc1() argument
176 helper.NotifyAll(); in QueryIccFdnDiallingNumbersTestFunc1()
178 void SimTest::SetLockStateTestFunc(CoreServiceTestHelper &helper) in SetLockStateTestFunc() argument
186 helper.SetIntResult(result); in SetLockStateTestFunc()
[all …]
Dsim_elementary_file_test.cpp741 CoreServiceTestHelper helper; variable
742 if (!helper.Run(SetLockStateTestFunc, std::ref(helper))) {
746 int32_t result = helper.GetIntResult();
764 CoreServiceTestHelper helper; variable
765 if (!helper.Run(SetLockStateTestFunc1, std::ref(helper))) {
769 int32_t result = helper.GetIntResult();
786 CoreServiceTestHelper helper; variable
787 if (!helper.Run(SetLockStateTestFunc, std::ref(helper))) {
791 bool result = helper.GetBoolResult();
808 CoreServiceTestHelper helper; variable
[all …]
Dsim_test.cpp660 CoreServiceTestHelper helper; variable
661 if (!helper.Run(SetActiveSimTestFunc, std::ref(helper))) {
665 int32_t result = helper.GetIntResult();
681 CoreServiceTestHelper helper; variable
682 if (!helper.Run(SetActiveSimTestFunc1, std::ref(helper))) {
686 int32_t result = helper.GetIntResult();
702 CoreServiceTestHelper helper; variable
703 if (!helper.Run(SetActiveSimTestFunc, std::ref(helper))) {
707 bool result = helper.GetBoolResult();
723 CoreServiceTestHelper helper; variable
[all …]
/base/print/print_fwk/test/unittest/service_test/
Dprint_service_helper_test.cpp48 PrintServiceHelper helper; variable
49 helper.~PrintServiceHelper();
60 PrintServiceHelper helper; variable
61 helper.CheckPermission("");
72 PrintServiceHelper helper; variable
74 helper.StartAbility(want);
85 PrintServiceHelper helper; variable
88 helper.StartPrintServiceExtension(want, requestCode);
99 PrintServiceHelper helper; variable
100 helper.GetBundleMgr();
[all …]
Dprint_bms_helper_test.cpp78 auto helper = std::make_shared<MockPrintServiceHelper>(); variable
79 printBMSHelper.SetHelper(helper);
104 auto helper = std::make_shared<MockPrintServiceHelper>(); variable
105 EXPECT_NE(helper, nullptr);
106 DelayedSingleton<PrintBMSHelper>::GetInstance()->SetHelper(helper);
107 EXPECT_CALL(*helper, GetBundleMgr()).Times(1).WillOnce(Return(nullptr));
120 auto helper = std::make_shared<MockPrintServiceHelper>(); variable
121 EXPECT_NE(helper, nullptr);
122 DelayedSingleton<PrintBMSHelper>::GetInstance()->SetHelper(helper);
123 EXPECT_CALL(*helper, GetBundleMgr()).Times(1);
[all …]
/base/telephony/telephony_data/test/unittest/data_gtest/
Ddata_storage_gtest.cpp155 int DataStorageGtest::OpKeyInsert(const std::shared_ptr<DataShare::DataShareHelper> &helper) const in OpKeyInsert()
165 auto ret = helper->Insert(uri, value); in OpKeyInsert()
170 int DataStorageGtest::OpKeyUpdate(const std::shared_ptr<DataShare::DataShareHelper> &helper) const in OpKeyUpdate()
177 return helper->Update(uri, predicates, values); in OpKeyUpdate()
180 int DataStorageGtest::OpKeySelect(const std::shared_ptr<DataShare::DataShareHelper> &helper) const in OpKeySelect()
186 …std::shared_ptr<DataShare::DataShareResultSet> resultSet = helper->Query(uri, predicates, columns); in OpKeySelect()
196 int DataStorageGtest::OpKeyDelete(const std::shared_ptr<DataShare::DataShareHelper> &helper) const in OpKeyDelete()
201 return helper->Delete(uri, predicates); in OpKeyDelete()
204 int DataStorageGtest::SimInsert(const std::shared_ptr<DataShare::DataShareHelper> &helper) const in SimInsert()
212 return helper->Insert(uri, value); in SimInsert()
[all …]
Ddata_storage_gtest.h43 (const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
53 int SimInsert(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
54 int SimUpdate(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
55 int SimSelect(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
56 int SimDelete(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
57 int SmsInsert(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
58 int SmsBatchInsert(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
59 int SmsUpdate(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
60 int SmsSelect(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
61 int SmsDelete(const std::shared_ptr<DataShare::DataShareHelper> &helper) const;
[all …]
/base/update/updater/test/unittest/script/script_instruction/
Dscript_instructionhelper_unittest.cpp133 ScriptInstructionHelper helper(impl.get()); in TestRegisterInstructions() local
134 EXPECT_EQ(helper.RegisterInstructions(), USCRIPT_SUCCESS); in TestRegisterInstructions()
140 auto *helper = ScriptInstructionHelper::GetBasicInstructionHelper(impl.get()); in TestIsReservedInstruction() local
145 EXPECT_TRUE(helper->IsReservedInstruction(instruction)); in TestIsReservedInstruction()
147 EXPECT_FALSE(helper->IsReservedInstruction("non reserved")); in TestIsReservedInstruction()
153 auto *helper = ScriptInstructionHelper::GetBasicInstructionHelper(impl.get()); in TestAddInstruction() local
158 EXPECT_EQ(helper->AddInstruction(instruction, nullptr), USCRIPT_ERROR_REVERED); in TestAddInstruction()
162 EXPECT_EQ(helper->AddInstruction("instruction1", instr1), USCRIPT_SUCCESS); in TestAddInstruction()
165 EXPECT_EQ(helper->AddInstruction("instruction1", instr2), USCRIPT_SUCCESS); in TestAddInstruction()
173 auto *helper = ScriptInstructionHelper::GetBasicInstructionHelper(&scriptManager); in TestAddScript() local
[all …]
/base/telephony/call_manager/services/call/call_state_observer/src/
Dcall_data_base_helper.cpp78 std::shared_ptr<DataShare::DataShareHelper> helper = CreateDataShareHelper(CONTACT_URI); in RegisterObserver() local
79 if (helper == nullptr) { in RegisterObserver()
84 helper->RegisterObserver(uri, callDataRdbObserverPtr_); in RegisterObserver()
85 helper->Release(); in RegisterObserver()
94 std::shared_ptr<DataShare::DataShareHelper> helper = CreateDataShareHelper(CONTACT_URI); in UnRegisterObserver() local
95 if (helper == nullptr) { in UnRegisterObserver()
100 helper->UnregisterObserver(uri, callDataRdbObserverPtr_); in UnRegisterObserver()
101 helper->Release(); in UnRegisterObserver()
106 std::shared_ptr<DataShare::DataShareHelper> helper = CreateDataShareHelper(CALLLOG_URI); in Insert() local
107 if (helper == nullptr) { in Insert()
[all …]
/base/telephony/sms_mms/services/sms/
Dsms_persist_helper.cpp54 std::shared_ptr<DataShare::DataShareHelper> helper = CreateDataShareHelper(SMS_URI); in Insert() local
55 if (helper == nullptr) { in Insert()
60 int ret = helper->Insert(uri, values); in Insert()
61 helper->Release(); in Insert()
68 std::shared_ptr<DataShare::DataShareHelper> helper = CreateDataShareHelper(SMS_URI); in Insert() local
69 if (helper == nullptr) { in Insert()
74 int ret = helper->Insert(uri, values); in Insert()
75 helper->Release(); in Insert()
82 std::shared_ptr<DataShare::DataShareHelper> helper = CreateDataShareHelper(SMS_URI); in QuerySession() local
83 if (helper == nullptr) { in QuerySession()
[all …]
/base/telephony/telephony_data/test/unittest/data_test/
Ddata_storage_test.cpp35 using CmdProcessFunc = int (*)(std::shared_ptr<DataShare::DataShareHelper> helper);
123 int SimSetCardByType(std::shared_ptr<DataShare::DataShareHelper> helper) in SimSetCardByType() argument
130 return helper->Update(uri, predicates, value); in SimSetCardByType()
133 int OpKeyInsert(std::shared_ptr<DataShare::DataShareHelper> helper) in OpKeyInsert() argument
143 return helper->Insert(uri, value); in OpKeyInsert()
146 int OpKeyUpdate(std::shared_ptr<DataShare::DataShareHelper> helper) in OpKeyUpdate() argument
153 return helper->Update(uri, predicates, values); in OpKeyUpdate()
156 int OpKeySelect(std::shared_ptr<DataShare::DataShareHelper> helper) in OpKeySelect() argument
162 …std::shared_ptr<DataShare::DataShareResultSet> resultSet = helper->Query(uri, predicates, columns); in OpKeySelect()
172 int OpKeyDelete(std::shared_ptr<DataShare::DataShareHelper> helper) in OpKeyDelete() argument
[all …]
/base/telephony/sms_mms/services/mms/
Dmms_persist_helper.cpp55 std::shared_ptr<DataShare::DataShareHelper> helper = CreateSmsHelper(); in DeleteMmsPdu() local
56 if (helper == nullptr) { in DeleteMmsPdu()
65 int32_t result = helper->Delete(uri, predicates); in DeleteMmsPdu()
66 helper->Release(); in DeleteMmsPdu()
73 std::shared_ptr<DataShare::DataShareHelper> helper = CreateSmsHelper(); in UpdateMmsPdu() local
74 if (helper == nullptr) { in UpdateMmsPdu()
89 int32_t result = helper->Update(uri, predicates, bucket); in UpdateMmsPdu()
90 helper->Release(); in UpdateMmsPdu()
110 std::shared_ptr<DataShare::DataShareHelper> helper = CreateSmsHelper(); in QueryMmsPdu() local
111 if (helper == nullptr) { in QueryMmsPdu()
[all …]
Dmms_apn_info.cpp37 std::shared_ptr<DataShare::DataShareHelper> helper = CreatePdpProfileHelper(); in getMmsApn() local
38 if (helper == nullptr) { in getMmsApn()
42 PdpProfileSelect(helper); in getMmsApn()
69 void MmsApnInfo::PdpProfileSelect(const std::shared_ptr<DataShare::DataShareHelper> &helper) in PdpProfileSelect() argument
84 auto resultSet = helper->Query(uri, predicates, colume); in PdpProfileSelect()
87 helper->Release(); in PdpProfileSelect()
95 helper->Release(); in PdpProfileSelect()
112 helper->Release(); in PdpProfileSelect()
/base/powermgr/power_manager/utils/setting/src/
Dsetting_provider.cpp134 auto helper = CreateDataShareHelper(); in RegisterObserver() local
135 if (helper == nullptr) { in RegisterObserver()
139 helper->RegisterObserver(uri, observer); in RegisterObserver()
140 helper->NotifyChange(uri); in RegisterObserver()
143 ReleaseDataShareHelper(helper); in RegisterObserver()
153 auto helper = CreateDataShareHelper(); in UnregisterObserver() local
154 if (helper == nullptr) { in UnregisterObserver()
158 helper->UnregisterObserver(uri, observer); in UnregisterObserver()
159 ReleaseDataShareHelper(helper); in UnregisterObserver()
183 auto helper = CreateDataShareHelper(); in GetStringValue() local
[all …]
/base/telephony/sms_mms/frameworks/js/napi/include/
Dnapi_mms_pdu.h29 void DeleteMmsPdu(NapiMmsPduHelper &helper);
30 bool InsertMmsPdu(NapiMmsPduHelper &helper, const std::string &mmsPdu);
31 std::string GetMmsPdu(NapiMmsPduHelper &helper);
34 bool QueryMmsPdu(NapiMmsPduHelper &helper);
/base/update/sys_installer/services/module_update/util/src/
Dmodule_file.cpp80 bool ParseImageStat(ModuleZipHelper &helper, const string &path, ImageStat &imageStat) in ParseImageStat() argument
82 if (!helper.LocateFile(IMG_FILE_NAME)) { in ParseImageStat()
86 if (!helper.GetFileOffset(imageStat.imageOffset)) { in ParseImageStat()
90 if (!helper.GetFileSize(imageStat.imageSize)) { in ParseImageStat()
118 bool ExtractZipFile(ModuleZipHelper &helper, const string &fileName, string &buf) in ExtractZipFile() argument
120 if (!helper.LocateFile(fileName)) { in ExtractZipFile()
124 if (!helper.GetFileContent(buf)) { in ExtractZipFile()
177 ModuleZipHelper helper(path); in Open() local
178 if (!helper.IsValid()) { in Open()
184 if (!ExtractZipFile(helper, CONFIG_FILE_NAME, moduleInfo)) { in Open()
[all …]
/base/update/updater/services/script/script_instruction/
Dscript_registercmd.cpp28 ScriptInstructionHelper* helper = ScriptInstructionHelper::GetBasicInstructionHelper(); in Execute() local
29 if (helper == nullptr) { in Execute()
51 return helper->RegisterUserInstruction(libName, instrName); in Execute()
Dscript_loadscript.cpp27 ScriptInstructionHelper* helper = ScriptInstructionHelper::GetBasicInstructionHelper(); in Execute() local
28 if (helper == nullptr) { in Execute()
49 return helper->AddScript(scriptName, priority); in Execute()
/base/usb/usb_manager/services/native/src/
Dusb_right_manager.cpp130 std::shared_ptr<UsbRightDbHelper> helper = UsbRightDbHelper::GetInstance(); in HasRight() local
133 return !helper->IsRecordExpired(uid, deviceName, bundleName, nowTime); in HasRight()
175 std::shared_ptr<UsbRightDbHelper> helper = UsbRightDbHelper::GetInstance(); in AddDeviceRight() local
176 int32_t ret = helper->AddOrUpdateRightRecord(uid, deviceName, bundleName, info); in AddDeviceRight()
193 std::shared_ptr<UsbRightDbHelper> helper = UsbRightDbHelper::GetInstance(); in RemoveDeviceRight() local
194 int32_t ret = helper->DeleteRightRecord(uid, deviceName, bundleName); in RemoveDeviceRight()
435 std::shared_ptr<UsbRightDbHelper> helper = UsbRightDbHelper::GetInstance(); in CleanUpRightAppUninstalled() local
436 int32_t ret = helper->QueryRightRecordApps(uid, apps); in CleanUpRightAppUninstalled()
446 ret = helper->DeleteAppRightRecord(uid, app); in CleanUpRightAppUninstalled()
462 std::shared_ptr<UsbRightDbHelper> helper = UsbRightDbHelper::GetInstance(); in CleanUpRightAppUninstalled() local
[all …]
/base/web/webview/test/fuzztest/ohos_adapter/interfaces/createaafwk_fuzzer/
Dcreateaafwk_fuzzer.cpp30 auto &helper = OhosAdapterHelper::GetInstance(); in DoSomethingInterestingWithMyAPI() local
31 helper.CreateAafwkAdapter(); in DoSomethingInterestingWithMyAPI()
/base/telephony/core_service/services/sim/src/
Doperator_config_loader.cpp62 std::shared_ptr<DataShare::DataShareHelper> helper = CreateOpKeyHelper(); in LoadOpKeyOnMccMnc() local
63 if (helper == nullptr) { in LoadOpKeyOnMccMnc()
69 resultSet = helper->Query(uri, predicates, colume); in LoadOpKeyOnMccMnc()
72 helper->Release(); in LoadOpKeyOnMccMnc()
73 helper = nullptr; in LoadOpKeyOnMccMnc()
76 helper->Release(); in LoadOpKeyOnMccMnc()
77 helper = nullptr; in LoadOpKeyOnMccMnc()

123