/foundation/arkui/ui_lite/interfaces/kits/events/ |
H A D | drag_event.h | 51 * @param newPos Indicates the new position in the drag event. 58 DragEvent(const Point& newPos, const Point& lastPos, const Point& totalLen) : Event(newPos) in DragEvent() argument 61 startPos_.x = newPos.x - totalLen.x; in DragEvent() 62 startPos_.y = newPos.y - totalLen.y; in DragEvent() 64 deltaX_ = newPos.x - lastPos.x; in DragEvent() 65 deltaY_ = newPos.y - lastPos.y; in DragEvent()
|
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
H A D | hcodec_utils.h | 63 size_t newPos = mCurrPos + sizeof(T); in Read() local 64 if (newPos > mSize) { in Read() 67 mCurrPos = newPos; in Read()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/muxer/ |
H A D | ffmpeg_muxer_plugin.cpp | 546 uint64_t newPos = 0; in IoSeek() local 549 newPos = static_cast<uint64_t>(offset); in IoSeek() 550 ioContext->pos_ = newPos; in IoSeek() 551 MEDIA_LOG_I("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG_U64, in IoSeek() 552 whence, offset, newPos); in IoSeek() 555 newPos = ioContext->pos_ + offset; in IoSeek() 556 MEDIA_LOG_I("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG_U64, in IoSeek() 557 whence, offset, newPos); in IoSeek() 561 newPos = ioContext->end_ + offset; in IoSeek() 569 ioContext->pos_ = newPos; in IoSeek() [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/ |
H A D | ffmpeg_demuxer_plugin.cpp | 574 uint64_t newPos = 0; in AVSeek() local 577 newPos = static_cast<uint64_t>(offset); in AVSeek() 578 ioContext->offset = newPos; in AVSeek() 579 MEDIA_LOG_DD("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG in AVSeek() 580 PRIu64, whence, offset, newPos); in AVSeek() 583 newPos = ioContext->offset + offset; in AVSeek() 584 MEDIA_LOG_DD("AVSeek whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG in AVSeek() 585 PRIu64, whence, offset, newPos); in AVSeek() 591 newPos = mediaDataSize + offset; in AVSeek() 602 ioContext->offset = newPos; in AVSeek() [all...] |
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/delegates/nnrt_delegate/ |
H A D | nnrt_utils.h | 126 int32_t newPos = c * (height * width) * batch + j * batch + n; in TransposeTensor() local 128 *(transposeTensor + newPos) = *(tensorData + orgPos); in TransposeTensor()
|
/foundation/communication/dsoftbus/core/transmission/session/src/ |
H A D | trans_session_manager.c | 372 SessionServer *newPos = (SessionServer *)SoftBusMalloc(sizeof(SessionServer)); in TransListCopy() local 373 if (newPos == NULL) { in TransListCopy() 379 *newPos = *pos; in TransListCopy() 380 ListAdd(sessionServerList, &newPos->node); in TransListCopy()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/ |
H A D | ffmpeg_demuxer_plugin.cpp | 819 uint64_t newPos = 0; in AVSeek() local 820 FALSE_RETURN_V_MSG_E(ioContext != nullptr, newPos, "IOContext is nullptr"); in AVSeek() 823 newPos = static_cast<uint64_t>(offset); in AVSeek() 824 ioContext->offset = newPos; in AVSeek() 825 MEDIA_LOG_D("Whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG_U64, in AVSeek() 826 whence, offset, newPos); in AVSeek() 829 newPos = ioContext->offset + offset; in AVSeek() 830 MEDIA_LOG_D("Whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64 ", newPos = " PUBLIC_LOG_U64, in AVSeek() 831 whence, offset, newPos); in AVSeek() 839 FALSE_RETURN_V_MSG_E(ioContext->dataSource != nullptr, newPos, "DataSourc in AVSeek() [all...] |
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_capi_parcel_unittest.cpp | 464 int32_t newPos = sizeof(int32_t) * 3; in HWTEST_F() local 467 EXPECT_EQ(OH_IPCParcel_RewindReadPosition(parcel, newPos), OH_IPC_SUCCESS); in HWTEST_F() 469 EXPECT_EQ(OH_IPCParcel_GetReadPosition(parcel), newPos); in HWTEST_F() local 487 int32_t newPos = sizeof(int32_t) * 5; in HWTEST_F() local 488 EXPECT_EQ(OH_IPCParcel_RewindWritePosition(parcel, newPos), OH_IPC_SUCCESS); in HWTEST_F() 490 EXPECT_EQ(OH_IPCParcel_GetWritePosition(parcel), newPos); in HWTEST_F() local
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_pattern.cpp | 5743 int32_t newPos = 0; 5746 AIDeleteComb(aiContentStart, index, newPos, true); 5747 if (newPos == caretPosition_) { 5750 SetCaretPosition(newPos); 5763 int32_t newPos = 0; 5766 AIDeleteComb(index, aiContentEnd, newPos, false); 5767 if (newPos == caretPosition_) { 5770 SetCaretPosition(newPos); 5783 auto newPos = GetParagraphBeginPosition(caretPosition_); 5784 if (newPos 10198 auto newPos = paragraphs_.GetIndex(textOffset); CalcLineBeginPosition() local 10471 int32_t newPos; HandleSelectPosition() local 10516 int32_t newPos = 0; HandleSelectParagraghPos() local [all...] |
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/ |
H A D | ffmpeg_muxer_plugin.cpp | 1069 int64_t newPos = 0; in IoSeek() local 1072 newPos = offset; in IoSeek() 1073 ioContext->pos_ = newPos; in IoSeek() 1076 newPos = ioContext->pos_ + offset; in IoSeek() 1080 newPos = ioContext->end_ + offset; in IoSeek() 1086 ioContext->pos_ = newPos; in IoSeek() 1088 return newPos; in IoSeek()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_pattern.cpp | 4674 auto newPos = GetLineBeginPosition(originCaretPosition, false); in CursorMoveToParagraphBegin() local 4675 if (newPos == originCaretPosition && originCaretPosition > 0) { in CursorMoveToParagraphBegin() 4676 newPos = GetLineBeginPosition(originCaretPosition - 1, false); in CursorMoveToParagraphBegin() 4678 UpdateCaretPositionWithClamp(newPos); in CursorMoveToParagraphBegin() 4771 auto newPos = GetLineEndPosition(originCaretPosition, false); in CursorMoveToParagraphEnd() local 4772 if (newPos == originCaretPosition && originCaretPosition > 0) { in CursorMoveToParagraphEnd() 4773 newPos = GetLineEndPosition(originCaretPosition + 1, false); in CursorMoveToParagraphEnd() 4775 UpdateCaretPositionWithClamp(newPos); in CursorMoveToParagraphEnd()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_render_context.cpp | 1995 auto newPos = centerPos - OffsetF(centOffset.GetX() * scale[0], centOffset.GetY() * scale[1]); in GetPaintRectWithTransform() local 1996 newPos = newPos + OffsetF(translate[0], translate[1]); in GetPaintRectWithTransform() 1997 rect.SetOffset(newPos); in GetPaintRectWithTransform()
|