Home
last modified time | relevance | path

Searched refs:newPos (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/widget/
DAdapterView.java1054 int newPos; in handleDataChanged() local
1064 newPos = findSyncPosition(); in handleDataChanged()
1065 if (newPos >= 0) { in handleDataChanged()
1067 int selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged()
1068 if (selectablePos == newPos) { in handleDataChanged()
1070 setNextSelectedPositionInt(newPos); in handleDataChanged()
1077 newPos = getSelectedItemPosition(); in handleDataChanged()
1080 if (newPos >= count) { in handleDataChanged()
1081 newPos = count - 1; in handleDataChanged()
1083 if (newPos < 0) { in handleDataChanged()
[all …]
DGallery.java627 int newPos = mFirstPosition + newSelectedChildIndex; in setSelectionToCenterChild() local
629 if (newPos != mSelectedPosition) { in setSelectionToCenterChild()
630 setSelectedPositionInt(newPos); in setSelectionToCenterChild()
631 setNextSelectedPositionInt(newPos); in setSelectionToCenterChild()
DAbsListView.java5915 int newPos; in handleDataChanged() local
5961 newPos = findSyncPosition(); in handleDataChanged()
5962 if (newPos >= 0) { in handleDataChanged()
5964 selectablePos = lookForSelectablePosition(newPos, true); in handleDataChanged()
5965 if (selectablePos == newPos) { in handleDataChanged()
5967 mSyncPosition = newPos; in handleDataChanged()
5980 setNextSelectedPositionInt(newPos); in handleDataChanged()
5997 newPos = getSelectedItemPosition(); in handleDataChanged()
6000 if (newPos >= count) { in handleDataChanged()
6001 newPos = count - 1; in handleDataChanged()
[all …]
DSwitch.java1144 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent() local
1145 if (newPos != mThumbPosition) { in onTouchEvent()
1147 setThumbPosition(newPos); in onTouchEvent()
/frameworks/wilhelm/tests/listening/
DseekTorture.c125 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main() local
126 printf("seek %u\n", (unsigned) newPos); in main()
127 result = (*playerSeek)->SetPosition(playerSeek, newPos, SL_SEEKMODE_ACCURATE); in main()
132 printf("now %u\n", (unsigned) newPos); in main()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java207 protected Animator createTranslationAnimation(View view, float newPos, in createTranslationAnimation() argument
209 ObjectAnimator anim = ObjectAnimator.ofFloat(view, View.TRANSLATION_X, newPos); in createTranslationAnimation()
411 float newPos; in dismissChild() local
420 newPos = -getTotalTranslationLength(animView); in dismissChild()
422 newPos = getTotalTranslationLength(animView); in dismissChild()
429 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
449 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild()
459 newPos, velocity, getSize(animView)); in dismissChild()
/frameworks/wilhelm/src/android/
DAudioTrackCallback.h69 void onNewPos([[maybe_unused]] uint32_t newPos) override { in onNewPos() argument
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java580 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy,
582 if (newPos != mCollapseOffset) {
583 dy = newPos - mCollapseOffset;
623 mCollapseOffset = newPos;
625 final boolean isCollapsedNew = newPos != 0;
632 onScrollChanged(0, (int) newPos, 0, (int) (newPos - dy));
DViewPager.java837 final int newPos = mAdapter.getItemPosition(ii.object); in dataSetChanged()
839 if (newPos == PagerAdapter.POSITION_UNCHANGED) { in dataSetChanged()
843 if (newPos == PagerAdapter.POSITION_NONE) { in dataSetChanged()
863 if (ii.position != newPos) { in dataSetChanged()
866 newCurrItem = newPos; in dataSetChanged()
869 ii.position = newPos; in dataSetChanged()
/frameworks/base/media/jni/soundpool/
DStream.h140 void onNewPos(uint32_t newPos) override;
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.h150 void onNewPos(uint32_t newPos) override;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelper.java391 protected Animator createTranslationAnimation(View view, float newPos, in createTranslationAnimation() argument
393 return super.createTranslationAnimation(view, newPos, listener); in createTranslationAnimation()
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h119 virtual void onNewPos([[maybe_unused]] uint32_t newPos) {} in onNewPos() argument
DAudioTrack.h190 virtual void onNewPos([[maybe_unused]] uint32_t newPos) {} in onNewPos() argument
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp114 void onNewPos([[maybe_unused]] uint32_t newPos) override { in onNewPos() argument
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp287 void onNewPos(uint32_t newPos) override { in onNewPos() argument
288 mCallback(AudioTrack::EVENT_NEW_POS, mData, &newPos); in onNewPos()