/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | SeparatedFolderListAdapter.java | 55 // 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 D | VCardTest.java | 45 int total = composer.getCount(); 46 assertEquals(1, total);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | ScrollBarView.java | 61 // 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 D | SelectionManager.java | 157 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 D | VoiceDialerTester.java | 225 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 D | StopWatch.java | 56 * 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 D | FilterTypeSet.java | 99 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 D | MediaSet.java | 111 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 D | LocationClustering.java | 39 // 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 D | TimeClustering.java | 101 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 D | ImportTask.java | 67 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 D | GalleryBitmapPool.java | 111 * @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 D | geometry.c | 25 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 D | LocalPhotoSource.java | 107 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 D | ProviderPerfActivity.java | 345 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 D | GalParser.java | 53 return mGalResult.total > 0; 136 galResult.total = getValueInt();
|
/packages/apps/Exchange/src/com/android/exchange/provider/ |
H A D | GalResult.java | 28 public int total; field in class:GalResult
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | PieChartView.java | 140 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 D | DownloadNotifier.java | 207 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 D | ExportProcessor.java | 159 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 D | AttachmentDownloadServiceTests.java | 164 * A mock file directory containing a single (Mock)File. The total space, usable space, and 181 private void setTotalAndUsableSpace(long total, long usable) { argument 182 mTotalSpace = total; 240 // Mock storage @ 100 total and 26 available 243 // Mock 2 accounts in total 253 // Mock storage @ 100 total and 50 available 273 // Mock storage @ 100 total and 26 available 276 // Mock 2 accounts in total
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoSource.java | 275 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 D | NavTabScroller.java | 556 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 D | StorageVolumePreferenceCategory.java | 307 long total = 0; 310 total += map.get(key); 313 return total;
|
/packages/apps/Dialer/tests/src/com/android/dialer/ |
H A D | CallDetailActivityTest.java | 285 int total = 0; 287 total += bytesRead;
|