Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 76) sorted by relevance

1234

/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
DProviderPerfActivity.java345 int total = 0; in noOpProviderLoop() local
351 total++; in noOpProviderLoop()
356 (float) (total != 0 ? total : 1) / in noOpProviderLoop()
358 …Log.v(TAG, "dummy loop: fails=" + failures + "; total=" + total + "; goodavg ms=" + averageMillis); in noOpProviderLoop()
367 int total = 0; in callLoop() local
374 total++; in callLoop()
381 (float) (total != 0 ? total : 1) / in callLoop()
383 Log.v(TAG, "call loop: avg_ms=" + averageMillis + "; calls=" + total); in callLoop()
390 int total = 0; in procLoop() local
402 total++; in procLoop()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java157 int total = set.getMediaItemCount(); in expandMediaSet() local
161 while (index < total) { in expandMediaSet()
162 int count = index + batch < total in expandMediaSet()
164 : total - index; in expandMediaSet()
186 int total = getTotalCount(); in getSelected() local
187 for (int i = 0; i < total; i++) { in getSelected()
220 int total = getTotalCount(); in getSelected() local
222 while (index < total) { in getSelected()
223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); in getSelected()
DScrollBarView.java63 public void setContentPosition(int position, int total) { in setContentPosition() argument
64 if (position == mContentPosition && total == mContentTotal) { in setContentPosition()
71 mContentTotal = total; in setContentPosition()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSeparatedFolderListAdapter.java59 int total = 0; in getCount() local
61 total += adapter.getCount(); in getCount()
63 return total; in getCount()
69 int total = 0; in getViewTypeCount() local
71 total += adapter.getViewTypeCount(); in getViewTypeCount()
72 return total == 0 ? 1 : total; in getViewTypeCount()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSet.java111 int total = getMediaItemCount(); in getTotalMediaItemCount() local
113 total += getSubMediaSet(i).getTotalMediaItemCount(); in getTotalMediaItemCount()
115 return total; in getTotalMediaItemCount()
203 int total = getMediaItemCount(); in enumerateMediaItems() local
205 while (start < total) { in enumerateMediaItems()
206 int count = Math.min(MEDIAITEM_BATCH_FETCH_COUNT, total - start); in enumerateMediaItems()
214 return total; in enumerateMediaItems()
DFilterTypeSet.java99 final int total = mBaseSet.getMediaItemCount(); in updateData() local
100 final Path[] buf = new Path[total]; in updateData()
106 if (index < 0 || index >= total) return; in updateData()
113 for (int i = 0; i < total; i++) { in updateData()
DTimeClustering.java101 final int total = baseSet.getTotalMediaItemCount(); in run() local
102 final SmallItem[] buf = new SmallItem[total]; in run()
108 if (index < 0 || index >= total) return; in run()
119 ArrayList<SmallItem> items = new ArrayList<SmallItem>(total); in run()
120 for (int i = 0; i < total; i++) { in run()
DLocationClustering.java68 final int total = baseSet.getTotalMediaItemCount(); in run() local
69 final SmallItem[] buf = new SmallItem[total]; in run()
75 if (index < 0 || index >= total) return; in run()
88 for (int i = 0; i < total; i++) { in run()
/packages/services/Car/tools/io_analysis/
Dcheck_verity.py109 io, verity, total, blocks = get_average_and_std_dev(l)
111 verity[0], verity[1], verity[2], "total:", total[0], total[1], total[2]
112 return io, verity, total, blocks
116 io, verity, total, blocks = self.dump_list ("total,", self.reads)
/packages/apps/Gallery2/jni/filters/
Dgeometry.c27 int total = length * width; in flipVertical() local
30 int temp = total - width; in flipVertical()
31 for (i = 0; i < total; i += width) { in flipVertical()
41 int total = length * width; in flipHorizontal() local
45 for (i = 0; i < total; i+= width) { in flipHorizontal()
79 int total = length * width; in rotate90() local
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DLocalPhotoSource.java107 private int[] getExponentialIndice(int total, int count) { in getExponentialIndice() argument
109 if (count > total) count = total; in getExponentialIndice()
112 int row = (int)(-Math.log(random.nextDouble()) * total / 2); in getExponentialIndice()
113 if (row < total) selected.add(row); in getExponentialIndice()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DGridSizeMigrationTaskTest.java99 int total = 0; in verifyHotseat() local
112 total ++; in verifyHotseat()
123 assertEquals(total, c.getCount()); in verifyHotseat()
326 int total = 0; in verifyWorkspace() local
345 total++; in verifyWorkspace()
356 assertEquals(total, c.getCount()); in verifyWorkspace()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java290 long total = 0; in updateWithLocked() local
302 total += totalBytes; in updateWithLocked()
308 if (total > 0) { in updateWithLocked()
310 NumberFormat.getPercentInstance().format((double) current / total); in updateWithLocked()
313 final long remainingMillis = ((total - current) * 1000) / speed; in updateWithLocked()
318 final int percent = (int) ((current * 100) / total); in updateWithLocked()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java647 int total = getFolderItemsCount(entry.id);
648 if (total == 0) {
651 entry.weight = WT_FOLDER_FACTOR * total;
747 int total = getFolderItemsCount(entry.id);
748 if (total == 0) {
751 entry.weight = WT_FOLDER_FACTOR * total;
778 int total = 0;
782 total++;
788 return total;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageItemPreference.java47 public void setStorageSize(long size, long total) { in setStorageSize() argument
54 if (total == 0) { in setStorageSize()
57 mProgressPercent = (int)(size * PROGRESS_MAX / total); in setStorageSize()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DStopWatch.java59 final long total = stop - start; in stopAndLog() local
60 if (total < timeThresholdToLog) { in stopAndLog()
67 sb.append(total); in stopAndLog()
/packages/apps/Contacts/src/com/android/contacts/util/
DStopWatch.java65 final long total = stop - start; in stopAndLog() local
66 if (total < timeThresholdToLog) return; in stopAndLog()
71 sb.append(total); in stopAndLog()
/packages/apps/Gallery2/src/com/android/photos/data/
DGalleryBitmapPool.java117 int total = 0; in getSize() local
119 total += p.getSize(); in getSize()
121 return total; in getSize()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailStatus.java75 public Editor setQuota(int occupied, int total) { in setQuota() argument
77 && total == VoicemailContract.Status.QUOTA_UNAVAILABLE) { in setQuota()
82 mValues.put(Status.QUOTA_TOTAL, total); in setQuota()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DImportTask.java77 int total = mObjectsToImport.size(); in run() local
78 mListener.onImportProgress(visited, total, null); in run()
94 mListener.onImportProgress(visited, total, importedPath); in run()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsagePreference.java42 if (item.restricted && item.total <= 0) { in AppDataUsagePreference()
45 setSummary(Formatter.formatFileSize(context, item.total)); in AppDataUsagePreference()
59 if (mItem.restricted && mItem.total <= 0) { in onBindViewHolder()
DDataUsageList.java379 item.total = -1; in bindStats()
389 final int percentTotal = largest != 0 ? (int) (items.get(i).total * 100 / largest) : 0; in bindStats()
432 item.total += entry.rxBytes + entry.txBytes; in accumulate()
433 return Math.max(largest, item.total); in accumulate()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCapabilitiesCache.java189 int total = 0; in getNextRequest() local
192 total++; in getNextRequest()
199 if (total >= mMaxConcurrent) return null; in getNextRequest()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageFragment.java223 long total = 0; in totalValues() local
227 total += map.get(key); in totalValues()
235 return total; in totalValues()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVCardTest.java45 int total = composer.getCount(); in testCompose() local
46 assertEquals(1, total); in testCompose()

1234