/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | ipc_stream_in_server.cpp | 89 if (mode_ == AUDIO_MODE_PLAYBACK) { in Config() 92 if (mode_ == AUDIO_MODE_RECORD) { in Config() 111 if (mode_ != AUDIO_MODE_RECORD || capturerInServer_ == nullptr) { in GetCapturer() 152 AUDIO_INFO_LOG("Resolve buffer, mode: %{public}d", mode_); in ResolveBuffer() 156 if (mode_ == AUDIO_MODE_RECORD && capturerInServer_!= nullptr) { in ResolveBuffer() 168 if (mode_ == AUDIO_MODE_RECORD && capturerInServer_!= nullptr) { in UpdatePosition() 180 if (mode_ == AUDIO_MODE_RECORD && capturerInServer_!= nullptr) { in GetAudioSessionID() 194 if (mode_ == AUDIO_MODE_RECORD && capturerInServer_!= nullptr) { in Start() 206 if (mode_ == AUDIO_MODE_RECORD && capturerInServer_!= nullptr) { in Pause() 218 if (mode_ == AUDIO_MODE_RECORD && capturerInServer_!= nullptr) { in Stop() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/panel/ |
H A D | render_sliding_panel.cpp | 87 previousMode_ = mode_; in Update() 150 AnimateTo(defaultBlankHeights_[mode_], mode_); in PerformLayout() 151 if (previousMode_ != mode_) { in PerformLayout() 232 panel->AnimateTo(panel->defaultBlankHeights_[panel->mode_], panel->mode_); in SetDragBarCallBack() 332 if (mode_ != PanelMode::FULL) { in TouchTest() 379 AnimateTo(defaultBlankHeights_[mode_], mode_); in UpdatePanelHeightByCurrentMode() 418 previousMode_ = mode_; in HandleDragEnd() 439 AnimateTo(defaultBlankHeights_[mode_], mode_); in HandleDragEnd() 440 if (previousMode_ != mode_) { in HandleDragEnd() 451 mode_ = PanelMode::FULL; in CalculateModeTypeMini() [all …]
|
H A D | sliding_panel_component_v2.cpp | 32 if (type_ == PanelType::TEMP_DISPLAY && mode_ == PanelMode::MINI) { in OnChildAdded() 33 mode_ = PanelMode::HALF; in OnChildAdded() 34 } else if (type_ == PanelType::MINI_BAR && mode_ == PanelMode::HALF) { in OnChildAdded() 35 mode_ = PanelMode::MINI; in OnChildAdded() 37 panel->SetPanelMode(mode_); in OnChildAdded() 53 dragBar->SetPanelMode(mode_); in BuildInnerChild()
|
H A D | sliding_events.h | 30 : BaseEventInfo("SlidingPanelSizeChangeEvent"), mode_(mode), width_(width), height_(height) in SlidingPanelSizeChangeEvent() 47 return mode_; in GetMode() 53 PanelMode mode_ = PanelMode::HALF;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/ |
H A D | sliding_panel_pattern.cpp | 189 if (!mode_.has_value()) { in Update() 204 if (mode_.value() == mode) { in Update() 213 if (mode_.value() != mode) { in Update() 214 mode_ = mode; in Update() 394 mode_ = PanelMode::MINI; in CheckPanelModeAndType() 399 mode_ = PanelMode::HALF; in CheckPanelModeAndType() 521 mode_ = PanelMode::AUTO; in HandleDragEnd() 538 mode_ = PanelMode::FULL; in CalculateModeTypeMini() 540 mode_ = PanelMode::MINI; in CalculateModeTypeMini() 545 mode_ = PanelMode::MINI; in CalculateModeTypeMini() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | tab_bar_component.cpp | 36 mode_(nullptr) in TabBarComponent() 49 if (mode_) { in ReleaseNativeViews() 50 ace_free(mode_); in ReleaseNativeViews() 51 mode_ = nullptr; in ReleaseNativeViews() 133 mode_ = static_cast<char *>(ace_malloc(sizeof(defaultMode))); in SetMode() 134 if (mode_ == nullptr) { in SetMode() 137 if (memcpy_s(mode_, sizeof(defaultMode), defaultMode, sizeof(defaultMode)) != 0) { in SetMode() 139 ace_free(mode_); in SetMode() 140 mode_ = nullptr; in SetMode() 148 ace_free(mode_); in SetMode() [all …]
|
/ohos5.0/base/update/updater/services/ui/ |
H A D | updater_ui_facade.cpp | 48 if (mode == mode_) { in SetMode() 51 mode_ = mode; in SetMode() 58 return mode_; in GetMode() 63 auto it = strategies_.find(mode_); in CheckMode() 65 LOG(ERROR) << "mode has not a strategy for it " << mode_; in CheckMode() 107 if (auto it = progressMap_.find(mode_); it->second != nullptr) { in ShowProgress() 128 if (auto it = logoMap_.find(mode_); it->second != nullptr) { in SetLogoVisible() 140 if (auto it = progressMap_.find(mode_); it->second != nullptr) { in SetProgressVisible() 249 if (progressMap_.find(mode_) == progressMap_.end()) { in SetLogoProgress() 254 if (logoMap_.find(mode_) == logoMap_.end()) { in SetLogoProgress() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | mapped_file.cpp | 31 :path_(path), size_(size), offset_(offset), mode_(mode), hint_(hint) {} in MappedFile() 74 if ((mode_ & MapMode::CREATE_IF_ABSENT) == MapMode::DEFAULT) { in NormalizeSize() 112 if (mode_ == MapMode::DEFAULT) { in NormalizeMode() 117 if ((mode_ & MapMode::PRIVATE) != MapMode::DEFAULT) { in NormalizeMode() 123 if ((mode_ & MapMode::READ_ONLY) != MapMode::DEFAULT) { in NormalizeMode() 131 if ((mode_ & MapMode::CREATE_IF_ABSENT) != MapMode::DEFAULT) { in NormalizeMode() 448 mode_ = MapMode::DEFAULT; in Reset() 494 …offset_(other.offset_), mode_(other.mode_), fd_(other.fd_), mapProt_(other.mapProt_), mapFlag_(oth… in MappedFile() 513 mode_ = other.mode_; in operator =() 593 if (mode_ != val) { in ChangeMode() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/ |
H A D | sync_operation.cpp | 27 mode_(mode), in SyncOperation() 54 if (mode_ == AUTO_PUSH) { in Initialize() 55 mode_ = PUSH; in Initialize() 57 } else if (mode_ == AUTO_PULL) { in Initialize() 58 mode_ = PULL; in Initialize() 60 } else if (mode_ == AUTO_SUBSCRIBE_QUERY) { in Initialize() 61 mode_ = SUBSCRIBE_QUERY; in Initialize() 144 return mode_; in GetMode() 267 if (mode_ != SyncModeType::SUBSCRIBE_QUERY && mode_ != SyncModeType::UNSUBSCRIBE_QUERY) { in SetQuery() 268 mode_ += QUERY_SYNC_MODE_BASE; in SetQuery()
|
/ohos5.0/base/useriam/pin_auth/services/modules/executors/src/ |
H A D | pin_auth_executor_callback_hdi.cpp | 45 …tokenId_(param.tokenId), mode_(mode), scheduleId_(param.scheduleId), authIntent_(param.authIntent), in PinAuthExecutorCallbackHdi() 53 …tokenId_(param.tokenId), mode_(mode), scheduleId_(param.scheduleId), authIntent_(param.authIntent), in PinAuthExecutorCallbackHdi() 59 …tokenId_(param.tokenId), mode_(mode), scheduleId_(param.scheduleId), authIntent_(param.authIntent), in PinAuthExecutorCallbackHdi() 97 …if (((mode_ == GET_DATA_MODE_ALL_IN_ONE_PIN_AUTH) || (mode_ == GET_DATA_MODE_ALL_IN_ONE_PRIVATE_PI… in OnResult() 117 .mode = mode_, in OnGetData() 125 if (mode_ == GET_DATA_MODE_ALL_IN_ONE_PIN_ENROLL || in OnGetData() 126 (authIntent_ == SPECIFY_PIN_COMPLEXITY && mode_ == GET_DATA_MODE_ALL_IN_ONE_PIN_AUTH)) { in OnGetData()
|
/ohos5.0/base/useriam/pin_auth/frameworks/client/src/ |
H A D | inputer_data_impl.cpp | 49 : mode_(param.mode), algoVersion_(param.algoVersion), algoParameter_(param.algoParameter), in InputerDataImpl() 60 if (errorCode != UserAuth::SUCCESS && mode_ == GET_DATA_MODE_ALL_IN_ONE_PIN_ENROLL) { in GetPinData() 64 if (mode_ == GET_DATA_MODE_ALL_IN_ONE_PIN_ENROLL && authSubType == UserAuth::PIN_PATTERN) { in GetPinData() 87 if ((algoVersion_ > ALGO_VERSION_V1) && (mode_ == GET_DATA_MODE_ALL_IN_ONE_PIN_ENROLL) && in GetPinData() 102 if (mode_ == GET_DATA_MODE_ALL_IN_ONE_PRIVATE_PIN_ENROLL) { in GetPrivatePinData() 138 switch (mode_) { in OnSetData() 180 if (mode_ != GET_DATA_MODE_ALL_IN_ONE_PIN_ENROLL) { in CheckPinSizeBySubType() 225 if (mode_ != GET_DATA_MODE_ALL_IN_ONE_PIN_ENROLL && in CheckSpecialPinComplexity() 226 !(mode_ == GET_DATA_MODE_ALL_IN_ONE_PIN_AUTH && authIntent_ == SPECIFY_PIN_COMPLEXITY)) { in CheckSpecialPinComplexity() 257 if (mode_ != GET_DATA_MODE_ALL_IN_ONE_PIN_ENROLL) { in CheckEdmPinComplexity()
|
/ohos5.0/foundation/ability/idl_tool/util/ |
H A D | file.cpp | 33 : mode_(mode) in File() 57 if (mode_ & READ) { in File() 61 } else if (mode_ & WRITE) { in File() 63 } else if (mode_ & APPEND) { in File() 163 if (fd_ == nullptr || !(mode_ & (WRITE | APPEND))) { in WriteData() 173 if ((mode_ & (WRITE | APPEND)) && fd_ != nullptr) { in Flush()
|
/ohos5.0/base/powermgr/power_manager/services/native/src/ |
H A D | power_mode_module.cpp | 43 : mode_(PowerMode::NORMAL_MODE), lastMode_(LAST_MODE_FLAG), started_(false) in PowerModeModule() 67 int32_t saveMode = SettingHelper::ReadCurrentMode(static_cast<int32_t>(this->mode_)); in InitPowerMode() 68 this->mode_ = static_cast<PowerMode>(saveMode); in InitPowerMode() 78 … POWER_HILOGI(FEATURE_POWER_MODE, "SetModeItem mode_: %{public}u, mode: %{public}u", mode_, mode); in SetModeItem() 81 if (this->mode_ == mode && this->mode_ != PowerMode::PERFORMANCE_MODE) { in SetModeItem() 103 POWER_HILOGD(FEATURE_POWER_MODE, "GetModeItem mode_: %{public}u", mode_); in GetModeItem() 105 return mode_; in GetModeItem() 129 …if (this->mode_ == PowerMode::POWER_SAVE_MODE || this->mode_ == PowerMode::EXTREME_POWER_SAVE_MODE… in RegisterSaveModeObserver() 239 mode_ = mode; in EnableMode() 260 …ngleton<PowerModePolicy>::GetInstance()->UpdatePowerModePolicy(static_cast<uint32_t>(this->mode_)); in UpdateModepolicy() [all …]
|
/ohos5.0/base/sensors/miscdevice/utils/common/src/ |
H A D | light_animation_ipc.cpp | 27 return mode_; in GetMode() 32 mode_ = mode; in SetMode() 57 if (!parcel.WriteInt32(mode_)) { in Marshalling() 84 return (parcel.ReadInt32(mode_)) && (parcel.ReadInt32(onTime_)) && (parcel.ReadInt32(offTime_)); in ReadFromParcel()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/cloud/ |
H A D | sync_event.cpp | 20 …: retry_(retry), mode_(mode), wait_(wait), query_(std::move(query)), asyncDetail_(std::move(async)) in EventInfo() 25 : retry_(retry), mode_(syncParam.mode), wait_(syncParam.wait), query_(std::move(query)), in EventInfo() 42 mode_ = info.mode_; in operator =() 65 return info_.mode_; in GetMode()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
H A D | drag_bar_component.h | 34 mode_ = mode; in SetPanelMode() 39 return mode_; in GetPanelMode() 53 PanelMode mode_ = PanelMode::FULL;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_panel.cpp | 43 if (type_ == PanelType::TEMP_DISPLAY && mode_ == PanelMode::MINI) { in PrepareSpecializedComponent() 44 mode_ = PanelMode::HALF; in PrepareSpecializedComponent() 45 } else if (type_ == PanelType::MINI_BAR && mode_ == PanelMode::HALF) { in PrepareSpecializedComponent() 46 mode_ = PanelMode::MINI; in PrepareSpecializedComponent() 48 panelChild_->SetPanelMode(mode_); in PrepareSpecializedComponent() 95 … panel.mode_ = ConvertStrToEnum(val.c_str(), modeTable, ArraySize(modeTable), PanelMode::FULL); in SetSpecializedAttr()
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/ |
H A D | power_mode_module_native_test.cpp | 54 powerModeModuleTest->mode_ = PowerMode::PERFORMANCE_MODE; 56 powerModeModuleTest->mode_ = PowerMode::EXTREME_POWER_SAVE_MODE; 58 powerModeModuleTest->mode_ = static_cast<PowerMode>(POWERMODE); 76 powerModeModuleTest->mode_ = PowerMode::PERFORMANCE_MODE;
|
/ohos5.0/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/ |
H A D | interface_configuration_test.cpp | 27 info.mode_ = STATIC; in GetInterfaceConfiguration() 60 EXPECT_EQ(result->mode_, data.mode_);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/ |
H A D | navrouter_pattern.h | 57 mode_ = mode; in SetNavRouteMode() 62 return mode_; in GetNavRouteMode() 68 NavRouteMode mode_ = NavRouteMode::PUSH_WITH_RECREATE; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | gesture_group.h | 34 …GestureGroup(GestureMode mode, const std::vector<RefPtr<Gesture>>& gestures) : mode_(mode), gestur… in GestureGroup() 35 explicit GestureGroup(GestureMode mode) : mode_(mode) {} in GestureGroup() 47 GestureMode mode_;
|
/ohos5.0/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/ |
H A D | dev_interface_state_test.cpp | 112 ifCfg->mode_ = STATIC; 115 ifCfg->mode_ = DHCP; 118 EXPECT_EQ(devInterfaceState.GetIfcfg()->mode_, DHCP); 125 ifCfg->mode_ = STATIC; 179 ifCfg->mode_ = STATIC; 184 ifCfg->mode_ = LAN_STATIC;
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | window_transition_info.cpp | 24 mode_ = static_cast<WindowMode>(info->mode_); in WindowTransitionInfo() 73 mode_ = mode; in SetWindowMode() 78 return mode_; in GetWindowMode() 202 if (!parcel.WriteUint32(static_cast<uint32_t>(mode_))) { in Marshalling() 259 windowTransitionInfo->mode_ = static_cast<WindowMode>(parcel.ReadUint32()); in Unmarshalling()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | sync_target.cpp | 48 mode_ = mode; in SetMode() 53 return mode_; in GetMode() 60 mode_ = operation->GetMode(); in SetSyncOperation()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/ |
H A D | draw_cmd_list.cpp | 54 : width_(width), height_(height), mode_(mode) in DrawCmdList() 70 if (mode_ != DrawCmdList::UnmarshalMode::DEFERRED) { in AddDrawOp() 130 if (mode_ == DrawCmdList::UnmarshalMode::DEFERRED) { in IsEmpty() 142 return mode_ == DrawCmdList::UnmarshalMode::DEFERRED ? drawOpItems_.size() : opCnt_; in GetOpItemSize() 176 if (mode_ == DrawCmdList::UnmarshalMode::IMMEDIATE) { in MarshallingDrawOps() 349 if (mode_ == DrawCmdList::UnmarshalMode::IMMEDIATE) { in Playback() 351 } else if (mode_ == DrawCmdList::UnmarshalMode::DEFERRED) { in Playback() 370 if (mode_ == DrawCmdList::UnmarshalMode::IMMEDIATE) { in GenerateCache() 372 } else if (mode_ == DrawCmdList::UnmarshalMode::DEFERRED) { in GenerateCache() 505 if (mode_ == DrawCmdList::UnmarshalMode::DEFERRED) { in PlaybackToDrawCmdList() [all …]
|