Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DThreadPool.java214 private boolean acquireResource(ResourceCounter counter) { in acquireResource() argument
221 mWaitOnResource = counter; in acquireResource()
224 synchronized (counter) { in acquireResource()
225 if (counter.value > 0) { in acquireResource()
226 counter.value--; in acquireResource()
230 counter.wait(); in acquireResource()
245 private void releaseResource(ResourceCounter counter) { in releaseResource() argument
246 synchronized (counter) { in releaseResource()
247 counter.value++; in releaseResource()
248 counter.notifyAll(); in releaseResource()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DNfcImportVCardActivity.java89 VCardEntryCounter counter = null; in createImportRequest() local
97 counter = new VCardEntryCounter(); in createImportRequest()
99 parser.addInterpreter(counter); in createImportRequest()
107 counter = new VCardEntryCounter(); in createImportRequest()
109 parser.addInterpreter(counter); in createImportRequest()
135 detector.getEstimatedCharset(), vcardVersion, counter.getCount()); in createImportRequest()
DImportVCardActivity.java442 VCardEntryCounter counter = null; in constructImportRequest() local
455 counter = new VCardEntryCounter(); in constructImportRequest()
457 mVCardParser.addInterpreter(counter); in constructImportRequest()
474 counter = new VCardEntryCounter(); in constructImportRequest()
476 mVCardParser.addInterpreter(counter); in constructImportRequest()
501 vcardVersion, counter.getCount()); in constructImportRequest()
/packages/apps/Music/src/com/android/music/
DPlaylistBrowserActivity.java526 Cursor counter = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in mergedCursor() local
528 if (counter != null) { in mergedCursor()
529 counter.moveToFirst(); in mergedCursor()
530 int numpodcasts = counter.getInt(0); in mergedCursor()
531 counter.close(); in mergedCursor()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageMeasurement.java504 long counter = 0; in measureSizesOfMisc() local
512 mFileInfoForMisc.add(new FileInfo(path, fileSize, counter++)); in measureSizesOfMisc()
516 mFileInfoForMisc.add(new FileInfo(path, dirSize, counter++)); in measureSizesOfMisc()