Searched defs:req (Results 1 - 12 of 12) sorted by relevance

/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/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/pbapclient/
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();
/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/providers/DownloadProvider/tests/src/com/android/providers/downloads/
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/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);
/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/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/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/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java2113 MediaThumbRequest req = requestMediaThumbnail(path, origUri,
2115 if (req != null) {
2116 synchronized (req) {
2118 while (req.mState == MediaThumbRequest.State.WAIT) {
2119 req.wait();
2124 if (req.mState == MediaThumbRequest.State.DONE) {
2136 private boolean matchThumbRequest(MediaThumbRequest req, int pid, long id, long gid, argument
2140 return (req.mCallingPid == pid) &&
2141 (cancelAllGroupId || req.mGroupId == gid) &&
2142 (cancelAllOrigId || req
[all...]

Completed in 1567 milliseconds