Home
last modified time | relevance | path

Searched refs:req (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Email/provider_src/com/android/email/service/
DAttachmentService.java240 final DownloadRequest req = (DownloadRequest)object; in equals()
241 return req.mAttachmentId == mAttachmentId; in equals()
471 for (DownloadRequest req: inProgressRequests) { in watchdogAlarm()
472 debugTrace("Checking in-progress request with id: %d", req.mAttachmentId); in watchdogAlarm()
473 final boolean shouldCancelDownload = validateDownloadRequest(req, callbackTimeout, in watchdogAlarm()
476 LogUtils.w(LOG_TAG, "Cancelling DownloadRequest #%d", req.mAttachmentId); in watchdogAlarm()
477 service.cancelDownload(req); in watchdogAlarm()
530 final DownloadRequest req = mDownloadsInProgress.get(attachmentId); in loadAttachmentStatus() local
531 if (req != null) { in loadAttachmentStatus()
534 req.mLastStatusCode, statusCode); in loadAttachmentStatus()
[all …]
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java162 final LoadRequest req = (LoadRequest) msg.obj; in handleMessage() local
165 if (req.src == null) { in handleMessage()
175 req.result = new DrawableTileSource(this, in handleMessage()
180 req.src.loadInBackground(new InBitmapProvider() { in handleMessage()
217 req.result = new BitmapRegionTileSource(WallpaperCropActivity.this, req.src, in handleMessage()
219 loadSuccess = req.src.getLoadingState() == BitmapSource.State.LOADED; in handleMessage()
226 if (req == mCurrentLoadRequest) { in handleMessage()
227 onLoadRequestComplete(req, loadSuccess); in handleMessage()
229 addReusableBitmap(req.result); in handleMessage()
267 protected void onLoadRequestComplete(LoadRequest req, boolean success) { in onLoadRequestComplete() argument
[all …]
DWallpaperPickerActivity.java115 protected void onLoadRequestComplete(LoadRequest req, boolean success) { in onLoadRequestComplete() argument
116 super.onLoadRequestComplete(req, success); in onLoadRequestComplete()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java106 for (ScanRequest req : mPending.values()) { in hasPendingScans()
107 if (nowRealtime < req.requestRealtime + SCAN_TIMEOUT) { in hasPendingScans()
122 public void requestScan(ScanRequest req) { in requestScan() argument
123 if (LOGV) Log.v(TAG, "requestScan() for " + req.path); in requestScan()
125 mPending.put(req.path, req); in requestScan()
128 req.exec(mConnection); in requestScan()
142 for (ScanRequest req : mPending.values()) { in onMediaScannerConnected()
143 req.exec(mConnection); in onMediaScannerConnected()
150 final ScanRequest req; in onScanCompleted() local
152 req = mPending.remove(path); in onScanCompleted()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java442 public boolean lookup(LookupRequest req) throws IOException { in lookup() argument
444 if (lookupInternal(req.key, mActiveHashStart)) { in lookup()
445 if (getBlob(mActiveDataFile, mFileOffset, req)) { in lookup()
456 if (lookupInternal(req.key, mInactiveHashStart)) { in lookup()
457 if (getBlob(mInactiveDataFile, mFileOffset, req)) { in lookup()
460 if (mActiveBytes + BLOB_HEADER_SIZE + req.length > mMaxBytes in lookup()
467 insertInternal(req.key, req.buffer, req.length); in lookup()
489 LookupRequest req) throws IOException { in getBlob() argument
502 if (blobKey != req.key) { in getBlob()
517 if (req.buffer == null || req.buffer.length < length) { in getBlob()
[all …]
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java322 UsbRequest req = mUsbConnection.requestWait(); in drainRequests() local
323 if (req == null) { in drainRequests()
327 req.close(); in drainRequests()
348 UsbRequest req = mUsbConnection.requestWait(); in writeBufferSize() local
349 if (req == null) { in writeBufferSize()
353 req.close(); in writeBufferSize()
395 UsbRequest req = mUsbConnection.requestWait(); in run() local
396 if (req == null) { in run()
400 req.close(); in run()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java469 RecordedRequest req; in testEtagChanged() local
474 req = takeRequest(); in testEtagChanged()
475 assertNull(getHeaderValue(req, "Range")); in testEtagChanged()
476 assertNull(getHeaderValue(req, "If-Match")); in testEtagChanged()
482 req = takeRequest(); in testEtagChanged()
483 assertEquals("bytes=2-", getHeaderValue(req, "Range")); in testEtagChanged()
484 assertEquals(A, getHeaderValue(req, "If-Match")); in testEtagChanged()
778 private static String getHeaderValue(RecordedRequest req, String header) { in getHeaderValue() argument
780 for (String h : req.getHeaders()) { in getHeaderValue()
DStorageTest.java230 final DownloadManager.Request req = getRequest(); in prepareAndRunDownload() local
232 req.setDestinationToSystemCache(); in prepareAndRunDownload()
234 final Download download = enqueueRequest(req); in prepareAndRunDownload()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientPhotoManager.java69 final BindableMediaRequest<ImageResource> req = descriptor.buildAsyncMediaRequest( in populatePhotoBytesAsync()
90 req.bind(IMAGE_BYTES_REQUEST_STATIC_BINDING_ID); in populatePhotoBytesAsync()
92 Factory.get().getMediaResourceManager().requestMediaResourceAsync(req); in populatePhotoBytesAsync()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java2483 final SendReq req = new SendReq();
2487 req.setFrom(new EncodedStringValue(lineNumber));
2492 req.setTo(encodedNumbers);
2496 req.setSubject(new EncodedStringValue(message.getMmsSubject()));
2499 req.setDate(timestampMillis / 1000L);
2502 req.setBody(bodyInfo.mPduBody);
2504 req.setMessageSize(bodyInfo.mMessageSize);
2506 req.setMessageClass(PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes());
2508 req.setExpiry(expiryTime);
2510 req.setPriority(priority);
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java1074 MediaThumbRequest req = requestMediaThumbnail(path, origUri, in waitForThumbnailReady() local
1076 if (req != null) { in waitForThumbnailReady()
1077 synchronized (req) { in waitForThumbnailReady()
1079 while (req.mState == MediaThumbRequest.State.WAIT) { in waitForThumbnailReady()
1080 req.wait(); in waitForThumbnailReady()
1085 if (req.mState == MediaThumbRequest.State.DONE) { in waitForThumbnailReady()
1097 private boolean matchThumbRequest(MediaThumbRequest req, int pid, long id, long gid, in matchThumbRequest() argument
1101 return (req.mCallingPid == pid) && in matchThumbRequest()
1102 (cancelAllGroupId || req.mGroupId == gid) && in matchThumbRequest()
1103 (cancelAllOrigId || req.mOrigId == id) && in matchThumbRequest()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java259 public void onDisconnect(final HeaderSet req, final HeaderSet resp) { in onDisconnect() argument
261 if (V) logHeader(req); in onDisconnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DTestActivity.java532 public void onDisconnect(HeaderSet req, HeaderSet resp) { in onDisconnect() argument
DBluetoothOppObexServerSession.java580 public void onDisconnect(HeaderSet req, HeaderSet resp) { in onDisconnect() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java380 public void onDisconnect(final HeaderSet req, final HeaderSet resp) { in onDisconnect() argument
382 if (V) logHeader(req); in onDisconnect()