Searched refs:newPos (Results 1 - 11 of 11) sorted by relevance

/frameworks/wilhelm/tests/listening/
H A DseekTorture.c124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); local
125 printf("seek %u\n", (unsigned) newPos);
126 result = (*playerSeek)->SetPosition(playerSeek, newPos, SL_SEEKMODE_ACCURATE);
131 printf("now %u\n", (unsigned) newPos);
/frameworks/base/core/java/android/widget/
H A DAdapterView.java1027 int newPos;
1037 newPos = findSyncPosition();
1038 if (newPos >= 0) {
1040 int selectablePos = lookForSelectablePosition(newPos, true);
1041 if (selectablePos == newPos) {
1043 setNextSelectedPositionInt(newPos);
1050 newPos = getSelectedItemPosition();
1053 if (newPos >= count) {
1054 newPos = count - 1;
1056 if (newPos <
[all...]
H A DGallery.java613 int newPos = mFirstPosition + newSelectedChildIndex;
615 if (newPos != mSelectedPosition) {
616 setSelectedPositionInt(newPos);
617 setNextSelectedPositionInt(newPos);
H A DSwitch.java968 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1);
969 if (newPos != mThumbPosition) {
971 setThumbPosition(newPos);
H A DAbsListView.java5494 int newPos;
5540 newPos = findSyncPosition();
5541 if (newPos >= 0) {
5543 selectablePos = lookForSelectablePosition(newPos, true);
5544 if (selectablePos == newPos) {
5546 mSyncPosition = newPos;
5559 setNextSelectedPositionInt(newPos);
5576 newPos = getSelectedItemPosition();
5579 if (newPos >= count) {
5580 newPos
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSwipeHelper.java139 protected ObjectAnimator createTranslationAnimation(View v, float newPos) { argument
141 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos);
346 float newPos;
359 newPos = -getSize(animView);
361 newPos = getSize(animView);
368 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math
387 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener);
396 newPos, velocity, getSize(animView));
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java436 final float newPos = Math.max(0, Math.min(mCollapseOffset + dy,
438 if (newPos != mCollapseOffset) {
439 dy = newPos - mCollapseOffset;
449 mCollapseOffset = newPos;
451 final boolean isCollapsedNew = newPos != 0;
H A DViewPager.java857 final int newPos = mAdapter.getItemPosition(ii.object);
859 if (newPos == PagerAdapter.POSITION_UNCHANGED) {
863 if (newPos == PagerAdapter.POSITION_NONE) {
883 if (ii.position != newPos) {
886 newCurrItem = newPos;
889 ii.position = newPos;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java943 final float newPos = constrain(mThumbPosition + dPos, 0, 1);
944 if (newPos != mThumbPosition) {
946 setThumbPosition(newPos);
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java1023 final int newPos = mAdapter.getItemPosition(ii.object);
1025 if (newPos == PagerAdapter.POSITION_UNCHANGED) {
1029 if (newPos == PagerAdapter.POSITION_NONE) {
1049 if (ii.position != newPos) {
1052 newCurrItem = newPos;
1055 ii.position = newPos;
/frameworks/support/v4/java/android/support/v4/widget/
H A DDrawerLayout.java957 final int newPos = (int) (width * slideOffset);
958 final int dx = newPos - oldPos;

Completed in 567 milliseconds