OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mDownloadsInProgress
(Results
1 - 3
of
3
) sorted by null
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadHandler.java
32
private final HashMap<Long, DownloadInfo>
mDownloadsInProgress
=
55
while (
mDownloadsInProgress
.size() < mMaxConcurrentDownloadsAllowed && keys.hasNext()) {
60
mDownloadsInProgress
.put(id, mDownloadsQueue.get(id));
71
return mDownloadsQueue.containsKey(id) ||
mDownloadsInProgress
.containsKey(id);
75
mDownloadsInProgress
.remove(mId);
77
if (
mDownloadsInProgress
.size() == 0 && mDownloadsQueue.size() == 0) {
85
if (
mDownloadsInProgress
.size() == 0 && mDownloadsQueue.size() == 0) {
92
for (DownloadInfo info :
mDownloadsInProgress
.values()) {
/packages/apps/Email/tests/src/com/android/email/service/
AttachmentDownloadServiceTests.java
127
assertTrue(mDownloadSet.
mDownloadsInProgress
.containsKey(att1.mId));
129
assertEquals(1, mDownloadSet.
mDownloadsInProgress
.size());
134
assertEquals(0, mDownloadSet.
mDownloadsInProgress
.size());
141
assertTrue(mDownloadSet.
mDownloadsInProgress
.containsKey(att1.mId));
145
assertEquals(0, mDownloadSet.
mDownloadsInProgress
.size());
160
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()) {
416
for (DownloadRequest req:
mDownloadsInProgress
.values()) {
427
if (
mDownloadsInProgress
.isEmpty()) {
449
boolean alreadyInProgress =
mDownloadsInProgress
.get(req.attachmentId) != null;
466
return
mDownloadsInProgress
.get(attachmentId)
[
all
...]
Completed in 89 milliseconds