Searched refs:total (Results 1 - 25 of 37) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DSeparatedFolderListAdapter.java55 // total together all sections, plus one for each section header
56 int total = 0;
58 total += adapter.getCount();
60 return total;
65 // assume that headers count as one, then total all sections
66 int total = 0;
68 total += adapter.getViewTypeCount();
69 return total;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DVCardTest.java45 int total = composer.getCount();
46 assertEquals(1, total);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DScrollBarView.java61 // The content position is between 0 to "total". The current position is
63 public void setContentPosition(int position, int total) { argument
64 if (position == mContentPosition && total == mContentTotal) {
71 mContentTotal = total;
H A DSelectionManager.java157 int total = set.getMediaItemCount();
161 while (index < total) {
162 int count = index + batch < total
164 : total - index;
186 int total = getTotalCount();
187 for (int i = 0; i < total; i++) {
220 int total = getTotalCount();
222 while (index < total) {
223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT);
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DVoiceDialerTester.java225 int total = 0;
235 total++;
246 countString(count11, total),
247 countString(count1N, total),
248 countString(countMN, total),
249 countString(count0N, total),
250 countString(countFail, total),
251 countString(countErrors, total),
252 "" + total,
257 private static String countString(int count, int total) { argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DStopWatch.java56 * Stop it and log the result, if the total time >= {@code timeThresholdToLog}.
65 final long total = stop - start;
66 if (total < timeThresholdToLog) return;
71 sb.append(total);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DFilterTypeSet.java99 final int total = mBaseSet.getMediaItemCount();
100 final Path[] buf = new Path[total];
106 if (index < 0 || index >= total) return;
113 for (int i = 0; i < total; i++) {
H A DMediaSet.java111 int total = getMediaItemCount();
113 total += getSubMediaSet(i).getTotalMediaItemCount();
115 return total;
203 int total = getMediaItemCount();
205 while (start < total) {
206 int count = Math.min(MEDIAITEM_BATCH_FETCH_COUNT, total - start);
214 return total;
H A DLocationClustering.java39 // If the total distance change is less than this ratio, stop iterating.
69 final int total = baseSet.getTotalMediaItemCount();
70 final SmallItem[] buf = new SmallItem[total];
76 if (index < 0 || index >= total) return;
89 for (int i = 0; i < total; i++) {
H A DTimeClustering.java101 final int total = baseSet.getTotalMediaItemCount();
102 final SmallItem[] buf = new SmallItem[total];
108 if (index < 0 || index >= total) return;
119 ArrayList<SmallItem> items = new ArrayList<SmallItem>(total);
120 for (int i = 0; i < total; i++) {
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
H A DImportTask.java67 int total = mObjectsToImport.size();
68 mListener.onImportProgress(visited, total, null);
84 mListener.onImportProgress(visited, total, importedPath);
/packages/apps/Gallery2/src/com/android/photos/data/
H A DGalleryBitmapPool.java111 * @return Approximate total size in bytes of the bitmaps stored in the pool.
117 int total = 0;
119 total += p.getSize();
121 return total;
/packages/apps/Gallery2/jni/filters/
H A Dgeometry.c25 int total = length * width; local
28 int temp = total - width;
29 for (i = 0; i < total; i += width) {
39 int total = length * width; local
43 for (i = 0; i < total; i+= width) {
77 int total = length * width; local
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DLocalPhotoSource.java107 private int[] getExponentialIndice(int total, int count) { argument
109 if (count > total) count = total;
112 int row = (int)(-Math.log(random.nextDouble()) * total / 2);
113 if (row < total) selected.add(row);
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
H A DProviderPerfActivity.java345 int total = 0;
351 total++;
356 (float) (total != 0 ? total : 1) /
358 Log.v(TAG, "dummy loop: fails=" + failures + "; total=" + total + "; goodavg ms=" + averageMillis);
367 int total = 0;
374 total++;
381 (float) (total != 0 ? total
[all...]
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DGalParser.java53 return mGalResult.total > 0;
136 galResult.total = getValueInt();
/packages/apps/Exchange/src/com/android/exchange/provider/
H A DGalResult.java28 public int total; field in class:GalResult
/packages/apps/Settings/src/com/android/settings/widget/
H A DPieChartView.java140 long total = 0;
145 total += slice.value;
153 if (total == 0) {
172 final int sweepAngle = (int) (slice.value * 360 / total);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadNotifier.java207 long total = 0;
213 total += info.mTotalBytes;
219 if (total > 0) {
220 final int percent = (int) ((current * 100) / total);
224 final long remainingMillis = ((total - current) * 1000) / speed;
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
H A DExportProcessor.java159 final int total = composer.getCount();
160 if (total == 0) {
190 doProgressNotification(uri, total, current);
/packages/apps/Email/tests/src/com/android/email/service/
H A DAttachmentDownloadServiceTests.java163 * A mock file directory containing a single (Mock)File. The total space, usable space, and
180 private void setTotalAndUsableSpace(long total, long usable) { argument
181 mTotalSpace = total;
239 // Mock storage @ 100 total and 26 available
242 // Mock 2 accounts in total
252 // Mock storage @ 100 total and 50 available
272 // Mock storage @ 100 total and 26 available
275 // Mock 2 accounts in total
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoSource.java275 protected int pickRandomStart(int total, int max) { argument
276 if (max >= total) {
279 return (mRNG.nextInt() % (total - max)) - 1;
/packages/apps/Browser/src/com/android/browser/
H A DNavTabScroller.java556 int total = v.getMeasuredWidth() + getMeasuredWidth();
557 setMeasuredDimension(total, getMeasuredHeight());
559 int total = v.getMeasuredHeight() + getMeasuredHeight();
560 setMeasuredDimension(getMeasuredWidth(), total);
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageVolumePreferenceCategory.java309 long total = 0;
312 total += map.get(key);
315 return total;
/packages/apps/Dialer/tests/src/com/android/dialer/
H A DCallDetailActivityTest.java285 int total = 0;
287 total += bytesRead;

Completed in 573 milliseconds

12