OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mDownloadsInProgress
(Results
1 - 2
of
2
) sorted by null
/packages/apps/Email/tests/src/com/android/email/service/
AttachmentDownloadServiceTests.java
126
assertTrue(mDownloadSet.
mDownloadsInProgress
.containsKey(att1.mId));
128
assertEquals(1, mDownloadSet.
mDownloadsInProgress
.size());
133
assertEquals(0, mDownloadSet.
mDownloadsInProgress
.size());
140
assertTrue(mDownloadSet.
mDownloadsInProgress
.containsKey(att1.mId));
144
assertEquals(0, mDownloadSet.
mDownloadsInProgress
.size());
159
assertTrue(mDownloadSet.
mDownloadsInProgress
.containsKey(att4.mId));
/packages/apps/Email/src/com/android/email/service/
AttachmentDownloadService.java
246
/*package*/ final ConcurrentHashMap<Long, DownloadRequest>
mDownloadsInProgress
=
273
if (
mDownloadsInProgress
.containsKey(att.mId)) return;
308
return super.isEmpty() &&
mDownloadsInProgress
.isEmpty();
323
(
mDownloadsInProgress
.size() < MAX_SIMULTANEOUS_DOWNLOADS)) {
348
int backgroundDownloads = MAX_SIMULTANEOUS_DOWNLOADS -
mDownloadsInProgress
.size();
400
for (DownloadRequest req:
mDownloadsInProgress
.values()) {
418
for (DownloadRequest req:
mDownloadsInProgress
.values()) {
433
if (!
mDownloadsInProgress
.isEmpty()) {
452
boolean alreadyInProgress =
mDownloadsInProgress
.get(req.attachmentId) != null;
469
return
mDownloadsInProgress
.get(attachmentId)
[
all
...]
Completed in 1143 milliseconds