Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 25) sorted by relevance

/packages/wallpapers/MusicVisualization/src/com/android/musicvis/
DAudioCapture.java43 int[] range = new int[2]; in AudioCapture() local
45 range = Visualizer.getCaptureSizeRange(); in AudioCapture()
47 if (size < range[0]) { in AudioCapture()
48 size = range[0]; in AudioCapture()
50 if (size > range[1]) { in AudioCapture()
51 size = range[1]; in AudioCapture()
/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapUtility.java102 public static String[] getImapRangeValues(String range) { in getImapRangeValues() argument
105 if (range != null) { in getImapRangeValues()
106 int colonPos = range.indexOf(':'); in getImapRangeValues()
108 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues()
109 int second = Integer.parseInt(range.substring(colonPos + 1)); in getImapRangeValues()
/packages/apps/Launcher2/
Dprint_db.py147 for i in range(0,len(columns)):
157 for i in range(0,len(row)):
171 for i in range(0, HOTSEAT_SIZE):
186 for i in range(0,SCREENS):
188 for j in range(0,ROWS):
190 for k in range(0,COLUMNS):
204 for j in range(cellY, cellY+spanY):
205 for k in range(cellX, cellX+spanX):
Dfill_screens.py61 for s in range(SCREENS):
62 for x in range(ROWS):
63 for y in range(COLUMNS):
70 for z in range(15):
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DNameDistance.java105 int range = length2 / 2 - 1; in getDistance() local
106 if (range < 0) { in getDistance()
107 range = 0; in getDistance()
114 int from = i - range; in getDistance()
119 int to = i + range + 1; in getDistance()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPaper.java76 int range = 3 * mWidth / 2; in getTransform() local
77 float t = ((range - x) * left - x * right) / range; in getTransform()
DAlbumSlidingWindow.java202 int range = Math.max( in updateTextureUploadQueue() local
204 for (int i = 0; i < range; ++i) { in updateTextureUploadQueue()
216 int range = Math.max( in requestNonactiveImages() local
218 for (int i = 0 ;i < range; ++i) { in requestNonactiveImages()
239 int range = Math.max( in cancelNonactiveImages() local
241 for (int i = 0 ;i < range; ++i) { in cancelNonactiveImages()
DTileImageView.java224 Rect range = mTileRange; in layoutTiles() local
225 getRange(range, centerX, centerY, mLevel, scale, rotation); in layoutTiles()
226 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles()
227 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); in layoutTiles()
239 Rect range[] = mActiveRange; in layoutTiles() local
241 getRange(range[i - fromLevel], centerX, centerY, i, rotation); in layoutTiles()
259 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles()
270 Rect r = range[i - fromLevel]; in layoutTiles()
DAlbumSetSlidingWindow.java190 int range = Math.max( in requestNonactiveImages() local
192 for (int i = 0 ;i < range; ++i) { in requestNonactiveImages()
199 int range = Math.max( in cancelNonactiveImages() local
201 for (int i = 0 ;i < range; ++i) { in cancelNonactiveImages()
327 int range = Math.max( in updateTextureUploadQueue() local
329 for (int i = 0; i < range; ++i) { in updateTextureUploadQueue()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DHorizontalScrollView.java586 final int range = getScrollRange(); in onTouchEvent() local
589 (overscrollMode == OVER_SCROLL_IF_CONTENT_SCROLLS && range > 0); in onTouchEvent()
591 if (overScrollBy(deltaX, 0, mScrollX, 0, range, 0, in onTouchEvent()
605 } else if (pulledToX > range) { in onTouchEvent()
690 final int range = getScrollRange(); in onGenericMotionEvent() local
695 } else if (newScrollX > range) { in onGenericMotionEvent()
696 newScrollX = range; in onGenericMotionEvent()
1242 final int range = getScrollRange(); in computeScroll() local
1245 (overscrollMode == OVER_SCROLL_IF_CONTENT_SCROLLS && range > 0); in computeScroll()
1247 overScrollBy(x - oldX, y - oldY, oldX, oldY, range, 0, in computeScroll()
[all …]
DAudioTrackView.java246 final double range = maxGain - minGain; in setWaveformData() local
248 double value = (smoothedGains[i] * scaleFactor - minGain) / range; in setWaveformData()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DGalParser.java131 String range = getValue(); in parseStore() local
133 mService.userLog("GAL result range: " + range); in parseStore()
/packages/apps/Browser/src/com/android/browser/view/
DScrollerView.java668 final int range = getScrollRange(); in onTouchEvent() local
670 if (overScrollBy(deltaY, 0, mScrollX, 0, range, 0, in onTouchEvent()
676 if (overScrollBy(0, deltaY, 0, mScrollY, 0, range, in onTouchEvent()
686 (overscrollMode == OVER_SCROLL_IF_CONTENT_SCROLLS && range > 0)) { in onTouchEvent()
690 } else if (pulledToY > range) { in onTouchEvent()
691 onPull(pulledToY - range); in onTouchEvent()
817 final int range = getScrollRange(); in onGenericMotionEvent() local
822 } else if (newScrollX > range) { in onGenericMotionEvent()
823 newScrollX = range; in onGenericMotionEvent()
835 final int range = getScrollRange(); in onGenericMotionEvent() local
[all …]
/packages/apps/Browser/tools/
Dget_search_engines.py133 for i in range(len(engine_data)):
185 for i in range(1, 7):
/packages/apps/Settings/src/com/android/settings/
DBrightnessPreference.java238 int range = (mScreenBrightnessMaximum - mScreenBrightnessMinimum); in setBrightness() local
239 brightness = (brightness * range)/SEEK_BAR_RANGE + mScreenBrightnessMinimum; in setBrightness()
/packages/apps/Settings/src/com/android/settings/widget/
DChartDataUsageView.java636 final long range = mMax - mMin; in getTickPoints() local
639 final long tickJump = roundUpToPowerOfTwo(range / 16); in getTickPoints()
640 final int tickCount = (int) (range / tickJump); in getTickPoints()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java756 protected void getVisiblePages(int[] range) { in getVisiblePages() argument
777 range[0] = leftScreen; in getVisiblePages()
778 range[1] = rightScreen; in getVisiblePages()
780 range[0] = -1; in getVisiblePages()
781 range[1] = -1; in getVisiblePages()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DResearchLogger.java962 Range range = connection.getWordRangeAtCursor(WHITESPACE_SEPARATORS, 1); in latinIME_onUpdateSelection() local
963 if (range != null) { in latinIME_onUpdateSelection()
964 word = range.mWord; in latinIME_onUpdateSelection()
/packages/apps/Camera/src/com/android/camera/ui/
DPieRenderer.java691 int range = getRandomRange(); in showStart() local
693 false, mStartAnimationAngle, mStartAnimationAngle + range); in showStart()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java813 int range = (CACHE_ROWS - (mEndRow - mStartRow)) / 2; in continueLoading() local
816 for (int d = 1; d <= range; d++) { in continueLoading()
/packages/experimental/procstatlog/
Dprocstatreport.py148 writer.writerow([msec] + [values.get(n, "") for n in range(num_cols)])
/packages/apps/LegacyCamera/jni/feature_stab/doc/
Ddbreg_API_doxyfile297 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
788 # in which this list will be split (can be a number in the range [1..20])
980 # This tag can be used to set the number of enum values (range [1..20])
/packages/apps/Camera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile297 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
788 # in which this list will be split (can be a number in the range [1..20])
980 # This tag can be used to set the number of enum values (range [1..20])
/packages/apps/Camera/jni/feature_stab/doc/
Ddbreg_API_doxyfile297 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
788 # in which this list will be split (can be a number in the range [1..20])
980 # This tag can be used to set the number of enum values (range [1..20])
/packages/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile297 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
788 # in which this list will be split (can be a number in the range [1..20])
980 # This tag can be used to set the number of enum values (range [1..20])