Home
last modified time | relevance | path

Searched refs:std (Results 13801 - 13825 of 67801) sorted by relevance

1...<<551552553554555556557558559560>>...2713

/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dscalar_replacement_pass.cpp53 std::queue<Instruction*> worklist; in ProcessFunction()
82 Instruction* inst, std::queue<Instruction*>* worklist) { in ReplaceVariable()
83 std::vector<Instruction*> replacements; in ReplaceVariable()
88 std::vector<Instruction*> dead; in ReplaceVariable()
170 Instruction* dbg_decl, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugDeclare()
204 Instruction* dbg_value, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugValue()
209 std::unique_ptr<Instruction> new_dbg_value(dbg_value->Clone(context())); in ReplaceWholeDebugValue()
220 auto* added_instr = dbg_value->InsertBefore(std::move(new_dbg_value)); in ReplaceWholeDebugValue()
229 Instruction* load, const std::vector<Instruction*>& replacements) { in ReplaceWholeLoad()
233 std in ReplaceWholeLoad()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dscalar_replacement_pass.cpp53 std::queue<Instruction*> worklist; in ProcessFunction()
82 Instruction* inst, std::queue<Instruction*>* worklist) { in ReplaceVariable()
83 std::vector<Instruction*> replacements; in ReplaceVariable()
88 std::vector<Instruction*> dead; in ReplaceVariable()
170 Instruction* dbg_decl, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugDeclare()
204 Instruction* dbg_value, const std::vector<Instruction*>& replacements) { in ReplaceWholeDebugValue()
209 std::unique_ptr<Instruction> new_dbg_value(dbg_value->Clone(context())); in ReplaceWholeDebugValue()
220 auto* added_instr = dbg_value->InsertBefore(std::move(new_dbg_value)); in ReplaceWholeDebugValue()
229 Instruction* load, const std::vector<Instruction*>& replacements) { in ReplaceWholeLoad()
233 std in ReplaceWholeLoad()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dview_abstract_test_ng.cpp94 EXPECT_EQ(layoutProperty->calcLayoutConstraint_->selfIdealSize->Width(), std::nullopt); in HWTEST_F()
95 EXPECT_EQ(newProperty->calcLayoutConstraint_->selfIdealSize->Width(), std::nullopt); in HWTEST_F()
206 std::map<AlignDirection, AlignRule> alignRules; in HWTEST_F()
287 std::map<AlignDirection, AlignRule> alignRules; in HWTEST_F()
496 ViewAbstract::SetOnClick(std::move(tapEventFunc)); in HWTEST_F()
497 ViewAbstract::SetOnClick(AceType::RawPtr(FRAME_NODE_REGISTER), std::move(tapEventFunc)); in HWTEST_F()
499 ViewAbstract::SetOnTouch(std::move(touchEventFunc)); in HWTEST_F()
500 ViewAbstract::SetOnTouch(AceType::RawPtr(FRAME_NODE_REGISTER), std::move(touchEventFunc)); in HWTEST_F()
502 ViewAbstract::SetOnMouse(std::move(onMouseEventFunc)); in HWTEST_F()
504 ViewAbstract::SetOnHover(std in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_properties_test.cpp158 std::shared_ptr<RSImage> image = std::make_shared<RSImage>(); in HWTEST_F()
162 std::shared_ptr<RSImage> image2 = std::make_shared<RSImage>(); in HWTEST_F()
285 std::shared_ptr<RSPath> path = std::make_shared<RSPath>(); in HWTEST_F()
348 std::shared_ptr<RSImage> image = std::make_shared<RSImage>(); in HWTEST_F()
377 properties.backgroundFilter_ = std::make_shared<RSFilter>(); in HWTEST_F()
380 properties.filter_ = std in HWTEST_F()
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dcloud_data_test.cpp92 PermissionDef GetPermissionDef(const std::string &permission) in GetPermissionDef()
105 PermissionStateFull GetPermissionStateFull(const std::string &permission) in GetPermissionStateFull()
122 static std::shared_ptr<CloudData::CloudServiceImpl> cloudServiceImpl_;
128 static std::shared_ptr<DBStoreMock> dbStoreMock_;
137 std::pair<int32_t, SchemaMeta> GetAppSchema(int32_t userId, const std::string &bundleName) override;
159 cloudInfo.apps[TEST_CLOUD_BUNDLE] = std::move(appInfo); in GetServerInfo()
163 std::pair<int32_t, SchemaMeta> CloudServerMock::GetAppSchema(int32_t userId, const std::string &bundleName) in GetAppSchema()
176 std
[all...]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/test/unittest/src/
H A Ddlp_permission_kit_test.cpp76 const std::string DLP_MANAGER_APP = "com.ohos.dlpmanager";
77 const std::string TEST_URI = "datashare:///media/file/8";
78 const std::string TEST_UNEXIST_URI = "datashare:///media/file/1";
79 static const std::string DLP_ENABEL = "const.dlp.dlp_enable";
127 static bool TestGetTokenId(int userID, const std::string& bundleName, int instIndex, AccessTokenID& tokenId) in TestGetTokenId()
144 static bool TestGetAppUid(const std::string& bundleName, int32_t appIndex, int32_t userId, int32_t& uid) in TestGetAppUid()
172 const std::string& bundleName, DLPFileAccess dlpFileAccess, int32_t userId, SandboxInfo& sandboxInfo) in TestInstallDlpSandbox()
184 static void TestUninstallDlpSandbox(const std::string& bundleName, int32_t appIndex, int32_t userId) in TestUninstallDlpSandbox()
195 static void TestMockApp(const std::string& bundleName, int32_t appIndex, int32_t userId) in TestMockApp()
241 uint8_t* str = new (std in GenerateRandArray()
[all...]
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/remote/
H A Dremote_audio_renderer_sink.cpp44 using namespace std;
87 explicit RemoteAudioRendererSinkInner(const std::string &deviceNetworkId);
110 int32_t SetAudioScene(AudioScene audioScene, std::vector<DeviceType> &activeDevices) override;
111 int32_t SetOutputRoutes(std::vector<DeviceType> &outputDevices) override;
112 void SetAudioParameter(const AudioParamKey key, const std::string &condition, const std::string &value) override;
113 std::string GetAudioParameter(const AudioParamKey key, const std::string &condition) override;
122 void OnAudioParamChange(const std::string &adapterName, const AudioParamKey key, const std
[all...]
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/sample/
H A Dvenc_sample.cpp31 using namespace std;
50 std::atomic<uint32_t> g_shaBufferCount = 0;
53 void UpdateSHA(std::unique_ptr<std::ofstream> &outFile, const char *addr, int32_t size, bool needCheckSHA) in UpdateSHA()
72 VEncCallbackTest::VEncCallbackTest(std::shared_ptr<VEncSignal> signal) : signal_(signal) {} in VEncCallbackTest()
86 void VEncCallbackTest::OnStreamChanged(std::shared_ptr<FormatMock> format) in OnStreamChanged()
91 void VEncCallbackTest::OnNeedInputData(uint32_t index, std::shared_ptr<AVMemoryMock> data) in OnNeedInputData()
105 void VEncCallbackTest::OnNewOutputData(uint32_t index, std::shared_ptr<AVMemoryMock> data, OH_AVCodecBufferAttr attr) in OnNewOutputData()
120 VEncCallbackTestExt::VEncCallbackTestExt(std::shared_ptr<VEncSignal> signal) : signal_(signal) {} in VEncCallbackTestExt()
134 void VEncCallbackTestExt::OnStreamChanged(std
[all...]
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_server_test/
H A Dcodec_server_coverage_unit_test.cpp42 std::string codecName = "video.F.Decoder.Name.00"; in CreateFCodecByName()
50 .WillOnce(Return(std::make_shared<CodecBase>())); in CreateFCodecByName()
51 EXPECT_CALL(*codecBaseMock_, SetCallback(std::shared_ptr<AVCodecCallback>(nullptr))) in CreateFCodecByName()
54 EXPECT_CALL(*codecBaseMock_, SetCallback(std::shared_ptr<MediaCodecCallback>(nullptr))) in CreateFCodecByName()
64 std::string codecName = "video.F.Decoder.Name.00"; in CreateFCodecByMime()
65 std::string codecMime = CODEC_MIME_MOCK_00; in CreateFCodecByMime()
73 .WillOnce(Return(std::make_shared<CodecBase>())); in CreateFCodecByMime()
74 EXPECT_CALL(*codecBaseMock_, SetCallback(std::shared_ptr<AVCodecCallback>(nullptr))) in CreateFCodecByMime()
77 EXPECT_CALL(*codecBaseMock_, SetCallback(std::shared_ptr<MediaCodecCallback>(nullptr))) in CreateFCodecByMime()
88 std in CreateHCodecByName()
[all...]
/foundation/multimodalinput/input/frameworks/proxy/events/src/
H A Dinput_manager_util.cpp121 std::shared_ptr<KeyOption> InputManagerUtil::InitOption( in InitOption()
122 const std::set<int32_t> &preKeys, int32_t finalKey, bool isFinalKeyDown, int32_t duration) in InitOption()
124 std::shared_ptr<KeyOption> keyOption = std::make_shared<KeyOption>(); in InitOption()
132 std::shared_ptr<PointerEvent> InputManagerUtil::SetupPointerEvent001() in SetupPointerEvent001()
157 std::shared_ptr<PointerEvent> InputManagerUtil::SetupPointerEvent002() in SetupPointerEvent002()
182 std::shared_ptr<PointerEvent> InputManagerUtil::SetupPointerEvent003() in SetupPointerEvent003()
207 std::shared_ptr<PointerEvent> InputManagerUtil::SetupPointerEvent005() in SetupPointerEvent005()
235 std::shared_ptr<PointerEvent> InputManagerUtil::SetupPointerEvent006() in SetupPointerEvent006()
260 std
[all...]
/foundation/communication/nfc/frameworks/js/napi/common/
H A Dnfc_napi_common_utils.cpp25 bool ParseString(napi_env env, std::string &param, napi_value args) in ParseString()
79 bool ParseBytesVector(napi_env env, std::vector<unsigned char> &vec, napi_value args) in ParseBytesVector()
107 bool ParseUInt32Vector(napi_env& env, std::vector<uint32_t>& vec, napi_value &args) in ParseUInt32Vector()
135 bool ParseStringVector(napi_env &env, std::vector<std::string> &vec, napi_value &args, uint32_t maxLen) in ParseStringVector()
160 std::string stringValue; in ParseStringVector()
177 std::string bundleName; in ParseElementName()
182 std::string moduleName; in ParseElementName()
187 std::string abilityName; in ParseElementName()
227 std
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_natural_store.cpp71 std::vector<uint8_t> vect(reinterpret_cast<uint8_t *>(&block), in CalcFileBlockCheckSum()
73 std::vector<uint8_t> hashVect; in CalcFileBlockCheckSum()
93 std::vector<uint8_t> vect(reinterpret_cast<uint8_t *>(&block), in CheckFileBlock()
95 std::vector<uint8_t> hashVect; in CheckFileBlock()
108 int CreateNewVersionFile(const std::string &versionFileDir, uint32_t version, std::vector<uint8_t> &tag) in CreateNewVersionFile()
144 int ChangeVersionFile(const std::string &versionFileDir, uint32_t version, std::vector<uint8_t> &tag, in ChangeVersionFile()
193 int GetVersionAndTag(const std::string &versionFileDir, uint32_t &version, std
587 GetCommitTree(const std::map<std::string, MultiVerCommitNode> &commitMap, std::vector<MultiVerCommitNode> &commits) const GetCommitTree() argument
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/cj/src/
H A Drelational_store_impl_rdbstore.cpp59 carrStrFunc = [ lambda = CJLambda::Create(cFunc)](const std::vector<std::string> &devices) -> in RdbStoreObserverImpl()
67 void { lambda(ToCArrRetChangeInfo(origin, fields, std::move(changeInfo))); }; in RdbStoreObserverImpl()
94 RdbStoreImpl::RdbStoreImpl(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore) in RdbStoreImpl()
112 std::string keyStr = valuesBucket.key[i]; in ConvertFromValueBucket()
118 std::shared_ptr<NativeRdb::ResultSet> RdbStoreImpl::Query(RdbPredicatesImpl &predicates, char** column, in Query()
121 std::vector<std::string> columnsVector = std::vector<std in Query()
[all...]
/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
H A Dcamera_manager.cpp62 using namespace std;
67 std::mutex CameraManager::g_instanceMutex;
69 const std::string CameraManager::surfaceFormat = "CAMERA_SURFACE_FORMAT";
71 const std::unordered_map<camera_format_t, CameraFormat> CameraManager::metaToFwCameraFormat_ = {
85 const std::unordered_map<DepthDataAccuracyType, DepthDataAccuracy> CameraManager::metaToFwDepthDataAccuracy_ = {
90 const std::unordered_map<CameraFormat, camera_format_t> CameraManager::fwToMetaCameraFormat_ = {
104 const std::unordered_map<OperationMode, SceneMode> g_metaToFwSupportedMode_ = {
127 const std::unordered_map<SceneMode, OperationMode> g_fwToMetaSupportedMode_ = {
150 const std::unordered_map<CameraFoldStatus, FoldStatus> g_metaToFwCameraFoldStatus_ = {
156 const std
[all...]
/base/account/os_account/interfaces/kits/napi/account_iam/include/
H A Dnapi_account_iam_common.h62 std::shared_ptr<JsIAMCallback> callback;
67 std::vector<uint8_t> extraInfo;
74 std::vector<uint8_t> extraInfo;
78 std::vector<uint8_t> token;
79 std::shared_ptr<JsIAMCallback> callback;
96 std::vector<uint8_t> challenge;
98 std::shared_ptr<AccountSA::IDMCallback> callback;
104 std::string remoteNetworkId;
118 std::mutex mutex_;
124 std
[all...]
/base/notification/common_event_service/frameworks/core/src/
H A Dcommon_event.cpp36 std::mutex CommonEvent::instanceMutex_;
37 std::shared_ptr<CommonEvent> CommonEvent::instance_;
41 std::shared_ptr<CommonEvent> CommonEvent::GetInstance() in GetInstance()
44 std::lock_guard<std::mutex> lock(instanceMutex_); in GetInstance()
46 instance_ = std::make_shared<CommonEvent>(); in GetInstance()
53 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent()
72 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId) in PublishCommonEventAsUser()
90 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerToken) in PublishCommonEvent()
108 const std in PublishCommonEventAsUser()
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dreminder_event_manager.cpp34 static const std::string NOTIFICATION_LABEL = "REMINDER_AGENT";
35 std::shared_ptr<ReminderEventManager::ReminderNotificationSubscriber> ReminderEventManager::subscriber_
38 ReminderEventManager::ReminderEventManager(std::shared_ptr<ReminderDataManager> &reminderDataManager) in ReminderEventManager()
43 void ReminderEventManager::init(std::shared_ptr<ReminderDataManager> &reminderDataManager) const in init()
56 auto customSubscriber = std::make_shared<ReminderEventCustomSubscriber>(customSubscriberInfo, reminderDataManager); in init()
69 auto subscriber = std::make_shared<ReminderEventSubscriber>(subscriberInfo, reminderDataManager); in init()
71 std::string identity = IPCSkeleton::ResetCallingIdentity(); in init()
80 subscriber_ = std::make_shared<ReminderNotificationSubscriber>(reminderDataManager); in init()
88 void ReminderEventManager::SubscribeSystemAbility(std::shared_ptr<ReminderDataManager> &reminderDataManager) const in SubscribeSystemAbility()
91 = new (std in SubscribeSystemAbility()
[all...]
/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_utils_test.cpp33 const std::string TEXT_SMS_CONTENT = "hello world";
157 auto smsCommonUtils = std::make_shared<SmsCommonUtils>(); in HWTEST_F()
159 const std::string str = "*#PPQQ"; in HWTEST_F()
172 auto gsmUtils = std::make_shared<GsmSmsCommonUtils>(); in HWTEST_F()
177 std::string digits; in HWTEST_F()
190 const std::string packDataStr = "hello world"; in HWTEST_F()
191 const std::string digitTestStr = "17288424569"; in HWTEST_F()
194 auto gsmUtils = std::make_shared<GsmSmsCommonUtils>(); in HWTEST_F()
201 std::vector<uint8_t> userDataVec(packData, packData + DIGIT_LEN2); in HWTEST_F()
202 EXPECT_TRUE(std in HWTEST_F()
[all...]
/base/update/updater/services/fs_manager/
H A Dpartitions.cpp35 LOG(ERROR) << "stat error: " << errno << std::endl; in DeviceStat()
69 static std::string LastComponent(const std::string &path) in LastComponent()
71 std::string tmp = ""; in LastComponent()
84 static bool ReadDeviceSysfsFile(BlockDevice &dev, const std::string &file, std::string &strl) in ReadDeviceSysfsFile()
111 static bool SdmmcGetProductInfo(BlockDevice &dev, std::string &type, std::string &name) in SdmmcGetProductInfo()
113 std::string typeStr = "type"; in SdmmcGetProductInfo()
114 std in SdmmcGetProductInfo()
[all...]
/base/time/time_service/services/time/src/
H A Dntp_update_time.cpp33 using namespace std::chrono;
41 const std::string NTP_SERVER_SYSTEM_PARAMETER = "persist.time.ntpserver";
42 const std::string NTP_SERVER_SPECIFIC_SYSTEM_PARAMETER = "persist.time.ntpserver_specific";
44 const std::string AUTO_TIME_SYSTEM_PARAMETER = "persist.time.auto_time";
45 const std::string AUTO_TIME_STATUS_ON = "ON";
46 const std::string AUTO_TIME_STATUS_OFF = "OFF";
51 const std::string DEFAULT_NTP_SERVER = "1.cn.pool.ntp.org";
55 std::mutex NtpUpdateTime::requestMutex_;
68 std::string ntpServer = system::GetParameter(NTP_SERVER_SYSTEM_PARAMETER, DEFAULT_NTP_SERVER); in Init()
69 std in Init()
[all...]
/base/update/updater/services/
H A Dupdater.cpp63 int32_t ExtractUpdaterBinary(PkgManager::PkgManagerPtr manager, std::string &packagePath, in ExtractUpdaterBinary()
64 const std::string &updaterBinary) in ExtractUpdaterBinary()
91 int GetUpdatePackageInfo(PkgManager::PkgManagerPtr pkgManager, const std::string &path) in GetUpdatePackageInfo()
93 std::vector<std::string> components; in GetUpdatePackageInfo()
109 std::vector<uint64_t> stashSizeList = GetStashSizeList(upParams); in IsSpaceCapacitySufficient()
127 std::vector<uint64_t> GetStashSizeList(const UpdaterParams &upParams) in GetStashSizeList()
129 const std::string maxStashFileName = "all_max_stash"; in GetStashSizeList()
130 std::vector<uint64_t> stashSizeList; in GetStashSizeList()
136 return std in GetStashSizeList()
[all...]
/base/useriam/user_auth_framework/services/core/src/
H A Dschedule_node_impl.cpp37 ScheduleNodeImpl::ScheduleNodeImpl(ScheduleInfo &info) : info_(std::move(info)) in ScheduleNodeImpl()
111 std::weak_ptr<ResourceNode> ScheduleNodeImpl::GetCollectorExecutor() const in GetCollectorExecutor()
116 std::weak_ptr<ResourceNode> ScheduleNodeImpl::GetVerifyExecutor() const in GetVerifyExecutor()
121 std::optional<std::vector<uint64_t>> ScheduleNodeImpl::GetTemplateIdList() const in GetTemplateIdList()
124 return std::nullopt; in GetTemplateIdList()
137 std::shared_ptr<ScheduleNodeCallback> ScheduleNodeImpl::GetScheduleCallback() in GetScheduleCallback()
139 std::lock_guard<std::mutex> lock(mutex_); in GetScheduleCallback()
145 std in ClearScheduleCallback()
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/src/
H A Ddistributed_sched_continuation.cpp26 const std::string TAG = "DSchedContinuation";
27 const std::u16string NAPI_MISSION_CENTER_INTERFACE_TOKEN = u"ohos.DistributedSchedule.IMissionCallback";
29 const std::u16string DSCHED_EVENT_TOKEN = u"ohos.distributedSchedule.dschedeventlistener";
36 continuationHandler_ = std::make_shared<ContinuationHandler>(runner, shared_from_this(), contCallback); in Init()
57 std::lock_guard<std::mutex> autoLock(continuationLock_); in PushAbilityToken()
81 std::lock_guard<std::mutex> autoLock(continuationLock_); in PopAbilityToken()
97 std::lock_guard<std in GenerateSessionId()
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_update_form_test/
H A Dfms_form_mgr_update_form_test.cpp49 const std::string PERMISSION_NAME_REQUIRE_FORM = "ohos.permission.REQUIRE_FORM";
50 const std::string PARAM_PROVIDER_PACKAGE_NAME = "com.form.provider.app.test.ability";
51 const std::string FORM_PROVIDER_BUNDLE_NAME = "com.form.provider.service";
52 const std::string PARAM_PROVIDER_MODULE_NAME = "com.form.provider.app.test.ability";
53 const std::string FORM_PROVIDER_ABILITY_NAME = "com.form.provider.app.test.ability";
54 const std::string PARAM_FORM_NAME = "com.form.name.test";
55 const std::string FORM_JS_COMPONENT_NAME = "jsComponentName";
56 const std::string FORM_PROVIDER_MODULE_SOURCE_DIR = "";
57 const std::string FORM_HOST_BUNDLE_NAME = "com.form.host.app";
58 const std
[all...]
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtp/src/
H A Drtp_codec_ts.cpp26 static std::mutex frameLock;
42 std::lock_guard<std::mutex> lock(frameLock); in Release()
75 decodeThread_ = std::make_unique<std::thread>(&RtpDecoderTs::StartDecoding, this); in InputRtp()
83 std::lock_guard<std::mutex> lock(queueMutex_); in InputRtp()
138 auto outFrame = std::make_shared<H264Frame>((uint8_t *)buf, len, (uint32_t)packet->dts, in StartDecoding()
140 std::lock_guard<std in StartDecoding()
[all...]

Completed in 39 milliseconds

1...<<551552553554555556557558559560>>...2713