Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeHelper.java115 private ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument
117 mSwipeDirection == X ? "translationX" : "translationY", newPos); in createTranslationAnimation()
121 private ObjectAnimator createDismissAnimation(View v, float newPos, int duration) { in createDismissAnimation() argument
122 ObjectAnimator anim = createTranslationAnimation(v, newPos); in createDismissAnimation()
269 float newPos = determinePos(animView, velocity); in dismissChild() local
270 int duration = determineDuration(animView, newPos, velocity); in dismissChild()
273 ObjectAnimator anim = createDismissAnimation(animView, newPos, duration); in dismissChild()
293 private static int determineDuration(View animView, float newPos, float velocity) { in determineDuration() argument
298 (int) (Math.abs(newPos - animView.getTranslationX()) * 1000f / Math in determineDuration()
307 final float newPos; in determinePos() local
[all …]
/packages/apps/Music/src/com/android/music/
DVerticalTextSpinner.java88 void onChanged(VerticalTextSpinner spinner, int oldPos, int newPos, String[] items); in onChanged() argument
333 int newPos = getNewIndex(1); in onDraw() local
334 if (newPos >= 0) { in onDraw()
335 mCurrentSelectedPos = newPos; in onDraw()
340 if (newPos < 0 || ((newPos >= mTextList.length - 1) && !mWrapAround)) { in onDraw()
346 int newPos = getNewIndex(-1); in onDraw() local
347 if (newPos >= 0) { in onDraw()
348 mCurrentSelectedPos = newPos; in onDraw()
353 if (newPos < 0 || (newPos == 0 && !mWrapAround)) { in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DSwipeHelper.java139 protected ObjectAnimator createTranslationAnimation(View v, float newPos) { in createTranslationAnimation() argument
141 mSwipeDirection == X ? View.TRANSLATION_X : View.TRANSLATION_Y, newPos); in createTranslationAnimation()
346 float newPos; in dismissChild() local
359 newPos = -getSize(animView); in dismissChild()
361 newPos = getSize(animView); in dismissChild()
368 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
387 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild()
396 newPos, velocity, getSize(animView)); in dismissChild()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiPalettesView.java253 final Pair<Integer, Integer> newPos = in onPageSelected() local
255 setCurrentCategoryId(newPos.first /* categoryId */, false /* force */); in onPageSelected()
256 mEmojiCategory.setCurrentCategoryPageId(newPos.second /* categoryPageId */); in onPageSelected()
270 final Pair<Integer, Integer> newPos = in onPageScrolled() local
272 final int newCategoryId = newPos.first; in onPageScrolled()
279 newCategorySize, newPos.second, positionOffset); in onPageScrolled()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DFragmentStatePagerAdapter2.java221 final int newPos = getItemPosition(f); in notifyDataSetChanged() local
223 if (newPos != POSITION_NONE) { in notifyDataSetChanged()
224 final int pos = (newPos >= 0) ? newPos : oldPos; in notifyDataSetChanged()
/packages/experimental/DreamTheater/src/com/android/dreamtheater/
DBouncyDroid.java237 World.Vec newPos = finger.add(mGrabSpot); in reset()
238 mBody.v = mBody.v.add(newPos.sub(mBody.p).mul(dt)); in reset()
239 mBody.p = newPos; in reset()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DUserDictionaryToolsList.java429 int newPos = (mWordCount - MAX_LIST_WORD_COUNT);
430 mWordCount = (0 <= newPos) ? newPos : 0;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DMainPanel.java132 private boolean isRightAnimation(int newPos) { in isRightAnimation() argument
133 if (newPos < mCurrentSelected) { in isRightAnimation()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderUtils.java93 public void position(int newPos) { in position() argument
94 mBuffer.position(newPos); in position()
DAbstractDictDecoder.java92 public void setPosition(int newPos) { in setPosition() argument
DDictDecoder.java99 public void setPosition(final int newPos); in setPosition() argument