Searched refs:counter (Results 1 – 5 of 5) sorted by relevance
214 private boolean acquireResource(ResourceCounter counter) { in acquireResource() argument221 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() argument246 synchronized (counter) { in releaseResource()247 counter.value++; in releaseResource()248 counter.notifyAll(); in releaseResource()
89 VCardEntryCounter counter = null; in createImportRequest() local97 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()
442 VCardEntryCounter counter = null; in constructImportRequest() local455 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()
526 Cursor counter = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in mergedCursor() local528 if (counter != null) { in mergedCursor()529 counter.moveToFirst(); in mergedCursor()530 int numpodcasts = counter.getInt(0); in mergedCursor()531 counter.close(); in mergedCursor()
504 long counter = 0; in measureSizesOfMisc() local512 mFileInfoForMisc.add(new FileInfo(path, fileSize, counter++)); in measureSizesOfMisc()516 mFileInfoForMisc.add(new FileInfo(path, dirSize, counter++)); in measureSizesOfMisc()