/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | OverScroller.java | 246 public void startScroll(int start, int delta) { in startScroll() argument 247 startScroll(start, delta, DEFAULT_DURATION); in startScroll() 259 public void startScroll(int start, int delta, int duration) { in startScroll() argument 261 mScroller.startScroll(start, delta, duration); in startScroll() 274 public void startScrollSpring(int start, int delta, int duration, float velocity) { in startScrollSpring() argument 277 mScroller.startScroll(start, delta, duration, velocity); in startScrollSpring() 289 public boolean springBack(int start, int min, int max) { in springBack() argument 291 return mScroller.springback(start, min, max); in springBack() 294 public void fling(int start, int velocity, int min, int max) { in fling() argument 295 fling(start, velocity, min, max, 0); in fling() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | CompositeListAdapter.java | 141 int start = 0; in getItem() local 143 int end = start + mCounts[i]; in getItem() 144 if (position >= start && position < end) { in getItem() 145 return mAdapters[i].getItem(position - start); in getItem() 147 start = end; in getItem() 155 int start = 0; in getItemId() local 157 int end = start + mCounts[i]; in getItemId() 158 if (position >= start && position < end) { in getItemId() 159 return mAdapters[i].getItemId(position - start); in getItemId() 161 start = end; in getItemId() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 229 long start = createTimeInMillis(0, 0, 17, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local 231 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 236 start = createTimeInMillis(0, 0, 17, 31, 11, 2012); in testGetDisplayedDatetime_differentYear() 238 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 246 long start = createTimeInMillis(0, 0, 17, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local 248 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() 256 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local 258 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() 266 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local 268 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 145 int start = 0; in getPartitionAtPosition() local 147 final int end = start + mPartitions[i].getCount(); in getPartitionAtPosition() 148 if (position >= start && position < end) { in getPartitionAtPosition() 149 int offset = position - start; in getPartitionAtPosition() 159 start = end; in getPartitionAtPosition() 196 int start = 0; in getItem() local 198 final int end = start + mPartitions[i].getCount(); in getItem() 199 if (position >= start && position < end) { in getItem() 200 final int offset = position - start; in getItem() 209 start = end; in getItem() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 667 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument 668 final int oldDistance = oldFinal - start; in adjustDuration() 669 final int newDistance = newFinal - start; in adjustDuration() 682 void startScroll(int start, int distance, int duration) { in startScroll() argument 685 mStart = start; in startScroll() 686 mFinal = start + distance; in startScroll() 716 boolean springback(int start, int min, int max) { in springback() argument 719 mStart = mFinal = start; in springback() 725 if (start < min) { in springback() 726 startSpringback(start, min, 0); in springback() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MediaSet.java | 72 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument 122 int start = Math.max(0, in getIndexOfItem() local 125 start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 127 if (index != INDEX_NOT_FOUND) return start + index; in getIndexOfItem() 130 start = start == 0 ? MEDIAITEM_BATCH_FETCH_COUNT : 0; in getIndexOfItem() 131 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 134 if (index != INDEX_NOT_FOUND) return start + index; in getIndexOfItem() 136 start += MEDIAITEM_BATCH_FETCH_COUNT; in getIndexOfItem() 137 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 204 int start = 0; in enumerateMediaItems() local [all …]
|
D | ClusterAlbum.java | 70 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument 71 return getMediaItemFromPath(mPaths, start, count, mDataManager); in getMediaItem() 75 ArrayList<Path> paths, int start, int count, in getMediaItemFromPath() argument 77 if (start >= paths.size()) { in getMediaItemFromPath() 80 int end = Math.min(start + count, paths.size()); in getMediaItemFromPath() 81 ArrayList<Path> subset = new ArrayList<Path>(paths.subList(start, end)); in getMediaItemFromPath() 82 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItemFromPath() 90 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start); in getMediaItemFromPath()
|
D | ComboAlbum.java | 42 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument 47 if (start < size) { in getMediaItem() 48 int fetchCount = (start + count <= size) ? count : size - start; in getMediaItem() 49 ArrayList<MediaItem> fetchItems = set.getMediaItem(start, fetchCount); in getMediaItem() 52 start = 0; in getMediaItem() 54 start -= size; in getMediaItem()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 91 int start = 0; in appendEscapedSourceId() local 93 int index = sourceId.indexOf('.', start); in appendEscapedSourceId() 95 sb.append(sourceId, start, sourceId.length()); in appendEscapedSourceId() 100 sb.append(sourceId, start, index); in appendEscapedSourceId() 102 start = index + 1; in appendEscapedSourceId() 187 int start = offset; in parse() local 195 key = string.substring(start); in parse() 197 key = string.substring(start, offset - 1); in parse() 203 int start = offset; in parse() local 211 key = string.substring(start); in parse() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 191 for (int start = 1; start < count; start++) { in binarySort() 192 final int pivotPosition = positions[start]; in binarySort() 193 final String pivotValue = sortKey[start]; in binarySort() 194 final boolean pivotIsDir = isDirs[start]; in binarySort() 195 final String pivotId = ids[start]; in binarySort() 198 int right = start; in binarySort() 238 int n = start - left; in binarySort() 272 for (int start = 1; start < count; start++) { in binarySort() 273 final int pivotPosition = positions[start]; in binarySort() 274 final long pivotValue = sortKey[start]; in binarySort() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationDetailsFragmentTest.java | 144 mController.start(); in onStart_packageNotExplicitlyStopped_enablesForceStopButton() 156 mController.start(); in onStart_packageHasActiveAdmins_disablesForceStopButton() 168 mController.start(); in onStart_appsControlUserRestriction_disablesForceStopButton() 182 mController.start(); in onStart_packageExplicitlyStopped_queriesPackageRestart() 199 mController.start(); in onStart_packageExplicitlyStopped_success_enablesForceStopButton() 223 mController.start(); in onStart_packageExplicitlyStopped_failure_disablesForceStopButton() 247 mController.start(); in onStart_bundledApp_showsDisableButton() 261 mController.start(); in onStart_bundledApp_notEnabled_showsEnableButton() 276 mController.start(); in onStart_bundledApp_enabled_disableUntilUsed_showsEnableButton() 296 mController.start(); in onStart_bundledApp_homePackage_disablesDisableButton() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | SearchUtil.java | 40 int start = index - 1; in findMatchingLine() local 41 while (start > -1) { in findMatchingLine() 42 if (contents.charAt(start) == '\n') { in findMatchingLine() 45 start--; in findMatchingLine() 54 matched.line = contents.substring(start + 1, end); in findMatchingLine() 55 matched.startIndex = index - (start + 1); in findMatchingLine() 157 int start = 0; in cleanStartAndEndOfSearchQuery() local 158 while (start < query.length()) { in cleanStartAndEndOfSearchQuery() 159 int codePoint = query.codePointAt(start); in cleanStartAndEndOfSearchQuery() 163 start += Character.charCount(codePoint); in cleanStartAndEndOfSearchQuery() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SearchUtil.java | 57 int start = index - 1; in findMatchingLine() local 58 while (start > -1) { in findMatchingLine() 59 if (contents.charAt(start) == '\n') { in findMatchingLine() 62 start--; in findMatchingLine() 71 matched.line = contents.substring(start + 1, end); in findMatchingLine() 72 matched.startIndex = index - (start + 1); in findMatchingLine() 174 int start = 0; in cleanStartAndEndOfSearchQuery() local 175 while (start < query.length()) { in cleanStartAndEndOfSearchQuery() 176 int codePoint = query.codePointAt(start); in cleanStartAndEndOfSearchQuery() 180 start += Character.charCount(codePoint); in cleanStartAndEndOfSearchQuery() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumDataLoader.java | 112 mReloadTask.start(); in resume() 161 int start = mContentStart; in setContentWindow() local 170 if (contentStart >= end || start >= contentEnd) { in setContentWindow() 171 for (int i = start, n = end; i < n; ++i) { in setContentWindow() 175 for (int i = start; i < contentStart; ++i) { in setContentWindow() 185 public void setActiveWindow(int start, int end) { in setActiveWindow() argument 186 if (start == mActiveStart && end == mActiveEnd) return; in setActiveWindow() 188 Utils.assertTrue(start <= end in setActiveWindow() 189 && end - start <= mData.length && end <= mSize); in setActiveWindow() 192 mActiveStart = start; in setActiveWindow() [all …]
|
D | AlbumSetDataLoader.java | 114 mReloadTask.start(); in resume() 176 int start = this.mContentStart; in setContentWindow() local 182 if (contentStart >= end || start >= contentEnd) { in setContentWindow() 183 for (int i = start, n = end; i < n; ++i) { in setContentWindow() 187 for (int i = start; i < contentStart; ++i) { in setContentWindow() 197 public void setActiveWindow(int start, int end) { in setActiveWindow() argument 198 if (start == mActiveStart && end == mActiveEnd) return; in setActiveWindow() 200 Utils.assertTrue(start <= end in setActiveWindow() 201 && end - start <= mCoverItem.length && end <= mSize); in setActiveWindow() 203 mActiveStart = start; in setActiveWindow() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | RecapitalizeStatusTests.java | 39 status.start(30, 40, "abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 45 status.start(30, 44, " abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 51 status.start(30, 40, "abcdefgh ", Locale.ENGLISH, SPACE); in testTrim() 57 status.start(30, 45, " abcdefghij ", Locale.ENGLISH, SPACE); in testTrim() 67 status.start(29, 40, "abcd efghij", Locale.ENGLISH, SPACE); in testRotate() 79 status.start(29, 40, "Abcd Efghij", Locale.ENGLISH, SPACE); in testRotate() 91 status.start(29, 40, "ABCD EFGHIJ", Locale.ENGLISH, SPACE); in testRotate() 103 status.start(29, 39, "AbCDefghij", Locale.ENGLISH, SPACE); in testRotate() 117 status.start(29, 40, "Abcd efghij", Locale.ENGLISH, SPACE); in testRotate() 131 status.start(30, 34, "grüß", Locale.GERMAN, SPACE); in testRotate() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionFormatter.java | 42 protected void applyQueryTextStyle(Spannable text, int start, int end) { in applyQueryTextStyle() argument 43 if (start == end) return; in applyQueryTextStyle() 44 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance()); in applyQueryTextStyle() 47 protected void applySuggestedTextStyle(Spannable text, int start, int end) { in applySuggestedTextStyle() argument 48 if (start == end) return; in applySuggestedTextStyle() 49 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance()); in applySuggestedTextStyle() 52 private void setSpans(Spannable text, int start, int end, Object[] spans) { in setSpans() argument 54 text.setSpan(span, start, end, 0); in setSpans()
|
/packages/apps/Contacts/tests/src/com/android/contacts/format/ |
D | SpannedTestUtils.java | 56 public static void assertPrefixSpan(CharSequence seq, int start, int end) { in assertPrefixSpan() argument 60 if (start > 0) { in assertPrefixSpan() 61 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1)); in assertPrefixSpan() 63 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); in assertPrefixSpan() 68 private static int getNumForegroundColorSpansBetween(Spanned value, int start, int end) { in getNumForegroundColorSpansBetween() argument 69 return value.getSpans(start, end, StyleSpan.class).length; in getNumForegroundColorSpansBetween() 83 public static int getNextTransition(SpannableString seq, int start) { in getNextTransition() argument 84 return seq.nextSpanTransition(start, seq.length(), StyleSpan.class); in getNextTransition()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetModel.java | 85 long start; field in CalendarAppWidgetModel.EventInfo 128 result = prime * result + (int) (start ^ (start >>> 32)); in hashCode() 155 if (start != other.start) in equals() 283 long start = cursor.getLong(CalendarAppWidgetService.INDEX_BEGIN); in buildFromCursor() local 298 start = Utils.convertAlldayUtcToLocal(recycle, start, tz); in buildFromCursor() 303 Log.d(TAG, "Row #" + rowId + " allDay:" + allDay + " start:" + start in buildFromCursor() 314 mEventInfos.add(populateEventInfo(eventId, allDay, start, end, startDay, endDay, title, in buildFromCursor() 354 private EventInfo populateEventInfo(long eventId, boolean allDay, long start, long end, in populateEventInfo() argument 365 whenString.append(Utils.formatDateRange(mContext, start, end, flags)); in populateEventInfo() 374 whenString.append(Utils.formatDateRange(mContext, start, end, flags)); in populateEventInfo() [all …]
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | IconNormalizer.java | 373 int start; in convertToConvexArray() local 376 start = first; in convertToConvexArray() 379 start = last; in convertToConvexArray() 383 while (start > first) { in convertToConvexArray() 384 start --; in convertToConvexArray() 385 currentAngle = (xCoordinates[i] - xCoordinates[start]) / (i - start); in convertToConvexArray() 386 if ((currentAngle - angles[start]) * direction >= 0) { in convertToConvexArray() 394 lastAngle = (xCoordinates[i] - xCoordinates[start]) / (i - start); in convertToConvexArray() 396 for (int j = start; j < i; j++) { in convertToConvexArray() 398 xCoordinates[j] = xCoordinates[start] + lastAngle * (j - start); in convertToConvexArray()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | PlaybackProgressBar.java | 100 public void setProgressRange(long start, long end) { in setProgressRange() argument 101 start = constrain(start, 0, mMax); in setProgressRange() 102 end = constrain(end, start, mMax); in setProgressRange() 103 mProgress = constrain(mProgress, start, end); in setProgressRange() 104 if (start != mProgressStart || end != mProgressEnd) { in setProgressRange() 105 mProgressStart = start; in setProgressRange() 139 private boolean setProgressBound(Drawable drawable, long start, long end) { in setProgressBound() argument 150 int left = (int) (width * start / mMax); in setProgressBound()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | GestureBot.java | 82 public void bandSelection(Point start, Point end) throws Exception { in bandSelection() argument 83 bandSelection(start, end, BAND_SELECTION_DEFAULT_STEPS); in bandSelection() 86 public void fingerSelection(Point start, Point end) throws Exception { in fingerSelection() argument 87 fingerSelection(start, end, BAND_SELECTION_DEFAULT_STEPS); in fingerSelection() 90 public void bandSelection(Point start, Point end, int steps) throws Exception { in bandSelection() argument 93 swipe(start.x, start.y, end.x, end.y, steps, MotionEvent.BUTTON_PRIMARY, false); in bandSelection() 97 private void fingerSelection(Point start, Point end, int steps) throws Exception { in fingerSelection() argument 100 swipe(start.x, start.y, end.x, end.y, steps, MotionEvent.BUTTON_PRIMARY, true); in fingerSelection()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/ |
D | CaptionWindowLayout.java | 677 int start = 0, last = mBuilder.length() - 1; in updateText() local 679 while ((start <= end) && (mBuilder.charAt(start) <= ' ')) { in updateText() 680 ++start; in updateText() 682 while (start - 1 >= 0 && start <= end && mBuilder.charAt(start - 1) != '\n') { in updateText() 683 --start; in updateText() 685 while ((end >= start) && (mBuilder.charAt(end) <= ' ')) { in updateText() 688 if (start == 0 && end == last) { in updateText() 697 if (start > 0) { in updateText() 698 trim.delete(0, start); in updateText() 709 int start = 0; in getPrefixSpaces() local [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | AddTrustedDeviceActivityTest.java | 98 mActivityController.start(); in onStart_no_saveInstanceState_startAdvertising() 124 mActivityController.start().postCreate(null).resume(); in onStart_has_activated_handle_finish() 139 mActivityController.setup(outState).start(); in onStart_has_activated_handle_finish() 146 mActivityController.start().postCreate(null).resume(); in onAuthStringAvailable_createDialog() 160 mActivityController.start().postCreate(null).resume(); in onLockVerified_showAddTrustedDeviceProgressFragment() 171 mActivityController.start().postCreate(null).resume(); in onEscrowTokenAdded_showCheckLockFragment() 185 mActivityController.start().postCreate(null).resume(); in onBluetoothDeviceDisconnected_finish() 198 mActivityController.start().postCreate(null).resume(); in onPairingCodeDialogConfirmed_handshakeAccepted() 212 mActivityController.start().postCreate(null).resume(); in onStart_onEscrowTokenActiveStateChanged_activated_finish() 231 mActivityController.start(); in configurationNotChanged_terminateEnrollmentHandshake()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AppWidgetResizeFrame.java | 239 lp.x = mTempRange1.start; in visualizeResizeForDelta() 244 lp.y = mTempRange1.start; in visualizeResizeForDelta() 299 cellX = mTempRange2.start; in resizeWidgetIfNeeded() 308 cellY = mTempRange2.start; in resizeWidgetIfNeeded() 471 set.start(); in snapToWidget() 556 public int start, end; field in AppWidgetResizeFrame.IntRange 559 return Utilities.boundToRange(value, start, end); in clamp() 563 start = s; in set() 568 return end - start; in size() 576 out.start = moveStart ? start + delta : start; in applyDelta() [all …]
|