Home
last modified time | relevance | path

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

12345678910>>...23

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java670 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/Calendar/src/com/android/calendar/agenda/
DAgendaWindowAdapter.java239 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/Calendar/tests/src/com/android/calendar/
DUtilsTests.java507 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/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java146 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/Gallery2/src/com/android/gallery3d/data/
DMediaSet.java72 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 …]
DClusterAlbum.java70 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()
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java97 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 …]
DSearchActivity.java109 startPos = m.start(); in onLayout()
126 int start = -1; in onLayout() local
138 if (newstart == start && newend == end) { in onLayout()
142 start = newstart; in onLayout()
147 String candidate = mFullText.substring(start, end); in onLayout()
156 start == 0 ? "" : sEllipsis, in onLayout()
163 int start = 0; in onLayout() local
166 while (m.find(start)) { in onLayout()
167 spannable.setSpan(new StyleSpan(sTypefaceHighlight), m.start(), m.end(), 0); in onLayout()
168 start = m.end(); in onLayout()
[all …]
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorEditable.java35 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/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java93 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/
DOpenWnnClauseConverterJAJP.java161 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 …]
DRomkanFullKatakana.java174 int start = MAX_LENGTH; in convert() local
178 start--; in convert()
182 while (start < MAX_LENGTH) { in convert()
183 for (int i = start; i < MAX_LENGTH; i++) { in convert()
195 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
196 text.replaceStrSegment(ComposingText.LAYER1, out, MAX_LENGTH - start); in convert()
200 str[start].from, str[MAX_LENGTH - 1].to - 1); in convert()
203 text.replaceStrSegment(1, out, MAX_LENGTH - start); in convert()
207 start++; in convert()
DRomkan.java170 int start = MAX_LENGTH; in convert() local
174 start--; in convert()
178 while (start < MAX_LENGTH) { in convert()
179 for (int i = start; i < MAX_LENGTH; i++) { in convert()
191 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
192 text.replaceStrSegment(ComposingText.LAYER1, out, MAX_LENGTH - start); in convert()
196 str[start].from, str[MAX_LENGTH - 1].to - 1); in convert()
199 text.replaceStrSegment(1, out, MAX_LENGTH - start); in convert()
203 start++; in convert()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumDataLoader.java112 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 …]
DAlbumSetDataLoader.java114 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/
DSearchUtil.java57 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/
DCalendarAppWidgetModel.java85 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 …]
DCalendarAppWidgetService.java251 if (!eventInfo.allDay && eventInfo.start <= now && now <= eventInfo.end) {
310 long start = eventInfo.start;
316 start = Utils.convertAlldayLocalToUTC(recycle, start, tz);
320 mContext, eventInfo.id, start, end, eventInfo.allDay);
354 result = prime * result + (int) (eventInfo.start ^ (eventInfo.start >>> 32));
427 final long start;
429 start = event.start;
433 if (now < start) {
434 minUpdateTime = Math.min(minUpdateTime, start);
/packages/inputmethods/LatinIME/native/jni/src/
Dproximity_info_state_utils.cpp538 int start = actualInputIndex; in calculateBeelineSpeedRate() local
540 while (start > 0 && tempBeelineDistance < lookupRadius) { in calculateBeelineSpeedRate()
541 tempTime += times[start] - times[start - 1]; in calculateBeelineSpeedRate()
542 --start; in calculateBeelineSpeedRate()
543 tempBeelineDistance = getDistanceInt(x0, y0, xCoordinates[start], yCoordinates[start]); in calculateBeelineSpeedRate()
546 if (start > 0 && start < actualInputIndex) { in calculateBeelineSpeedRate()
547 ++start; in calculateBeelineSpeedRate()
563 if (start >= end) { in calculateBeelineSpeedRate()
565 AKLOGI("--- double letter: start == end %d", start); in calculateBeelineSpeedRate()
570 const int x2 = xCoordinates[start]; in calculateBeelineSpeedRate()
[all …]
/packages/experimental/procstatlog/
Ddiskload.sh22 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java99 private static int indexOfLabelEnd(final String moreKeySpec, final int start) { in indexOfLabelEnd() argument
100 if (moreKeySpec.indexOf(Constants.CSV_ESCAPE, start) < 0) { in indexOfLabelEnd()
101 final int end = moreKeySpec.indexOf(LABEL_END, start); in indexOfLabelEnd()
103 throw new KeySpecParserError(LABEL_END + " at " + start + ": " + moreKeySpec); in indexOfLabelEnd()
108 for (int pos = start; pos < length; pos++) { in indexOfLabelEnd()
215 private static <T> ArrayList<T> arrayAsList(final T[] array, final int start, final int end) { in arrayAsList() argument
219 if (start < 0 || start > end || end > array.length) { in arrayAsList()
223 final ArrayList<T> list = CollectionUtils.newArrayList(end - start); in arrayAsList()
224 for (int i = start; i < end; i++) { in arrayAsList()
373 private static int searchTextNameEnd(final String text, final int start) { in searchTextNameEnd() argument
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasSyncService.java478 s.start(Tags.FOLDER_FOLDER_SYNC).start(Tags.FOLDER_SYNC_KEY).text(syncKey) in validateAccount()
934 s.start(Tags.SEARCH_SEARCH).start(Tags.SEARCH_STORE); in searchGal()
936 s.start(Tags.SEARCH_OPTIONS); in searchGal()
1063 s.start(Tags.MOVE_MOVE_ITEMS).start(Tags.MOVE_MOVE); in messageMoveRequest()
1127 s.start(Tags.MREQ_MEETING_RESPONSE).start(Tags.MREQ_REQUEST); in sendMeetingResponse()
1453 s.start(Tags.PROVISION_PROVISION); in canProvision()
1456 s.start(Tags.SETTINGS_DEVICE_INFORMATION).start(Tags.SETTINGS_SET); in canProvision()
1467 s.start(Tags.PROVISION_POLICIES); in canProvision()
1468 s.start(Tags.PROVISION_POLICY); in canProvision()
1532 s.start(Tags.PROVISION_PROVISION).start(Tags.PROVISION_POLICIES); in acknowledgeProvisionImpl()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionFormatter.java42 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/Browser/src/com/android/browser/homepages/
DTemplate.java188 int start = 0; in parseTemplate() local
190 String static_part = template.substring(start, m.start()); in parseTemplate()
202 start = m.end(); in parseTemplate()
204 String subTemplate = template.substring(start, end_m.start()); in parseTemplate()
206 start = end_m.end(); in parseTemplate()
210 start = m.end(); in parseTemplate()
212 String static_part = template.substring(start, template.length()); in parseTemplate()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java171 mAnimation.start(); in startScatteringAnimation()
177 mAnimation.start(); in startRisingAnimation()
535 int start = Math.max(0, mUnitCount * startCol); in updateVisibleSlotRange() local
539 setVisibleRange(start, end); in updateVisibleSlotRange()
542 int start = Math.max(0, mUnitCount * startRow); in updateVisibleSlotRange() local
546 setVisibleRange(start, end); in updateVisibleSlotRange()
556 private void setVisibleRange(int start, int end) { in setVisibleRange() argument
557 if (start == mVisibleStart && end == mVisibleEnd) return; in setVisibleRange()
558 if (start < end) { in setVisibleRange()
559 mVisibleStart = start; in setVisibleRange()
[all …]

12345678910>>...23