/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/modules/DnsResolver/ |
D | DnsStats.cpp | 76 return std::tie(serverSockAddr, total, rcodeCounts, latencyUs) == in operator ==() 77 std::tie(o.serverSockAddr, o.total, o.rcodeCounts, o.latencyUs); in operator ==() 81 return (total == 0) ? 0 : duration_cast<milliseconds>(latencyUs).count() / total; in averageLatencyMs() 85 if (total == 0) return StringPrintf("%s <no data>", serverSockAddr.ip().toString().c_str()); in toString() 95 return StringPrintf("%s (%d, %dms, [%s], %ds)", serverSockAddr.ip().toString().c_str(), total, in toString() 119 mStatsData.total += 1; in updateStatsData() 123 mStatsData.total -= 1; in updateStatsData()
|
D | res_stats.cpp | 121 int total = successes + errors + timeouts + internal_errors; in res_stats_usable_server() local 123 << timeouts << " + I " << internal_errors << " = " << total in res_stats_usable_server() 125 if (total >= params->min_samples) { in res_stats_usable_server() 126 int success_rate = successes * 100 / total; in res_stats_usable_server()
|
/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()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | GridSizeMigrationTaskTest.java | 82 int total = 0; in verifyHotseat() local 95 total ++; in verifyHotseat() 106 assertEquals(total, c.getCount()); in verifyHotseat() 276 int total = 0; in verifyWorkspace() local 296 total++; in verifyWorkspace() 307 assertEquals(total, c.getCount()); in verifyWorkspace()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceController.java | 176 item.total = -1; in updateRestrictedState() 187 int percentTotal = largest != 0 ? (int) (items.get(i).total * 100 / largest) : 0; in sortAndAddPreferences() 214 item.total += entry.rxBytes + entry.txBytes; in accumulate() 215 return item.total; in accumulate() 231 if (item.restricted && item.total <= 0) { in AppDataUsagePreference() 234 CharSequence s = DataUsageUtils.bytesToIecUnits(context, item.total); in AppDataUsagePreference()
|
/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/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountSyncPreferenceController.java | 99 int total = 0; in getSummary() local 114 total++; in getSummary() 130 } else if (enabled == total) { in getSummary() 133 return getContext().getString(R.string.account_sync_summary_some_on, enabled, total); in getSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountSyncPreferenceController.java | 109 int total = 0; in updateSummary() local 120 total++; in updateSummary() 133 } else if (enabled == total) { in updateSummary() 137 mContext.getString(R.string.account_sync_summary_some_on, enabled, total)); in updateSummary()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountSyncPreferenceController.java | 109 int total = 0; in updateSummary() local 120 total++; in updateSummary() 133 } else if (enabled == total) { in updateSummary() 137 mContext.getString(R.string.account_sync_summary_some_on, enabled, total)); in updateSummary()
|
/packages/apps/Gallery2/jni/filters/ |
D | geometry.c | 28 int total = length * width; in flipVertical() local 31 int temp = total - width; in flipVertical() 32 for (i = 0; i < total; i += width) { in flipVertical() 43 int total = length * width; in flipHorizontal() local 47 for (i = 0; i < total; i+= width) { in flipHorizontal()
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | StopWatch.java | 54 final long total = stop - start; in stopAndLog() local 55 if (total < timeThresholdToLog) { in stopAndLog() 62 sb.append(total); in stopAndLog()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageItemPreference.java | 49 public void setStorageSize(long size, long total) { in setStorageSize() argument 56 if (total == 0) { in setStorageSize() 59 mProgressPercent = (int)(size * PROGRESS_MAX / total); in setStorageSize()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageItemPreference.java | 49 public void setStorageSize(long size, long total) { in setStorageSize() argument 56 if (total == 0) { in setStorageSize() 59 mProgressPercent = (int)(size * PROGRESS_MAX / total); in setStorageSize()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadNotifier.java | 290 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/Contacts/src/com/android/contacts/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/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 41 if (item.restricted && item.total <= 0) { in AppDataUsagePreference() 44 setSummary(DataUsageUtils.formatDataUsage(context, item.total)); in AppDataUsagePreference() 63 if (mItem.restricted && mItem.total <= 0) { in onBindViewHolder()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | IOUtils.java | 57 long total = 0; in copy() local 61 total += r; in copy() 63 return total; in copy()
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageUsageBasePreferenceController.java | 92 private void setStorageSize(long size, long total) { in setStorageSize() argument 100 if (total == 0) { in setStorageSize() 103 progressPercent = (int) (size * PROGRESS_MAX / total); in setStorageSize()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | AppDataUsagePreference.java | 41 if (item.restricted && item.total <= 0) { in AppDataUsagePreference() 44 setSummary(DataUsageUtils.formatDataUsage(context, item.total)); in AppDataUsagePreference() 63 if (mItem.restricted && mItem.total <= 0) { in onBindViewHolder()
|
/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/Dialer/java/com/android/voicemail/impl/ |
D | VoicemailStatus.java | 76 public Editor setQuota(int occupied, int total) { in setQuota() argument 78 && total == VoicemailContract.Status.QUOTA_UNAVAILABLE) { in setQuota() 83 values.put(Status.QUOTA_TOTAL, total); in setQuota()
|