/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
D | ProviderPerfActivity.java | 345 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/VoiceDialer/src/com/android/voicedialer/ |
D | VoiceDialerTester.java | 225 int total = 0; in reportSummary() local 235 total++; in reportSummary() 246 countString(count11, total), in reportSummary() 247 countString(count1N, total), in reportSummary() 248 countString(countMN, total), in reportSummary() 249 countString(count0N, total), in reportSummary() 250 countString(countFail, total), in reportSummary() 251 countString(countErrors, total), in reportSummary() 252 "" + total, in reportSummary() 257 private static String countString(int count, int total) { in countString() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 157 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()
|
D | ScrollBarView.java | 63 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/ |
D | SeparatedFolderListAdapter.java | 59 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/ |
D | MediaSet.java | 111 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()
|
D | FilterTypeSet.java | 99 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()
|
D | TimeClustering.java | 101 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()
|
D | LocationClustering.java | 69 final int total = baseSet.getTotalMediaItemCount(); in run() local 70 final SmallItem[] buf = new SmallItem[total]; in run() 76 if (index < 0 || index >= total) return; in run() 89 for (int i = 0; i < total; i++) { in run()
|
/packages/apps/Gallery2/jni/filters/ |
D | geometry.c | 25 int total = length * width; in flipVertical() local 28 int temp = total - width; in flipVertical() 29 for (i = 0; i < total; i += width) { in flipVertical() 39 int total = length * width; in flipHorizontal() local 43 for (i = 0; i < total; i+= width) { in flipHorizontal() 77 int total = length * width; in rotate90() local
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadNotifier.java | 210 long total = 0; in updateWithLocked() local 216 total += info.mTotalBytes; in updateWithLocked() 222 if (total > 0) { in updateWithLocked() 224 NumberFormat.getPercentInstance().format((double) current / total); in updateWithLocked() 227 final long remainingMillis = ((total - current) * 1000) / speed; in updateWithLocked() 232 final int percent = (int) ((current * 100) / total); in updateWithLocked()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | LocalPhotoSource.java | 107 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/Settings/src/com/android/settings/ |
D | DataUsageSummary.java | 1605 public long total; field in DataUsageSummary.AppItem 1618 total = parcel.readLong(); in AppItem() 1629 dest.writeLong(total); in writeToParcel() 1641 comparison = Long.compare(another.total, total); in compareTo() 1742 item.total = -1; in bindStats() 1780 item.total += entry.rxBytes + entry.txBytes; in accumulate() 1781 if (mLargest < item.total) { in accumulate() 1782 mLargest = item.total; in accumulate() 1866 if (item.restricted && item.total <= 0) { in getView() 1870 text1.setText(Formatter.formatFileSize(context, item.total)); in getView() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | StopWatch.java | 65 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/ |
D | GalleryBitmapPool.java | 117 int total = 0; in getSize() local 119 total += p.getSize(); in getSize() 121 return total; in getSize()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | ImportTask.java | 77 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/Browser/src/com/android/browser/ |
D | NavTabScroller.java | 556 int total = v.getMeasuredWidth() + getMeasuredWidth(); in onMeasure() local 557 setMeasuredDimension(total, getMeasuredHeight()); in onMeasure() 559 int total = v.getMeasuredHeight() + getMeasuredHeight(); in onMeasure() local 560 setMeasuredDimension(getMeasuredWidth(), total); in onMeasure() local
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | ExportProcessor.java | 157 final int total = composer.getCount(); in runInternal() local 158 if (total == 0) { in runInternal() 188 doProgressNotification(uri, total, current); in runInternal()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | StorageActivity.java | 196 long total = 0; in totalValues() local 198 total += map.get(key); in totalValues() 200 return total; in totalValues()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
D | MockUiProvider.java | 277 String name, int unread, int total) { in createFolderDetailsMap() argument 278 return createFolderDetailsMap(folderId, accountId, name, false, unread, total); in createFolderDetailsMap() 282 String name, boolean hasChildren, int unread, int total) { in createFolderDetailsMap() argument 294 folderMap.put(FolderColumns.TOTAL_COUNT, total); in createFolderDetailsMap()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoSource.java | 275 protected int pickRandomStart(int total, int max) { in pickRandomStart() argument 276 if (max >= total) { in pickRandomStart() 279 return (mRNG.nextInt() % (total - max)) - 1; in pickRandomStart()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/ |
D | StorageResetActivity.java | 338 long total = 0; in totalValues() local 341 total += map.get(key); in totalValues() 344 return total; in totalValues()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | VCardTest.java | 45 int total = composer.getCount(); in testCompose() local 46 assertEquals(1, total); in testCompose()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreferenceCategory.java | 311 long total = 0; in totalValues() local 314 total += map.get(key); in totalValues() 317 return total; in totalValues()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WidgetPreviewLoader.java | 742 int total = 0; 776 total++; 781 if (total % SAMPLE_RATE == 0) {
|