/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/ |
H A D | hgm_screen.cpp | 55 int32_t HgmScreen::SetActiveRefreshRate(int32_t sceneId, uint32_t rate) in SetActiveRefreshRate() argument 64 if (!IfSwitchToRate(sceneId, rate)) { in SetActiveRefreshRate() 68 int32_t modeIdToApply = GetModeIdViaRate(rate); in SetActiveRefreshRate() 77 if (!IfSwitchToRate(sceneId, rate)) { in SetRateAndResolution() 105 supportedRefreshRates_.emplace(rate); in AddScreenModeInfo() 132 bool HgmScreen::IfSwitchToRate(int32_t sceneId, uint32_t rate) const in IfSwitchToRate() 142 if (rate == profilePtr->GetRate() || sceneId < 0) { in IfSwitchToRate() 152 int32_t HgmScreen::GetModeIdViaRate(uint32_t rate) const in GetModeIdViaRate() 155 auto supportedRates = supportedRefreshRates_.find(rate); in GetModeIdViaRate() 181 modeIdFound, width, height, rate); in GetModeIdViaResolutionAndRate() [all …]
|
H A D | hgm_screen.h | 64 bool IsSupportRate(uint32_t rate) const in IsSupportRate() argument 66 return supportedRefreshRates_.find(rate) != supportedRefreshRates_.end() ? true : false; in IsSupportRate() 110 int32_t SetActiveRefreshRate(int32_t sceneId, uint32_t rate); 111 int32_t SetRateAndResolution(int32_t sceneId, uint32_t rate, int32_t width, int32_t height); 113 int32_t AddScreenModeInfo(int32_t width, int32_t height, uint32_t rate, int32_t modeId); 118 ScreenProfile(int32_t width, int32_t height, uint32_t rate, int32_t modeId) in ScreenProfile() argument 119 : width_(width), height_(height), refreshrate_(rate), modeId_(modeId) {} in ScreenProfile() 176 bool IfSwitchToRate(int32_t sceneId, uint32_t rate) const; 177 int32_t GetModeIdViaRate(uint32_t rate) const; 178 int32_t GetModeIdViaResolutionAndRate(int32_t width, int32_t height, uint32_t rate) const;
|
H A D | hgm_core.cpp | 271 int32_t HgmCore::SetScreenRefreshRate(ScreenId id, int32_t sceneId, int32_t rate) in SetScreenRefreshRate() argument 281 if (rate <= 0) { in SetScreenRefreshRate() 282 HGM_LOGW("HgmCore refuse an illegal framerate: %{public}d", rate); in SetScreenRefreshRate() 303 refreshRateUpdateCallback_(rate); in SetScreenRefreshRate() 403 if (screen->AddScreenModeInfo(width, height, rate, mode) == EXEC_SUCCESS) { in AddScreenInfo() 498 for (const auto& [rate, _] : mPolicyConfigData_->refreshRateForSettings_) { in GetScreenComponentRefreshRates() 499 retVec.emplace_back(rate); in GetScreenComponentRefreshRates() 500 HGM_LOGE("HgmCore Adding component rate: %{public}d", rate); in GetScreenComponentRefreshRates() 525 int64_t HgmCore::GetIdealPeriod(uint32_t rate) in GetIdealPeriod() argument 527 if (IDEAL_PERIOD.count(rate)) { in GetIdealPeriod() [all …]
|
H A D | hgm_core.h | 73 void SetPendingScreenRefreshRate(uint32_t rate) in SetPendingScreenRefreshRate() argument 75 pendingScreenRefreshRate_ = rate; in SetPendingScreenRefreshRate() 85 void SetScreenRefreshRateImme(uint32_t rate) in SetScreenRefreshRateImme() argument 87 screenRefreshRateImme_.store(rate); in SetScreenRefreshRateImme() 211 int32_t SetScreenRefreshRate(ScreenId id, int32_t sceneId, int32_t rate); 212 …static int32_t SetRateAndResolution(ScreenId id, int32_t sceneId, int32_t rate, int32_t width, int… 220 int32_t AddScreenInfo(ScreenId id, int32_t width, int32_t height, uint32_t rate, int32_t mode); 236 int64_t GetIdealPeriod(uint32_t rate);
|
/ohos5.0/docs/en/application-dev/graphics/ |
H A D | displaysync-animation.md | 14 expected: 60, // Set the expected frame rate of the animation to 60 Hz. 15 min: 0, // Set the frame rate range. 16 max: 120, // Set the frame rate range. 32 min: 0, // Set the frame rate range. 33 max: 120, // Set the frame rate range. 99 min: 0, // Set the frame rate range. 100 max: 120, // Set the frame rate range. 123 min: 0, // Set the frame rate range. 124 max: 120, // Set the frame rate range. 136 min: 0, // Set the frame rate range. [all …]
|
H A D | displaysync-overview.md | 5 For fast-changing content, such as shooting games and interactive animations, a high frame rate is … 7 For slow-changing content, such as game halls and clock update animations, a low frame rate is used… 9 The variable frame rate capability enables you to achieve a balance between performance experience … 11 OpenHarmony supports this capability. You can use the variable frame rate APIs to develop related s… 15 The variable frame rate capability allows you to specify the frame rate in different scenarios. Typ… 16 - Configure the frame rate parameter for property animations or explicit animations. For details, s… 17 - Request an independent frame rate for UI components. For details, see [Requesting Frame Rates for… 19 - Request an independent frame rate for drawing of non-UI threads through NativeVsync on the native… 22 The variable frame rate provides the basic frame rate configuration for animation components, **XCo… 24 After a valid expected frame rate is set, the system collects the configured frame rate and divides… [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/event_handler/test/ |
H A D | key_auto_repeat_test.cpp | 201 int32_t rate = 500; variable 205 rate = 30; 206 result = keyAutoRepeat.SetKeyboardRepeatRate(rate); 208 rate = 101; 209 result = keyAutoRepeat.SetKeyboardRepeatRate(rate); 211 rate = -1; 245 int32_t rate = 0; variable 249 EXPECT_EQ(rate, expectedRate); 251 EXPECT_EQ(rate, expectedRate); 252 rate = 500; [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/frame_rate_vote/ |
H A D | rs_video_frame_rate_vote.cpp | 57 uint32_t rate = static_cast<uint32_t>(intRate); in VoteVideoFrameRate() local 58 if (rate < NORMAL_RATE_MIN || rate > NORMAL_RATE_MAX) { in VoteVideoFrameRate() 61 if (rate == lastRate_) { in VoteVideoFrameRate() 64 …eo vote surfaceNodeId(%{public}s) rate(%{public}u)", std::to_string(surfaceNodeId_).c_str(), rate); in VoteVideoFrameRate() 65 DoVoteCallback(rate); in VoteVideoFrameRate() 66 lastRate_ = rate; in VoteVideoFrameRate() 91 void RSVideoFrameRateVote::DoVoteCallback(uint32_t rate) in DoVoteCallback() argument 96 voteCallback_(surfaceNodeId_, rate); in DoVoteCallback()
|
H A D | rs_frame_rate_vote.cpp | 62 [this](uint64_t id, uint32_t rate) { this->SurfaceVideoVote(id, rate); }); in VideoFrameRateVote() argument 92 void RSFrameRateVote::SurfaceVideoVote(uint64_t surfaceNodeId, uint32_t rate) in SurfaceVideoVote() argument 95 if (rate == 0) { in SurfaceVideoVote() 101 surfaceVideoRate_[surfaceNodeId] = rate; in SurfaceVideoVote() 122 void RSFrameRateVote::VoteRate(pid_t pid, std::string eventName, uint32_t rate) in VoteRate() argument 128 .minRefreshRate = rate, in VoteRate() 129 .maxRefreshRate = rate, in VoteRate()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | _ark_u_i___expected_frame_rate_range.md | 6 Defines the expected frame rate range of the animation. 20 | uint32_t [min](#min) | Expected minimum frame rate. | 21 | uint32_t [max](#max) | Expected maximum frame rate. | 22 | uint32_t [expected](#expected) | Expected optimal frame rate. | 35 Expected optimal frame rate. 45 Expected maximum frame rate. 55 Expected minimum frame rate.
|
H A D | _o_h___native_x_component___expected_rate_range.md | 6 Defines the expected frame rate range. 20 | [min](_o_h___native_x_component.md#min) | Minimum value of the expected frame rate range.| 21 | [max](_o_h___native_x_component.md#max) | Maximum value of the expected frame rate range.| 22 | [expected](_o_h___native_x_component.md#expected) | Expected frame rate range.|
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/frame_rate/ |
H A D | frame_rate_manager.cpp | 28 void FrameRateManager::AddNodeRate(int32_t nodeId, int32_t rate) in AddNodeRate() argument 30 auto [iter, success] = nodeRateMap_.try_emplace(nodeId, rate); in AddNodeRate() 44 void FrameRateManager::UpdateNodeRate(int32_t nodeId, int32_t rate) in UpdateNodeRate() argument 46 if (auto iter = nodeRateMap_.find(nodeId); iter != nodeRateMap_.end() && iter->second != rate) { in UpdateNodeRate() 47 iter->second = rate; in UpdateNodeRate() 52 void FrameRateManager::SetAnimateRate(int32_t rate) in SetAnimateRate() argument 54 if (animateRate_ != rate) { in SetAnimateRate() 55 animateRate_ = rate; in SetAnimateRate()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | _display_soloist___expected_rate_range.md | 6 The DisplaySoloist_ExpectedRateRange struct describes the expected frame rate range. 20 | int32_t [min](#min) | Minimum value of the expected frame rate range. The value range is [0,120].… 21 | int32_t [max](#max) | Maximum value of the expected frame rate range. The value range is [0,120].… 22 | int32_t [expected](#expected) | Expected frame rate. The value range is [0,120].| 36 Expected frame rate. The value range is [0,120]. 47 Maximum value of the expected frame rate range. The value range is [0,120]. 58 Minimum value of the expected frame rate range. The value range is [0,120].
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-input-kit/ |
H A D | js-apis-inputdevice-sys.md | 183 setKeyboardRepeatRate(rate: number, callback: AsyncCallback<void>): void 195 | rate | number | 是 | 键盘按键重复速率,默认值50ms/次,调节范围[36ms/次,100ms/次]。 | 216 console.log(`Set keyboard repeat rate success`); 219 …console.log(`Set keyboard repeat rate failed, error: ${JSON.stringify(error, [`code`, `message`])}… 225 setKeyboardRepeatRate(rate: number): Promise<void> 237 | rate | number | 是 | 键盘按键重复速率,默认值50ms/次,调节范围[36ms/次,100ms/次]。 | 259 console.log(`Set keyboard repeat rate success`); 295 inputDevice.getKeyboardRepeatRate((error: Error, rate: Number) => { 300 console.log(`Get keyboard repeat rate success`); 336 inputDevice.getKeyboardRepeatRate().then((rate: Number) => { [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-camera-kit/ |
H A D | _camera___frame_rate_range.md | 6 The Camera_FrameRateRange struct describes the frame rate range. 20 | uint32_t [min](#min) | Minimum frame rate. | 21 | uint32_t [max](#max) | Maximum frame rate. | 34 Maximum frame rate. 44 Minimum frame rate.
|
/ohos5.0/docs/zh-cn/application-dev/key-features/multi-device-app-dev/ |
H A D | adaptive-layout.md | 127 @State rate: number = 0.8 135 this.rate = value / 100; 204 @State rate: number = 0.6 212 this.rate = value / 100 326 @State rate: number = 0.5 335 this.rate = value / 100 517 @State rate: number = 0.60 527 this.rate = value / 100 581 @State rate: number = 0.60 660 @State rate: number = 0.45 [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-input-kit/ |
H A D | js-apis-inputdevice-sys.md | 183 setKeyboardRepeatRate(rate: number, callback: AsyncCallback<void>): void 195 | rate | number | Yes | Keyboard repeat rate, in ms/time. The value range i… 216 console.log(`Set keyboard repeat rate success`); 225 setKeyboardRepeatRate(rate: number): Promise<void> 227 Sets the keyboard repeat rate. This API uses a promise to return the result. 237 | rate | number | Yes | Keyboard repeat rate, in ms/time. The value range is [36, 100] and the de… 259 console.log(`Set keyboard repeat rate success`); 295 inputDevice.getKeyboardRepeatRate((error: Error, rate: Number) => { 300 console.log(`Get keyboard repeat rate success`); 336 inputDevice.getKeyboardRepeatRate().then((rate: Number) => { [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_render_display_sync.cpp | 145 int32_t rate = 0; in GetNearestFrameRate() local 150 rate = rates.back(); in GetNearestFrameRate() 154 rate = rates.front(); in GetNearestFrameRate() 157 rate = *iter; in GetNearestFrameRate() 164 rate = rates[index - 1]; in GetNearestFrameRate() 166 rate = rates[index]; in GetNearestFrameRate() 170 return rate; in GetNearestFrameRate()
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-multimedia-video-overview.md | 9 …to set the size of captured video, encoding bit rate, encoder type, video frame rate, audio sampli… 20 - Video frame rate 22 …The frame rate is used to measure the number of displayed frames, which is the number of images tr… 24 - Bit rate 26 Bit rate is the number of bits transmitted per unit of time. The commonly used unit is kbit/s. 28 - Sampling rate 30 …The sampling rate is the number of samples per second taken from continuous signals to form discre…
|
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/ |
H A D | token_bucket.h | 28 int rate; // The rate of token generation per millisecond. Now, we use the TPS instead. member 39 inline static void TB_InitBucket(TokenBucket *bucket, int rate, int burst) in TB_InitBucket() argument 42 bucket->rate = rate; in TB_InitBucket()
|
/ohos5.0/foundation/multimodalinput/input/service/event_handler/src/ |
H A D | key_auto_repeat.cpp | 249 int32_t KeyAutoRepeat::SetKeyboardRepeatRate(int32_t rate) in SetKeyboardRepeatRate() argument 252 int32_t repeatRateTime = rate; in SetKeyboardRepeatRate() 253 if (rate < MIN_KEY_REPEAT_RATE) { in SetKeyboardRepeatRate() 256 if (rate > MAX_KEY_REPEAT_RATE) { in SetKeyboardRepeatRate() 286 int32_t KeyAutoRepeat::GetKeyboardRepeatRate(int32_t &rate) in GetKeyboardRepeatRate() argument 290 if (GetConfigDataFromDatabase(name, rate) != RET_OK) { in GetKeyboardRepeatRate() 294 if (rate == 0) { in GetKeyboardRepeatRate() 295 rate = DEFAULT_KEY_REPEAT_RATE; in GetKeyboardRepeatRate() 297 rate = GetKeyboardRepeatTime(keyEvent_->GetDeviceId(), false); in GetKeyboardRepeatRate() 300 MMI_HILOGD("Get keyboard repeat rate:%{public}d", rate); in GetKeyboardRepeatRate()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
H A D | hyper_graphic_manager_test.cpp | 281 uint32_t rate = 120; variable 334 uint32_t rate = 120; variable 378 uint32_t rate = 120; variable 386 instance.AddScreenInfo(screenId2, width, height, rate, mode); 404 EXPECT_EQ(screen2->SetRateAndResolution(screenId2, rate, width, height2), -1); 406 screen2->AddScreenModeInfo(width, height, rate, mode); 407 EXPECT_EQ(screen2->SetRefreshRateRange(rate2, rate), 0); 455 uint32_t rate = 120; variable 461 instance.AddScreenInfo(screenId2, width, height, rate, mode); 517 uint32_t rate = 120; variable [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_parse_interface.c | 379 if (rates[i] == rate) { in AudioPcmRateToRateBit() 397 *rate = AUDIO_SAMPLE_RATE_96000; in AudioUsbInitRate() 400 if (*rate == AUDIO_SAMPLE_RATE_16000 && in AudioUsbInitRate() 403 *rate = AUDIO_SAMPLE_RATE_8000; in AudioUsbInitRate() 438 if (rate == 0) { in AudioUsbParseFormatRates() 448 audioUsbFormat->rateMin = rate; in AudioUsbParseFormatRates() 451 audioUsbFormat->rateMax = rate; in AudioUsbParseFormatRates() 789 data[ARRAY_INDEX_0] = rate; in AudioUsbV1SetSampleRate() 790 data[ARRAY_INDEX_1] = rate >> MOVE_8_BIT; in AudioUsbV1SetSampleRate() 791 data[ARRAY_INDEX_2] = rate >> MOVE_16_BIT; in AudioUsbV1SetSampleRate() [all …]
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-memory-info.md | 6 …memory size, maximum free memory, memory waterline, number of memory nodes, and fragmentation rate. 10 …rate indicates the fragmentation degree of the memory pool. If the fragmentation rate is high, the… 43 …rate, call **LOS_MemInfoGet** to obtain the remaining memory size and the maximum free memory bloc… 45 Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size 56 3. Calculate the memory usage and fragmentation rate. 78 /* Calculate the fragmentation rate of the memory pool. */
|
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetrate_fuzzer/ |
H A D | soundpoolsetrate_fuzzer.cpp | 67 playParameters.rate = *reinterpret_cast<int32_t *>(data); in FuzzSoundPoolSetRate() 68 AudioRendererRate rate; in FuzzSoundPoolSetRate() local 72 rate = rateType_[datatypesubscript]; in FuzzSoundPoolSetRate() 77 TestSoundPool::SetRate(streamID, rate); in FuzzSoundPoolSetRate() 81 TestSoundPool::SetRate(streamId, rate); in FuzzSoundPoolSetRate()
|