Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/
DExifTagTest.java98 int count = tag.getComponentCount(); in testValueType() local
99 int intBuf[] = new int[count]; in testValueType()
100 long longBuf[] = new long[count]; in testValueType()
101 byte byteBuf[] = new byte[count]; in testValueType()
102 Rational rationalBuf[] = new Rational[count]; in testValueType()
104 for (int i = 0; i < count; i++) { in testValueType()
110 if (i != count - 1) { in testValueType()
152 int count = intBuf.length; in checkTypeUnsignedLong() local
153 intBuf[count - 1] = MAX_LONG; in checkTypeUnsignedLong()
155 longBuf[count - 1] = MAX_UNSIGNED_LONG; in checkTypeUnsignedLong()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactEntryListAdapter.java163 int count = getPartitionCount(); in getPartitionByDirectoryId() local
164 for (int i = 0; i < count; i++) { in getPartitionByDirectoryId()
183 int count = getPartitionCount(); in onDataReload() local
184 for (int i = 0; i < count; i++) { in onDataReload()
201 int count = getPartitionCount(); in clearPartitions() local
202 for (int i = 0; i < count; i++) { in clearPartitions()
376 int count = getPartitionCount(); in changeDirectories() local
377 for (int i = count; --i >= 0; ) { in changeDirectories()
475 int count = getPartitionCount(); in isLoading() local
476 for (int i = 0; i < count; i++) { in isLoading()
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DVideoEditorProject.java361 final int count = mMediaItems.size(); in updateMediaItem() local
362 for (int i = 0; i < count; i++) { in updateMediaItem()
373 if (i < count - 1) { in updateMediaItem()
391 final int count = mMediaItems.size(); in removeMediaItem() local
392 for (int i = 0; i < count; i++) { in removeMediaItem()
405 if (i < count - 1) { in removeMediaItem()
477 final int count = mMediaItems.size(); in getLastMediaItem() local
478 if (count == 0) { in getLastMediaItem()
481 return mMediaItems.get(count - 1); in getLastMediaItem()
540 final int count = mMediaItems.size(); in getNextMediaItem() local
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/tests/calllog/
DFillCallLogTestActivity.java72 int count; in onCreate()
74 count = Integer.parseInt(mNumberTextView.getText().toString()); in onCreate()
75 if (count > 100) { in onCreate()
83 addEntriesToCallLog(count, mUseRandomNumbers.isChecked()); in onCreate()
87 mProgressBar.setMax(count); in onCreate()
99 private void addEntriesToCallLog(final int count, boolean useRandomNumbers) { in addEntriesToCallLog() argument
101 addRandomNumbers(count); in addEntriesToCallLog()
104 new CallLogLoaderListener(count)); in addEntriesToCallLog()
159 private void addRandomNumbers(int count) { in addRandomNumbers() argument
160 ContentValues[] values = new ContentValues[count]; in addRandomNumbers()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserHistoryForgettingCurveUtils.java122 private static int calcFreq(int elapsedTime, int count, int level) { in calcFreq() argument
127 if (count == COUNT_MAX) { in calcFreq()
136 /* pakcage */ static byte calcFc(int elapsedTime, int count, int level) { in calcFc() argument
138 final int c = Math.min(COUNT_MAX, Math.max(0, count)); in calcFc()
145 final int count = fcToCount(fc); in fcToFreq() local
147 return calcFreq(elapsedTime, count, level); in fcToFreq()
152 int count = fcToCount(fc); in pushElapsedTime() local
157 count = COUNT_MAX; in pushElapsedTime()
162 return calcFc(elapsedTime, count, level); in pushElapsedTime()
167 int count = fcToCount(fc); in pushCount() local
[all …]
DRichInputMethodManager.java175 final int count = imiList.size(); in getImiIndexInList() local
176 for (int index = 0; index < count; index++) { in getImiIndexInList()
188 final int count = imiList.size(); in getNextNonAuxiliaryIme() local
189 for (int i = 1; i < count; i++) { in getNextNonAuxiliaryIme()
190 final int nextIndex = (currentIndex + i) % count; in getNextNonAuxiliaryIme()
201 final int count = imi.getSubtypeCount(); in isAuxiliaryIme() local
202 if (count == 0) { in isAuxiliaryIme()
205 for (int index = 0; index < count; index++) { in isAuxiliaryIme()
249 final int count = subtypes.size(); in getSubtypeIndexInList() local
250 for (int index = 0; index < count; index++) { in getSubtypeIndexInList()
[all …]
/packages/inputmethods/PinyinIME/jni/share/
Duserdict.cpp416 uint16 count = searchable->splid_count[i]; in is_prefix_spell_id() local
417 if (fullids[i] >= start_id && fullids[i] < start_id + count) in is_prefix_spell_id()
434 uint16 count = searchable->splid_count[i]; in equal_spell_id() local
435 if (fullids[i] >= start_id && fullids[i] < start_id + count) in equal_spell_id()
535 uint32 start, count; in _get_lpis() local
536 bool cached = cache_hit(&searchable, &start, &count); in _get_lpis()
539 max_off = start + count; in _get_lpis()
601 count = middle - start; in _get_lpis()
602 cache_push(USER_DICT_CACHE, &searchable, start, count); in _get_lpis()
698 uint32 start, count; in _get_lpis() local
[all …]
/packages/apps/Gallery2/src/com/android/camera/ui/
DPieRenderer.java375 final int count = items.size(); in layoutItems() local
380 float angle = getArcCenter(item, pos, count); in layoutItems()
411 private float getArcCenter(PieItem item, int pos, int count) { in getArcCenter() argument
412 return getCenter(pos, count, SWEEP_ARC); in getArcCenter()
415 private float getSliceCenter(PieItem item, int pos, int count) { in getSliceCenter() argument
417 return center + (count - 1) * SWEEP_SLICE / 2f in getSliceCenter()
421 private float getCenter(int pos, int count, float sweep) { in getCenter() argument
422 return mCenterAngle + (count - 1) * sweep / 2f - pos * sweep; in getCenter()
529 final int count = items.size(); in onDraw() local
532 drawItem(Math.max(0, mOpen.size() - 2), pos, count, canvas, item, alpha); in onDraw()
[all …]
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/
DRecurrencePickerDialog.java256 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
260 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
358 if (er.count > 0 && !TextUtils.isEmpty(er.until)) { in canHandleRecurrenceRule()
431 model.endCount = er.count; in copyEventRecurrenceToModel()
460 int count = 0; in copyEventRecurrenceToModel() local
472 count++; in copyEventRecurrenceToModel()
481 if (count != 1) { in copyEventRecurrenceToModel()
527 er.count = 0; in copyModelToEventRecurrence()
533 er.count = model.endCount; in copyModelToEventRecurrence()
535 if (er.count <= 0) { in copyModelToEventRecurrence()
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java590 int count = 6 * 4; in drawDaySeparators() local
596 count += 4; in drawDaySeparators()
603 count += 4; in drawDaySeparators()
611 while (i < count) { in drawDaySeparators()
620 canvas.drawLines(lines, 0, count, p); in drawDaySeparators()
778 protected int addChipOutline(FloatRef lines, int count, int x, int y) { in addChipOutline() argument
779 lines.ensureSize(count + 16); in addChipOutline()
781 lines.array[count++] = x; in addChipOutline()
782 lines.array[count++] = y; in addChipOutline()
783 lines.array[count++] = x + EVENT_SQUARE_WIDTH; in addChipOutline()
[all …]
/packages/apps/Email/src/org/apache/commons/io/output/
DByteArrayOutputStream.java65 private int count; field in ByteArrayOutputStream
151 int newcount = count + len; in write()
153 int inBufferPos = count - filledBufferSum; in write()
163 count = newcount; in write()
173 int inBufferPos = count - filledBufferSum; in write()
175 needNewBuffer(count + 1); in write()
179 count++; in write()
195 int inBufferPos = count - filledBufferSum; in write()
200 count += n; in write()
215 return count; in size()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java947 int count = 0; in update() local
950 count = updateContactTime(uri, values); in update()
970 count = updateAll(uri, match, values, selection, selectionArgs); in update()
974 if (count > 0) { in update()
978 return count; in update()
988 int count = 0; in updateAll() local
992 count += update(match, id, values); in updateAll()
998 return count; in updateAll()
1002 int count = 0; in update() local
1006 count = updatePeople(id, values); in update()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java140 int count = 0; in update() local
147 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
149 if (count > 0) { in update()
159 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
161 if (count > 0) { in update()
166 return count; in update()
171 int count = 0; in delete() local
178 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete()
179 if (count > 0) { in delete()
189 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java122 int count = mClickedSet.size(); in getSelectedCount() local
124 count = getTotalCount() - count; in getSelectedCount()
126 return count; in getSelectedCount()
138 int count = getSelectedCount(); in toggle() local
139 if (count == getTotalCount()) { in toggle()
144 if (count == 0 && mAutoLeave) { in toggle()
161 int count = index + batch < total in expandMediaSet() local
164 ArrayList<MediaItem> list = set.getMediaItem(index, count); in expandMediaSet()
222 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); in getSelected() local
223 ArrayList<MediaItem> list = mSourceMediaSet.getMediaItem(index, count); in getSelected()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java284 final int count = messages.size(); in getAllMessagesFromIcc() local
285 MatrixCursor cursor = new MatrixCursor(ICC_COLUMNS, count); in getAllMessagesFromIcc()
286 for (int i = 0; i < count; i++) { in getAllMessagesFromIcc()
524 int count; in delete() local
529 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
530 if (count != 0) { in delete()
539 count = MmsSmsDatabaseHelper.deleteOneSms(db, message_id); in delete()
559 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
564 count = db.delete("raw", where, whereArgs); in delete()
568 count = db.delete("sr_pending", where, whereArgs); in delete()
[all …]
DTelephonyProvider.java672 int count = 0; in delete() local
682 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
688 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
694 count = db.delete(CARRIERS_TABLE, Telephony.Carriers._ID + "=?", in delete()
700 count = 1; in delete()
709 if (match == URL_PREFERAPN) count = 1; in delete()
718 if (count > 0) { in delete()
722 return count; in delete()
728 int count = 0; in update() local
738 count = db.update(CARRIERS_TABLE, values, where, whereArgs); in update()
[all …]
/packages/apps/Email/src/com/android/email/provider/
DContentCache.java191 int count = 0; in invalidateTokens() local
196 count++; in invalidateTokens()
202 return count; in invalidateTokens()
309 int count = sActiveCursors.subtract(mCursor); in close() local
310 if ((count == 0) && mCache.mLruCache.get(mId) != (mCursor)) { in close()
596 int count = mTokenList.invalidateTokens(id); in lock() local
598 Log.d(mTokenList.mLogTag, "============ Lock invalidated " + count + in lock()
719 Integer count; field in ContentCache.CacheCounter
723 count = _count; in CacheCounter()
728 return another.count > count ? 1 : another.count == count ? 0 : -1; in compareTo()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayoutChildren.java48 final int count = getChildCount(); in cancelLongPress() local
49 for (int i = 0; i < count; i++) { in cancelLongPress()
89 final int count = getChildCount(); in onMeasure() local
90 for (int i = 0; i < count; i++) { in onMeasure()
111 int count = getChildCount(); in onLayout() local
114 if (mCenterContent && count > 0) { in onLayout()
118 for (int i = 0; i < count; i++) { in onLayout()
131 for (int i = 0; i < count; i++) { in onLayout()
150 final int count = getChildCount(); in setChildrenDrawingCacheEnabled() local
151 for (int i = 0; i < count; i++) { in setChildrenDrawingCacheEnabled()
DShortcutAndWidgetContainer.java61 final int count = getChildCount(); in getChildAt() local
62 for (int i = 0; i < count; i++) { in getChildAt()
94 int count = getChildCount(); in onMeasure() local
95 for (int i = 0; i < count; i++) { in onMeasure()
136 int count = getChildCount(); in onLayout() local
137 for (int i = 0; i < count; i++) { in onLayout()
180 final int count = getChildCount(); in cancelLongPress() local
181 for (int i = 0; i < count; i++) { in cancelLongPress()
189 final int count = getChildCount(); in setChildrenDrawingCacheEnabled() local
190 for (int i = 0; i < count; i++) { in setChildrenDrawingCacheEnabled()
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DCommandRecognizerEngine.java198 int count = 0; in addNameEntriesToGrammar() local
218 count, e); in addNameEntriesToGrammar()
222 count++; in addNameEntriesToGrammar()
331 int count = 0; in addOpenEntriesToGrammar() local
332 for (int i = 0; 0 != (i = entry.indexOf(' ', i) + 1); count++) ; in addOpenEntriesToGrammar()
333 if (count > RESULT_LIMIT) continue; in addOpenEntriesToGrammar()
998 int count = 0; in onRecognitionSuccess() local
1018 count++; in onRecognitionSuccess()
1046 count++; in onRecognitionSuccess()
1050 if (count == 0 || !mMinimizeResults) { in onRecognitionSuccess()
[all …]
DVoiceDialerActivity.java646 int count = 0; in skipBeep() local
653 while (count < maxBytes) { in skipBeep()
681 … if (false) Log.d(TAG, "start RISING: " + count +" time: "+ (((1000*count)/2)/mSampleRate)); in skipBeep()
687 … if (false) Log.d(TAG, "back to START: " + count +" time: "+ (((1000*count)/2)/mSampleRate)); in skipBeep()
692 … if (false) Log.d(TAG, "start TOP: " + count +" time: "+ (((1000*count)/2)/mSampleRate)); in skipBeep()
702 … if (false) Log.d(TAG, "end TOP: " + count +" time: "+ (((1000*count)/2)/mSampleRate)); in skipBeep()
708 count += blockSize; in skipBeep()
950 int count = mAvailableChoices.length; in speakChoices() local
951 for (int i=1; i < count; i++) { in speakChoices()
952 if (i == count-1) { in speakChoices()
/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java999 long count = copyLarge(input, output); in copy() local
1000 if (count > Integer.MAX_VALUE) { in copy()
1003 return (int) count; in copy()
1023 long count = 0; in copyLarge() local
1027 count += n; in copyLarge()
1029 return count; in copyLarge()
1104 long count = copyLarge(input, output); in copy() local
1105 if (count > Integer.MAX_VALUE) { in copy()
1108 return (int) count; in copy()
1126 long count = 0; in copyLarge() local
[all …]
/packages/apps/Email/src/org/apache/commons/io/input/
DCountingInputStream.java35 private long count; field in CountingInputStream
58 this.count += (found >= 0) ? found : 0; in read()
75 this.count += (found >= 0) ? found : 0; in read()
89 this.count += (found >= 0) ? 1 : 0; in read()
104 this.count += skip; in skip()
156 return this.count; in getByteCount()
170 long tmp = this.count; in resetByteCount()
171 this.count = 0; in resetByteCount()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DComboAlbum.java42 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument
46 if (count < 1) break; in getMediaItem()
48 int fetchCount = (start + count <= size) ? count : size - start; in getMediaItem()
51 count -= fetchItems.size(); in getMediaItem()
62 int count = 0; in getMediaItemCount() local
64 count += set.getMediaItemCount(); in getMediaItemCount()
66 return count; in getMediaItemCount()
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DGlowPadView.java131 final int count = size(); in start() local
132 for (int i = 0; i < count; i++) { in start()
139 final int count = size(); in cancel() local
140 for (int i = 0; i < count; i++) { in cancel()
148 final int count = size(); in stop() local
149 for (int i = 0; i < count; i++) { in stop()
424 final int count = mTargetDrawables.size(); in deactivateTargets() local
425 for (int i = 0; i < count; i++) { in deactivateTargets()
564 final int count = array.length(); in loadDrawableArray() local
565 ArrayList<TargetDrawable> drawables = new ArrayList<TargetDrawable>(count); in loadDrawableArray()
[all …]

12345678910>>...16