/foundation/arkui/ace_engine/frameworks/core/animation/test/unittest/svg_animate/ |
H A D | svg_animate_test.cpp | 39 std::shared_ptr<JNIEnv> Platform::JniEnvironment::GetJniEnv(JNIEnv* jniEnv) const in GetJniEnv() 76 std::function<void(T)> callback = [weak = AceType::WeakClaim(this)](T value) { in CreatePropertyAnimate() 84 svgAnimate_->CreatePropertyAnimate(std::move(callback), originValue_, animator_); in CreatePropertyAnimate() 92 std::function<void(double)> callback = [weak = AceType::WeakClaim(this)](double value) { in CreateMotionAnimate() 100 svgAnimate_->CreateMotionAnimate(std::move(callback), animator_); in CreateMotionAnimate() 140 std::unique_ptr<PlatformWindow> platformWindow = AnimationTestUtils::CreatePlatformWindow(); 142 auto window = AnimationTestUtils::CreateWindow(std::move(platformWindow)); 148 std::move(window), taskExecutor, assetManager, resRegister, frontend, 0); 294 std::vector<std in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_model_ng.h | 31 void Create(const std::string& content) override; 37 void SetTextShadow(const std::vector<Shadow>& value) override; 46 void SetFontFamily(const std::vector<std::string>& value) override; 68 void SetOnClick(std::function<void(BaseEventInfo* info)>&& click, double distanceThreshold) override; 70 void SetRemoteMessage(std::function<void()>&& event) override; 72 void SetOnCopy(std::function<void(const std::string&)>&& func) override; 78 void BindSelectionMenu(TextSpanType& spanType, TextResponseType& responseType, std::function<void()>& buildFunc, 80 void SetOnTextSelectionChange(std [all...] |
/foundation/barrierfree/accessibility/frameworks/asacfwk/test/unittest/ |
H A D | accessibility_element_operator_impl_test.cpp | 29 const std::string TEST = "test"; 48 std::shared_ptr<MockAccessibilityElementOperator> operation_ = nullptr; 49 std::shared_ptr<AccessibilitySystemAbilityClientImpl> asac_ = nullptr; 61 operation_ = std::make_shared<MockAccessibilityElementOperator>(); in SetUp() 62 asac_ = std::make_shared<AccessibilitySystemAbilityClientImpl>(); in SetUp() 95 new(std::nothrow) MockAccessibilityElementOperatorCallbackImpl(); in HWTEST_F() 169 std::map<std::string, std::string> actionArguments; in HWTEST_F() 240 new(std in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/property/ |
H A D | layout_constraint_test_ng.cpp | 52 auto calcSize = std::make_optional<CalcSize>(); in HWTEST_F() 66 std::string widthStr = "768px"; in HWTEST_F() 68 std::string heightStr = "1024px"; in HWTEST_F() 70 calcSize = std::make_optional<CalcSize>(width, height); in HWTEST_F() 83 calcSize = std::make_optional<CalcSize>(width, height); in HWTEST_F() 96 calcSize = std::make_optional<CalcSize>(width, height); in HWTEST_F() 105 calcSize = std::nullopt; in HWTEST_F() 126 calcSize = std::make_optional<CalcSize>(std::nullopt, height); in HWTEST_F() 135 calcSize = std in HWTEST_F() [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/ |
H A D | napi_bluetooth_ble_central_manager_callback.cpp | 36 std::shared_ptr<BleScanResult> result; 39 void ConvertScanResult(const std::vector<BleScanResult> &results, const napi_env &env, napi_value &scanResultArray, in ConvertScanResult() 50 std::string propertyName = "deviceId"; in ConvertScanResult() 89 std::unique_ptr<SysBLEStartScanCallbackData> data(static_cast<SysBLEStartScanCallbackData *>(work->data)); in AfterWorkCallbackToSysBLEScan() 120 std::unique_ptr<SysBLEDeviceFoundCallbackData> data(static_cast<SysBLEDeviceFoundCallbackData *>(work->data)); in AfterWorkCallbackToSysBLEDeviceFound() 125 std::vector<BleScanResult> scanResults; in AfterWorkCallbackToSysBLEDeviceFound() 149 uv_work_t *work = new (std::nothrow) uv_work_t; in SysOnScanCallBack() 155 SysBLEDeviceFoundCallbackData *data = new (std::nothrow) SysBLEDeviceFoundCallbackData(); in SysOnScanCallBack() 165 data->result = std::make_shared<BleScanResult>(result); in SysOnScanCallBack() 182 static void OnSysScanCallback(const BleScanResult &result, const std [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_database.cpp | 27 using GattAttributeEntity = std::optional<std::reference_wrapper<GattDatabase::AttributeEntity>>; 36 std::pair<uint16_t, uint16_t> availableHandlePair = CalculateAndAssignHandle(service); in AddService() 37 if (availableHandlePair == std::pair<uint16_t, uint16_t>(0, 0)) { in AddService() 61 attributes_.emplace(ccc.valueHandle_, std::move(cccAttributeValue)); in AddService() 62 valueHandleMap_.emplace(ccc.valueHandle_, std::make_pair(service.handle_, ccc.handle_)); in AddService() 71 attributes_.emplace(descriptor.handle_, std::move(descAttributeValue)); in AddService() 72 valueHandleMap_.emplace(descriptor.handle_, std::make_pair(service.handle_, ccc.handle_)); in AddService() 73 dbCharacteristic.descriptors_.emplace(dbDescriptor.handle_, std::move(dbDescriptor)); in AddService() 77 dbService.characteristics_.emplace(dbCharacteristic.handle_, std in AddService() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/gas/ |
H A D | generic_access_service.cpp | 33 const std::string GenericAccessService::DEFAULT_DEVICE_NAME = "BluetoothDevice"; 42 auto cIt = std::find_if(service_.instance_->characteristics_.begin(), 60 auto cIt = std::find_if(service_.instance_->characteristics_.begin(), 96 const RawAddress &device, int rssi, const std::string deviceName, int deviceClass) in OnDiscoveryResult() 104 void OnDeviceNameChanged(const std::string deviceName) in OnDeviceNameChanged() 106 service_.dispatcher_.PostTask(std::bind(&GenericAccessService::OnDeviceNameChanged, &service_, deviceName)); in OnDeviceNameChanged() 108 void OnDeviceAddrChanged(const std::string address) in OnDeviceAddrChanged() 112 service_.dispatcher_.PostTask(std::bind(&GenericAccessService::OnAdvertisingStateChanged, &service_, state)); in OnAdvertisingStateChanged() 127 const RawAddress &device, int rssi, const std::string deviceName, int deviceClass) in OnDiscoveryResult() 136 service_.dispatcher_.PostTask(std in OnScanModeChanged() [all...] |
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/ |
H A D | pa_renderer_stream_impl_unit_test_p2.cpp | 39 std::shared_ptr<PaRendererStreamImpl> CreatePaRendererStreamImpl(); 66 std::shared_ptr<PaRendererStreamImpl> PaRendererStreamUnitTestP2::CreatePaRendererStreamImpl() in CreatePaRendererStreamImpl() 73 std::shared_ptr<IRendererStream> rendererStream = adapterManager->CreateRendererStream(processConfig, stream); in CreatePaRendererStreamImpl() 74 std::shared_ptr<PaRendererStreamImpl> rendererStreamImpl = in CreatePaRendererStreamImpl() 75 std::static_pointer_cast<PaRendererStreamImpl>(rendererStream); in CreatePaRendererStreamImpl() 95 std::cout << "stream is nullptr" << std::endl; in HWTEST_F() 99 std::cout << "unit is nullptr" << std::endl; in HWTEST_F() 123 std in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_ui_first_surface_render_node_drawable.cpp | 73 std::shared_ptr<Drawing::Surface> RSSurfaceRenderNodeDrawable::GetCacheSurface(uint32_t threadIndex, in GetCacheSurface() 77 return std::move(cacheSurface_); in GetCacheSurface() 93 std::scoped_lock<std::recursive_mutex> lock(completeResourceMutex_); in ClearCacheSurfaceInThread() 95 clearCacheSurfaceFunc_(std::move(cacheSurface_), std::move(cacheCompletedSurface_), in ClearCacheSurfaceInThread() 110 std::move(cacheSurface_), nullptr, cacheSurfaceThreadIndex_, completedSurfaceThreadIndex_); in ClearCacheSurfaceOnly() 132 std::shared_ptr<Drawing::Image> RSSurfaceRenderNodeDrawable::GetCompletedImage( in GetCompletedImage() 142 std::scoped_lock<std in GetCompletedImage() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_display_render_node.cpp | 33 NodeId id, const RSDisplayNodeConfig& config, const std::weak_ptr<RSContext>& context) in RSDisplayRenderNode() 35 isMirroredDisplay_(config.isMirrored), dirtyManager_(std::make_shared<RSDirtyRegionManager>(true)) in RSDisplayRenderNode() 51 const std::shared_ptr<RSBaseRenderNode>& node, std::vector<RSBaseRenderNode::SharedPtr>& vec, bool isUniRender, in CollectSurface() 59 void RSDisplayRenderNode::QuickPrepare(const std::shared_ptr<RSNodeVisitor>& visitor) in QuickPrepare() 68 void RSDisplayRenderNode::Prepare(const std::shared_ptr<RSNodeVisitor>& visitor) in Prepare() 77 void RSDisplayRenderNode::Process(const std::shared_ptr<RSNodeVisitor>& visitor) in Process() 171 stagingRenderParams_ = std::make_unique<RSDisplayRenderParams>(GetId()); in InitRenderParams() 261 displayParams->screenInfo_ = std::move(screenRenderParams.screenInfo); in UpdateScreenRenderParams() 262 displayParams->displayHasSecSurface_ = std in UpdateScreenRenderParams() [all...] |
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/ |
H A D | camera_napi_utils.cpp | 26 std::unique_ptr<JSAsyncContextOutput> &jsContext) in CreateNapiErrorObject() 32 std::string errorCodeStr = std::to_string(errorCode); in CreateNapiErrorObject() 48 std::string funcName = asyncContext.funcName; in InvokeJSAsyncMethod() 196 std::string errorCode = std::to_string(CameraErrorCode::INVALID_ARGUMENT); in CheckInvalidArgument() 205 std::string errorCode = std::to_string(retCode); in CheckError() 215 return std::round(val * precision) / precision; in FloatToDouble() 218 std [all...] |
/foundation/multimodalinput/input/intention/frameworks/client/src/ |
H A D | intention_manager.cpp | 31 const std::string SCREEN_ROTATION { "1" }; 36 tunnel_ = std::make_shared<TunnelClient>(); in IntentionManager() 47 std::lock_guard<std::mutex> guard(mutex_); in InitClient() 51 client_ = std::make_unique<SocketClient>(tunnel_); in InitClient() 60 std::map<MessageId, std::function<int32_t(const StreamClient&, NetPacket&)>> funs { in InitMsgHandler() 120 std::shared_ptr<ICoordinationListener> listener, bool isCompatible) in RegisterCoordinationListener() 135 std::shared_ptr<ICoordinationListener> listener, bool isCompatible) in UnregisterCoordinationListener() 176 int32_t IntentionManager::ActivateCoordination(const std [all...] |
/foundation/multimodalinput/input/util/napi/src/ |
H A D | util_napi_value.cpp | 27 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, bool value) in SetNameProperty() 37 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, uint16_t value) in SetNameProperty() 47 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, uint32_t value) in SetNameProperty() 57 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, int32_t value) in SetNameProperty() 67 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, float value) in SetNameProperty() 77 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, double value) in SetNameProperty() 87 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, int64_t value) in SetNameProperty() 97 napi_status SetNameProperty(const napi_env &env, napi_value &object, const std::string &name, std::string value) in SetNameProperty() 108 const napi_env &env, napi_value &object, const std in SetNameProperty() [all...] |
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/channel/ |
H A D | auth_negotiate_channel.cpp | 79 std::string AuthNegotiateChannel::GetRemoteDeviceId() const in GetRemoteDeviceId() 105 std::vector<uint8_t> output; in SendMessage() 125 std::lock_guard lock(channelLock_); in OnWaitDetectResponseTimeout() 149 std::lock_guard lock(channelLock_); in SendMessageAndWaitResponse() 150 promise_ = std::make_shared<std::promise<NegotiateMessage>>(); in SendMessageAndWaitResponse() 156 std::thread(&AuthNegotiateChannel::OnWaitDetectResponseTimeout, this).detach(); in SendMessageAndWaitResponse() 164 void AuthNegotiateChannel::ProcessDetectLinkRequest(const std::shared_ptr<AuthNegotiateChannel> &channel) in ProcessDetectLinkRequest() 174 std::lock_guard lock(channelLock_); in ProcessDetectLinkResponse() 215 auto channel = std in OnAuthDataReceived() [all...] |
/foundation/communication/netstack/frameworks/js/napi/tls/src/ |
H A D | monitor.cpp | 37 constexpr std::string_view EVENT_MESSAGE = "message"; 38 constexpr std::string_view EVENT_CONNECT = "connect"; 39 constexpr std::string_view EVENT_CLOSE = "close"; 40 constexpr std::string_view EVENT_ERROR = "error"; 41 constexpr std::initializer_list<std::string_view> EVENTS = {EVENT_MESSAGE, EVENT_CONNECT, EVENT_CLOSE, EVENT_ERROR}; 50 void ParserNullBranch(const std::string &errMessage, uv_work_t *&work, UvWorkWrapper *&workWrapper) in ParserNullBranch() 99 std::unique_ptr<napi_handle_scope__, decltype(closeScope)> scope(NapiUtils::OpenScope(env), closeScope); in EventMessageCallback() 119 workWrapper->manager->Emit(workWrapper->type, std::make_pair(NapiUtils::GetUndefined(workWrapper->env), obj)); in EventMessageCallback() 144 std in EventConnectCloseCallback() [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/ |
H A D | wifi_manager.cpp | 62 std::unique_lock<std::mutex> lock(initStatusMutex); in Init() 84 mCloseServiceThread = std::make_unique<WifiEventHandler>("CloseServiceThread"); in Init() 86 wifiEventSubscriberManager = std::make_unique<WifiEventSubscriberManager>(); in Init() 87 wifiMultiVapManager = std::make_unique<WifiMultiVapManager>(); in Init() 89 wifiStaManager = std::make_unique<WifiStaManager>(); in Init() 90 wifiScanManager = std::make_unique<WifiScanManager>(); in Init() 91 wifiTogglerManager = std::make_unique<WifiTogglerManager>(); in Init() 93 wifiHotspotManager = std::make_unique<WifiHotspotManager>(); in Init() 96 wifiP2pManager = std in Init() [all...] |
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/adaptor/ |
H A D | js_watcher.cpp | 64 void JSWatcher::ProcessChange(napi_env env, std::list<void *> &args)
in ProcessChange() 93 void JSWatcher::Emit(const char *type, const std::string &sessionId, const std::vector<std::string> &changeData)
in Emit() 107 ChangeArgs *changeArgs = new (std::nothrow) ChangeArgs(handler->callbackRef, sessionId, changeData);
in Emit() 127 void JSWatcher::ProcessStatus(napi_env env, std::list<void *> &args)
in ProcessStatus() 163 const char *type, const std::string &sessionId, const std::string &networkId, const std::string &status)
in Emit() 177 StatusArgs *changeArgs = new (std in Emit() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_storage_executor_extend.cpp | 39 int SQLiteSingleVerStorageExecutor::CloudExcuteRemoveOrUpdate(const std::string &sql, const std::string &deviceName, in CloudExcuteRemoveOrUpdate() 40 const std::string &user, bool isUserBlobType) in CloudExcuteRemoveOrUpdate() 53 std::vector<uint8_t> useVect(user.begin(), user.end()); in CloudExcuteRemoveOrUpdate() 66 std::vector<uint8_t> devVect(deviceName.begin(), deviceName.end()); in CloudExcuteRemoveOrUpdate() 84 int SQLiteSingleVerStorageExecutor::CloudCheckDataExist(const std::string &sql, const std::string &deviceName, in CloudCheckDataExist() 85 const std::string &user, bool &isExist) in CloudCheckDataExist() 113 std::vector<uint8_t> devVect(deviceName.begin(), deviceName.end()); in CloudCheckDataExist() 159 int SQLiteSingleVerStorageExecutor::RemoveDeviceDataInner(const std 373 GetSyncTotalWithQuery(QueryObject &query, const std::pair<Timestamp, Timestamp> &timeRange, uint32_t &total) const GetSyncTotalWithQuery() argument [all...] |
H A D | query_sync_object.cpp | 26 const std::string MAGIC = "remote query"; 91 QuerySyncObject::QuerySyncObject(const std::list<QueryObjNode> &queryObjNodes, const std::vector<uint8_t> &prefixKey, in QuerySyncObject() 92 const std::set<Key> &keys) in QuerySyncObject() 151 std::string QuerySyncObject::GetIdentify() const in GetIdentify() 154 return std::string(); in GetIdentify() 161 std::vector<uint8_t> buff(len, 0); // It will affect the hash result, the default value cannot be modified in GetIdentify() 188 std::vector<uint8_t> hashBuff; in GetIdentify() 190 return std::string(); in GetIdentify() 246 void QuerySyncObject::SetCloudGid(const std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_dlp_test.cpp | 32 using namespace std; 35 std::shared_ptr<std::string> g_testDir = nullptr; 37 const std::string DEVICE_A = "real_device"; 38 const std::string DEVICE_B = "deviceB"; 39 const std::string KEY_INSTANCE_ID = "INSTANCE_ID"; 43 DBStatus OpenDelegate(const std::string &dlpPath, KvStoreNbDelegate *&delegatePtr, in OpenDelegate() 49 std::string dbPath = *g_testDir + dlpPath; in OpenDelegate() 73 DBStatus OpenDelegate(const std::string &dlpPath, RelationalStoreDelegate *&rdbDelegatePtr, in OpenDelegate() 79 std in OpenDelegate() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | cloud_test.cpp | 98 std::vector<std::string> GetTables() override 172 cloudInfo.apps["test_cloud_bundleName"] = std::move(appInfo); in HWTEST_F() 205 cloudInfo.apps["test_cloud_bundleName"] = std::move(appInfo); in HWTEST_F() 222 const std::initializer_list<std::string> fields; in HWTEST_F() 324 std::map<std::string, CloudInfo::AppInfo> apps; in HWTEST_F() 345 std::string bundleName = "test_cloud_bundleName"; in HWTEST_F() 362 std in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_encrypt_database_test.cpp | 26 using namespace std; 78 placeholders::_2, std::ref(status), std::ref(kvStore1)); in CheckRekeyWithMultiKvStore() 88 placeholders::_2, std::ref(status), std::ref(kvStore2)); in CheckRekeyWithMultiKvStore() 123 placeholders::_2, std::ref(status), std::ref(kvStore)); in CheckRekeyWithExistedSnapshot() 133 placeholders::_1, placeholders::_2, std::ref(status), std::ref(snapshot)); in CheckRekeyWithExistedSnapshot() 166 placeholders::_2, std in CheckRekeyWithExistedObserver() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_factory.cpp | 43 DistributedDB::RuntimeConfig::SetThreadPool(std::make_shared<TaskExecutorAdapter>()); in StoreFactory() 47 (void)DBManager::SetProcessSystemAPIAdapter(std::make_shared<SystemApi>()); in StoreFactory() 49 Status StoreFactory::SetDbConfig(std::shared_ptr<DBStore> dbStore) in SetDbConfig() 60 std::shared_ptr<SingleKvStore> StoreFactory::GetOrOpenStore(const AppId &appId, const StoreId &storeId, in GetOrOpenStore() 63 std::shared_ptr<SingleStoreImpl> kvStore; in GetOrOpenStore() 72 std::string path = options.GetDatabaseDir(); in GetOrOpenStore() 101 auto dbStore = std::shared_ptr<DBStore>(store, release); in GetOrOpenStore() 104 kvStore = std::make_shared<SingleStoreImpl>(dbStore, appId, options, convertor); in GetOrOpenStore() 120 Status StoreFactory::Delete(const AppId &appId, const StoreId &storeId, const std::string &path) in Delete() 153 std [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/ |
H A D | dspeaker_dev.cpp | 39 int32_t DSpeakerDev::EnableDevice(const int32_t dhId, const std::string &capability) in EnableDevice() 45 DAudioHisysevent::GetInstance().SysEventWriteFault(DAUDIO_REGISTER_FAIL, devId_, std::to_string(dhId), ret, in EnableDevice() 59 DAudioHisysevent::GetInstance().SysEventWriteFault(DAUDIO_UNREGISTER_FAIL, devId_, std::to_string(dhId), ret, in DisableDevice() 76 speakerTrans_ = std::make_shared<AVTransSenderTransport>(devId_, shared_from_this()); in InitSenderEngine() 101 void DSpeakerDev::OnEngineTransMessage(const std::shared_ptr<AVTransMessage> &message) in OnEngineTransMessage() 112 std::shared_ptr<IAudioEventCallback> cbObj = audioEventCallback_.lock(); in CreateStream() 117 cJSON_AddStringToObject(jParam, KEY_DH_ID, std::to_string(dhId_).c_str()); in CreateStream() 124 std::string jsonDataStr(jsonData); in CreateStream() 127 DAudioHisysevent::GetInstance().SysEventWriteBehavior(DAUDIO_OPEN, devId_, std::to_string(dhId_), in CreateStream() 138 std in DestroyStream() [all...] |
/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screensinkprocessor/src/ |
H A D | image_sink_decoder_test.cpp | 46 imageListener_ = std::make_shared<MockIImageSinkProcessorListener>(); in SetUp() 47 imageDecoder_ = std::make_shared<ImageSinkDecoder>(imageListener_); in SetUp() 49 std::string(MediaAVCodec::CodecMimeType::VIDEO_AVC)); in SetUp() 339 std::shared_ptr<DataBuffer> data = std::make_shared<DataBuffer>(10); in HWTEST_F() 344 std::queue<std::shared_ptr<DataBuffer>>().swap(imageDecoder_->videoDataQueue_); in HWTEST_F() 357 std::shared_ptr<IImageSinkProcessorListener> listener= nullptr; in HWTEST_F() 361 std::shared_ptr<Media::AVSharedMemory> buffer = nullptr; in HWTEST_F() 378 std in HWTEST_F() [all...] |