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

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

Completed in 425 milliseconds