/foundation/multimedia/av_codec/test/nativedemo/ |
D | av_codec_demo.cpp | 77 string mode; in RunAudioDecoder() local 79 (void)getline(cin, mode); in RunAudioDecoder() 80 if (mode == "" || mode == "0") { in RunAudioDecoder() 82 } else if (mode == "1") { in RunAudioDecoder() 84 } else if (mode == "2") { in RunAudioDecoder() 86 } else if (mode == "3") { in RunAudioDecoder() 88 } else if (mode == "4") { in RunAudioDecoder() 90 } else if (mode == "5") { in RunAudioDecoder() 92 } else if (mode == "6") { in RunAudioDecoder() 94 } else if (mode == "7") { in RunAudioDecoder() [all …]
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_common_utils_test/src/ |
D | medialibrary_privacy_manager_test.cpp | 30 string mode = ""; variable 31 MediaPrivacyManager mediaPrivacyManager(path, mode); 39 string mode = "Z"; variable 40 MediaPrivacyManager mediaPrivacyManager(path, mode); 48 string mode = ""; variable 49 MediaPrivacyManager mediaPrivacyManager(path, mode); 57 string mode = "w"; variable 58 MediaPrivacyManager mediaPrivacyManager(path, mode); 66 string mode = "w"; variable 67 MediaPrivacyManager mediaPrivacyManager(path, mode); [all …]
|
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/session/ |
D | profession_session.h | 98 // Metering mode 100 * @brief Get Metering mode. 101 * @param vector of Metering Mode. 107 * @brief Query whether given meteringMode mode supported. 109 * @param camera_meter_mode_t flash mode to query. 116 * @brief Set Metering Mode. 120 int32_t SetMeteringMode(MeteringMode mode); 127 int32_t GetMeteringMode(MeteringMode& mode); 174 // Focus mode 176 * @brief Get Metering mode. [all …]
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
D | std_file.cpp | 52 std::ios_base::openmode OpenFileAccessMode(IFile::Mode mode) in OpenFileAccessMode() argument 54 switch (mode) { in OpenFileAccessMode() 55 case IFile::Mode::INVALID: in OpenFileAccessMode() 56 CORE_ASSERT_MSG(false, "Invalid file access mode."); in OpenFileAccessMode() 58 case IFile::Mode::READ_ONLY: in OpenFileAccessMode() 60 case IFile::Mode::READ_WRITE: in OpenFileAccessMode() 67 std::ios_base::openmode CreateFileAccessMode(IFile::Mode mode) in CreateFileAccessMode() argument 69 switch (mode) { in CreateFileAccessMode() 70 case IFile::Mode::INVALID: in CreateFileAccessMode() 71 case IFile::Mode::READ_ONLY: in CreateFileAccessMode() [all …]
|
D | std_file.h | 31 StdFile(Mode mode, std::fstream&& stream); in CORE_BEGIN_NAMESPACE() 34 Mode GetMode() const override; in CORE_BEGIN_NAMESPACE() 37 static IFile::Ptr Open(BASE_NS::string_view path, Mode mode); in CORE_BEGIN_NAMESPACE() 40 static IFile::Ptr Create(BASE_NS::string_view path, Mode mode); in CORE_BEGIN_NAMESPACE() 64 Mode mode_ { Mode::INVALID }; in CORE_BEGIN_NAMESPACE()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
D | graphic_types.h | 67 /** ARGB8888 color mode */ 69 /** XRGB888 color mode */ 71 /** RGB888 color mode */ 73 /** RGB565 color mode */ 75 /** ARGB1555 color mode */ 77 /** ARGB4444 color mode */ 79 /** AL44 color mode */ 81 /** AL88 color mode */ 83 /** L1 color mode */ 85 /** L2 color mode */ [all …]
|
/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/ |
D | native_module_ohos_camera.h | 25 #include "mode/macro_photo_session_napi.h" 26 #include "mode/macro_video_session_napi.h" 27 #include "mode/mode_manager_napi.h" 28 #include "mode/night_session_napi.h" 29 #include "mode/photo_session_for_sys_napi.h" 30 #include "mode/photo_session_napi.h" 31 #include "mode/portrait_session_napi.h" 32 #include "mode/profession_session_napi.h" 33 #include "mode/slow_motion_session_napi.h" 34 #include "mode/video_session_for_sys_napi.h" [all …]
|
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/ |
D | file_utils_test.cpp | 40 int32_t ChMod(const std::string &path, mode_t mode); 42 int32_t MkDir(const std::string &path, mode_t mode); 55 mode_t mode = 002; in SetUp() local 56 umask(mode); in SetUp() 83 mode_t mode = 0660; variable 84 bool bRet = StorageTest::StorageTestUtils::MkDir(PATH_CHMOD, mode); 89 EXPECT_TRUE((st.st_mode & ALL_PERMS) == mode); 91 mode = 0771; 92 ret = ChMod(std::string(PATH_CHMOD), mode); 97 EXPECT_TRUE((st.st_mode & ALL_PERMS) == mode); [all …]
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/effect/ |
D | audio_effect_manager.cpp | 85 static void UpdateUnsupportedDevicePre(Preprocess &pp, Stream &stream, const std::string &mode, int… in UpdateUnsupportedDevicePre() argument 88 streamEffectMode.mode = mode; in UpdateUnsupportedDevicePre() 102 static void UpdateUnsupportedModePre(Preprocess &pp, Stream &stream, std::string &mode, int32_t i) in UpdateUnsupportedModePre() argument 105 if ((mode != "EFFECT_NONE") && in UpdateUnsupportedModePre() 106 (mode != "EFFECT_DEFAULT")) { in UpdateUnsupportedModePre() 107 …AUDIO_INFO_LOG("[supportedEffectConfig LOG10]:mode-> The %{public}s mode of %{public}s is unsuppor… in UpdateUnsupportedModePre() 108 and this mode is deleted!", mode.c_str(), stream.scene.c_str()); in UpdateUnsupportedModePre() 113 UpdateUnsupportedDevicePre(pp, stream, mode, i, j); in UpdateUnsupportedModePre() 117 …teUnsupportedDevicePost(EffectSceneStream &ess, Stream &stream, const std::string &mode, int32_t i) in UpdateUnsupportedDevicePost() argument 120 streamEffectMode.mode = mode; in UpdateUnsupportedDevicePost() [all …]
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/stream_test/ |
D | incremental_source_stream_test.cpp | 51 IncrementalMode mode = IncrementalMode::INCREMENTAL_DATA; variable 52 … std::unique_ptr<IncrementalSourceStream> ins = IncrementalSourceStream::CreateSourceStream(mode); 65 IncrementalMode mode = IncrementalMode::INCREMENTAL_DATA; variable 66 … std::unique_ptr<IncrementalSourceStream> ins = IncrementalSourceStream::CreateSourceStream(mode); 83 IncrementalMode mode = IncrementalMode::INCREMENTAL_DATA; variable 84 … std::unique_ptr<IncrementalSourceStream> ins = IncrementalSourceStream::CreateSourceStream(mode); 101 IncrementalMode mode = IncrementalMode::INCREMENTAL_DATA; variable 102 … std::unique_ptr<IncrementalSourceStream> ins = IncrementalSourceStream::CreateSourceStream(mode); 119 IncrementalMode mode = IncrementalMode::INCREMENTAL_DATA; variable 120 … std::unique_ptr<IncrementalSourceStream> ins = IncrementalSourceStream::CreateSourceStream(mode); [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/effect/ |
D | shader_effect.cpp | 37 ShaderEffect::ShaderEffect(ShaderEffectType t, ShaderEffect& dst, ShaderEffect& src, BlendMode mode… in ShaderEffect() argument 40 impl_->InitWithBlend(dst, src, mode); in ShaderEffect() 52 …Effect(ShaderEffectType t, const Picture& picture, TileMode tileX, TileMode tileY, FilterMode mode, in ShaderEffect() argument 56 impl_->InitWithPicture(picture, tileX, tileY, mode, matrix, rect); in ShaderEffect() 61 …const std::vector<ColorQuad>& colors, const std::vector<scalar>& pos, TileMode mode, const Matrix … in ShaderEffect() argument 64 impl_->InitWithLinearGradient(startPt, endPt, colors, pos, mode, matrix); in ShaderEffect() 69 …const std::vector<ColorQuad>& colors, const std::vector<scalar>& pos, TileMode mode, const Matrix … in ShaderEffect() argument 72 impl_->InitWithRadialGradient(centerPt, radius, colors, pos, mode, matrix); in ShaderEffect() 77 …lar endRadius, const std::vector<ColorQuad>& colors, const std::vector<scalar>& pos, TileMode mode, in ShaderEffect() argument 81 … impl_->InitWithTwoPointConical(startPt, startRadius, endPt, endRadius, colors, pos, mode, matrix); in ShaderEffect() [all …]
|
/foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/include/ |
D | ability_window_configuration.h | 22 * Indicates that the Page ability is in an undefined window display mode. 26 * Indicates that the Page ability is in the fullscreen display mode. 30 …Indicates that the Page ability is displayed in the primary window when it is in split-screen mode. 31 * The primary window, which triggers the split-screen mode, refers to the top window in the 32 * top/bottom split-screen mode or the left window in the left/right screen mode. 36 …dicates that the Page ability is displayed in the secondary window when it is in split-screen mode. 37 * The secondary window refers to the bottom window in the top/bottom split-screen mode or 38 * the right window in the left/right screen mode. 42 * Indicates that the Page ability is in floating window display mode.
|
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/ |
D | hgm_screen.cpp | 24 HgmScreen::HgmScreen(ScreenId id, int32_t mode, ScreenSize& screenSize) in HgmScreen() argument 25 : id_(id), activeModeId_(mode), width_(screenSize.width), height_(screenSize.height), in HgmScreen() 47 HGM_LOGI("HgmScreen current mode is not supported, failed to get refreshrate"); in GetActiveRefreshRate() 119 for (auto mode : screenModeInfos_) { in GetModeViaId() local 120 if (mode->GetModeId() != id) { in GetModeViaId() 123 return mode; in GetModeViaId() 152 // get the corresponding mode id with the given refreshrate, using the current resolution in GetModeIdViaRate() 165 …HGM_LOGI("HgmScreen getting a new mode with the resolution of current mode : %{public}d", activeMo… in GetModeIdViaRate() 166 …int32_t mode = GetModeIdViaResolutionAndRate(profilePtr->GetWidth(), profilePtr->GetHeight(), rate… in GetModeIdViaRate() local 167 return mode; in GetModeIdViaRate() [all …]
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
D | ipc_stream_in_server.cpp | 57 AudioMode mode = config.audioMode; in Create() local 58 sptr<IpcStreamInServer> streamInServer = sptr<IpcStreamInServer>::MakeSptr(config, mode); in Create() 68 …:IpcStreamInServer(const AudioProcessConfig &config, AudioMode mode) : config_(config), mode_(mode) in IpcStreamInServer() argument 88 AUDIO_ERR_LOG("Config failed, mode is %{public}d", static_cast<int32_t>(mode_)); in Config() 95 …AUDIO_ERR_LOG("GetRenderer failed, mode is %{public}s", (mode_ != AUDIO_MODE_PLAYBACK ? " not play… in GetRenderer() 135 AUDIO_INFO_LOG("Resolve buffer, mode: %{public}d", mode_); in ResolveBuffer() 142 … AUDIO_ERR_LOG("GetAudioSessionID failed, invalid mode: %{public}d", static_cast<int32_t>(mode_)); in ResolveBuffer() 154 AUDIO_ERR_LOG("UpdatePosition failed, invalid mode: %{public}d", static_cast<int32_t>(mode_)); in UpdatePosition() 166 … AUDIO_ERR_LOG("GetAudioSessionID failed, invalid mode: %{public}d", static_cast<int32_t>(mode_)); in GetAudioSessionID() 180 AUDIO_ERR_LOG("Start failed, invalid mode: %{public}d", static_cast<int32_t>(mode_)); in Start() [all …]
|
/foundation/arkui/ace_engine_lite/frameworks/examples/alarm/src/main/js/default/pages/index/ |
D | index.js | 22 mode: ['addAlarm', 'editAlarm', 'deleteAlarm', 'timeArrive'], 26 mode: '', 54 console.log('[mainPage init] mode: ' + this.dataWrapper.mode); 55 console.log('[mainPage init] mode: ' + this.dataWrapper.time); 56 console.log('[mainPage init] mode: ' + this.dataWrapper.repeat); 57 console.log('[mainPage init] mode: ' + this.dataWrapper.alarmItemIndex); 63 …if (this.dataWrapper.mode === this.mode[0] && typeof (this.cancelAlarm) === 'undefined') { // add … 67 } else if (this.dataWrapper.mode === this.mode[1]) { // edit alarm 77 } else if (this.dataWrapper.mode === this.mode[modeDeleteAlarmIndex]) { // time arrive 111 this.dataWrapper.mode = this.mode[0]; [all …]
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/wifi_hal_interface/ |
D | wifi_supplicant_hal_interface.h | 88 * @Description Turn on/off power save mode for the interface. 119 * @Description Set suspend mode to wpa 121 * @param mode - true for suspend mode, false for resume mode 125 WifiErrorNo WpaSetSuspendMode(bool mode) const; 128 * @Description Set power mode to wpa 130 * @param mode - true for power mode, false for resume mode 134 WifiErrorNo WpaSetPowerMode(bool mode) const;
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
D | open.cpp | 69 auto [succ, mode] = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(O_RDONLY); in GetJsFlags() 71 if (!succ || mode < 0 || ((mode & invalidMode) == invalidMode)) { in GetJsFlags() 72 HILOGE("Invalid mode"); in GetJsFlags() 76 flags = static_cast<unsigned int>(mode); in GetJsFlags() 122 static int OpenFileByPath(const string &path, unsigned int mode) in OpenFileByPath() argument 130 int ret = uv_fs_open(nullptr, open_req.get(), path.c_str(), mode, S_IRUSR | in OpenFileByPath() 156 static tuple<int, string> OpenByFileDataUri(Uri &uri, const string &uriStr, unsigned int mode) in OpenByFileDataUri() argument 162 int res = OpenFileByDatashare(uri.ToString(), mode); in OpenByFileDataUri() 168 int ret = OpenFileByPath(realPath, mode); in OpenByFileDataUri() 171 ret = OpenFileByDatashare(uriStr, mode); in OpenByFileDataUri() [all …]
|
D | copydir.cpp | 35 static int RecurCopyDir(const string &srcPath, const string &destPath, const int mode, 63 int mode = 0; in ParseAndCheckJsOperand() local 66 tie(resGetThirdArg, mode) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(mode); in ParseAndCheckJsOperand() 67 if (!resGetThirdArg || (mode < COPYMODE_MIN || mode > COPYMODE_MAX)) { in ParseAndCheckJsOperand() 68 HILOGE("Invalid mode"); in ParseAndCheckJsOperand() 72 return { true, move(src), move(dest), mode }; in ParseAndCheckJsOperand() 111 static int CopyFile(const string &src, const string &dest, const int mode) in CopyFile() argument 115 int ret = (mode == DIRMODE_FILE_COPY_THROW_ERR) ? EEXIST : RemoveFile(dest); in CopyFile() 130 static int CopySubDir(const string &srcPath, const string &destPath, const int mode, in CopySubDir() argument 140 return RecurCopyDir(srcPath, destPath, mode, errfiles); in CopySubDir() [all …]
|
D | movedir.cpp | 36 static int RecurMoveDir(const string &srcPath, const string &destPath, const int mode, 88 int mode = 0; in ParseJsOperand() local 91 tie(resGetThirdArg, mode) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(mode); in ParseJsOperand() 92 if (!resGetThirdArg || (mode < DIRMODE_MIN || mode > DIRMODE_MAX)) { in ParseJsOperand() 93 HILOGE("Invalid mode"); in ParseJsOperand() 97 return { true, move(src), move(dest), mode }; in ParseJsOperand() 119 static int RenameFile(const string &src, const string &dest, const int mode, deque<struct ErrFiles>… in RenameFile() argument 127 if (mode == DIRMODE_FILE_THROW_ERR) { in RenameFile() 150 static int RenameDir(const string &src, const string &dest, const int mode, deque<struct ErrFiles> … in RenameDir() argument 154 return RecurMoveDir(src, dest, mode, errfiles); in RenameDir() [all …]
|
/foundation/resourceschedule/work_scheduler/services/native/src/policy/ |
D | power_mode_policy.cpp | 42 auto mode = PowerMgrClient::GetInstance().GetDeviceMode(); in GetPolicyMaxRunning() local 43 if (mode == PowerMode::NORMAL_MODE || mode == PowerMode::PERFORMANCE_MODE) { in GetPolicyMaxRunning() 44 WS_HILOGD("power mode: %{public}d, PolicyRes: %{public}d", mode, res); in GetPolicyMaxRunning() 50 … WS_HILOGI("charge: %{public}d, power mode: %{public}d, PolicyRes: %{public}d", charge, mode, res); in GetPolicyMaxRunning() 54 WS_HILOGI("power mode: %{public}d, PolicyRes: %{public}d", mode, res); in GetPolicyMaxRunning()
|
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/ |
D | media_asset_data_handler_capi.h | 39 * @brief Delivery Mode 44 /*delivery fast mode*/ 46 /*delivery high quality mode*/ 48 /*delivery balanced mode*/ 53 * @brief Source Mode 58 /*media source original mode*/ 60 /*media source edited mode*/ 65 * @brief Compatible Mode 70 /*compatible media source mode*/ 72 /*original media source mode*/ [all …]
|
/foundation/multimedia/media_library/interfaces/kits/c/ |
D | media_asset_base_capi.h | 36 …* MediaLibrary_DeliveryMode enumeration: This enumeration defines the delivery mode of the request… 88 * @brief Delivery Mode 90 * This enumeration defines the delivery mode of the requested resources. 91 * The delivery mode can be set to fast mode, high quality mode, or balanced mode. 96 /*delivery fast mode*/ 98 /*delivery high quality mode*/ 100 /*delivery balanced mode*/ 123 /*delivery mode*/
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
D | audio_stream_manager.cpp | 89 …ctMode = effectModeMap.at(supportedEffectConfig.postProcessNew.stream[i].streamEffectMode[j].mode); in UpdateEffectInfoArray() 90 audioSceneEffectInfo.mode.push_back(audioEffectMode); in UpdateEffectInfoArray() 92 auto index = std::find(audioSceneEffectInfo.mode.begin(), audioSceneEffectInfo.mode.end(), 0); in UpdateEffectInfoArray() 93 if (index == audioSceneEffectInfo.mode.end()) { in UpdateEffectInfoArray() 95 audioSceneEffectInfo.mode.push_back(audioEffectMode); in UpdateEffectInfoArray() 97 index = std::find(audioSceneEffectInfo.mode.begin(), audioSceneEffectInfo.mode.end(), 1); in UpdateEffectInfoArray() 98 if (index == audioSceneEffectInfo.mode.end()) { in UpdateEffectInfoArray() 100 audioSceneEffectInfo.mode.push_back(audioEffectMode); in UpdateEffectInfoArray() 102 std::sort(audioSceneEffectInfo.mode.begin(), audioSceneEffectInfo.mode.end()); in UpdateEffectInfoArray() 122 audioSceneEffectInfo.mode.push_back(audioEffectMode); in GetEffectInfoArray() [all …]
|
/foundation/arkui/ui_appearance/test/unittest/ |
D | ui_appearance_test.cpp | 87 auto mode = test->GetDarkMode(); variable 88 EXPECT_EQ(mode, UiAppearanceAbilityInterface::DarkMode::ALWAYS_DARK); 92 mode = test->GetDarkMode(); 93 EXPECT_EQ(mode, UiAppearanceAbilityInterface::DarkMode::ALWAYS_LIGHT); 108 auto mode = test->GetDarkMode(); variable 109 EXPECT_EQ(mode, UiAppearanceAbilityInterface::DarkMode::ALWAYS_DARK); 113 mode = test->GetDarkMode(); 114 EXPECT_EQ(mode, UiAppearanceAbilityInterface::DarkMode::ALWAYS_DARK); 118 mode = test->GetDarkMode(); 119 EXPECT_EQ(mode, UiAppearanceAbilityInterface::DarkMode::ALWAYS_LIGHT); [all …]
|
/foundation/multimedia/av_codec/test/nativedemo/avmuxer/ |
D | avmuxer_demo_runner.cpp | 100 string mode; in AVMuxerDemoCase() local 101 (void)getline(cin, mode); in AVMuxerDemoCase() 103 if (mode == "0" || mode == "") { in AVMuxerDemoCase() 106 } else if (mode == "1") { in AVMuxerDemoCase() 109 } else if (mode == "2") { in AVMuxerDemoCase() 120 } else if (mode == "3") { in AVMuxerDemoCase() 122 } else if (mode == "4") { in AVMuxerDemoCase() 124 } else if (mode == "5") { in AVMuxerDemoCase() 126 } else if (mode == "6") { in AVMuxerDemoCase() 128 } else if (mode == "7") { in AVMuxerDemoCase()
|