/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 670 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument 671 final int oldDistance = oldFinal - start; in adjustDuration() 672 final int newDistance = newFinal - start; in adjustDuration() 685 void startScroll(int start, int distance, int duration) { in startScroll() argument 688 mStart = start; in startScroll() 689 mFinal = start + distance; in startScroll() 719 boolean springback(int start, int min, int max) { in springback() argument 722 mStart = mFinal = start; in springback() 728 if (start < min) { in springback() 729 startSpringback(start, min, 0); in springback() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
D | OverScrollerSGV.java | 669 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument 670 final int oldDistance = oldFinal - start; in adjustDuration() 671 final int newDistance = newFinal - start; in adjustDuration() 684 void startScroll(int start, int distance, int duration) { in startScroll() argument 687 mStart = start; in startScroll() 688 mFinal = start + distance; in startScroll() 718 boolean springback(int start, int min, int max) { in springback() argument 721 mStart = mFinal = start; in springback() 727 if (start < min) { in springback() 728 startSpringback(start, min, 0); in springback() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaWindowAdapter.java | 239 int start; field in AgendaWindowAdapter.QuerySpec 257 result = prime * result + start; in hashCode() 276 || queryType != other.queryType || start != other.start in equals() 312 int start; // start day of the cursor's coverage field in AgendaWindowAdapter.DayAdapterInfo 327 time.setJulianDay(start); in toString() 569 if (info.start <= day && day <= info.end) { in getAdapterInfoByTime() 820 private Uri buildQueryUri(int start, int end, String searchQuery) { in buildQueryUri() argument 825 ContentUris.appendId(builder, start); in buildQueryUri() 833 private boolean isInRange(int start, int end) { in isInRange() argument 838 return mAdapterInfos.getFirst().start <= start && end <= mAdapterInfos.getLast().end; in isInRange() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | CompositeListAdapter.java | 146 int start = 0; in getItem() local 148 int end = start + mCounts[i]; in getItem() 149 if (position >= start && position < end) { in getItem() 150 return mAdapters[i].getItem(position - start); in getItem() 152 start = end; in getItem() 160 int start = 0; in getItemId() local 162 int end = start + mCounts[i]; in getItemId() 163 if (position >= start && position < end) { in getItemId() 164 return mAdapters[i].getItemId(position - start); in getItemId() 166 start = end; in getItemId() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 507 long start = createTimeInMillis(0, 0, 17, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local 509 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 514 start = createTimeInMillis(0, 0, 17, 31, 11, 2012); in testGetDisplayedDatetime_differentYear() 516 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 524 long start = createTimeInMillis(0, 0, 17, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local 526 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() 534 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local 536 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() 544 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local 546 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HtmlParser.java | 321 int scanText(final int start, final int end) { in scanText() argument 323 for (pos = start; pos < end; pos++) { in scanText() 341 if (pos > start) { in scanText() 343 String htmlTail = this.html.substring(start, finalPos); in scanText() 354 int matchStart = matcher.start(); in scanText() 357 finalPos = start + matchStart; in scanText() 362 if (finalPos > start) { in scanText() 402 public int scanName(final int start, final int end) { in scanName() argument 404 for (pos = start; pos < end; pos++) { in scanName() 412 if (pos > start) { in scanName() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/ |
D | HtmlParser.java | 321 int scanText(final int start, final int end) { in scanText() argument 323 for (pos = start; pos < end; pos++) { in scanText() 341 if (pos > start) { in scanText() 343 String htmlTail = this.html.substring(start, finalPos); in scanText() 354 int matchStart = matcher.start(); in scanText() 357 finalPos = start + matchStart; in scanText() 362 if (finalPos > start) { in scanText() 402 public int scanName(final int start, final int end) { in scanName() argument 404 for (pos = start; pos < end; pos++) { in scanName() 412 if (pos > start) { in scanName() [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 …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | RecipientsEditor.java | 97 public void beforeTextChanged(CharSequence s, int start, in RecipientsEditor() 99 mAffected = ((Spanned) s).getSpans(start, start + count, in RecipientsEditor() 104 public void onTextChanged(CharSequence s, int start, in RecipientsEditor() 107 char c = s.charAt(start); in RecipientsEditor() 321 int start = mTokenizer.findTokenStart(text, mLongPressedPosition); in getContextMenuInfo() local 322 int end = mTokenizer.findTokenEnd(text, start); in getContextMenuInfo() 324 if (end != start) { in getContextMenuInfo() 325 String number = getNumberAt(getText(), start, end, getContext()); in getContextMenuInfo() 334 private static String getNumberAt(Spanned sp, int start, int end, Context context) { in getNumberAt() argument 335 String number = getFieldAt("number", sp, start, end, context); in getNumberAt() [all …]
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | CalculatorEditable.java | 35 replace(int start, int end, CharSequence tb, int tbstart, int tbend) { in replace() argument 37 return super.replace(start, end, tb, tbstart, tbend); in replace() 42 return internalReplace(start, end, delta); in replace() 49 private SpannableStringBuilder internalReplace(int start, int end, String delta) { in internalReplace() argument 52 start = 0; in internalReplace() 66 int p = start - 1; in internalReplace() 71 return super.replace(start, end, ""); in internalReplace() 75 char prevChar = start > 0 ? charAt(start-1) : '\0'; in internalReplace() 79 return super.replace(start, end, ""); in internalReplace() 86 --start; in internalReplace() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | Splitter.java | 138 @Override int separatorStart(int start) { in on() 139 return separatorMatcher.indexIn(toSplit, start); in on() 166 @Override public int separatorStart(int start) { 170 for (int p = start, last = toSplit.length() - delimeterLength; 212 @Override public int separatorStart(int start) { 213 return matcher.find(start) ? matcher.start() : -1; 260 @Override public int separatorStart(int start) { 261 int nextChunkStart = start + length; 355 abstract int separatorStart(int start); 374 int start = offset; [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
D | Splitter.java | 138 @Override int separatorStart(int start) { in on() 139 return separatorMatcher.indexIn(toSplit, start); in on() 166 @Override public int separatorStart(int start) { 170 for (int p = start, last = toSplit.length() - delimeterLength; 212 @Override public int separatorStart(int start) { 213 return matcher.find(start) ? matcher.start() : -1; 260 @Override public int separatorStart(int start) { 261 int nextChunkStart = start + length; 355 abstract int separatorStart(int start); 374 int start = offset; [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 93 int start = 0; in appendEscapedSourceId() local 95 int index = sourceId.indexOf('.', start); in appendEscapedSourceId() 97 sb.append(sourceId, start, sourceId.length()); in appendEscapedSourceId() 102 sb.append(sourceId, start, index); in appendEscapedSourceId() 104 start = index + 1; in appendEscapedSourceId() 186 int start = offset; in parse() local 194 key = string.substring(start); in parse() 196 key = string.substring(start, offset - 1); in parse() 202 int start = offset; in parse() local 210 key = string.substring(start); in parse() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | OpenWnnClauseConverterJAJP.java | 161 for (int start = 0; start < input.length(); start++) { in consecutiveClauseConvert() 162 if (start != 0 && sentence[start-1] == null) { in consecutiveClauseConvert() 168 if (end > start + 20) { in consecutiveClauseConvert() 169 end = start + 20; in consecutiveClauseConvert() 172 for ( ; end > start; end--) { in consecutiveClauseConvert() 177 if (start != 0) { in consecutiveClauseConvert() 178 … if (sentence[idx].frequency > sentence[start-1].frequency + CLAUSE_COST + FREQ_LEARN) { in consecutiveClauseConvert() 190 String key = input.substring(start, end); in consecutiveClauseConvert() 208 if (start == 0) { in consecutiveClauseConvert() 211 ws = new WnnSentence(sentence[start-1], bestClause); in consecutiveClauseConvert() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CsvUtils.java | 163 int start = isQuoted ? 1 : 0; in unescapeField() local 164 int end = start; in unescapeField() 165 while (start <= length && (end = text.indexOf(QUOTE, start)) >= start) { in unescapeField() 179 sb.append(text.substring(start, nextIndex)); in unescapeField() 180 start = nextIndex + 1; in unescapeField() 192 if (sb != null && start < length) { in unescapeField() 193 sb.append(text.substring(start, end)); in unescapeField() 195 return sb == null ? text.substring(start, end) : sb.toString(); in unescapeField() 213 int start = 0; in split() local 215 final int csvStart = trimSpaces ? indexOfNonSpace(line, start) : start; in split() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeySpecParser.java | 91 int start = 0; in splitKeySpecs() local 99 if (pos - start > 0) { in splitKeySpecs() 103 list.add(text.substring(start, pos)); in splitKeySpecs() 106 start = pos + 1; in splitKeySpecs() 112 final String remain = (size - start > 0) ? text.substring(start) : null; in splitKeySpecs() 154 private static int indexOfLabelEnd(final String moreKeySpec, final int start) { in indexOfLabelEnd() argument 155 if (moreKeySpec.indexOf(BACKSLASH, start) < 0) { in indexOfLabelEnd() 156 final int end = moreKeySpec.indexOf(VERTICAL_BAR, start); in indexOfLabelEnd() 158 throw new KeySpecParserError(VERTICAL_BAR + " at " + start + ": " + moreKeySpec); in indexOfLabelEnd() 163 for (int pos = start; pos < length; pos++) { in indexOfLabelEnd() [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/apps/ContactsCommon/src/com/android/contacts/common/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/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/Exchange/tests/src/com/android/exchange/eas/ |
D | EasProvisionTests.java | 54 expectedResult.start(Tags.PROVISION_PROVISION); in testPopulateRequestEntitySerializerPhaseInitialEx2007() 55 expectedResult.start(Tags.PROVISION_POLICIES); in testPopulateRequestEntitySerializerPhaseInitialEx2007() 56 expectedResult.start(Tags.PROVISION_POLICY); in testPopulateRequestEntitySerializerPhaseInitialEx2007() 84 expectedResult.start(Tags.PROVISION_PROVISION); in testPopulateRequestEntitySerializerPhaseInitialEx2010() 86 expectedResult.start(Tags.PROVISION_POLICIES); in testPopulateRequestEntitySerializerPhaseInitialEx2010() 87 expectedResult.start(Tags.PROVISION_POLICY); in testPopulateRequestEntitySerializerPhaseInitialEx2010() 115 expectedResult.start(Tags.PROVISION_PROVISION); in testPopulateRequestEntitySerializerPhaseWipe() 116 expectedResult.start(Tags.PROVISION_REMOTE_WIPE); in testPopulateRequestEntitySerializerPhaseWipe() 143 expectedResult.start(Tags.PROVISION_PROVISION); in testPopulateRequestEntitySerializerPhaseAcknowledge() 144 expectedResult.start(Tags.PROVISION_POLICIES); in testPopulateRequestEntitySerializerPhaseAcknowledge() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 499 int start = actualInputIndex; in calculateBeelineSpeedRate() local 501 while (start > 0 && tempBeelineDistance < lookupRadius) { in calculateBeelineSpeedRate() 502 tempTime += times[start] - times[start - 1]; in calculateBeelineSpeedRate() 503 --start; in calculateBeelineSpeedRate() 504 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[start], in calculateBeelineSpeedRate() 505 yCoordinates[start]); in calculateBeelineSpeedRate() 508 if (start > 0 && start < actualInputIndex) { in calculateBeelineSpeedRate() 509 ++start; in calculateBeelineSpeedRate() 526 if (start >= end) { in calculateBeelineSpeedRate() 528 AKLOGI("--- double letter: start == end %d", start); in calculateBeelineSpeedRate() [all …]
|
/packages/experimental/procstatlog/ |
D | diskload.sh | 22 dd if=/dev/zero bs=65536 of=$1.0 & pid0=$!; echo start $pid0; sleep 2 23 dd if=/dev/zero bs=65536 of=$1.1 & pid1=$!; echo start $pid1; sleep 2 24 dd if=/dev/zero bs=65536 of=$1.2 & pid2=$!; echo start $pid2; sleep 2 25 dd if=/dev/zero bs=65536 of=$1.3 & pid3=$!; echo start $pid3; sleep 2 26 dd if=/dev/zero bs=65536 of=$1.4 & pid4=$!; echo start $pid4; sleep 2 27 dd if=/dev/zero bs=65536 of=$1.5 & pid5=$!; echo start $pid5; sleep 2 28 dd if=/dev/zero bs=65536 of=$1.6 & pid6=$!; echo start $pid6; sleep 2 29 dd if=/dev/zero bs=65536 of=$1.7 & pid7=$!; echo start $pid7; sleep 2 30 dd if=/dev/zero bs=65536 of=$1.8 & pid8=$!; echo start $pid8; sleep 2 31 dd if=/dev/zero bs=65536 of=$1.9 & pid9=$!; echo start $pid9; sleep 2
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | FolderSpan.java | 72 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { in getSize() argument 82 return measureWidth(paint, text, start, end, true); in getSize() 85 private int measureWidth(Paint paint, CharSequence text, int start, int end, in measureWidth() argument 90 int w = (int) paint.measureText(text, start, end) + 2 * paddingW; in measureWidth() 102 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, in draw() argument 113 final CharacterStyle[] otherSpans = mSpanned.getSpans(start, end, CharacterStyle.class); in draw() 118 final int bgWidth = measureWidth(mWorkPaint, text, start, end, false); in draw() 136 text = TextUtils.ellipsize(text.subSequence(start, end).toString(), mWorkPaint, in draw() 138 start = 0; in draw() 141 … canvas.drawText(text, start, end, x + paddingW + paddingBefore, y + paddingAbove, mWorkPaint); in draw()
|
/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()
|