Home
last modified time | relevance | path

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

1234

/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()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DGridSizeMigrationTaskTest.java82 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/
DAppDataUsagePreferenceController.java176 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/
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/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncPreferenceController.java99 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/
DAccountSyncPreferenceController.java109 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/
DAccountSyncPreferenceController.java109 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/
Dgeometry.c28 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/
DStopWatch.java54 final long total = stop - start; in stopAndLog() local
55 if (total < timeThresholdToLog) { in stopAndLog()
62 sb.append(total); in stopAndLog()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIOUtils.java53 long total = 0; in copy() local
57 total += r; in copy()
59 return total; in copy()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageItemPreference.java49 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/
DStorageItemPreference.java49 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/
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/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/Settings/src/com/android/settings/datausage/
DAppDataUsagePreference.java41 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/Car/Settings/src/com/android/car/settings/storage/
DStorageUsageBasePreferenceController.java92 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/
DAppDataUsagePreference.java41 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/
DGalleryBitmapPool.java117 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/
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/Dialer/java/com/android/voicemail/impl/
DVoicemailStatus.java76 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()

1234