Home
last modified time | relevance | path

Searched refs:mUri (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/Gallery/src/com/android/camera/gallery/
DUriImage.java35 private final Uri mUri; field in UriImage
42 mUri = uri; in UriImage()
50 return mUri.getPath(); in getDataPath()
55 if (mUri.getScheme().equals("file")) { in getInputStream()
56 return new java.io.FileInputStream(mUri.getPath()); in getInputStream()
58 return mContentResolver.openInputStream(mUri); in getInputStream()
67 if (mUri.getScheme().equals("file")) { in getPFD()
68 String path = mUri.getPath(); in getPFD()
72 return mContentResolver.openFileDescriptor(mUri, "r"); in getPFD()
104 return mUri; in fullSizeImageUri()
[all …]
DBaseImage.java45 protected Uri mUri; field in BaseImage
65 mUri = uri; in BaseImage()
79 return mUri.equals(((Image) other).mUri); in equals()
84 return mUri.hashCode(); in hashCode()
109 InputStream input = mContentResolver.openInputStream(mUri); in fullSizeImageData()
117 return mUri; in fullSizeImageUri()
143 input = mContentResolver.openFileDescriptor(mUri, "r"); in setupDimension()
189 return mUri.toString(); in toString()
DSingleImageList.java34 private Uri mUri; field in SingleImageList
37 mUri = uri; in SingleImageList()
70 return uri.equals(mUri) ? mSingleImage : null; in getImageForUri()
75 mUri = null; in close()
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java59 private final Uri mUri; field in UriRecord
62 this.mUri = Preconditions.checkNotNull(uri); in UriRecord()
66 String scheme = mUri.getScheme(); in getIntentForUri()
68 return new Intent(Intent.ACTION_CALL, mUri); in getIntentForUri()
70 return new Intent(Intent.ACTION_SENDTO, mUri); in getIntentForUri()
72 return new Intent(Intent.ACTION_VIEW, mUri); in getIntentForUri()
77 String scheme = mUri.getScheme(); in getPrettyUriString()
81 String ssp = mUri.getSchemeSpecificPart(); in getPrettyUriString()
92 return mUri.toString(); in getPrettyUriString()
121 return mUri; in getUri()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriImage.java49 private final Uri mUri; field in UriImage
64 mUri = uri; in UriImage()
94 String scheme = mUri.getScheme(); in openOrDownloadInner()
101 .openInputStream(mUri); in openOrDownloadInner()
106 .openFileDescriptor(mUri, "r"); in openOrDownloadInner()
110 Log.w(TAG, "fail to open: " + mUri, e); in openOrDownloadInner()
115 URL url = new URI(mUri.toString()).toURL(); in openOrDownloadInner()
237 return ContentResolver.SCHEME_FILE.equals(mUri.getScheme()); in isSharable()
247 return mUri; in getContentUri()
260 if (ContentResolver.SCHEME_FILE.equals(mUri.getScheme())) { in getDetails()
[all …]
DPanoramaMetadataJob.java29 Uri mUri; field in PanoramaMetadataJob
33 mUri = uri; in PanoramaMetadataJob()
38 return LightCycleHelper.getPanoramaMetadata(mContext, mUri); in run()
/packages/apps/Mms/src/com/android/mms/util/
DPduLoaderManager.java158 private final Uri mUri; field in PduTask
165 mUri = uri; in PduTask()
184 pdu = mPduPersister.load(mUri); in run()
190 Log.e(TAG, "MmsException loading uri: " + mUri, e); in run()
198 final Set<ItemLoadedCallback> callbacks = mCallbacks.get(mUri); in run()
211 mSlideshowCache.put(mUri, resultSlideshow); in run()
214 mCallbacks.remove(mUri); in run()
215 mPendingTaskUris.remove(mUri); in run()
218 Log.d(TAG, "Pdu task for " + mUri + "exiting; " + mPendingTaskUris.size() in run()
DThumbnailManager.java226 private final Uri mUri; field in ThumbnailTask
233 mUri = uri; in ThumbnailTask()
254 Log.e(TAG, "Couldn't load bitmap for " + mUri, e); in run()
261 final Set<ItemLoadedCallback> callbacks = mCallbacks.get(mUri); in run()
286 mThumbnailCache.put(mUri, resultBitmap); in run()
288 Log.v(TAG, "in callback runnable: bitmap uri: " + mUri + in run()
295 mCallbacks.remove(mUri); in run()
296 mPendingTaskUris.remove(mUri); in run()
299 Log.d(TAG, "Image task for " + mUri + "exiting " + mPendingTaskUris.size() in run()
309 UriImage uriImage = new UriImage(mContext, mUri); in getBitmap()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java59 private final Uri mUri; field in MovieViewControl
84 mUri = videoUri; in MovieViewControl()
88 String scheme = mUri.getScheme(); in MovieViewControl()
98 mVideoView.setVideoURI(mUri); in MovieViewControl()
145 if (!uriSupportsBookmarks(mUri)) { in getBookmark()
155 mUri, projection, null, null, null); in getBookmark()
191 if (!uriSupportsBookmarks(mUri)) { in setBookmark()
198 mContentResolver.update(mUri, values, null, null); in setBookmark()
221 mVideoView.setVideoURI(mUri); in onResume()
/packages/apps/Mms/src/com/android/mms/transaction/
DSmsSingleRecipientSender.java25 private Uri mUri; field in SmsSingleRecipientSender
33 mUri = uri; in SmsSingleRecipientSender()
69 boolean moved = Sms.moveMessageToFolder(mContext, mUri, Sms.MESSAGE_TYPE_OUTBOX, 0); in sendMessage()
72 "to outbox: " + mUri); in sendMessage()
90 mUri, in sendMessage()
98 mUri, in sendMessage()
124 ", uri=" + mUri + ", msgs.count=" + messageCount); in sendMessage()
DNotificationTransaction.java76 private Uri mUri; field in NotificationTransaction
85 mUri = Uri.parse(uriString); in NotificationTransaction()
89 PduPersister.getPduPersister(context).load(mUri); in NotificationTransaction()
113 mUri = PduPersister.getPduPersister(context).persist( in NotificationTransaction()
156 downloadManager.markState(mUri, DownloadManager.STATE_UNSTARTED); in run()
161 downloadManager.markState(mUri, DownloadManager.STATE_DOWNLOADING); in run()
198 mUri, null, null); in run()
205 mUri = uri; in run()
230 Recycler.getMmsRecycler().deleteOldMessagesInSameThreadAsMessage(mContext, mUri); in run()
235 mTransactionState.setContentUri(mUri); in run()
DRetrieveTransaction.java65 private final Uri mUri; field in RetrieveTransaction
84 mUri = Uri.parse(uri); // The Uri of the M-Notification.ind in RetrieveTransaction()
85 mId = mContentLocation = getContentLocation(context, mUri); in RetrieveTransaction()
133 mUri, DownloadManager.STATE_DOWNLOADING); in run()
149 mTransactionState.setContentUri(mUri); in run()
174 mUri, null, null); in run()
192 mTransactionState.setContentUri(mUri); in run()
/packages/apps/Mms/src/com/android/mms/model/
DMediaModel.java51 private Uri mUri; field in MediaModel
73 mUri = uri; in MediaModel()
136 return mUri; in getUri()
152 mUri = uri; in setUri()
210 if (mUri == null) { in initMediaDuration()
217 retriever.setDataSource(mContext, mUri); in initMediaDuration()
224 Log.e(TAG, "MediaMetadataRetriever failed to get duration for " + mUri.getPath(), ex); in initMediaDuration()
235 input = cr.openInputStream(mUri); in initMediaSize()
/packages/apps/Browser/src/com/android/browser/
DFetchUrlMimeType.java52 private String mUri; field in FetchUrlMimeType
60 mUri = uri; in FetchUrlMimeType()
72 httpHost = Proxy.getPreferredHttpHost(mContext, mUri); in run()
81 HttpHead request = new HttpHead(mUri); in run()
122 MimeTypeMap.getFileExtensionFromUrl(mUri)); in run()
128 String filename = URLUtil.guessFileName(mUri, contentDisposition, in run()
/packages/apps/Browser/src/com/android/browser/homepages/
DRequestHandler.java52 Uri mUri; field in RequestHandler
62 mUri = uri; in RequestHandler()
73 Log.e(TAG, "Failed to handle request: " + mUri, e); in run()
80 if ("file".equals(mUri.getScheme())) { in doHandleRequest()
84 int match = sUriMatcher.match(mUri); in doHandleRequest()
159 File f = new File(mUri.getPath()); in writeFolderIndex()
163 t.assign("path", mUri.getPath()); in writeFolderIndex()
226 Matcher m = pattern.matcher(mUri.getPath()); in getUriResourcePath()
230 return mUri.getPath(); in getUriResourcePath()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppIncomingFileConfirmActivity.java74 private Uri mUri; field in BluetoothOppIncomingFileConfirmActivity
98 mUri = intent.getData(); in onCreate()
100 mTransInfo = BluetoothOppUtility.queryRecord(this, mUri); in onCreate()
122 if (V) Log.v(TAG, "BluetoothIncomingFileConfirmActivity: Got uri:" + mUri); in onCreate()
149 this.getContentResolver().update(mUri, mUpdateValues, null, null); in onClick()
160 this.getContentResolver().update(mUri, mUpdateValues, null, null); in onClick()
171 this.getContentResolver().update(mUri, mUpdateValues, null, null); in onKeyDown()
DBluetoothOppShareInfo.java45 public Uri mUri; field in BluetoothOppShareInfo
75 mUri = uri; in BluetoothOppShareInfo()
96 if (mStatus == BluetoothShare.STATUS_PENDING && mUri != null) { in isReadyToStart()
DBluetoothOppTransferActivity.java72 private Uri mUri; field in BluetoothOppTransferActivity
136 mUri = intent.getData(); in onCreate()
139 mTransInfo = BluetoothOppUtility.queryRecord(this, mUri); in onCreate()
159 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onCreate()
356 mTransInfo.mFileType, mTransInfo.mTimeStamp, mUri); in onClick()
359 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
368 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
387 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
396 this.getContentResolver().delete(mUri, null, null); in onClick()
410 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
[all …]
/packages/apps/Music/src/com/android/music/
DAudioPreview.java67 private Uri mUri; field in AudioPreview
82 mUri = intent.getData(); in onCreate()
83 if (mUri == null) { in onCreate()
87 String scheme = mUri.getScheme(); in onCreate()
97 String msg = getString(R.string.streamloadingtext, mUri.getHost()); in onCreate()
111 mPlayer.setDataSourceAndPrepare(mUri); in onCreate()
170 if (mUri.getAuthority() == MediaStore.AUTHORITY) { in onCreate()
172 mAsyncQueryHandler.startQuery(0, null, mUri, new String [] { in onCreate()
179 mAsyncQueryHandler.startQuery(0, null, mUri, null, null, null, null); in onCreate()
184 String path = mUri.getPath(); in onCreate()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowEditActivity.java79 private Uri mUri; field in SlideshowEditActivity
99 mUri = Uri.parse(mState.getString(MESSAGE_URI)); in onCreate()
101 mUri = getIntent().getData(); in onCreate()
104 if (mUri == null) { in onCreate()
112 mResultIntent.setData(mUri); in onCreate()
174 if (mUri != null) { in onSaveInstanceState()
175 mState.putString(MESSAGE_URI, mUri.toString()); in onSaveInstanceState()
192 PduPersister.getPduPersister(this).updateParts(mUri, pb, null); in onPause()
195 Log.e(TAG, "Cannot update the message: " + mUri, e); in onPause()
217 mSlideshowModel = SlideshowModel.createFromMessageUri(this, mUri); in initSlideList()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
DMockContentProvider.java44 private final Uri mUri; field in MockContentProvider.Query
59 mUri = uri; in Query()
64 return queryToString(mUri, mProjection, mSelection, mSelectionArgs, mSortOrder); in toString()
125 if (!uri.equals(mUri)) { in equals()
204 private final Uri mUri; field in MockContentProvider.TypeQuery
208 mUri = uri; in TypeQuery()
213 return mUri; in getUri()
222 return mUri + " --> " + mType; in toString()
/packages/apps/Contacts/src/com/android/contacts/model/
DContact.java62 private final Uri mUri; field in Contact
107 mUri = null; in Contact()
149 mUri = uri; in Contact()
177 mUri = from.mUri; in Contact()
245 return mUri; in getUri()
473 ",uri=" + mUri + ",status=" + mStatus + "}"; in toString()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMovieActivity.java62 private Uri mUri; field in MovieActivity
128 mUri = intent.getData(); in initializeActionBar()
160 queryHandler.startQuery(0, null, mUri, in initializeActionBar()
174 if (ContentResolver.SCHEME_CONTENT.equals(mUri.getScheme())) { in onCreateOptionsMenu()
187 intent.putExtra(Intent.EXTRA_STREAM, mUri); in createShareIntent()
/packages/apps/Calendar/tests/src/com/android/calendar/event/
DEditEventHelperTest.java358 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventFailures()
359 mModel2.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventFailures()
412 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventModifyRecurring()
433 expectedOps.add(ContentProviderOperation.newUpdate(Uri.parse(mModel1.mUri)).withValues( in verifySaveEventModifyRecurring()
458 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventRecurringToNonRecurring()
484 expectedOps.add(ContentProviderOperation.newDelete(Uri.parse(mModel1.mUri)).build()); in verifySaveEventRecurringToNonRecurring()
514 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventNonRecurringToRecurring()
548 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventUpdateNonRecurring()
573 expectedOps.add(ContentProviderOperation.newUpdate(Uri.parse(mModel1.mUri)).withValues( in verifySaveEventUpdateNonRecurring()
595 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventModifySingleInstance()
[all …]
/packages/apps/Settings/src/com/android/settings/
DApnEditor.java89 private Uri mUri; field in ApnEditor
185 mUri = intent.getData(); in onCreate()
188 mUri = getContentResolver().insert(intent.getData(), new ContentValues()); in onCreate()
190 mUri = ContentUris.withAppendedId(Telephony.Carriers.CONTENT_URI, in onCreate()
197 if (mUri == null) { in onCreate()
206 setResult(RESULT_OK, (new Intent()).setAction(mUri.toString())); in onCreate()
213 mCursor = managedQuery(mUri, sProjection, null, null); in onCreate()
411 getContentResolver().delete(mUri, null, null); in onOptionsItemSelected()
465 getContentResolver().delete(mUri, null, null); in validateAndSave()
511 getContentResolver().update(mUri, values, null, null); in validateAndSave()
[all …]

123