/foundation/arkui/ui_lite/test/unittest/events/ |
H A D | drag_event_unit_test.cpp | 135 Point currentPos = dragEvent_->GetCurrentPos(); in HWTEST_F() local 136 if (MATH_ABS(currentPos.x - startPos.x) >= MATH_ABS(currentPos.y - startPos.y)) { in HWTEST_F() 137 if (currentPos.x > startPos.x) { in HWTEST_F() 143 if (currentPos.y > startPos.y) { in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | zip_file.cpp | 113 ZipPos currentPos = centralDirPos_; in ParseAllEntries() local 121 if (fseek(file_, currentPos, SEEK_SET) != 0) { in ParseAllEntries() 138 i, directoryEntry.signature, currentPos); in ParseAllEntries() 158 ZIPPOS_ADD_AND_CHECK_OVERFLOW(currentPos, sizeof(directoryEntry), currentPos); in ParseAllEntries() 159 ZIPPOS_ADD_AND_CHECK_OVERFLOW(currentPos, directoryEntry.nameSize, currentPos); in ParseAllEntries() 160 ZIPPOS_ADD_AND_CHECK_OVERFLOW(currentPos, directoryEntry.extraSize, currentPos); in ParseAllEntries() 161 ZIPPOS_ADD_AND_CHECK_OVERFLOW(currentPos, directoryEntr in ParseAllEntries() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/video/ |
H A D | video_element.cpp | 233 auto&& positionUpdatedEvent = [videoElement, uiTaskExecutor](uint32_t currentPos) { in RegisterMediaPlayerEvent() 234 uiTaskExecutor.PostSyncTask([&videoElement, currentPos] { in RegisterMediaPlayerEvent() 237 video->OnCurrentTimeChange(currentPos); in RegisterMediaPlayerEvent() 1024 uint32_t currentPos, bool needFireEvent) { in InitListener() 1028 uiTaskExecutor.PostSyncTask([&videoElement, width, height, isPlaying, duration, currentPos, needFireEvent] { in InitListener() 1031 video->OnPrepared(width, height, isPlaying, duration, currentPos, needFireEvent); in InitListener() 1048 auto onCurrentTimeChange = [videoElement, uiTaskExecutor](uint32_t currentPos) { in InitListener() 1052 uiTaskExecutor.PostSyncTask([&videoElement, currentPos] { in InitListener() 1055 video->OnCurrentTimeChange(currentPos); in InitListener() 1196 uint32_t width, uint32_t height, bool isPlaying, uint32_t duration, uint32_t currentPos, boo in OnPrepared() 1195 OnPrepared( uint32_t width, uint32_t height, bool isPlaying, uint32_t duration, uint32_t currentPos, bool needFireEvent) OnPrepared() argument 1330 OnCurrentTimeChange(uint32_t currentPos) OnCurrentTimeChange() argument 1783 SetCurrentTime(float currentPos, SeekMode seekMode) OnStartBtnClick() argument [all...] |
H A D | video_element.h | 67 void SetCurrentTime(float currentPos, SeekMode seekMode = SeekMode::SEEK_PREVIOUS_SYNC); 96 uint32_t width, uint32_t height, bool isPlaying, uint32_t duration, uint32_t currentPos, bool needFireEvent); 98 void OnCurrentTimeChange(uint32_t currentPos);
|
H A D | video_element_v2.cpp | 110 [weak = AceType::WeakClaim(this), singleChild](bool fullscreen, bool isPlaying, int32_t currentPos) { in FireFullscreen() 126 client->SetCurrentTime(isPlaying ? currentPos + 1 : currentPos, SeekMode::SEEK_CLOSEST); in FireFullscreen()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nncompiler.cpp | 808 char* currentPos = serializedData; in SerializeTensorsToBuffer() local 812 auto memRet = memcpy_s(currentPos, SIZE_OF_DATATYPE, &tensorDesc.m_dataType, SIZE_OF_DATATYPE); in SerializeTensorsToBuffer() 818 currentPos += SIZE_OF_DATATYPE; in SerializeTensorsToBuffer() 820 memRet = memcpy_s(currentPos, SIZE_OF_FORMAT, &tensorDesc.m_format, SIZE_OF_FORMAT); in SerializeTensorsToBuffer() 826 currentPos += SIZE_OF_FORMAT; in SerializeTensorsToBuffer() 828 memRet = memcpy_s(currentPos, SIZE_OF_TENSOR_TYPE, &tensorDesc.m_tensorType, SIZE_OF_TENSOR_TYPE); in SerializeTensorsToBuffer() 834 currentPos += SIZE_OF_TENSOR_TYPE; in SerializeTensorsToBuffer() 836 memRet = memcpy_s(currentPos, SIZE_OF_SHAPE_NUM, &tensorDesc.m_shapeNum, SIZE_OF_SHAPE_NUM); in SerializeTensorsToBuffer() 842 currentPos += SIZE_OF_SHAPE_NUM; in SerializeTensorsToBuffer() 845 memRet = memcpy_s(currentPos, sizeOfShap in SerializeTensorsToBuffer() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | media_player_impl.cpp | 74 uint32_t duration, uint32_t currentPos, bool needFireEvent) { in InitListener() 75 uiTaskExecutor.PostSyncTask([weak, width, height, isPlaying, duration, currentPos, needFireEvent] { in InitListener() 99 auto onCurrentTimeChange = [weak = WeakClaim(this), uiTaskExecutor](uint32_t currentPos) { in InitListener() 100 uiTaskExecutor.PostSyncTask([weak, currentPos] { in InitListener() 104 player->positionUpdateCallback_(currentPos); in InitListener()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/ |
H A D | video_pattern.h | 228 void OnCurrentTimeChange(uint32_t currentPos); 334 void SetCurrentTime(float currentPos, SeekMode seekMode = SeekMode::SEEK_PREVIOUS_SYNC); 337 void OnPrepared(uint32_t duration, uint32_t currentPos, bool needFireEvent); 392 void SeekTo(float currentPos, OHOS::Ace::SeekMode seekMode); 394 void RecordSeekingInfoBeforePlaying(float currentPos, OHOS::Ace::SeekMode seekMode, bool sliderChange = false);
|
H A D | video_pattern.cpp | 371 auto&& positionUpdatedEvent = [videoPattern, uiTaskExecutor](uint32_t currentPos) { in RegisterMediaPlayerEvent() 372 uiTaskExecutor.PostSyncTask([&videoPattern, currentPos] { in RegisterMediaPlayerEvent() 376 video->OnCurrentTimeChange(currentPos); in RegisterMediaPlayerEvent() 420 auto&& seekDoneEvent = [videoPattern, uiTaskExecutor](uint32_t currentPos) { in RegisterMediaPlayerEvent() 422 [&videoPattern, currentPos] { in RegisterMediaPlayerEvent() 427 video->OnCurrentTimeChange(currentPos); in RegisterMediaPlayerEvent() 502 void VideoPattern::OnCurrentTimeChange(uint32_t currentPos) in OnCurrentTimeChange() argument 504 isInitialState_ = isInitialState_ ? currentPos == 0 : false; in OnCurrentTimeChange() 505 if (currentPos == currentPos_ || isStop_) { in OnCurrentTimeChange() 517 OnUpdateTime(currentPos, CURRENT_PO in OnCurrentTimeChange() 648 OnPrepared(uint32_t duration, uint32_t currentPos, bool needFireEvent) OnPrepared() argument 1663 SeekTo(float currentPos, OHOS::Ace::SeekMode seekMode) OnModifyDone() argument 1674 SetCurrentTime(float currentPos, OHOS::Ace::SeekMode seekMode) OnModifyDone() argument 2163 RecordSeekingInfoBeforePlaying(float currentPos, OHOS::Ace::SeekMode seekMode, bool sliderChange) OnModifyDone() argument [all...] |
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_abstract_scroll.cpp | 227 bool UIAbstractScroll::DragThrowAnimator(Point currentPos, Point lastPos, uint8_t dragDirection, bool dragBack) in DragThrowAnimator() argument 235 CalculateDragDistance(currentPos, lastPos, dragDirection, dragDistanceX, dragDistanceY); in DragThrowAnimator() 262 void UIAbstractScroll::CalculateDragDistance(Point currentPos, in CalculateDragDistance() argument 269 dragDistanceY = currentPos.y - lastPos.y; in CalculateDragDistance() 284 dragDistanceX = currentPos.x - lastPos.x; in CalculateDragDistance()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | zip_file.cpp | 111 ZipPos currentPos = centralDirPos_; in ParseAllEntries() local 119 if (fseek(file_, currentPos, SEEK_SET) != 0) { in ParseAllEntries() 135 currentPos); in ParseAllEntries() 152 currentPos += sizeof(directoryEntry); in ParseAllEntries() 153 currentPos += directoryEntry.nameSize + directoryEntry.extraSize + directoryEntry.commentSize; in ParseAllEntries()
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_abstract_scroll.h | 482 bool DragThrowAnimator(Point currentPos, Point lastPos, uint8_t dragDirection, bool dragBack = true); 506 virtual void CalculateDragDistance(Point currentPos,
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | file_metadata_stream.cpp | 215 long currentPos = ftell(fp_); in IsEof() local 222 bool isEof = currentPos == fileSize; in IsEof() 224 if (Seek(currentPos, SeekPos::BEGIN) == -1) { in IsEof()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | canvas_component.cpp | 2196 const char *currentPos = font; in GetSubFont() local 2198 while (*currentPos != '\0') { in GetSubFont() 2205 uint16_t len = endPos - currentPos; in GetSubFont() 2206 uint16_t startIndex = currentPos - font; in GetSubFont() 2223 if (*(currentPos) == ' ' && *(currentPos + 1) != ' ') { in GetSubFont() 2225 endPos = currentPos + 1; in GetSubFont() 2227 currentPos++; in GetSubFont()
|
/foundation/multimedia/media_foundation/engine/scene/player/standard/ |
H A D | hiplayer_impl.cpp | 673 int64_t currentPos = Plugin::HstTime2Ms(seekTime); in DoSeek() local 674 MEDIA_LOG_I("Seek done, currentPos : " PUBLIC_LOG_D64, currentPos); in DoSeek() 675 callbackLooper_.OnInfo(INFO_TYPE_SEEKDONE, static_cast<int32_t>(currentPos), format); in DoSeek() 676 callbackLooper_.OnInfo(INFO_TYPE_POSITION_UPDATE, static_cast<int32_t>(currentPos), format); in DoSeek()
|
/foundation/arkui/ace_engine/component_ext/movingphoto/ |
H A D | movingphoto_pattern.cpp | 433 auto&& positionUpdatedEvent = [movingPhotoPattern, uiTaskExecutor](uint32_t currentPos) { in RegisterMediaPlayerEvent() 434 uiTaskExecutor.PostTask([movingPhotoPattern, currentPos] { in RegisterMediaPlayerEvent() 438 movingPhoto->OnPlayPositionChanged(currentPos); in RegisterMediaPlayerEvent()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline_ng/ |
H A D | pipeline_context.cpp | 2233 float currentPos = manager->GetClickPosition().GetY() - context->GetRootRect().GetOffset().GetY() - in OnVirtualKeyboardHeightChange() 2242 currentPos += adjust; in OnVirtualKeyboardHeightChange() 2249 } else if (!NearEqual(positionY, currentPos) && !context->IsEnableKeyBoardAvoidMode()) { in OnVirtualKeyboardHeightChange() 2250 positionY = currentPos; in OnVirtualKeyboardHeightChange() 2251 positionYWithOffset = currentPos; in OnVirtualKeyboardHeightChange()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list.cpp | 2331 double currentPos = spThis->GetMainAxis(info.GetTouches().front().GetLocalLocation()); in PrepareRawRecognizer() 2332 spThis->OnSelectedItemMove(currentPos); in PrepareRawRecognizer()
|