/third_party/spirv-tools/test/val/ |
H A D | val_primitives_test.cpp | 31 std::string GenerateShaderCode( in GenerateShaderCode() 32 const std::string& body, in GenerateShaderCode() 33 const std::string& capabilities_and_extensions = in GenerateShaderCode() 35 const std::string& execution_model = "Geometry") { in GenerateShaderCode() 36 std::ostringstream ss; in GenerateShaderCode() 77 std::string CallAndCallee(const std::string& body) { in CallAndCallee() 78 std::ostringstream ss; in CallAndCallee() 166 const std::string body = R"( in TEST_F() 206 const std in TEST_F() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/util/ |
H A D | vktDrawUtil.hpp | 71 std::vector<deUint32> sampleMasks; 81 DrawCallData(const vk::VkPrimitiveTopology topology_, const std::vector<tcu::Vec4>& vertices_); 84 const std::vector<tcu::Vec4>& vertices; 105 std::vector<PipelineState> m_pipelineStates; 106 std::vector<DrawCallData> m_drawCallData; 116 std::shared_ptr<rr::VertexShader>& vertexShader, 117 std::shared_ptr<rr::FragmentShader>& fragmentShader, 122 std::vector<std::shared_ptr<rr::VertexShader>> m_vertexShaders; 123 std [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineShaderModuleIdentifierTests.cpp | 72 using StringVec = std::vector<std::string>; 75 using ShaderModuleId = std::vector<uint8_t>; 76 using ShaderModuleIdPtr = std::unique_ptr<ShaderModuleId>; 77 using ShaderStageIdPtr = std::unique_ptr<VkPipelineShaderStageModuleIdentifierCreateInfoEXT>; 250 using GraphicsShaderVec = std::vector<GraphicsShaderType>; 251 using RTShaderVec = std::vector<RayTracingShaderType>; 253 std::ostream& operator<<(std::ostream& out, GraphicsShaderType type) in operator <<() 269 std [all...] |
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/ |
H A D | camera_framework_unittest.cpp | 79 ON_CALL(*this, IsStreamsSupported(_, _, A<const std::shared_ptr<OHOS::HDI::Camera::V1_0::StreamInfo> &>(), _)) in MockStreamOperator() 81 ON_CALL(*this, IsStreamsSupported(_, _, A<const std::vector<OHOS::HDI::Camera::V1_0::StreamInfo> &>(), _)) in MockStreamOperator() 83 ON_CALL(*this, IsStreamsSupported_V1_1(_, _, A<const std::shared_ptr<StreamInfo> &>(), _)) in MockStreamOperator() 85 ON_CALL(*this, IsStreamsSupported_V1_1(_, _, A<const std::vector<StreamInfo_V1_1> &>(), _)) in MockStreamOperator() 94 const std::vector<OHOS::HDI::Camera::V1_0::StreamInfo>& streamInfos)); 96 const std::vector<StreamInfo_V1_1>& streamInfos)); 97 MOCK_METHOD1(ReleaseStreams, int32_t(const std::vector<int32_t>& streamIds)); 100 std::vector<StreamAttribute>& attributes)); 102 MOCK_METHOD2(CommitStreams, int32_t(OperationMode mode, const std::vector<uint8_t>& modeSetting)); 104 const std [all...] |
/base/account/os_account/interfaces/kits/napi/account_iam/include/ |
H A D | napi_account_iam_common.h | 62 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 D | common_event.cpp | 36 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 D | reminder_event_manager.cpp | 34 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 D | zero_branch_utils_test.cpp | 33 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 D | partitions.cpp | 35 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 D | ntp_update_time.cpp | 33 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 D | updater.cpp | 63 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 D | schedule_node_impl.cpp | 37 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 D | distributed_sched_continuation.cpp | 26 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 D | fms_form_mgr_update_form_test.cpp | 49 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 D | rtp_codec_ts.cpp | 26 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...] |
/foundation/arkui/ace_engine/frameworks/base/log/ |
H A D | ace_performance_check.cpp | 39 std::unique_ptr<JsonValue> AcePerformanceCheck::performanceInfo_ = nullptr; 40 std::string AceScopedPerformanceCheck::currentPath_; 41 std::vector<std::pair<int64_t, std::string>> AceScopedPerformanceCheck::records_; 57 std::unique_ptr<std::ostream> ss = std::make_unique<std::ofstream>(filePath); in Stop() 59 DumpLog::GetInstance().SetDumpFile(std in Stop() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_sub_2_test.cpp | 55 EXPECT_EQ(pattern_->GetUserUnderlineColor().normal, std::nullopt); in HWTEST_F() 56 EXPECT_EQ(pattern_->GetUserUnderlineColor().typing, std::nullopt); in HWTEST_F() 57 EXPECT_EQ(pattern_->GetUserUnderlineColor().error, std::nullopt); in HWTEST_F() 58 EXPECT_EQ(pattern_->GetUserUnderlineColor().disable, std::nullopt); in HWTEST_F() 71 EXPECT_EQ(userColorRes.typing, std::nullopt); in HWTEST_F() 73 EXPECT_EQ(userColorRes.error, std::nullopt); in HWTEST_F() 74 EXPECT_EQ(userColorRes.disable, std::nullopt); in HWTEST_F() 97 userColor.normal = std::nullopt; in HWTEST_F() 106 EXPECT_EQ(userColorRes.normal, std::nullopt); in HWTEST_F() 107 EXPECT_EQ(userColorRes.error, std in HWTEST_F() [all...] |
/foundation/graphic/graphic_surface/surface/src/ |
H A D | surface_utils.cpp | 24 static std::once_flag createFlag_; 29 std::call_once(createFlag_, [&]() { in GetInstance() 45 std::lock_guard<std::mutex> lockGuard(mutex_); in GetSurface() 64 std::lock_guard<std::mutex> lockGuard(mutex_); in Add() 75 std::lock_guard<std::mutex> lockGuard(mutex_); in Remove() 85 std::array<float, MATRIX_ARRAY_SIZE> SurfaceUtils::MatrixProduct(const std argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/ |
H A D | rs_sub_thread.cpp | 55 std::string name = "RSSubThread" + std::to_string(threadIndex_); in Start() 57 handler_ = std::make_shared<AppExecFwk::EventHandler>(runner_); in Start() 71 grContext_->RegisterPostFunc([this](const std::function<void()>& task) { in Start() 78 void RSSubThread::PostTask(const std::function<void()>& task, const std::string& name) in PostTask() 85 void RSSubThread::PostSyncTask(const std::function<void()>& task) in PostSyncTask() 92 void RSSubThread::RemoveTask(const std::string& name) in RemoveTask() 101 std::vector<std in DumpMem() [all...] |
/foundation/graphic/graphic_surface/surface/include/ |
H A D | buffer_queue.h | 55 std::vector<Rect> damages; 58 std::vector<GraphicHDRMetaData> metaData; 60 std::vector<uint8_t> metaDataSet; 77 BufferQueue(const std::string &name, bool isShared = false); 100 int64_t ×tamp, std::vector<Rect> &damages); 116 GSError GetName(std::string &name); 138 void Dump(std::string &result); 143 GSError IsSupportedAlloc(const std::vector<BufferVerifyAllocInfo> &infos, 144 std::vector<bool> &supporteds) const; 153 GSError SetMetaData(uint32_t sequence, const std [all...] |
/foundation/multimedia/av_codec/services/engine/codec/audio/decoder/ |
H A D | audio_ffmpeg_decoder_plugin.cpp | 55 int32_t AudioFfmpegDecoderPlugin::ProcessSendData(const std::shared_ptr<AudioBufferInfo> &inputBuffer) in ProcessSendData() 57 std::lock_guard<std::mutex> lock(avMutext_); in ProcessSendData() 65 static std::string AVStrError(int errnum) in AVStrError() 69 return std::string(errbuf); in AVStrError() 82 int32_t AudioFfmpegDecoderPlugin::SendBuffer(const std::shared_ptr<AudioBufferInfo> &inputBuffer) in SendBuffer() 125 int32_t AudioFfmpegDecoderPlugin::ProcessRecieveData(std::shared_ptr<AudioBufferInfo> &outBuffer) in ProcessRecieveData() 127 std::lock_guard<std::mutex> l(avMutext_); in ProcessRecieveData() 135 int32_t AudioFfmpegDecoderPlugin::ReceiveBuffer(std [all...] |
/foundation/multimedia/av_codec/frameworks/native/avcodec/ |
H A D | avcodec_audio_codec_impl.cpp | 28 const std::string_view ASYNC_HANDLE_INPUT = "OS_ACodecIn"; 29 const std::string_view ASYNC_OUTPUT_FRAME = "OS_ACodecOut"; 50 int32_t AVCodecAudioCodecImpl::Init(AVCodecType type, bool isMimeType, const std::string &name) in Init() 60 inputTask_ = std::make_unique<TaskThread>(ASYNC_HANDLE_INPUT); in Init() 61 outputTask_ = std::make_unique<TaskThread>(ASYNC_OUTPUT_FRAME); in Init() 196 std::shared_ptr<AVBuffer> buffer; in QueueInputBuffer() 198 std::unique_lock lock(inputMutex_); in QueueInputBuffer() 211 std::unique_lock lock(outputMutex_2); in QueueInputBuffer() 240 std::shared_ptr<Media::Meta> parameter = std in GetOutputFormat() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/ |
H A D | paragraph_impl.cpp | 41 int weight = std::clamp((fontWeight - 100) / 100, minWeight, maxWeight); in GetTxtFontWeight() 51 std::vector<TextBox> GetTxtTextBoxes(const std::vector<skt::TextBox>& skiaBoxes) in GetTxtTextBoxes() 53 std::vector<TextBox> boxes; in GetTxtTextBoxes() 61 ParagraphImpl::ParagraphImpl(std::unique_ptr<skt::Paragraph> paragraph, std::vector<PaintRecord>&& paints) in ParagraphImpl() 62 : paragraph_(std::move(paragraph)), paints_(std::move(paints)) in ParagraphImpl() 157 void ParagraphImpl::SetIndents(const std::vector<float>& indents) in SetIndents() 231 std [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_asset_rdbstore.cpp | 30 using namespace std;
38 const std::string MEDIA_LIBRARY_STARTUP_PARAM_PREFIX = "multimedia.medialibrary.startup.";
39 const std::string RBDSTORE_DATE_ADDED_TIME_TEMPLATE = "0000000000000";
40 const std::string RBDSTORE_FIELD_ID_TEMPLATE = "0000000000";
42 const std::unordered_set<OperationObject> OPERATION_OBJECT_SET = {
48 const std::unordered_set<OperationType> OPERATION_TYPE_SET = {
52 std::string GetTableNameFromOprnObject(const OperationObject& object)
in GetTableNameFromOprnObject() 67 const std::string opType = MediaFileUri::GetPathSecondDentry(uri);
in GetOprnTypeFromUri() 81 std::string uriString = uri.ToString();
in GetOprnObjectFromUri() 100 const std [all...] |
/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/ |
H A D | camera_napi_object.h | 36 typedef std::variant<bool*, int32_t*, uint32_t*, int64_t*, float*, double*, std::string*, CameraNapiObject*, 37 napi_value, std::vector<int32_t>*, std::list<CameraNapiObject>*> 40 typedef std::unordered_map<std::string, NapiVariantBindAddr> CameraNapiObjFieldMap; 63 if (std::holds_alternative<bool*>(bindAddr)) { in ParseNapiObjectToMap() 65 } else if (std::holds_alternative<int32_t*>(bindAddr)) { in ParseNapiObjectToMap() 67 } else if (std::holds_alternative<uint32_t*>(bindAddr)) { in ParseNapiObjectToMap() 69 } else if (std in ParseNapiObjectToMap() [all...] |