/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 | 56 int total = 0; in getCount() local 58 total += adapter.getCount(); in getCount() 60 return total; in getCount() 66 int total = 0; in getViewTypeCount() local 68 total += adapter.getViewTypeCount(); in getViewTypeCount() 69 return 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/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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadNotifier.java | 207 long total = 0; in updateWithLocked() local 213 total += info.mTotalBytes; in updateWithLocked() 219 if (total > 0) { in updateWithLocked() 220 final int percent = (int) ((current * 100) / total); in updateWithLocked() 224 final long remainingMillis = ((total - current) * 1000) / speed; in updateWithLocked()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | PieChartView.java | 140 long total = 0; in generatePath() local 145 total += slice.value; in generatePath() 153 if (total == 0) { in generatePath() 172 final int sweepAngle = (int) (slice.value * 360 / total); in generatePath()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DataUsageSummary.java | 1431 public long total; field in DataUsageSummary.AppItem 1440 total = parcel.readLong(); in AppItem() 1451 dest.writeLong(total); in writeToParcel() 1461 return Long.compare(another.total, total); in compareTo() 1528 item.total += entry.rxBytes + entry.txBytes; in bindStats() 1538 item.total = -1; in bindStats() 1546 mLargest = (mItems.size() > 0) ? mItems.get(0).total : 0; in bindStats() 1586 if (item.restricted && item.total <= 0) { in getView() 1590 text1.setText(Formatter.formatFileSize(context, item.total)); in getView() 1594 final int percentTotal = mLargest != 0 ? (int) (item.total * 100 / mLargest) : 0; in getView()
|
/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/gallery3d/ingest/ |
D | ImportTask.java | 67 int total = mObjectsToImport.size(); in run() local 68 mListener.onImportProgress(visited, total, null); in run() 84 mListener.onImportProgress(visited, total, importedPath); in run()
|
/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/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 | 159 final int total = composer.getCount(); in runInternal() local 160 if (total == 0) { in runInternal() 190 doProgressNotification(uri, total, current); in runInternal()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
D | MockUiProvider.java | 278 String name, int unread, int total) { in createFolderDetailsMap() argument 279 return createFolderDetailsMap(folderId, accountId, name, false, unread, total); in createFolderDetailsMap() 283 String name, boolean hasChildren, int unread, int total) { in createFolderDetailsMap() argument 299 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/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 | 307 long total = 0; in totalValues() local 310 total += map.get(key); in totalValues() 313 return total; in totalValues()
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | GalParser.java | 53 return mGalResult.total > 0; in parse() 136 galResult.total = getValueInt(); in parseStore()
|
/packages/apps/Email/tests/src/com/android/email/service/ |
D | AttachmentDownloadServiceTests.java | 181 private void setTotalAndUsableSpace(long total, long usable) { in setTotalAndUsableSpace() argument 182 mTotalSpace = total; in setTotalAndUsableSpace()
|