/foundation/multimedia/player_framework/test/unittest/screen_capture_test/screen_capture_unittest/src/ |
D | screen_capture_unit_test.cpp | 238 AVScreenCaptureConfig config_; variable 239 SetConfig(config_); 240 config_.videoInfo.videoCapInfo.videoFrameWidth = -1; 241 config_.videoInfo.videoCapInfo.videoSource = VIDEO_SOURCE_SURFACE_RGBA; 245 EXPECT_NE(MSERR_OK, screenCapture_->Init(config_)); 257 AVScreenCaptureConfig config_; variable 258 SetConfig(config_); 259 config_.videoInfo.videoCapInfo.videoFrameHeight = -1; 260 config_.videoInfo.videoCapInfo.videoSource = VIDEO_SOURCE_SURFACE_RGBA; 264 EXPECT_NE(MSERR_OK, screenCapture_->Init(config_)); [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
D | classic_config.cpp | 32 ClassicConfig::ClassicConfig() : config_(AdapterDeviceConfig::GetInstance()) in ClassicConfig() 41 bool ret = config_->Load(); in LoadConfigFile() 51 bool ret = config_->Save(); in Save() 62 if (!config_->GetValue(SECTION_HOST, PROPERTY_DEVICE_NAME, name)) { in GetLocalName() 71 if (!config_->SetValue(SECTION_HOST, PROPERTY_DEVICE_NAME, name)) { in SetLocalName() 80 if (!config_->SetValue(SECTION_HOST, PROPERTY_DEVICE_ADDR, addr)) { in SetLocalAddress() 91 if (!config_->GetValue(SECTION_HOST, PROPERTY_CLASS_OF_DEVICE, cod)) { in GetLocalDeviceClass() 100 if (!config_->SetValue(SECTION_HOST, PROPERTY_CLASS_OF_DEVICE, cod)) { in SetLocalDeviceClass() 111 if (!config_->GetValue(SECTION_HOST, PROPERTY_IO_CAPABILITY, io)) { in GetIoCapability() 121 if (!config_->GetValue(SECTION_HOST, PROPERTY_DISCOVERABLE_TIMEOUT, time)) { in GetDiscoverableTimeout() [all …]
|
D | classic_adapter_properties.cpp | 37 ClassicAdapterProperties::ClassicAdapterProperties() : config_(ClassicConfig::GetInstance()) in ClassicAdapterProperties() 45 if (!config_.LoadConfigFile()) { in LoadConfigInfo() 57 deviceName_ = config_.GetLocalName(); in LoadHostInfo() 62 cod_ = (config_.GetLocalDeviceClass() & CLASS_OF_DEVICE_RANGE); in LoadHostInfo() 67 ioCapability_ = config_.GetIoCapability(); in LoadHostInfo() 72 passkey_ = config_.GetLocalPasskey(); in LoadHostInfo() 77 securityMode_ = config_.GetSecurityMode(); in LoadHostInfo() 288 ret = config_.SetLocalName(deviceName_); in UpdateConfig() 297 ret = config_.SetLocalAddress(macAddr_); in UpdateConfig() 306 ret = config_.SetLocalDeviceClass(cod_); in UpdateConfig() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
D | ble_config.cpp | 32 config_ = AdapterDeviceConfig::GetInstance(); in BleConfig() 42 bool ret = config_->Load(); in LoadConfigInfo() 53 return config_->Save(); in Save() 61 bool ret = config_->GetValue(SECTION_HOST, PROPERTY_DEVICE_NAME, name); in GetLocalName() 72 bool ret = config_->SetValue(SECTION_HOST, PROPERTY_DEVICE_NAME, name); in SetLocalName() 84 bool ret = config_->GetValue(SECTION_HOST, PROPERTY_DEVICE_ADDR, addr); in GetLocalAddress() 95 bool ret = config_->SetValue(SECTION_HOST, PROPERTY_DEVICE_ADDR, addr); in SetLocalAddress() 107 bool ret = config_->GetValue(SECTION_HOST, PROPERTY_IO_CAPABILITY, io); in GetIoCapability() 119 bool ret = config_->GetValue(SECTION_HOST, PROPERTY_LOCAL_PASSKEY, passkey); in GetLoaclPasskey() 131 bool ret = config_->GetValue(SECTION_HOST, PROPERTY_BLE_ROLES, roles); in GetBleRoles() [all …]
|
/foundation/window/window_manager/window_scene/test/unittest/ |
D | window_scene_config_test.cpp | 178 WindowSceneConfig::config_ = ReadConfig(XML_STR); 179 ConfigItem item = WindowSceneConfig::config_["windowAnimation"]; 181 item = WindowSceneConfig::config_["windowAnimation"]["timing"]["duration"]; 188 item = WindowSceneConfig::config_["windowAnimation"]["timing"]["curve"].GetProp("name"); 192 item = WindowSceneConfig::config_["windowAnimation"]["scale"]; 196 item = WindowSceneConfig::config_["windowAnimation"]["rotation"]; 200 item = WindowSceneConfig::config_["windowAnimation"]["translate"]; 204 item = WindowSceneConfig::config_["windowAnimation"]["opacity"]; 220 WindowSceneConfig::config_ = ReadConfig(xmlStr); 223 item = WindowSceneConfig::config_["maxAppWindowNumber"]; [all …]
|
/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/ |
D | norm_processor.cpp | 106 config_ = {}; in NormProcessor() 124 config_ = *(static_cast<const NormProcessorConfig *>(config)); in Init() 125 if (config_.inputSize == 0 || config_.numChannels == 0) { in Init() 129 if (config_.inputSize % config_.numChannels != 0) { in Init() 133 TypeConverterConfig convertConfig = {FLOAT, (config_.inputSize)}; in Init() 143 if (config_.numChannels > MAX_SAMPLE_SIZE || config_.inputSize > MAX_SAMPLE_SIZE) { in Init() 147 AIE_NEW(mean_, float[config_.numChannels]); in Init() 148 AIE_NEW(std_, float[config_.numChannels]); in Init() 149 AIE_NEW(workBuffer_, float[config_.inputSize]); in Init() 155 …int32_t retCode = LoadMeanAndStd(config_.meanFilePath, config_.stdFilePath, mean_, std_, config_.n… in Init() [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/di/ |
D | di_config.cpp | 29 DIConfig::DIConfig() : config_(AdapterDeviceInfo::GetInstance()) in DIConfig() 38 bool ret = config_->Load(); in LoadConfigFile() 49 if (!config_->GetValue(SECTION_BREDR, PROPERTY_SPECIFICATION_ID, specId)) { in GetSpecificaitonId() 59 if (!config_->GetValue(SECTION_BREDR, PROPERTY_VENDOR_ID, vendorId)) { in GetVendorId() 69 if (!config_->GetValue(SECTION_BREDR, PROPERTY_PRODUCT_ID, productId)) { in GetProductId() 79 if (!config_->GetValue(SECTION_BREDR, PROPERTY_VERSION, version)) { in GetVersion() 89 if (!config_->GetValue(SECTION_BREDR, PROPERTY_PRIMARY_RECORD, primaryRecord)) { in GetPrimaryRecord() 99 if (!config_->GetValue(SECTION_BREDR, PROPERTY_VENDOR_ID_SOURCE, vendorIdSrc)) { in GetVendorIdSource()
|
D | di_service.cpp | 24 DIService::DIService() : utility::Context(PROFILE_NAME_DI, "1.2.1"), config_(DIConfig::GetInstance(… in DIService() 50 bool result = config_.LoadConfigFile(); in StartUp() 81 priRecord_ = config_.GetPrimaryRecord(); in LoadDeviceInfo() 82 specId_ = config_.GetSpecificaitonId(); in LoadDeviceInfo() 83 vendorId_ = config_.GetVendorId(); in LoadDeviceInfo() 84 procId_ = config_.GetProductId(); in LoadDeviceInfo() 85 version_ = config_.GetVersion(); in LoadDeviceInfo() 86 venIdSrc_ = config_.GetVendorIdSource(); in LoadDeviceInfo()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/ |
D | config_factory.cpp | 46 config_.Unmarshall(jsonStr); in Initialize() 53 return config_.components; in GetComponentConfig() 58 return config_.networks; in GetNetworkConfig() 63 return config_.bundleChecker; in GetCheckerConfig() 68 return &config_; in GetGlobalConfig() 73 return config_.directory; in GetDirectoryConfig() 78 return config_.backup; in GetBackupConfig()
|
/foundation/multimedia/player_framework/test/unittest/screen_capture_test/capi/src/ |
D | screen_capture_capi_mock.cpp | 53 OH_AVScreenCaptureConfig config_; in Convert() local 54 config_.captureMode = static_cast<OH_CaptureMode>(config.captureMode); in Convert() 55 config_.dataType = static_cast<OH_DataType>(config.dataType); in Convert() 56 config_.audioInfo.micCapInfo = { in Convert() 61 config_.audioInfo.innerCapInfo = { in Convert() 66 config_.audioInfo.audioEncInfo.audioBitrate = config.audioInfo.audioEncInfo.audioBitrate; in Convert() 67 config_.audioInfo.audioEncInfo.audioCodecformat = in Convert() 69 config_.videoInfo.videoCapInfo.displayId = config.videoInfo.videoCapInfo.displayId; in Convert() 77 config_.videoInfo.videoCapInfo.missionIDs = taskIds_temp; in Convert() 79 config_.videoInfo.videoCapInfo.missionIDsLen = taskIds.size(); in Convert() [all …]
|
/foundation/window/window_manager/wmserver/test/unittest/ |
D | window_manager_config_test.cpp | 175 WindowManagerConfig::config_ = ReadConfig(XML_STR); 177 ConfigItem item = WindowManagerConfig::config_["windowAnimation"]; 179 item = WindowManagerConfig::config_["windowAnimation"]["timing"]["duration"]; 184 item = WindowManagerConfig::config_["windowAnimation"]["timing"]["curve"].GetProp("name"); 187 item = WindowManagerConfig::config_["windowAnimation"]["scale"]; 190 item = WindowManagerConfig::config_["windowAnimation"]["rotation"]; 193 item = WindowManagerConfig::config_["windowAnimation"]["translate"]; 196 item = WindowManagerConfig::config_["windowAnimation"]["opacity"]; 212 WindowManagerConfig::config_ = ReadConfig(xmlStr); 220 WindowManagerConfig::config_ = ReadConfig(xmlStr); [all …]
|
/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/context/ |
D | set_iface_config_context.cpp | 57 config_ = new (std::nothrow) InterfaceConfiguration(); in ParseParams() 58 if (config_ == nullptr) { in ParseParams() 62 … config_->mode_ = static_cast<IPSetMode>(NapiUtils::GetInt32Property(GetEnv(), params[1], "mode")); in ParseParams() 64 StaticConfiguration::ExtractNetAddrBySeparator(ipAddresses, config_->ipStatic_.ipAddrList_); in ParseParams() 67 StaticConfiguration::ExtractNetAddrBySeparator(routeAddresses, config_->ipStatic_.routeList_); in ParseParams() 70 … StaticConfiguration::ExtractNetAddrBySeparator(gatewayAddresses, config_->ipStatic_.gatewayList_); in ParseParams() 73 StaticConfiguration::ExtractNetAddrBySeparator(maskAddresses, config_->ipStatic_.netMaskList_); in ParseParams() 76 StaticConfiguration::ExtractNetAddrBySeparator(dnsServers, config_->ipStatic_.dnsServers_); in ParseParams() 78 config_->ipStatic_.domain_ = NapiUtils::GetStringPropertyUtf8(GetEnv(), params[1], "domain"); in ParseParams() 109 config_->httpProxy_.SetHost(std::move(host)); in ParseHttpProxy() [all …]
|
/foundation/multimedia/camera_lite/frameworks/ |
D | camera_impl.cpp | 37 return config_; in GetCameraConfig() 52 if (config_ != nullptr) { in Configure() 68 config_ = &config; in Configure() 82 if (config_ != nullptr) { in Release() 83 delete config_; in Release() 84 config_ = nullptr; in Release() 98 if (config_ == nullptr) { in TriggerLoopingCapture() 130 if (config_ == nullptr) { in StopLoopingCapture() 133 FrameStateCallback *fsc = config_->GetFrameStateCb(); in StopLoopingCapture() 137 EventHandler *eventhdl = config_->GetEventHandler(); in StopLoopingCapture() [all …]
|
/foundation/barrierfree/accessibility/frameworks/acfwk/include/ |
D | accessibility_config_impl.h | 111 explicit AccessibleAbilityManagerCaptionObserverImpl(Impl &config_) in AccessibleAbilityManagerCaptionObserverImpl() argument 112 : config_(config_) {} in AccessibleAbilityManagerCaptionObserverImpl() 117 config_.OnAccessibleAbilityManagerCaptionPropertyChanged(property); in OnPropertyChanged() 120 Impl &config_; 126 explicit AccessibleAbilityManagerConfigObserverImpl(Impl &config) : config_(config) {} in AccessibleAbilityManagerConfigObserverImpl() 131 config_.OnAccessibleAbilityManagerConfigStateChanged(stateType); in OnConfigStateChanged() 135 config_.OnAccessibleAbilityManagerAudioBalanceChanged(audioBalance); in OnAudioBalanceChanged() 139 config_.OnAccessibleAbilityManagerBrightnessDiscountChanged(brightnessDiscount); in OnBrightnessDiscountChanged() 143 config_.OnAccessibleAbilityManagerContentTimeoutChanged(contentTimeout); in OnContentTimeoutChanged() 147 config_.OnAccessibleAbilityManagerDaltonizationColorFilterChanged(filterType); in OnDaltonizationColorFilterChanged() [all …]
|
/foundation/multimedia/player_framework/frameworks/native/capi/screencapture/ |
D | native_avscreen_capture.cpp | 98 AVScreenCaptureConfig config_; in OH_AVScreenCapture_Convert() local 99 config_.captureMode = static_cast<CaptureMode>(config.captureMode); in OH_AVScreenCapture_Convert() 100 config_.dataType = static_cast<DataType>(config.dataType); in OH_AVScreenCapture_Convert() 101 config_.audioInfo.micCapInfo = { in OH_AVScreenCapture_Convert() 106 config_.audioInfo.innerCapInfo = { in OH_AVScreenCapture_Convert() 111 config_.audioInfo.audioEncInfo.audioBitrate = config.audioInfo.audioEncInfo.audioBitrate; in OH_AVScreenCapture_Convert() 112 config_.audioInfo.audioEncInfo.audioCodecformat = in OH_AVScreenCapture_Convert() 114 config_.videoInfo.videoCapInfo.displayId = config.videoInfo.videoCapInfo.displayId; in OH_AVScreenCapture_Convert() 121 config_.videoInfo.videoCapInfo.taskIDs.push_back(*(taskIds)); in OH_AVScreenCapture_Convert() 125 config_.videoInfo.videoCapInfo.videoFrameWidth = config.videoInfo.videoCapInfo.videoFrameWidth; in OH_AVScreenCapture_Convert() [all …]
|
/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/ |
D | ethernet_exec.cpp | 51 …DelayedSingleton<EthernetClient>::GetInstance()->GetIfaceConfig(context->iface_, context->config_); in ExecGetIfaceConfig() 52 if (context->config_ == nullptr || result != NETMANAGER_EXT_SUCCESS) { in ExecGetIfaceConfig() 63 …NapiUtils::SetInt32Property(context->GetEnv(), interfaceConfiguration, MODE, context->config_->mod… in GetIfaceConfigCallback() 65 std::string ipAddresses = AccumulateNetAddress(context->config_->ipStatic_.ipAddrList_); in GetIfaceConfigCallback() 68 std::string routeAddresses = AccumulateNetAddress(context->config_->ipStatic_.routeList_); in GetIfaceConfigCallback() 71 std::string gatewayAddresses = AccumulateNetAddress(context->config_->ipStatic_.gatewayList_); in GetIfaceConfigCallback() 74 std::string maskAddresses = AccumulateNetAddress(context->config_->ipStatic_.netMaskList_); in GetIfaceConfigCallback() 77 std::string dnsServers = AccumulateNetAddress(context->config_->ipStatic_.dnsServers_); in GetIfaceConfigCallback() 81 context->config_->ipStatic_.domain_); in GetIfaceConfigCallback() 87 …DelayedSingleton<EthernetClient>::GetInstance()->SetIfaceConfig(context->iface_, context->config_); in ExecSetIfaceConfig()
|
/foundation/window/window_manager_lite/services/wms/ |
D | lite_win.h | 43 return config_; in GetConfig() 74 return config_.compositeMode == LiteWinConfig::COPY; in IsCoverMode() 79 return config_.compositeMode == LiteWinConfig::BLEND && config_.opacity == OPA_TRANSPARENT; in NoNeedToDraw() 100 LiteWinConfig config_; variable
|
D | lite_win.cpp | 50 : id_(INVALID_WINDOW_ID), pid_(INVALID_PID), isShow_(false), config_(config), surface_(nullptr), in LiteWindow() 85 surface_->SetWidthAndHeight(config_.rect.GetWidth(), config_.rect.GetHeight()); in CreateSurface() 87 surface_->SetFormat(config_.pixelFormat); in CreateSurface() 196 uint8_t alpha = tmpSrc->alpha * config_.opacity / OPA_OPAQUE; in FlushWithModeBlend() 252 if (config_.compositeMode == LiteWinConfig::COPY) { in Flush() 254 } else if (config_.compositeMode == LiteWinConfig::BLEND) { in Flush() 266 GRAPHIC_LOGI("{%d,%d}=>{%d,%d}", config_.rect.GetLeft(), config_.rect.GetTop(), x, y); in MoveTo() 268 liteWM->UpdateWindowRegion(this, config_.rect); in MoveTo() 269 config_.rect.SetPosition(x, y); in MoveTo() 270 liteWM->UpdateWindowRegion(this, config_.rect); in MoveTo() [all …]
|
/foundation/arkui/ui_lite/frameworks/window/ |
D | window_impl.cpp | 30 config_ = config; in Create() 93 return config_.rect; in GetRect() 124 config_.rect.SetPosition(x, y); in MoveTo() 133 if ((width == config_.rect.GetWidth()) && (height == config_.rect.GetHeight())) { in Resize() 137 config_.rect.Resize(width, height); in Resize() 226 bufferInfo.width = config_.rect.GetWidth(); in GetBufferInfo() 227 bufferInfo.height = config_.rect.GetHeight(); in GetBufferInfo()
|
/foundation/multimedia/player_framework/services/services/player/server/ |
D | player_server.cpp | 137 config_.url = url; in SetSource() 151 config_.url = url; in SetSource() 157 config_.looping = false; in SetSource() 158 config_.speedMode = SPEED_FORWARD_1_00_X; in SetSource() 181 config_.url = "file descriptor source"; in SetSource() 340 if (config_.leftVolume < 1.0f) { in HandlePrepare() 341 (void)playerEngine_->SetVolume(config_.leftVolume, config_.rightVolume); in HandlePrepare() 343 if (config_.looping) { in HandlePrepare() 344 (void)playerEngine_->SetLooping(config_.looping); in HandlePrepare() 346 if (config_.speedMode != SPEED_FORWARD_1_00_X) { in HandlePrepare() [all …]
|
/foundation/multimedia/player_framework/services/services/recorder/server/ |
D | recorder_server.cpp | 138 config_.videoSource = source; in SetVideoSource() 154 config_.videoCodec = encoder; in SetVideoEncoder() 171 config_.width = width; in SetVideoSize() 172 config_.height = height; in SetVideoSize() 189 config_.frameRate = frameRate; in SetVideoFrameRate() 206 config_.bitRate = rate; in SetVideoEncodingBitRate() 223 config_.captureRate = fps; in SetCaptureRate() 257 config_.audioSource = source; in SetAudioSource() 273 config_.audioCodec = encoder; in SetAudioEncoder() 291 config_.audioSampleRate = rate; in SetAudioSampleRate() [all …]
|
/foundation/barrierfree/accessibility/services/aams/src/ |
D | accessibility_account_data.cpp | 56 if (!config_->GetEnabledState()) { in GetAccessibilityState() 57 config_->SetEnabled(true); in GetAccessibilityState() 60 if (config_->GetEnabledState()) { in GetAccessibilityState() 61 config_->SetEnabled(false); in GetAccessibilityState() 65 if (config_->GetTouchGuideState()) { in GetAccessibilityState() 69 if (config_->GetKeyEventObserverState()) { in GetAccessibilityState() 73 if (config_->GetGestureState()) { in GetAccessibilityState() 270 if (!config_) { in RemoveInstalledAbility() 274 std::string name = config_->GetShortkeyTarget(); in RemoveInstalledAbility() 277 config_->SetShortkeyTarget(targetName); in RemoveInstalledAbility() [all …]
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/nandlife_controller/ |
D | nandlife_controller.cpp | 86 config_.GetDailySwapOutQuotaMb(), config_.GetTotalSwapOutQuotaMb()); in Init() 87 if (config_.GetDailySwapOutQuotaMb() == 0 && config_.GetTotalSwapOutQuotaMb() == 0) { in Init() 93 DAILY_SWAP_OUT_QUOTA_KB = config_.GetDailySwapOutQuotaMb() * 1024; // 1024: MB to KB in Init() 94 TOTAL_SWAP_OUT_QUOTA_KB = config_.GetTotalSwapOutQuotaMb() * 1024; // 1024: MB to KB in Init() 201 config_ = MemmgrConfigManager::GetInstance().GetNandLifeConfig(); in GetAndValidateNandLifeConfig() 202 return config_.GetDailySwapOutQuotaMb() >= 0 && config_.GetTotalSwapOutQuotaMb() >=0; in GetAndValidateNandLifeConfig()
|
/foundation/distributeddatamgr/relational_store/test/ndk/unittest/ |
D | rdb_cursor_test.cpp | 36 config_.dataBaseDir = RDB_TEST_PATH; in InitRdbConfig() 37 config_.storeName = "rdb_cursor_test.db"; in InitRdbConfig() 38 config_.bundleName = ""; in InitRdbConfig() 39 config_.moduleName = ""; in InitRdbConfig() 40 config_.securityLevel = OH_Rdb_SecurityLevel::S1; in InitRdbConfig() 41 config_.isEncrypt = false; in InitRdbConfig() 42 config_.selfSize = sizeof(OH_Rdb_Config); in InitRdbConfig() 44 static OH_Rdb_Config config_; member in RdbNativeCursorTest 48 OH_Rdb_Config RdbNativeCursorTest::config_ = {0}; member in RdbNativeCursorTest 52 mkdir(config_.dataBaseDir, 0770); in SetUpTestCase() [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render_backend/ohos/ |
D | render_context_ohos_gl.cpp | 92 eglContext_(EGL_NO_CONTEXT), eglSurface_(EGL_NO_SURFACE), config_(nullptr) in RenderContextOhosGl() 144 ret = eglChooseConfig(eglDisplay_, configAttribs, &config_, 1, &count); in Init() 152 eglContext_ = eglCreateContext(eglDisplay_, config_, EGL_NO_CONTEXT, contextAttribs); in Init() 202 context = eglCreateContext(eglDisplay_, config_, EGL_NO_CONTEXT, context_attribs); in CreateContext() 205 context = eglCreateContext(eglDisplay_, config_, eglContext_, context_attribs); in CreateContext() 230 EGLSurface surface = eglCreateWindowSurface(eglDisplay_, config_, nativeWindow_, NULL); in CreateSurface() 353 pbufferSurface_ = eglCreatePbufferSurface(eglDisplay_, config_, attribs); in CreatePbufferSurface()
|