/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_ipp_over_usb_manager_test.cpp | 55 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F() 69 std::string printerId = "com.ohos.spoolerUSB-PixLab V1-0159"; in HWTEST_F() 83 std::string printerId = "com.ohos.test:USB-PixLab V1-0159"; in HWTEST_F() 97 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F() 111 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F() 124 std::string printerId = "com.ohos.spoolerUSB-PixLab V1-0159"; in HWTEST_F() 137 std::string printerId = "com.ohos.test:USB-PixLab V1-0159"; in HWTEST_F() 150 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F()
|
/base/notification/common_event_service/services/test/unittest/ |
H A D | subscriber_deach_recipient_test.cpp | 96 int Dump(int fd, const std::vector<std::u16string> &args) override
101 std::u16string GetObjectDescriptor() const
in GetObjectDescriptor() 103 std::u16string descriptor = std::u16string();
in GetObjectDescriptor() 116 std::shared_ptr<SubscriberDeathRecipient> subscriberDeathRecipient = std::make_shared<SubscriberDeathRecipient>();
in HWTEST_F() 132 sptr<MockIRemoteObject> sptrDeath = new (std::nothrow) MockIRemoteObject();
in HWTEST_F()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
H A D | mock_distributed_kv_data_manager.cpp | 37 Status DistributedKvDataManager::StopWatchDeviceChange(std::shared_ptr<DeviceStatusChangeListener> observer) in StopWatchDeviceChange() 43 std::shared_ptr<SingleKvStore> &singleKvStore) in GetSingleKvStore() 45 std::shared_ptr<MockSingleKvStore> kvStore = std::make_shared<MockSingleKvStore>(); in GetSingleKvStore() 46 singleKvStore = std::static_pointer_cast<SingleKvStore>(kvStore); in GetSingleKvStore() 58 Status DistributedKvDataManager::GetDeviceList(std::vector<DeviceInfo> &deviceInfoList, DeviceFilterStrategy strategy) in GetDeviceList() 82 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &kvStorePtr) in CloseKvStore() 87 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const std::string &path) in DeleteKvStore()
|
/base/notification/common_event_service/frameworks/native/src/ |
H A D | common_event_subscriber.cpp | 62 bool CommonEventSubscriber::SetData(const std::string &data) in SetData() 72 std::string CommonEventSubscriber::GetData() const in GetData() 76 return std::string(); in GetData() 82 bool CommonEventSubscriber::SetCodeAndData(const int32_t &code, const std::string &data) in SetCodeAndData() 122 std::shared_ptr<AsyncCommonEventResult> CommonEventSubscriber::GoAsyncCommonEvent() in GoAsyncCommonEvent() 124 std::shared_ptr<AsyncCommonEventResult> res = result_; in GoAsyncCommonEvent() 139 bool CommonEventSubscriber::SetAsyncCommonEventResult(const std::shared_ptr<AsyncCommonEventResult> &result) in SetAsyncCommonEventResult() 146 std::shared_ptr<AsyncCommonEventResult> CommonEventSubscriber::GetAsyncCommonEventResult() in GetAsyncCommonEventResult()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
H A D | mock_notification_analytics_util.cpp | 49 HaMetaMessage& HaMetaMessage::Message(const std::string& message, bool print) in Message() 61 HaMetaMessage& HaMetaMessage::BundleName(const std::string& bundleName) in BundleName() 67 HaMetaMessage& HaMetaMessage::AgentBundleName(const std::string& agentBundleName) in AgentBundleName() 85 std::string HaMetaMessage::GetMessage() const in GetMessage() 96 std::string HaMetaMessage::Build() const in Build() 98 return std::string(""); in Build() 120 EventFwk::Want want, int32_t eventCode, const std::string& reason) in ReportNotificationEvent() 136 int32_t eventCode, const std::string& reason) in ReportNotificationEvent()
|
/base/powermgr/battery_manager/charger/include/ |
H A D | charger_thread.h | 55 std::unique_ptr<PowerSupplyProvider> provider_ = nullptr; 56 std::unique_ptr<BatteryVibrate> vibrate_ = nullptr; 57 std::unique_ptr<BatteryBacklight> backlight_ = nullptr; 58 std::unique_ptr<BatteryLed> led_ = nullptr; 67 static std::unique_ptr<ChargerAnimation> animation_; 76 virtual void OnInputEvent(std::shared_ptr<OHOS::MMI::KeyEvent> keyEvent) const; 77 virtual void OnInputEvent(std::shared_ptr<OHOS::MMI::PointerEvent> pointerEvent) const; 78 virtual void OnInputEvent(std::shared_ptr<OHOS::MMI::AxisEvent> axisEvent) const;
|
/base/msdp/device_status/intention/scheduler/task_scheduler/include/ |
H A D | task_scheduler.h | 40 class Task : public std::enable_shared_from_this<Task> {
42 using Promise = std::promise<int32_t>;
43 using Future = std::future<int32_t>;
44 using TaskPtr = std::shared_ptr<TaskScheduler::Task>;
65 std::atomic_bool hasWaited_ { false };
96 void PopPendingTaskList(std::vector<TaskPtr> &tasks);
102 std::mutex mux_;
103 std::queue<TaskPtr> tasks_;
|
/base/msdp/device_status/intention/scheduler/timer_manager/include/ |
H A D | timer_manager.h | 38 int32_t AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) override; 52 std::function<void()> callback { nullptr }; 56 int32_t OnAddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback); 61 int32_t RunIsExist(std::packaged_task<bool(int32_t)> &task, int32_t timerId) const; 63 int32_t AddTimerInternal(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback); 66 void InsertTimerInternal(std::unique_ptr<TimerItem> &timer); 73 std::list<std::unique_ptr<TimerItem>> timers_;
|
/base/msdp/device_status/services/delegate_task/include/ |
H A D | delegate_tasks.h | 40 class Task : public std::enable_shared_from_this<Task> {
42 using Promise = std::promise<int32_t>;
43 using Future = std::future<int32_t>;
44 using TaskPtr = std::shared_ptr<DelegateTasks::Task>;
64 std::atomic_bool hasWaited_ { false };
98 void PopPendingTaskList(std::vector<TaskPtr> &tasks);
102 std::queue<TaskPtr> tasks_;
103 std::mutex mux_;
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_local_live_view_subscriber_manager.h | 86 std::shared_ptr<LocalLiveViewSubscriberRecord> FindSubscriberRecord(const wptr<IRemoteObject> &object); 87 std::shared_ptr<LocalLiveViewSubscriberRecord> FindSubscriberRecord( 89 std::shared_ptr<LocalLiveViewSubscriberRecord> CreateSubscriberRecord( 103 std::list<std::shared_ptr<LocalLiveViewSubscriberRecord>> buttonRecordList_ {}; 104 std::shared_ptr<OHOS::AppExecFwk::EventRunner> runner_ {}; 105 std::shared_ptr<OHOS::AppExecFwk::EventHandler> handler_ {}; 108 std::shared_ptr<ffrt::queue> notificationButtonQueue_ = nullptr;
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_datashare_helper_ext.cpp | 45 std::shared_ptr<DataShare::DataShareHelper> AdvancedDatashareHelperExt::CreateDataShareHelper()
in CreateDataShareHelper() 60 bool AdvancedDatashareHelperExt::Query(Uri &uri, const std::string &key, std::string &value)
in Query() 62 std::shared_ptr<DataShare::DataShareHelper> dataShareHelper = CreateDataShareHelper();
in Query() 68 std::vector<std::string> columns;
in Query() 91 std::string AdvancedDatashareHelperExt::GetUnifiedGroupEnableUri() const
in GetUnifiedGroupEnableUri() 95 return USER_SETTINGS_DATA_SECURE_URI + std::to_string(userId) + UNIFIED_GROUP_ENABLE_URI;
in GetUnifiedGroupEnableUri()
|
/base/security/asset/services/os_dependency/src/ |
H A D | os_account_wrapper.cpp | 49 std::vector<OHOS::AccountSA::OsAccountInfo> accountInfos = {}; in GetUserIds() 59 std::vector<int32_t> userIdsVec = { 0 }; in GetUserIds() 60 std::transform(accountInfos.begin(), accountInfos.end(), std::back_inserter(userIdsVec), in GetUserIds() 76 std::vector<OHOS::AccountSA::OsAccountInfo> accountInfos = {}; in GetUsersSize() 86 std::vector<int32_t> userIdsVec = { 0 }; in GetUsersSize() 87 std::transform(accountInfos.begin(), accountInfos.end(), std::back_inserter(userIdsVec), in GetUsersSize()
|
/base/security/security_guard/test/unittest/mock/collector_manager/ |
H A D | collector_manager.h | 36 virtual int32_t Subscribe(const std::shared_ptr<ICollectorSubscriber> &subscriber) = 0; 37 virtual int32_t Unsubscribe(const std::shared_ptr<ICollectorSubscriber> &subscriber) = 0; 38 virtual int32_t QuerySecurityEvent(const std::vector<SecurityEventRuler> rulers, 39 std::vector<SecurityEvent> &events) = 0; 53 MOCK_METHOD1(Subscribe, int32_t(const std::shared_ptr<ICollectorSubscriber> &subscriber)); 54 MOCK_METHOD1(Unsubscribe, int32_t(const std::shared_ptr<ICollectorSubscriber> &subscriber)); 55 MOCK_METHOD2(QuerySecurityEvent, int32_t(const std::vector<SecurityEventRuler> rulers, 56 std::vector<SecurityEvent> &events));
|
/base/security/security_guard/services/security_collector/src/ |
H A D | collector_cfg_marshalling.cpp | 25 std::vector<std::string> eventIds; in to_json() 26 std::transform(moduleCfg.eventId.begin(), moduleCfg.eventId.end(), std::back_inserter(eventIds), in to_json() 27 [](int64_t eventId) { return std::to_string(eventId); }); in to_json() 40 std::vector<std::string> eventList; in from_json() 42 for (const std::string& eventId : eventList) { in from_json()
|
/base/security/security_guard/test/unittest/mock/rdb/ |
H A D | result_set.h | 29 virtual int GetBlob(int columnIndex, std::vector<uint8_t> &blob) = 0; 30 virtual int GetString(int columnIndex, std::string &value) = 0; 37 virtual int GetAllColumnNames(std::vector<std::string> &columnNames) = 0; 50 MOCK_METHOD2(GetBlob, int(int columnIndex, std::vector<uint8_t> &blob)); 51 MOCK_METHOD2(GetString, int(int columnIndex, std::string &value)); 58 MOCK_METHOD1(GetAllColumnNames, int(std::vector<std::string> &columnNames));
|
/base/telephony/sms_mms/test/fuzztest/wappushbuffer_fuzzer/ |
H A D | wappushbuffer_fuzzer.cpp | 32 std::string strValue(reinterpret_cast<const char *>(data), size); in WapPushBuffer() 33 std::unique_ptr<SmsWapPushHandler> smsWapPushHandler = std::make_unique<SmsWapPushHandler>(slotId); in WapPushBuffer() 34 auto indexer = std::make_shared<SmsReceiveIndexer>(); in WapPushBuffer() 37 auto decodeBuffer = std::make_shared<SmsWapPushBuffer>(); in WapPushBuffer() 44 std::unique_ptr<char[]> inBuff = std::make_unique<char[]>(desLen); in WapPushBuffer() 45 decodeBuffer->WriteDataBuffer(std::move(inBuff), desLen); in WapPushBuffer()
|
/base/telephony/call_manager/services/call/include/ |
H A D | call_request_handler.h | 43 std::u16string msg = u""; 53 std::vector<std::string> numberList {}; 68 int32_t RejectCall(int32_t callId, bool isSendSms, std::string &content); 76 int32_t StartRtt(int32_t callId, std::u16string &msg); 78 int32_t JoinConference(int32_t callId, std::vector<std::string> &numberList); 81 std::shared_ptr<CallRequestProcess> callRequestProcessPtr_;
|
/base/telephony/core_service/frameworks/native/src/ |
H A D | network_information.cpp | 28 void NetworkInformation::SetOperateInformation(const std::string &operatorLongName, in SetOperateInformation() 29 const std::string &operatorShortName, const std::string &operatorNumeric, int32_t state, int32_t rat) in SetOperateInformation() 43 std::string NetworkInformation::GetOperatorShortName() const in GetOperatorShortName() 48 std::string NetworkInformation::GetOperatorLongName() const in GetOperatorLongName() 53 std::string NetworkInformation::GetOperatorNumeric() const in GetOperatorNumeric() 105 std::unique_ptr<NetworkInformation> networkInfo = std::make_unique<NetworkInformation>(); in Unmarshalling()
|
/base/telephony/core_service/test/fuzztest/updatevoicemail_fuzzer/ |
H A D | updatevoicemail_fuzzer.cpp | 49 std::int32_t eventId = static_cast<int32_t>(*data + offset); in DoSomethingInterestingWithMyAPI() 51 std::int64_t refId = static_cast<int64_t>(*data + offset); in DoSomethingInterestingWithMyAPI() 52 std::string operatorNum(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 53 std::string mailName(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 54 std::string mailNumber(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 56 auto telRilManager_ = std::make_shared<TelRilManager>(); in DoSomethingInterestingWithMyAPI() 57 auto stateManager_ = std::make_shared<SimStateManager>(telRilManager_); in DoSomethingInterestingWithMyAPI() 58 auto ruimFile = std::make_shared<RuimFile>(stateManager_); in DoSomethingInterestingWithMyAPI()
|
/base/telephony/ril_adapter/services/hril/include/ |
H A D | hril_event.h | 27 typedef std::function<void(int32_t, int16_t, std::shared_ptr<void>)> HRilEventCallback; 34 std::shared_ptr<void> param = nullptr; 46 HRilEventMessage &eventMsg, int32_t fd, bool isHolding, HRilEventCallback func, std::shared_ptr<void> param); 63 std::mutex listLock_; 64 std::list<HRilEventMessage> timerList_; 65 std::list<HRilEventMessage> pendingList_; 66 std::vector<HRilEventMessage *> listenEventTable_;
|
/base/telephony/sms_mms/services/sms/ |
H A D | sms_broadcast_subscriber_receiver.cpp | 27 std::queue<std::shared_ptr<SmsBroadcastSubscriberReceiver>> sptrQueue; 28 std::shared_ptr<AppExecFwk::EventRunner> eventRunner_ = nullptr; 29 std::shared_ptr<AppExecFwk::EventHandler> eventHandler_ = nullptr; 32 std::shared_ptr<SmsReceiveReliabilityHandler> handler, uint16_t refId, uint16_t dataBaseId, in SmsBroadcastSubscriberReceiver() 33 const std::string &address) in SmsBroadcastSubscriberReceiver() 44 std::string action = data.GetWant().GetAction(); in OnReceiveEvent() 62 eventHandler_ = std::make_shared<AppExecFwk::EventHandler>(eventRunner_); in OnReceiveEvent()
|
/base/telephony/cellular_data/test/fuzztest/updateactivemachine_fuzzer/ |
H A D | updateactivemachine_fuzzer.cpp | 34 std::shared_ptr<StateMachineFuzzer> machine = std::make_shared<StateMachineFuzzer>(); in UpdateActiveMachineFuzz() 39 std::shared_ptr<CellularDataStateMachine> cellularMachine = machine->CreateCellularDataConnect(slotId); in UpdateActiveMachineFuzz() 44 std::make_unique<Active>(std::weak_ptr<CellularDataStateMachine>(cellularMachine), "Active").release(); in UpdateActiveMachineFuzz() 50 std::int32_t intValue = static_cast<int32_t>(size); in UpdateActiveMachineFuzz() 51 std::unique_ptr<uint8_t> object = std::make_unique<uint8_t>(*data); in UpdateActiveMachineFuzz()
|
/base/telephony/core_service/utils/vcard/src/contact_data/ |
H A D | vcard_website_data.cpp | 31 int32_t VCardWebsiteData::BuildData(std::shared_ptr<DataShare::DataShareResultSet> resultSet) in BuildData() 46 void VCardWebsiteData::InitWebsite(std::string website) in InitWebsite() 51 void VCardWebsiteData::SetWebsite(const std::string &website) in SetWebsite() 56 std::string VCardWebsiteData::GetWebsite() in GetWebsite() 61 void VCardWebsiteData::SetLabelId(const std::string &labelId) in SetLabelId() 66 std::string VCardWebsiteData::GetLabelId() in GetLabelId() 71 void VCardWebsiteData::SetLabelName(const std::string &labelName) in SetLabelName() 76 std::string VCardWebsiteData::GetLabelName() in GetLabelName()
|
/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | network_state.h | 33 void SetOperatorInfo(const std::string &longName, const std::string &shortName, const std::string &numeric, 41 void SetLongOperatorName(const std::string &longName, DomainType domainType); 67 std::string GetLongOperatorName() const; 72 std::string GetShortOperatorName() const; 77 std::string GetPlmnNumeric() const; 93 std::string ToString() const;
|
/base/telephony/core_service/test/unittest/utils_codec_gtest/ |
H A D | reset_reponse_test.cpp | 48 const std::string atr1 = ""; in HWTEST_F() 50 const std::string atr2 = "123"; in HWTEST_F() 52 const std::string atr3 = "12"; in HWTEST_F() 54 const std::string atr = "3B9F96803F47A28031E073FE211B6759868828681011C4"; in HWTEST_F() 62 const std::string atr1 = ""; in HWTEST_F() 64 const std::string atr2 = "123"; in HWTEST_F() 66 const std::string atr3 = "12"; in HWTEST_F() 68 const std::string atr4 = "1234"; in HWTEST_F()
|