Home
last modified time | relevance | path

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

12345678910>>...13

/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java230 long end = createTimeInMillis(0, 0, 18, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local
231 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear()
237 end = createTimeInMillis(0, 0, 18, 1, 0, 2013); in testGetDisplayedDatetime_differentYear()
238 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear()
247 long end = createTimeInMillis(0, 0, 18, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local
248 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear()
257 long end = createTimeInMillis(0, 0, 18, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local
258 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today()
267 long end = createTimeInMillis(0, 0, 0, NOW_DAY + 1, 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/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dwriter.h206 const char* end = internal::i32toa(i, buffer); in WriteInt() local
207 for (const char* p = buffer; p != end; ++p) in WriteInt()
214 const char* end = internal::u32toa(u, buffer); in WriteUint() local
215 for (const char* p = buffer; p != end; ++p) in WriteUint()
222 const char* end = internal::i64toa(i64, buffer); in WriteInt64() local
223 for (const char* p = buffer; p != end; ++p) in WriteInt64()
230 char* end = internal::u64toa(u64, buffer); in WriteUint64() local
231 for (char* p = buffer; p != end; ++p) in WriteUint64()
238 char* end = internal::dtoa(d, buffer); in WriteDouble() local
239 for (char* p = buffer; p != end; ++p) in WriteDouble()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java143 int end = start + mCounts[i]; in getItem() local
144 if (position >= start && position < end) { in getItem()
147 start = end; in getItem()
157 int end = start + mCounts[i]; in getItemId() local
158 if (position >= start && position < end) { in getItemId()
161 start = end; in getItemId()
179 int end = start + mCounts[i]; in getItemViewType() local
180 if (position >= start && position < end) { in getItemViewType()
184 start = end; in getItemViewType()
194 int end = start + mCounts[i]; in getView() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java147 final int end = start + mPartitions[i].getCount(); in getPartitionAtPosition() local
148 if (position >= start && position < end) { in getPartitionAtPosition()
159 start = end; in getPartitionAtPosition()
198 final int end = start + mPartitions[i].getCount(); in getItem() local
199 if (position >= start && position < end) { in getItem()
209 start = end; in getItem()
220 final int end = start + mPartitions[i].getCount(); in getItemId() local
221 if (position >= start && position < end) { in getItemId()
231 start = end; in getItemId()
242 final int end = start + mPartitions[i].getCount(); in isEnabled() local
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/util/
DSearchUtil.java47 int end = index + 1; in findMatchingLine() local
48 while (end < contents.length()) { in findMatchingLine()
49 if (contents.charAt(end) == '\n') { in findMatchingLine()
52 end++; in findMatchingLine()
54 matched.line = contents.substring(start + 1, end); in findMatchingLine()
171 int end = query.length() - 1; in cleanStartAndEndOfSearchQuery() local
172 while (end > -1) { in cleanStartAndEndOfSearchQuery()
173 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery()
175 end--; in cleanStartAndEndOfSearchQuery()
177 int codePoint = query.codePointAt(end); in cleanStartAndEndOfSearchQuery()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DSearchUtil.java64 int end = index + 1; in findMatchingLine() local
65 while (end < contents.length()) { in findMatchingLine()
66 if (contents.charAt(end) == '\n') { in findMatchingLine()
69 end++; in findMatchingLine()
71 matched.line = contents.substring(start + 1, end); in findMatchingLine()
188 int end = query.length() - 1; in cleanStartAndEndOfSearchQuery() local
189 while (end > -1) { in cleanStartAndEndOfSearchQuery()
190 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery()
192 end--; in cleanStartAndEndOfSearchQuery()
194 int codePoint = query.codePointAt(end); in cleanStartAndEndOfSearchQuery()
[all …]
/packages/services/Car/tools/emulator/
Duser_action_generator.py124 def _adjustContinuousProperty(self, prop, begin, end, listener): argument
132 if begin < end:
134 end = areaConfig.max if end > areaConfig.max else end
137 end = areaConfig.min if end < areaConfig.min else end
139 for value in self._range(begin, end):
152 def _range(self, begin, end): argument
153 if begin < end:
155 while i < end:
160 while i > end:
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumDataLoader.java160 int end = mContentEnd; in setContentWindow() local
170 if (contentStart >= end || start >= contentEnd) { in setContentWindow()
171 for (int i = start, n = end; i < n; ++i) { in setContentWindow()
178 for (int i = contentEnd, n = end; i < n; ++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()
193 mActiveEnd = end; in setActiveWindow()
196 if (start == end) return; in setActiveWindow()
[all …]
DAlbumSetDataLoader.java177 int end = this.mContentEnd; in setContentWindow() local
182 if (contentStart >= end || start >= contentEnd) { in setContentWindow()
183 for (int i = start, n = end; i < n; ++i) { in setContentWindow()
190 for (int i = contentEnd, n = end; i < n; ++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()
204 mActiveEnd = end; in setActiveWindow()
208 if (start == end) return; in setActiveWindow()
[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/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java86 long end; field in CalendarAppWidgetModel.EventInfo
127 result = prime * result + (int) (end ^ (end >>> 32)); in hashCode()
153 if (end != other.end) in equals()
284 long end = cursor.getLong(CalendarAppWidgetService.INDEX_END); in buildFromCursor() local
299 end = Utils.convertAlldayUtcToLocal(recycle, end, tz); in buildFromCursor()
304 + " end:" + end + " eventId:" + eventId); in buildFromCursor()
309 if (end < mNow) { 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()
[all …]
/packages/apps/TV/jni/
Dtunertvinput_jni.cpp43 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
60 if (it == sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
82 if (it == sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
103 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters()
116 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeStopTune()
130 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeGetSignalStrength()
146 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeAddPidFilter()
161 if (it == sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
195 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeSetHasPendingTune()
210 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemType()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp339 it != prevNearKeysDistances->end(); ++it) { in isPrevLocalMin()
342 const bool isPrevPrevNear = (itPP == prevPrevNearKeysDistances->end() in isPrevLocalMin()
344 const bool isCurrentNear = (itC == currentNearKeysDistances->end() in isPrevLocalMin()
509 int end = actualInputIndex; in calculateBeelineSpeedRate() local
511 while (end < (inputSize - 1) && tempBeelineDistance < lookupRadius) { in calculateBeelineSpeedRate()
512 tempTime += times[end + 1] - times[end]; in calculateBeelineSpeedRate()
513 ++end; in calculateBeelineSpeedRate()
514 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[end], in calculateBeelineSpeedRate()
515 yCoordinates[end]); in calculateBeelineSpeedRate()
518 if (end > actualInputIndex && end < (inputSize - 1)) { in calculateBeelineSpeedRate()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java82 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/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java94 for (int end = 0; end <= length; end++) { in checkSourceConcurrent()
95 final String prefix = query.substring(0, end); in checkSourceConcurrent()
143 long end = System.nanoTime(); in checkSourceInternal() local
144 long elapsed = end - start; in checkSourceInternal()
238 long end = System.nanoTime(); in run() local
239 long elapsed = (end - start); in run()
293 long end = System.nanoTime(); in onChanged() local
294 long elapsed = end - mStart; in onChanged()
/packages/apps/TV/src/com/android/tv/menu/
DPlaybackProgressBar.java100 public void setProgressRange(long start, long end) { in setProgressRange() argument
102 end = constrain(end, start, mMax); in setProgressRange()
103 mProgress = constrain(mProgress, start, end); in setProgressRange()
104 if (start != mProgressStart || end != mProgressEnd) { in setProgressRange()
106 mProgressEnd = end; in setProgressRange()
139 private boolean setProgressBound(Drawable drawable, long start, long end) { in setProgressBound() argument
151 int right = (int) (width * end / mMax); in setProgressBound()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsDictionaryUtils.java33 int end; in getWordEndPosition() local
35 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) { in getWordEndPosition()
36 cp = string.codePointAt(end); in getWordEndPosition()
42 return end; in getWordEndPosition()
/packages/modules/DnsResolver/
DPrivateDnsConfiguration.cpp116 if (netPair == mPrivateDnsTransports.end()) { in set()
128 for (auto it = tracker.begin(); it != tracker.end();) { in set()
151 if (mode == mPrivateDnsModes.end()) return status; in getStatus()
155 if (netPair != mPrivateDnsTransports.end()) { in getStatus()
237 if (netPair == mPrivateDnsTransports.end()) { in recordPrivateDnsValidation()
243 if (mode == mPrivateDnsModes.end()) { in recordPrivateDnsValidation()
254 if (serverPair == tracker.end()) { in recordPrivateDnsValidation()
303 if (threadPair == mPrivateDnsValidateThreads.end()) { in needValidateThread()
334 if (threadPair != mPrivateDnsValidateThreads.end()) { in cleanValidateThreadTracker()
350 return (iter == tracker.end()) || (iter->second == Validation::fail); in needsValidation()
Dres_cache.cpp263 const uint8_t* end; member
269 packet->end = buff + bufflen; in _dnsPacket_init()
280 if (p > packet->end) p = packet->end; in _dnsPacket_skip()
288 if (p + 2 > packet->end) return -1; in _dnsPacket_readInt16()
302 if (p + numBytes > packet->end) return 0; in _dnsPacket_checkBytes()
316 const uint8_t* end = packet->end; in _dnsPacket_checkQName() local
321 if (p >= end) break; in _dnsPacket_checkQName()
373 if (p + DNS_HEADER_SIZE > packet->end) { in _dnsPacket_checkQuery()
439 const uint8_t* end = packet->end; in _dnsPacket_hashBytes() local
441 while (numBytes > 0 && p < end) { in _dnsPacket_hashBytes()
[all …]
/packages/apps/Dialer/java/com/android/dialer/smartdial/util/
DSmartDialMatchPosition.java33 public int end; field in SmartDialMatchPosition
35 public SmartDialMatchPosition(int start, int end) { in SmartDialMatchPosition() argument
37 this.end = end; in SmartDialMatchPosition()
62 LogUtil.d(TAG, "[" + m.start + "," + m.end + "]"); in print()
68 this.end += toAdvance; in advance()
/packages/apps/Camera2/src/com/android/camera/widget/
DPreloader.java89 final int end; in preload() local
92 end = Math.min(first + mLoadAheadItems, mItemSource.getCount()); in preload()
95 end = Math.min(first, mLastStart); in preload()
99 " end=" + end); in preload()
101 mLastEnd = end; in preload()
104 if (start == 0 && end == 0) { in preload()
108 final List<T> items = mItemSource.getItemsInRange(start, end); in preload()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DCollectionUtils.java45 final int end) { in arrayAsList() argument
46 if (start < 0 || start > end || end > array.length) { in arrayAsList()
47 throw new IllegalArgumentException("Invalid start: " + start + " end: " + end in arrayAsList()
51 final ArrayList<E> list = new ArrayList<>(end - start); in arrayAsList()
52 for (int i = start; i < end; i++) { in arrayAsList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DChartGridView.java96 void setBounds(long start, long end) { in setBounds() argument
98 final long mid = (start + end) / 2; in setBounds()
101 mLabelEnd = makeLabel(formatDateRange(context, end, end)); in setBounds()
156 final Layout end = mLabelEnd; in onDraw() local
157 if (end != null) { in onDraw()
159 canvas.translate(width - end.getWidth(), height + padding); in onDraw()
160 end.draw(canvas); in onDraw()
/packages/apps/Settings/src/com/android/settings/widget/
DChartGridView.java96 void setBounds(long start, long end) { in setBounds() argument
98 final long mid = (start + end) / 2; in setBounds()
101 mLabelEnd = makeLabel(formatDateRange(context, end, end)); in setBounds()
156 final Layout end = mLabelEnd; in onDraw() local
157 if (end != null) { in onDraw()
159 canvas.translate(width - end.getWidth(), height + padding); in onDraw()
160 end.draw(canvas); in onDraw()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/
DScaleSpan.java46 public int getSize(Paint paint, CharSequence text, int start, int end, in getSize() argument
54 float desiredWidth = StaticLayout.getDesiredWidth(text.toString(), start, end, textPaint); in getSize()
59 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, in draw() argument
62 paint.getTextBounds(text, start, end, targetRect); in draw()
66 paint.getTextBounds(text, start, end, currentRect); in draw()
69 canvas.drawText(text.subSequence(start, end).toString(), x, y + yShift, paint); in draw()

12345678910>>...13