/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderMarquee.cpp | 303 int newPos; 305 newPos = m_end; 319 newPos = currentPos + (addIncrement ? increment : -increment); 321 newPos = min(newPos, endPoint); 323 newPos = max(newPos, endPoint); 326 if (newPos == endPoint) { 335 layer()->scrollToXOffset(newPos); 337 layer()->scrollToYOffset(newPos); [all...] |
/external/lzma/CPP/7zip/Common/ |
LimitedStreams.cpp | 34 UInt64 newPos = _startOffset + _virtPos;
35 if (newPos != _physPos)
37 _physPos = newPos;
75 UInt64 newPos = StartOffset + ((UInt64)phyBlock << BlockSizeLog) + offsetInBlock;
76 if (newPos != _physPos)
78 _physPos = newPos;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
ScrollAnimator.cpp | 58 float newPos = clampScrollPosition(orientation, *currentPos + step * multiplier); 59 float delta = *currentPos - newPos; 60 if (*currentPos == newPos) 62 *currentPos = newPos;
|
/external/javassist/src/main/javassist/expr/ |
NewExpr.java | 28 int newPos; 37 newPos = np; 141 int op = iterator.byteAt(newPos + 3); 145 && iterator.byteAt(newPos + 4) == Opcode.SWAP) 165 int pos = newPos;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
AdapterViewICS.java | 925 int newPos; 935 newPos = findSyncPosition(); 936 if (newPos >= 0) { 938 int selectablePos = lookForSelectablePosition(newPos, true); 939 if (selectablePos == newPos) { 941 setNextSelectedPositionInt(newPos); 948 newPos = getSelectedItemPosition(); 951 if (newPos >= count) { 952 newPos = count - 1; 954 if (newPos < 0) [all...] |
/packages/apps/Dialer/src/com/android/dialer/list/ |
SwipeHelper.java | 137 private ObjectAnimator createTranslationAnimation(View v, float newPos) { 139 mSwipeDirection == X ? "translationX" : "translationY", newPos); 143 private ObjectAnimator createDismissAnimation(View v, float newPos, int duration) { 144 ObjectAnimator anim = createTranslationAnimation(v, newPos); 276 float newPos = determinePos(animView, velocity); 277 int duration = determineDuration(animView, newPos, velocity); 280 ObjectAnimator anim = createDismissAnimation(animView, newPos, duration); 300 private int determineDuration(View animView, float newPos, float velocity) { 305 (int) (Math.abs(newPos - animView.getTranslationX()) * 1000f / Math 314 float newPos = 0 [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SwipeHelper.java | 115 private ObjectAnimator createTranslationAnimation(View v, float newPos) { 117 mSwipeDirection == X ? "translationX" : "translationY", newPos); 121 private ObjectAnimator createDismissAnimation(View v, float newPos, int duration) { 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) { 298 (int) (Math.abs(newPos - animView.getTranslationX()) * 1000f / Math 307 final float newPos; [all...] |
/frameworks/wilhelm/tests/listening/ |
seekTorture.c | 124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); 125 printf("seek %u\n", (unsigned) newPos); 126 result = (*playerSeek)->SetPosition(playerSeek, newPos, SL_SEEKMODE_ACCURATE); 131 printf("now %u\n", (unsigned) newPos);
|
/packages/apps/Music/src/com/android/music/ |
VerticalTextSpinner.java | 91 VerticalTextSpinner spinner, int oldPos, int newPos, String[] items); 351 int newPos = getNewIndex(1); 352 if (newPos >= 0) { 353 mCurrentSelectedPos = newPos; 358 if (newPos < 0 || ((newPos >= mTextList.length - 1) && !mWrapAround)) { 364 int newPos = getNewIndex(-1); 365 if (newPos >= 0) { 366 mCurrentSelectedPos = newPos; 371 if (newPos < 0 || (newPos == 0 && !mWrapAround)) [all...] |
/frameworks/base/core/java/android/widget/ |
AdapterView.java | [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
FragmentStatePagerAdapter2.java | 221 final int newPos = getItemPosition(f); 223 if (newPos != POSITION_NONE) { 224 final int pos = (newPos >= 0) ? newPos : oldPos;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SwipeHelper.java | 115 private ObjectAnimator createTranslationAnimation(View v, float newPos) { 117 mSwipeDirection == X ? "translationX" : "translationY", newPos); 274 float newPos; 280 newPos = -getSize(animView); 282 newPos = getSize(animView); 287 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math 294 ObjectAnimator anim = createTranslationAnimation(animView, newPos);
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/ |
closebrackets.js | 75 var newPos = CodeMirror.Pos(cur.line + 1, 0); 76 cm.replaceSelection("\n\n", {anchor: newPos, head: newPos}, "+input");
|
/external/zlib/src/contrib/minizip/ |
iowin32.c | 240 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMoveMethod) 243 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); 251 if ((newPos != NULL) && (fOk)) 253 newPos->LowPart = dwNewPos; 254 newPos->HighPart = lHigh;
|
/external/chromium_org/chrome/browser/resources/file_manager/js/ |
file_table.js | 51 * @param {Array.<number>} newPos Positions of each column dividers. 53 FileTableColumnModel.prototype.applyColumnPositions_ = function(newPos) { 55 for (var i = 0; i < newPos.length - 2; i++) { 56 if (newPos[i + 1] - newPos[i] < FileTableColumnModel.MIN_WIDTH_) { 57 newPos[i + 1] = newPos[i] + FileTableColumnModel.MIN_WIDTH_; 60 for (var i = newPos.length - 1; i >= 2; i--) { 61 if (newPos[i] - newPos[i - 1] < FileTableColumnModel.MIN_WIDTH_) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/mac/ |
ScrollAnimatorMac.mm | 671 float newPos = std::max<float>(std::min<float>(currentPos + (step * multiplier), m_scrollableArea->maximumScrollPosition(orientation)), m_scrollableArea->minimumScrollPosition(orientation)); 672 if (currentPos == newPos) 678 newPoint = orientation == HorizontalScrollbar ? NSMakePoint(newPos, targetOrigin.y) : NSMakePoint(targetOrigin.x, newPos); 680 newPoint = orientation == HorizontalScrollbar ? NSMakePoint(newPos, m_currentPosY) : NSMakePoint(m_currentPosX, newPos); [all...] |
/external/chromium_org/chrome/browser/resources/file_manager/js/metadata/ |
byte_reader.js | 491 var newPos; 493 newPos = this.pos_ + pos; 495 newPos = opt_end + pos; 497 newPos = pos; 500 if (newPos < 0 || newPos > this.view_.byteLength) 501 throw new Error('Seek outside of buffer: ' + (newPos - opt_end)); 503 this.pos_ = newPos;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
MainPanel.java | 131 private boolean isRightAnimation(int newPos) { 132 if (newPos < mCurrentSelected) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
Ver3DictDecoder.java | 207 public void setPosition(int newPos) { 208 mDictBuffer.position(newPos);
|
DictDecoder.java | 102 * @param newPos the new position 104 public void setPosition(final int newPos);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
Switch.java | 261 float newPos = Math.max(0, 263 if (newPos != mThumbPosition) { 264 mThumbPosition = newPos;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
Switch.java | 252 float newPos = Math.max(0, 254 if (newPos != mThumbPosition) { 255 mThumbPosition = newPos;
|
/packages/experimental/DreamTheater/src/com/android/dreamtheater/ |
BouncyDroid.java | 237 World.Vec newPos = finger.add(mGrabSpot); 238 mBody.v = mBody.v.add(newPos.sub(mBody.p).mul(dt)); 239 mBody.p = newPos;
|
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
ScrollAnimatorNoneTest.cpp | 359 double newPos = attackCurve(curve, t, time, 0, kPosition); 360 double delta = newPos - oldPos; 364 accumulate += (oldPos + newPos) / 2 * (step / time); 365 oldPos = newPos; 381 double newPos = releaseCurve(curve, t, time, 0, kPosition); 382 double delta = newPos - oldPos; 386 accumulate -= (kPosition - (oldPos + newPos) / 2) * (step / time); 387 oldPos = newPos; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
EmojiPalettesView.java | 509 final Pair<Integer, Integer> newPos = 511 setCurrentCategoryId(newPos.first /* categoryId */, false /* force */); 512 mEmojiCategory.setCurrentCategoryPageId(newPos.second /* categoryPageId */); 525 final Pair<Integer, Integer> newPos = 527 final int newCategoryId = newPos.first; 534 newCategorySize, newPos.second, positionOffset); [all...] |