Searched refs:req (Results 1 - 18 of 18) sorted by relevance

/packages/apps/Email/provider_src/com/android/email/service/
H A DAttachmentService.java240 final DownloadRequest req = (DownloadRequest)object;
241 return req.mAttachmentId == mAttachmentId;
471 for (DownloadRequest req: inProgressRequests) {
472 debugTrace("Checking in-progress request with id: %d", req.mAttachmentId);
473 final boolean shouldCancelDownload = validateDownloadRequest(req, callbackTimeout,
476 LogUtils.w(LOG_TAG, "Cancelling DownloadRequest #%d", req.mAttachmentId);
477 service.cancelDownload(req);
530 final DownloadRequest req = mDownloadsInProgress.get(attachmentId);
531 if (req != null) {
534 req
978 tryStartDownload(final DownloadRequest req) argument
1007 startDownload(final EmailServiceProxy service, final DownloadRequest req) argument
1018 cancelDownload(final DownloadRequest req) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DBluetoothPbapClient.java405 BluetoothPbapRequest req = (BluetoothPbapRequest) msg.obj;
407 if (req instanceof BluetoothPbapRequestPullPhoneBookSize) {
409 } else if (req instanceof BluetoothPbapRequestPullVcardListingSize) {
411 } else if (req instanceof BluetoothPbapRequestPullPhoneBook) {
413 } else if (req instanceof BluetoothPbapRequestPullVcardListing) {
415 } else if (req instanceof BluetoothPbapRequestPullVcardEntry) {
417 } else if (req instanceof BluetoothPbapRequestSetPath) {
426 BluetoothPbapRequest req = (BluetoothPbapRequest) msg.obj;
428 if (req instanceof BluetoothPbapRequestPullPhoneBookSize) {
429 int size = ((BluetoothPbapRequestPullPhoneBookSize) req)
[all...]
H A DBluetoothPbapObexSession.java192 private void executeRequest(BluetoothPbapRequest req) { argument
194 req.execute(mClientSession);
200 if (req.isSuccess()) {
201 mSessionHandler.obtainMessage(OBEX_SESSION_REQUEST_COMPLETED, req).sendToTarget();
203 mSessionHandler.obtainMessage(OBEX_SESSION_REQUEST_FAILED, req).sendToTarget();
H A DPbapPCEClient.java384 PullRequest req = (PullRequest) msg.obj;
385 req.onPullComplete();
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadScanner.java106 for (ScanRequest req : mPending.values()) {
107 if (nowRealtime < req.requestRealtime + SCAN_TIMEOUT) {
122 public void requestScan(ScanRequest req) { argument
123 if (LOGV) Log.v(TAG, "requestScan() for " + req.path);
125 mPending.put(req.path, req);
128 req.exec(mConnection);
142 for (ScanRequest req : mPending.values()) {
143 req.exec(mConnection);
150 final ScanRequest req;
[all...]
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DWallpaperCropActivity.java162 final LoadRequest req = (LoadRequest) msg.obj;
165 if (req.src == null) {
175 req.result = new DrawableTileSource(this,
180 req.src.loadInBackground(new InBitmapProvider() {
217 req.result = new BitmapRegionTileSource(WallpaperCropActivity.this, req.src,
219 loadSuccess = req.src.getLoadingState() == BitmapSource.State.LOADED;
226 if (req == mCurrentLoadRequest) {
227 onLoadRequestComplete(req, loadSuccess);
229 addReusableBitmap(req
267 onLoadRequestComplete(LoadRequest req, boolean success) argument
[all...]
H A DWallpaperPickerActivity.java115 protected void onLoadRequestComplete(LoadRequest req, boolean success) { argument
116 super.onLoadRequestComplete(req, success);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBlobCache.java60 // public void lookup(LookupRequest req) throws IOException;
433 // The blob is stored in the buffer pointed by req.buffer, and the length
434 // is in stored in the req.length variable.
436 // The user can input a non-null value in req.buffer, and this method will
438 // will allocate a new buffer and assign it to req.buffer.
442 public boolean lookup(LookupRequest req) throws IOException { argument
444 if (lookupInternal(req.key, mActiveHashStart)) {
445 if (getBlob(mActiveDataFile, mFileOffset, req)) {
456 if (lookupInternal(req.key, mInactiveHashStart)) {
457 if (getBlob(mInactiveDataFile, mFileOffset, req)) {
488 getBlob(RandomAccessFile file, int offset, LookupRequest req) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
H A DContactRecipientPhotoManager.java69 final BindableMediaRequest<ImageResource> req = descriptor.buildAsyncMediaRequest(
90 req.bind(IMAGE_BYTES_REQUEST_STATIC_BINDING_ID);
92 Factory.get().getMediaResourceManager().requestMediaResourceAsync(req);
/packages/apps/Dialer/src/com/android/dialer/contactinfo/
H A DContactInfoCache.java70 ContactInfoRequest req = null;
73 req = mRequests.removeFirst();
77 if (req != null) {
79 needRedraw |= queryContactInfo(req.number, req.countryIso, req.callLogInfo);
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DStorageTest.java230 final DownloadManager.Request req = getRequest();
232 req.setDestinationToSystemCache();
234 final Download download = enqueueRequest(req);
H A DPublicApiFunctionalTest.java469 RecordedRequest req;
474 req = takeRequest();
475 assertNull(getHeaderValue(req, "Range"));
476 assertNull(getHeaderValue(req, "If-Match"));
482 req = takeRequest();
483 assertEquals("bytes=2-", getHeaderValue(req, "Range"));
484 assertEquals(A, getHeaderValue(req, "If-Match"));
778 private static String getHeaderValue(RecordedRequest req, String header) { argument
780 for (String h : req.getHeaders()) {
/packages/apps/Messaging/src/com/android/messaging/sms/
H A DMmsUtils.java2413 * @return Both the M-Send.req and the M-Send.conf for processing in the caller
2472 * Create M-Send.req for the MMS message to be sent.
2474 * @return the M-Send.req
2483 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
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java2117 MediaThumbRequest req = requestMediaThumbnail(path, origUri,
2119 if (req != null) {
2120 synchronized (req) {
2122 while (req.mState == MediaThumbRequest.State.WAIT) {
2123 req.wait();
2128 if (req.mState == MediaThumbRequest.State.DONE) {
2140 private boolean matchThumbRequest(MediaThumbRequest req, int pid, long id, long gid, argument
2144 return (req.mCallingPid == pid) &&
2145 (cancelAllGroupId || req.mGroupId == gid) &&
2146 (cancelAllOrigId || req
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapObexServer.java230 public void onDisconnect(final HeaderSet req, final HeaderSet resp) { argument
232 if (V) logHeader(req);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppObexServerSession.java573 public void onDisconnect(HeaderSet req, HeaderSet resp) { argument
H A DTestActivity.java532 public void onDisconnect(HeaderSet req, HeaderSet resp) { argument
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapObexServer.java380 public void onDisconnect(final HeaderSet req, final HeaderSet resp) { argument
382 if (V) logHeader(req);

Completed in 1740 milliseconds