Home
last modified time | relevance | path

Searched refs:std (Results 19626 - 19650 of 66488) sorted by relevance

1...<<781782783784785786787788789790>>...2660

/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_audio_connection.h38 std::string addr {""};
78 static void SetActiveDevice(const std::string &address);
85 static std::string GetActiveDevice();
92 static bool IsAudioConnected(const std::string &address);
137 void SetRemoteAddr(const std::string &addr);
215 std::vector<HfpAgAudioConnection::AudioDevice>::iterator dev, const std::string &address);
223 static BtAddr ConvertToBtAddr(std::string address);
231 static std::vector<HfpAgAudioConnection::AudioDevice>::iterator GetDeviceByAddr(const std
[all...]
H A Dhfp_ag_command_parser.cpp43 std::vector<uint8_t> data(pData, pData + len); in Read()
49 void HfpAgCommandParser::Parse(HfpAgDataConnection &dataConn, std::vector<uint8_t> &data, size_t len) const in Parse()
51 std::string cmd; in Parse()
52 std::string arg; in Parse()
66 std::vector<uint8_t> partData(data.begin() + pos, data.end()); in Parse()
74 int HfpAgCommandParser::Extract(std::vector<uint8_t> &data, std::string &cmd, std::string &arg, in Extract()
98 cmd = std::string((char *)&data[position.startPos], cmdLen); in Extract()
104 arg = std in Extract()
[all...]
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/unittest/capturer_test/src/
H A Daudio_capturer_extra_plus_unit_test.cpp29 using namespace std;
95 auto capturer = std::make_unique<AudioCapturerPrivate>(STREAM_MUSIC, appInfo, false); in HWTEST()
102 auto interruptCallback = std::make_unique<AudioCapturerInterruptCallbackImpl>(nullptr); in HWTEST()
128 auto testAudioStremStub = std::make_shared<TestAudioStremStub>(); in HWTEST()
158 auto capturer = std::make_unique<AudioCapturerPrivate>(STREAM_MUSIC, appInfo, false); in HWTEST()
170 std::vector<SourceType> targetSources; in HWTEST()
194 auto capturer = std::make_unique<AudioCapturerPrivate>(STREAM_MUSIC, appInfo, false); in HWTEST()
197 capturer->audioStream_ = std::make_shared<TestAudioStremStub>(); in HWTEST()
198 auto audioStream2 = std::make_shared<TestAudioStremStub>(); in HWTEST()
202 capturer->audioPolicyServiceDiedCallback_ = std in HWTEST()
[all...]
/foundation/multimedia/av_codec/services/media_engine/filters/
H A Dsubtitle_sink_filter.cpp35 FilterType::FILTERTYPE_SSINK, [](const std::string& name, const FilterType type) {
36 return std::make_shared<SubtitleSinkFilter>(name, FilterType::FILTERTYPE_SSINK);
40 std::shared_ptr<SubtitleSinkFilter> subtitleSinkFilter) in AVBufferAvailableListener()
54 SubtitleSinkFilter::SubtitleSinkFilter(const std::string& name, FilterType filterType) in SubtitleSinkFilter()
58 subtitleSink_ = std::make_shared<SubtitleSink>(); in SubtitleSinkFilter()
67 void SubtitleSinkFilter::Init(const std::shared_ptr<EventReceiver> &receiver, in Init()
68 const std::shared_ptr<FilterCallback> &callback) in Init()
176 void SubtitleSinkFilter::SetParameter(const std::shared_ptr<Meta>& meta) in SetParameter()
182 void SubtitleSinkFilter::GetParameter(std::shared_ptr<Meta>& meta) in GetParameter()
187 Status SubtitleSinkFilter::OnLinked(StreamType inType, const std
[all...]
/foundation/multimedia/av_codec/frameworks/native/avcodec/
H A Davcodec_video_decoder_impl.cpp28 std::shared_ptr<AVCodecVideoDecoder> VideoDecoderFactory::CreateByMime(const std::string &mime) in CreateByMime()
30 std::shared_ptr<AVCodecVideoDecoder> impl = nullptr; in CreateByMime()
40 std::shared_ptr<AVCodecVideoDecoder> VideoDecoderFactory::CreateByName(const std::string &name) in CreateByName()
42 std::shared_ptr<AVCodecVideoDecoder> impl = nullptr; in CreateByName()
53 int32_t VideoDecoderFactory::CreateByMime(const std::string &mime, in CreateByMime()
54 Format &format, std::shared_ptr<AVCodecVideoDecoder> &decoder) in CreateByMime()
56 auto impl = std::make_shared<AVCodecVideoDecoderImpl>(); in CreateByMime()
66 int32_t VideoDecoderFactory::CreateByName(const std
[all...]
/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/callback/
H A Dnapi_audio_rounting_available_devicechange_callback.cpp45 std::lock_guard<std::mutex> lock(mutex_); in SaveRoutingAvailbleDeviceChangeCbRef()
58 std::shared_ptr<AutoRef> cb = std::make_shared<AutoRef>(env_, callbackRef); in SaveRoutingAvailbleDeviceChangeCbRef()
67 std::lock_guard<std::mutex> lock(mutex_); in RemoveRoutingAvailbleDeviceChangeCbRef()
82 std::lock_guard<std::mutex> lock(mutex_); in RemoveAllRoutinAvailbleDeviceChangeCb()
89 std::lock_guard<std in GetRoutingAvailbleDeviceChangeCbListSize()
[all...]
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/
H A Dstream_parser_manager.cpp23 const std::string HEVC_LIB_PATH = "libav_codec_hevc_parser.z.so";
24 const std::string VVC_LIB_PATH = "libav_codec_vvc_parser.z.so";
31 std::mutex StreamParserManager::mtx_;
32 std::map<StreamType, void *> StreamParserManager::handlerMap_ {};
33 std::map<StreamType, CreateFunc> StreamParserManager::createFuncMap_ {};
34 std::map<StreamType, DestroyFunc> StreamParserManager::destroyFuncMap_ {};
51 std::lock_guard<std::mutex> lock(mtx_); in Init()
56 std::string streamParserPath; in Init()
75 std
[all...]
/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Dibuffer_producer.h46 std::vector<uint32_t> deletingBuffers;
54 virtual GSError RequestBuffers(const BufferRequestConfig &config, std::vector<sptr<BufferExtraData>> &bedata,
55 std::vector<RequestBufferReturnValue> &retvalues) = 0;
62 virtual GSError FlushBuffers(const std::vector<uint32_t> &sequences,
63 const std::vector<sptr<BufferExtraData>> &bedata,
64 const std::vector<sptr<SyncFence>> &fences,
65 const std::vector<BufferFlushConfigWithDamages> &configs) = 0;
73 virtual GSError GetName(std::string &name) = 0;
75 virtual GSError GetNameAndUniqueId(std::string& name, uint64_t& uniqueId) = 0;
89 virtual GSError IsSupportedAlloc(const std
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/command/
H A Drs_animation_command.h117 RSContext& context, NodeId targetId, const std::shared_ptr<RSRenderAnimation>& animation);
119 const std::shared_ptr<RSRenderParticleAnimation>& animation);
128 InteractiveImplictAnimatorId targetId, std::vector<std::pair<NodeId, AnimationId>> animations,
132 InteractiveImplictAnimatorId targetId, std::vector<std::pair<NodeId, AnimationId>> animations);
166 NodeId, std::shared_ptr<RSRenderCurveAnimation>))
171 std::shared_ptr<RSRenderParticleAnimation>))
175 AnimationCommandHelper::CreateAnimation, NodeId, std::shared_ptr<RSRenderKeyframeAnimation>))
179 AnimationCommandHelper::CreateAnimation, NodeId, std
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_render_property_animation.cpp27 const std::shared_ptr<RSRenderPropertyBase>& originValue) : RSRenderAnimation(id), propertyId_(propertyId), in RSRenderPropertyAnimation()
31 void RSRenderPropertyAnimation::DumpAnimationInfo(std::string& out) const in DumpAnimationInfo()
37 out += ", ModifierType: " + std::to_string(static_cast<int16_t>(property_->GetModifierType())); in DumpAnimationInfo()
63 void RSRenderPropertyAnimation::AttachRenderProperty(const std::shared_ptr<RSRenderPropertyBase>& property) in AttachRenderProperty()
117 void RSRenderPropertyAnimation::SetPropertyValue(const std::shared_ptr<RSRenderPropertyBase>& value) in SetPropertyValue()
124 const std::shared_ptr<RSRenderPropertyBase> RSRenderPropertyAnimation::GetPropertyValue() const in GetPropertyValue()
137 const std::shared_ptr<RSRenderPropertyBase>& RSRenderPropertyAnimation::GetOriginValue() const in GetOriginValue()
142 const std::shared_ptr<RSRenderPropertyBase>& RSRenderPropertyAnimation::GetLastValue() const in GetLastValue()
147 void RSRenderPropertyAnimation::SetAnimationValue(const std::shared_ptr<RSRenderPropertyBase>& value) in SetAnimationValue()
149 std in SetAnimationValue()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dsurface_test.cpp50 auto surface = std::make_unique<Surface>(); in HWTEST_F()
62 auto surface = std::make_unique<Surface>(); in HWTEST_F()
76 auto surface = std::make_unique<Surface>(); in HWTEST_F()
93 auto surface = std::make_unique<Surface>(); in HWTEST_F()
107 auto surface = std::make_unique<Surface>(); in HWTEST_F()
112 info.gpuContext = std::make_shared<GPUContext>(); in HWTEST_F()
128 auto surface = std::make_unique<Surface>(); in HWTEST_F()
142 auto surface = std::make_unique<Surface>(); in HWTEST_F()
160 auto surface = std::make_unique<Surface>(); in HWTEST_F()
174 auto surface = std in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/kits/cj/src/
H A Dpixel_map_impl.cpp21 std::shared_ptr<PixelMap> PixelMapImpl::GetRealPixelMap() in GetRealPixelMap()
26 std::unique_ptr<PixelMap> PixelMapImpl::CreatePixelMap(const InitializationOptions &opts) in CreatePixelMap()
33 std::unique_ptr<PixelMap> ptr_ = PixelMap::Create(opts); in CreatePixelMap()
40 std::unique_ptr<PixelMap> PixelMapImpl::CreatePixelMap(uint32_t *colors, uint32_t colorLength, in CreatePixelMap()
48 std::unique_ptr<PixelMap> ptr_ = PixelMap::Create(colors, colorLength, opts); in CreatePixelMap()
55 std::unique_ptr<PixelMap> PixelMapImpl::CreateAlphaPixelMap(PixelMap &source, InitializationOptions &opts) in CreateAlphaPixelMap()
57 std::unique_ptr<PixelMap> ptr_ = PixelMap::Create(source, opts); in CreateAlphaPixelMap()
64 uint32_t PixelMapImpl::CreatePremultipliedPixelMap(std::shared_ptr<PixelMap> src, std::shared_ptr<PixelMap> dst) in CreatePremultipliedPixelMap()
78 uint32_t PixelMapImpl::CreateUnpremultipliedPixelMap(std
[all...]
/foundation/multimedia/media_foundation/src/buffer/avsharedmemory/
H A Davsharedmemorybase.cpp33 AVSharedMemoryBaseImpl(int32_t fd, int32_t size, uint32_t flags, const std::string &name) in AVSharedMemoryBaseImpl()
37 std::shared_ptr<AVSharedMemory> AVSharedMemoryBase::CreateFromLocal( in CreateFromLocal()
38 int32_t size, uint32_t flags, const std::string &name) in CreateFromLocal()
40 std::shared_ptr<AVSharedMemoryBase> memory = std::make_shared<AVSharedMemoryBase>(size, flags, name); in CreateFromLocal()
50 std::shared_ptr<AVSharedMemory> AVSharedMemoryBase::CreateFromRemote( in CreateFromRemote()
51 int32_t fd, int32_t size, uint32_t flags, const std::string &name) in CreateFromRemote()
53 std::shared_ptr<AVSharedMemoryBase> memory = std::make_shared<AVSharedMemoryBaseImpl>(fd, size, flags, name); in CreateFromRemote()
63 AVSharedMemoryBase::AVSharedMemoryBase(int32_t size, uint32_t flags, const std
[all...]
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dcodec_utils.cpp30 const static std::map<HDF_STATUS, std::string> hdfStatusMap = {
59 const static std::map<OMX_ERRORTYPE, std::string> omxErrorTypeMap = {
103 const static std::pair<int32_t, Status> retStatusMap[] = {
111 std::string HdfStatus2String(int32_t status) in HdfStatus2String()
121 std::string OmxErrorType2String(uint32_t errorType) in OmxErrorType2String()
132 bool TranslatesByMap(const T& t, U& u, const std::pair<T, U>* transMap, size_t mapSize) in TranslatesByMap() argument
168 static const std::map<std
[all...]
/foundation/multimedia/image_effect/frameworks/native/effect/manager/colorspace_manager/
H A Dcolorspace_strategy.cpp27 static const std::unordered_map<EffectColorSpace, EffectColorSpace> COLORSPACE_CONVERTER_MAP = {
39 static const std::unordered_map<EffectColorSpace, EffectColorSpace> COLORSPACE_HDR_CONVERTER_MAP = {
46 static const std::vector<EffectColorSpace> DEFAULT_SUPPORTED_COLORSPACE = {
81 std::unordered_set<EffectColorSpace> ColorSpaceStrategy::GetAllSupportedColorSpaces() in GetAllSupportedColorSpaces()
83 std::unordered_set<EffectColorSpace> supportedColorSpace; in GetAllSupportedColorSpaces()
91 void ColorSpaceStrategy::Init(const std::shared_ptr<EffectBuffer> &src, const std::shared_ptr<EffectBuffer> &dst) in Init()
98 const std::unordered_set<EffectColorSpace> &filtersSupportedColorSpace, EffectColorSpace &outputColorSpace) in ChooseColorSpaceInner()
105 if (std::find(DEFAULT_SUPPORTED_COLORSPACE.begin(), DEFAULT_SUPPORTED_COLORSPACE.end(), srcRealColorSpace) != in ChooseColorSpaceInner()
122 const std in ChooseColorSpaceWithOutput()
[all...]
/foundation/multimedia/media_library/frameworks/native/c_api/
H A Dmedia_asset_helper_impl.cpp29 std::shared_ptr<MediaAssetHelper> MediaAssetHelperFactory::CreateMediaAssetHelper() in CreateMediaAssetHelper()
31 std::shared_ptr<MediaAssetHelperImpl> impl = std::make_shared<MediaAssetHelperImpl>(); in CreateMediaAssetHelper()
41 OH_MediaAsset* MediaAssetHelperImpl::GetMediaAsset(std::string uri, int32_t cameraShotType, std::string burstKey) in GetMediaAsset()
43 std::shared_ptr<FileAsset> fileAsset = std::make_shared<FileAsset>(); in GetMediaAsset()
47 std::string fileId = MediaFileUtils::GetIdFromUri(uri); in GetMediaAsset()
73 void MediaAssetHelperImpl::InitFileAsset(std::shared_ptr<FileAsset> fileAsset) in InitFileAsset()
110 std
[all...]
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/
H A Ddfx_worker.cpp28 using namespace std;
170 auto now = std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::system_clock::now()); in InitDelayThread()
171 auto executeTime = std::chrono::time_point_cast<std::chrono::milliseconds>(GetWaitTime()); in InitDelayThread()
196 auto firstTime = std::chrono::time_point_cast<std::chrono::milliseconds>(taskOne->executeTime_); in compare()
197 auto secondTime = std::chrono::time_point_cast<std in compare()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedia_datashare_stub_impl.cpp23 std::shared_ptr<MediaDataShareExtAbility> MediaDataShareStubImpl::GetOwner() in GetOwner()
28 std::vector<std::string> MediaDataShareStubImpl::GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) in GetFileTypes()
31 std::vector<std::string> ret; in GetFileTypes()
43 int MediaDataShareStubImpl::OpenFile(const Uri &uri, const std::string &mode) in OpenFile()
56 int MediaDataShareStubImpl::OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile()
84 int MediaDataShareStubImpl::InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string &result) in InsertExt()
124 std
[all...]
/foundation/multimodalinput/input/service/mouse_event_normalize/include/
H A Dmouse_transform_processor.h54 std::vector<int32_t> speeds;
55 std::vector<double> slopes;
56 std::vector<double> diffNums;
58 class MouseTransformProcessor final : public std::enable_shared_from_this<MouseTransformProcessor> {
80 std::shared_ptr<PointerEvent> GetPointerEvent() const;
83 void Dump(int32_t fd, const std::vector<std::string> &args);
111 static int32_t PutConfigDataToDatabase(std::string &key, bool value);
112 static void GetConfigDataFromDatabase(std::string &key, bool &value);
113 static int32_t PutConfigDataToDatabase(std
[all...]
/foundation/multimedia/ringtone_library/services/ringtone_data_extension/src/
H A Dringtone_datashare_stub_impl.cpp23 std::shared_ptr<RingtoneDataShareExtension> RingtoneDataShareStubImpl::GetOwner() in GetOwner()
28 std::vector<std::string> RingtoneDataShareStubImpl::GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter) in GetFileTypes()
31 std::vector<std::string> ret; in GetFileTypes()
43 int RingtoneDataShareStubImpl::OpenFile(const Uri &uri, const std::string &mode) in OpenFile()
56 int RingtoneDataShareStubImpl::OpenRawFile(const Uri &uri, const std::string &mode) in OpenRawFile()
84 int RingtoneDataShareStubImpl::InsertExt(const Uri &uri, const DataShareValuesBucket &value, std::string &result) in InsertExt()
124 std
[all...]
/foundation/multimodalinput/input/service/message_handle/test/
H A Dclient_death_handler_test.cpp43 explicit RemoteObjectTest(std::u16string descriptor) : IRemoteObject(descriptor) {} in RemoteObjectTest()
53 int Dump(int fd, const std::vector<std::u16string> &args) { return 0; } in Dump()
72 clientDeathHdl.clientPidMap_.insert(std::make_pair(pid, remote)); in HWTEST_F()
89 clientDeathHdl.clientPidMap_.insert(std::make_pair(pid, remote)); in HWTEST_F()
93 clientDeathHdl.deathRecipient_ = new (std::nothrow) InputBinderClientDeathRecipient(deathCallback); in HWTEST_F()
109 clientDeathHdl.deathCallbacks_.insert(std::make_pair(type, callback)); in HWTEST_F()
125 clientDeathHdl.deathCallbacks_.insert(std::make_pair(type, callback)); in HWTEST_F()
142 clientDeathHdl.clientPidMap_.insert(std::make_pair(pid, remote)); in HWTEST_F()
161 clientDeathHdl.clientPidMap_.insert(std in HWTEST_F()
[all...]
/foundation/multimodalinput/input/tools/event_inject/src/
H A Dinput_parse.cpp44 void GetJsonData(cJSON *json, const std::string &key, std::string &val) in GetJsonData()
60 void GetJsonData(cJSON *json, const std::string &key, T &val) in GetJsonData()
75 void GetJsonData(cJSON *json, const std::string& key, std::vector<int32_t>& vals) in GetJsonData()
153 bool ParseData(cJSON* events, std::vector<DeviceEvent>& eventData) in ParseData()
180 std::string Pos::ToString() const in ToString()
182 std::ostringstream ss; in ToString()
187 std::string DeviceEvent::ToString() const in ToString()
189 std in ToString()
[all...]
/foundation/multimedia/player_framework/test/unittest/observer_test/observer_unittest/
H A Dincall_observer_func_unittest.cpp22 using namespace std;
68 std::cout << "[SetUp]: SetUp!!!, test: "<< std::endl; in SetUp()
73 std::cout << "[TearDown]: over!!!" << std::endl; in TearDown()
108 auto inCallObserverCallBack = std::make_shared<InCallObserverTestCallBack>(); in HWTEST_F()
124 auto inCallObserverCallBack = std::make_shared<InCallObserverTestCallBack>(); in HWTEST_F()
140 auto inCallObserverCallBack = std::make_shared<InCallObserverTestCallBack>(); in HWTEST_F()
164 auto inCallObserverTestFalseCallBack = std::make_shared<InCallObserverTestFalseCallBack>(); in HWTEST_F()
186 std in HWTEST_F()
[all...]
/foundation/multimodalinput/input/service/subscriber/src/
H A Dswitch_subscriber_handler.cpp37 void SwitchSubscriberHandler::HandleKeyEvent(const std::shared_ptr<KeyEvent> keyEvent) in HandleKeyEvent()
46 void SwitchSubscriberHandler::HandlePointerEvent(const std::shared_ptr<PointerEvent> pointerEvent) in HandlePointerEvent()
55 void SwitchSubscriberHandler::HandleTouchEvent(const std::shared_ptr<PointerEvent> pointerEvent) in HandleTouchEvent()
64 void SwitchSubscriberHandler::HandleSwitchEvent(const std::shared_ptr<SwitchEvent> switchEvent) in HandleSwitchEvent()
90 auto subscriber = std::make_shared<Subscriber>(subscribeId, sess, switchType); in SubscribeSwitchEvent()
91 InsertSubScriber(std::move(subscriber)); in SubscribeSwitchEvent()
110 bool SwitchSubscriberHandler::OnSubscribeSwitchEvent(std::shared_ptr<SwitchEvent> switchEvent) in OnSubscribeSwitchEvent()
129 std::string value = OHOS::system::GetParameter(SUPER_PRIVACY_SWITCH, ""); in OnSubscribeSwitchEvent()
141 void SwitchSubscriberHandler::InsertSubScriber(std::shared_ptr<Subscriber> subs) in InsertSubScriber()
168 void SwitchSubscriberHandler::NotifySubscriber(std
[all...]
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dbundle_active_total_test.cpp73 std::vector<int32_t> activatedOsAccountIds; in HWTEST_F()
90 std::shared_ptr<AppExecFwk::EventRunner> runner; in HWTEST_F()
91 auto reportHandler = std::make_shared<BundleActiveReportHandler>(runner); in HWTEST_F()
92 auto reportHandler1 = std::make_shared<BundleActiveReportHandler>(runner); in HWTEST_F()
98 std::shared_ptr<OHOS::BackgroundTaskMgr::ContinuousTaskCallbackInfo> continuousTaskCallbackInfo; in HWTEST_F()
126 std::string string = "test"; in HWTEST_F()
148 std::vector<AppExecFwk::ApplicationInfo> appInfos; in HWTEST_F()
177 auto reportHandler = std::make_shared<BundleActiveReportHandler>(); in HWTEST_F()
247 std::shared_ptr<map<string, std in HWTEST_F()
[all...]

Completed in 33 milliseconds

1...<<781782783784785786787788789790>>...2660