| /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/ability/idl_tool/idl_tool_2/codegen/HDI/ |
| D | hdi_code_generator.cpp | 153 Logger::E(TAG, "the generate mode is not supported, please check option"); in GetCodeGenPoilcy() 168 GenMode mode = GenMode::IPC; in GenIpcCCode() local 171 cCodeEmitters_["types"]->OutPut(ast, outDir, mode); in GenIpcCCode() 175 cCodeEmitters_["interface"]->OutPut(ast, outDir, mode); in GenIpcCCode() 176 cCodeEmitters_["proxy"]->OutPut(ast, outDir, mode); in GenIpcCCode() 177 cCodeEmitters_["driver"]->OutPut(ast, outDir, mode); in GenIpcCCode() 178 cCodeEmitters_["stub"]->OutPut(ast, outDir, mode); in GenIpcCCode() 179 cCodeEmitters_["service"]->OutPut(ast, outDir, mode); in GenIpcCCode() 183 cCodeEmitters_["interface"]->OutPut(ast, outDir, mode); in GenIpcCCode() 184 cCodeEmitters_["proxy"]->OutPut(ast, outDir, mode); in GenIpcCCode() [all …]
|
| /foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/session/ |
| D | profession_session.h | 86 // Metering mode 88 * @brief Get Metering mode. 89 * @param vector of Metering Mode. 95 * @brief Query whether given meteringMode mode supported. 97 * @param camera_meter_mode_t flash mode to query. 104 * @brief Set Metering Mode. 108 int32_t SetMeteringMode(MeteringMode mode); 115 int32_t GetMeteringMode(MeteringMode& mode); 142 // Focus mode 144 * @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/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_common_utils_test/src/ |
| D | medialibrary_privacy_manager_test.cpp | 32 string mode = ""; variable 34 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); 42 string mode = "Z"; variable 44 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); 52 string mode = ""; variable 54 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); 62 string mode = "w"; variable 64 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); 72 string mode = "w"; variable 74 MediaPrivacyManager mediaPrivacyManager(path, mode, fileId); [all …]
|
| /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/frameworks/js/camera_napi/src/ |
| D | native_module_ohos_camera.cpp | 21 #include "mode/aperture_video_session_napi.h" 22 #include "mode/fluorescence_photo_session_napi.h" 23 #include "mode/high_res_photo_session_napi.h" 24 #include "mode/light_painting_session_napi.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/panorama_session_napi.h" 30 #include "mode/photo_session_for_sys_napi.h" [all …]
|
| /foundation/filemanagement/storage_service/services/storage_daemon/utils/test/ |
| D | file_utils_test.cpp | 41 int32_t ChMod(const std::string &path, mode_t mode); 43 int32_t MkDir(const std::string &path, mode_t mode); 56 mode_t mode = 002; in SetUp() local 57 umask(mode); in SetUp() 84 mode_t mode = 0660; variable 85 bool bRet = StorageTest::StorageTestUtils::MkDir(PATH_CHMOD, mode); 90 EXPECT_TRUE((st.st_mode & ALL_PERMS) == mode); 92 mode = 0771; 93 ret = ChMod(std::string(PATH_CHMOD), mode); 98 EXPECT_TRUE((st.st_mode & ALL_PERMS) == mode); [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/multimedia/audio_framework/services/audio_policy/server/src/service/effect/ |
| D | audio_effect_service.cpp | 66 static void UpdateUnsupportedDevicePre(PreStreamScene &pp, Stream &stream, const std::string &mode, in UpdateUnsupportedDevicePre() argument 70 streamEffectMode.mode = mode; in UpdateUnsupportedDevicePre() 84 static void UpdateUnsupportedModePre(PreStreamScene &pp, Stream &stream, std::string &mode, int32_t… in UpdateUnsupportedModePre() argument 87 if ((mode != "EFFECT_NONE") && in UpdateUnsupportedModePre() 88 (mode != "EFFECT_DEFAULT")) { in UpdateUnsupportedModePre() 89 …AUDIO_INFO_LOG("[supportedEffectConfig LOG10]:mode-> The %{public}s mode of %{public}s is unsuppor… in UpdateUnsupportedModePre() 90 and this mode is deleted!", mode.c_str(), stream.scene.c_str()); in UpdateUnsupportedModePre() 95 UpdateUnsupportedDevicePre(pp, stream, mode, i, j); in UpdateUnsupportedModePre() 99 …dateUnsupportedDevicePost(PostStreamScene &ess, Stream &stream, const std::string &mode, int32_t i) in UpdateUnsupportedDevicePost() argument 102 streamEffectMode.mode = mode; in UpdateUnsupportedDevicePost() [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/idl_tool/test/hdi_unittest/camera_v1_2/foo/camera/v1_2/ |
| D | Types.idl | 103 * Normal mode, which supports both photo and video scenes 108 * Capture mode, which dedicated to photo scene 109 * IF this mode is implemented, then the NORMAL mode should no longer be implemented 114 * Video mode, which dedicated to video secne 115 * IF this mode is implemented, then the NORMAL mode should no longer be implemented 120 * Portrait mode, which dedicated to portrait photo secne 125 * Night mode, which dedicated to night shooting scene 130 * Professional mode, which dedicated to professional photo scene 135 * Slow motion mode, which dedicated to capturing slow motion 140 * Scan mode, which dedicated to scan code [all …]
|
| /foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/ |
| D | hgm_screen.cpp | 25 HgmScreen::HgmScreen(ScreenId id, int32_t mode, ScreenSize& screenSize) in HgmScreen() argument 26 : id_(id), activeModeId_(mode), width_(screenSize.width), height_(screenSize.height), in HgmScreen() 48 HGM_LOGI("HgmScreen current mode is not supported, failed to get refreshrate"); in GetActiveRefreshRate() 121 for (auto mode : screenModeInfos_) { in GetModeViaId() local 122 if (mode->GetModeId() != id) { in GetModeViaId() 125 return mode; in GetModeViaId() 154 // get the corresponding mode id with the given refreshrate, using the current resolution in GetModeIdViaRate() 167 …HGM_LOGD("HgmScreen getting a new mode with the resolution of current mode : %{public}d", activeMo… in GetModeIdViaRate() 168 …int32_t mode = GetModeIdViaResolutionAndRate(profilePtr->GetWidth(), profilePtr->GetHeight(), rate… in GetModeIdViaRate() local 169 return mode; in GetModeIdViaRate() [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/ability/idl_tool/test/hdi_unittest/light_v1_0/foo/light/v1_0/ |
| D | LightTypes.idl | 24 * turn on or off a light, and set the light blinking mode based on the light id. 31 * @brief Defines the light data structure, including the light id, lighting mode, 32 * blinking mode and duration, return values, and lighting effect. 81 HDF_LIGHT_FLASH_NONE = 0, /** No flicker mode. */ 82 HDF_LIGHT_FLASH_BLINK = 1, /** Timed flashing mode. */ 83 HDF_LIGHT_FLASH_GRADIENT = 2, /** Gradient mode. */ 84 HDF_LIGHT_FLASH_BUTT = 3, /** Invalid mode. */ 90 …* The parameters include the blinking mode and the on and off time for the light in a blinking per… 95 int flashMode; /** Blinking mode. For details, see {@link HdfLightFlashMode}. */ 131 * The parameters include single color mode, RGB mode and WRGB mode. [all …]
|
| /foundation/multimedia/audio_framework/services/audio_service/server/src/ |
| D | ipc_stream_in_server.cpp | 59 AudioMode mode = config.audioMode; in Create() local 60 sptr<IpcStreamInServer> streamInServer = sptr<IpcStreamInServer>::MakeSptr(config, mode); in Create() 70 …:IpcStreamInServer(const AudioProcessConfig &config, AudioMode mode) : config_(config), mode_(mode) in IpcStreamInServer() argument 95 AUDIO_ERR_LOG("Config failed, mode is %{public}d", static_cast<int32_t>(mode_)); in Config() 102 …AUDIO_ERR_LOG("GetRenderer failed, mode is %{public}s", (mode_ != AUDIO_MODE_PLAYBACK ? " not play… in GetRenderer() 112 …AUDIO_ERR_LOG("GetCapturer failed, mode is %{public}s", (mode_ != AUDIO_MODE_RECORD ? " not record… in GetCapturer() 152 AUDIO_INFO_LOG("Resolve buffer, mode: %{public}d", mode_); in ResolveBuffer() 159 … AUDIO_ERR_LOG("GetAudioSessionID failed, invalid mode: %{public}d", static_cast<int32_t>(mode_)); in ResolveBuffer() 171 AUDIO_ERR_LOG("UpdatePosition failed, invalid mode: %{public}d", static_cast<int32_t>(mode_)); in UpdatePosition() 183 … AUDIO_ERR_LOG("GetAudioSessionID failed, invalid mode: %{public}d", static_cast<int32_t>(mode_)); in GetAudioSessionID() [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/multimedia/player_framework/services/services/player/server/ |
| D | player_server_state.h | 31 virtual int32_t Seek(int32_t mSeconds, PlayerSeekMode mode); 32 virtual int32_t SetPlaybackSpeed(PlaybackRateMode mode); 37 virtual int32_t SetPlayRangeWithMode(int64_t start, int64_t end, PlayerSeekMode mode); 82 int32_t SetPlayRangeWithMode(int64_t start, int64_t end, PlayerSeekMode mode) override; 104 int32_t Seek(int32_t mSeconds, PlayerSeekMode mode) override; 106 int32_t SetPlaybackSpeed(PlaybackRateMode mode) override; 108 int32_t SetPlayRangeWithMode(int64_t start, int64_t end, PlayerSeekMode mode) override; 122 int32_t Seek(int32_t mSeconds, PlayerSeekMode mode) override; 124 int32_t SetPlaybackSpeed(PlaybackRateMode mode) override; 146 int32_t Seek(int32_t mSeconds, PlayerSeekMode mode) override; [all …]
|
| /foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/video_codec/video_codec/ |
| D | video_codec_base.cpp | 30 …::shared_ptr<VideoCodecBase> VideoCodecFactory::CreateVideoCodec(CodecType type, CodecRunMode mode) in CreateVideoCodec() argument 36 codec = CreateVideoDecoder(mode); in CreateVideoCodec() 40 codec = CreateVideoEncoder(mode); in CreateVideoCodec() 48 std::shared_ptr<VideoCodecBase> VideoCodecFactory::CreateVideoDecoder(CodecRunMode mode) in CreateVideoDecoder() argument 51 switch (mode) { in CreateVideoDecoder() 65 AVCODEC_LOGW("Not supported codec run mode: %{public}d", mode); in CreateVideoDecoder() 70 std::shared_ptr<VideoCodecBase> VideoCodecFactory::CreateVideoEncoder(CodecRunMode mode) in CreateVideoEncoder() argument 73 switch (mode) { in CreateVideoEncoder() 87 AVCODEC_LOGW("Not supported codec run mode: %{public}d", mode); in CreateVideoEncoder()
|
| /foundation/ability/idl_tool/test/hdi_unittest/camera_v1_2/foo/camera/v1_1/ |
| D | Types.idl | 101 * Stream infos used in stream prelaunch mode, which can be ignored currently. 116 * Normal mode, which supports both photo and video scenes 121 * Capture mode, which dedicated to photo scene 122 * IF this mode is implemented, then the NORMAL mode should no longer be implemented 127 * Video mode, which dedicated to video secne 128 * IF this mode is implemented, then the NORMAL mode should no longer be implemented 133 * Portrait mode, which dedicated to portrait photo secne 138 * Night mode, which dedicated to night shooting scene 143 * Professional mode, which dedicated to professional photo scene 148 * Slow motion mode, which dedicated to capturing slow motion
|
| /foundation/ability/idl_tool/test/hdi_unittest/camera_v1_1/foo/camera/v1_1/ |
| D | Types.idl | 101 * Stream infos used in stream prelaunch mode, which can be ignored currently. 116 * Normal mode, which supports both photo and video scenes 121 * Capture mode, which dedicated to photo scene 122 * IF this mode is implemented, then the NORMAL mode should no longer be implemented 127 * Video mode, which dedicated to video secne 128 * IF this mode is implemented, then the NORMAL mode should no longer be implemented 133 * Portrait mode, which dedicated to portrait photo secne 138 * Night mode, which dedicated to night shooting scene 143 * Professional mode, which dedicated to professional photo scene 148 * Slow motion mode, which dedicated to capturing slow motion
|
| /foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/wifi_hal_interface/ |
| D | wifi_supplicant_hal_interface.h | 89 * @Description Turn on/off power save mode for the interface. 120 * @Description Set suspend mode to wpa 122 * @param mode - true for suspend mode, false for resume mode 126 WifiErrorNo WpaSetSuspendMode(bool mode) const; 129 * @Description Set power mode to wpa 131 * @param mode - true for power mode, false for resume mode 135 WifiErrorNo WpaSetPowerMode(bool mode) const;
|
| /foundation/window/window_manager/window_scene/test/dms_unittest/ |
| D | dual_display_fold_policy_test.cpp | 73 FoldDisplayMode mode = ssm_.GetFoldDisplayMode(); variable 74 ASSERT_EQ(mode, ssm_.GetFoldDisplayMode()); 77 mode = ssm_.GetFoldDisplayMode(); 78 ASSERT_EQ(mode, ssm_.GetFoldDisplayMode()); 81 mode = ssm_.GetFoldDisplayMode(); 82 ASSERT_EQ(mode, ssm_.GetFoldDisplayMode()); 85 mode = ssm_.GetFoldDisplayMode(); 86 ASSERT_EQ(mode, ssm_.GetFoldDisplayMode()); 99 FoldDisplayMode mode = ssm_.GetFoldDisplayMode(); variable 100 ASSERT_EQ(mode, ssm_.GetFoldDisplayMode()); [all …]
|
| /foundation/resourceschedule/work_scheduler/services/native/src/policy/ |
| D | power_mode_policy.cpp | 46 auto mode = PowerMgrClient::GetInstance().GetDeviceMode(); in GetPolicyMaxRunning() local 47 if (mode == PowerMode::NORMAL_MODE || mode == PowerMode::PERFORMANCE_MODE) { in GetPolicyMaxRunning() 48 WS_HILOGD("power mode: %{public}d, PolicyRes: %{public}d", mode, res); in GetPolicyMaxRunning() 55 … WS_HILOGI("charge: %{public}d, power mode: %{public}d, PolicyRes: %{public}d", charge, mode, res); in GetPolicyMaxRunning() 58 WS_HILOGD("power mode: %{public}d, PolicyRes: %{public}d", mode, res); in GetPolicyMaxRunning()
|