Home
last modified time | relevance | path

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

1234

/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionImpl.java73 private Uri mUri; field in CaptureSessionImpl
155 mSessionNotifier.notifyTaskProgress(mUri, mProgressPercent); in setProgress()
169 mSessionNotifier.notifyTaskProgressText(mUri, messageId); in setProgressMessage()
186 mSessionNotifier.notifySessionUpdated(mUri); in updateThumbnail()
213 mUri = mPlaceHolder.outputUri; in startEmpty()
214 mSessionManager.putSession(mUri, this); in startEmpty()
215 mSessionNotifier.notifyTaskQueued(mUri); in startEmpty()
233 mUri = mPlaceHolder.outputUri; in startSession()
234 mSessionManager.putSession(mUri, this); in startSession()
235 mSessionNotifier.notifyTaskQueued(mUri); in startSession()
[all …]
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockContentProvider.java45 private final Uri mUri; field in MockContentProvider.Query
60 mUri = uri; in Query()
65 return queryToString(mUri, mProjection, mSelection, mSelectionArgs, mSortOrder); in toString()
126 if (!uri.equals(mUri)) { in equals()
175 private final Uri mUri; field in MockContentProvider.TypeQuery
179 mUri = uri; in TypeQuery()
184 return mUri; in getUri()
193 return mUri + " --> " + mType; in toString()
202 private final Uri mUri; field in MockContentProvider.Insert
217 mUri = Preconditions.checkNotNull(uri); in Insert()
[all …]
/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()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java136 public String mUri; field in DatabaseMessages.SmsMessage
169 mUri = ContentUris.withAppendedId(Sms.CONTENT_URI, mRowId).toString(); in load()
188 return mUri; in getUri()
211 mUri = in.readString(); in SmsMessage()
242 out.writeString(mUri); in writeToParcel()
323 public String mUri; field in DatabaseMessages.MmsMessage
387 mUri = ContentUris.withAppendedId(Mms.CONTENT_URI, mRowId).toString(); in load()
446 return mUri; in getUri()
477 mUri = in.readString(); in MmsMessage()
526 out.writeString(mUri); in writeToParcel()
[all …]
/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 …]
/packages/apps/Calendar/tests/src/com/android/calendar/event/
DEditEventHelperTest.java382 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventFailures()
383 mModel2.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventFailures()
436 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventModifyRecurring()
456 expectedOps.add(ContentProviderOperation.newUpdate(Uri.parse(mModel1.mUri)).withValues( in verifySaveEventModifyRecurring()
482 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventRecurringToNonRecurring()
507 expectedOps.add(ContentProviderOperation.newDelete(Uri.parse(mModel1.mUri)).build()); in verifySaveEventRecurringToNonRecurring()
537 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventNonRecurringToRecurring()
570 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventUpdateNonRecurring()
594 expectedOps.add(ContentProviderOperation.newUpdate(Uri.parse(mModel1.mUri)).withValues( in verifySaveEventUpdateNonRecurring()
617 mModel1.mUri = (AUTHORITY_URI + TEST_EVENT_ID); in testSaveEventModifySingleInstance()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContact.java57 public final Uri mUri; field in RawContact.NamedDataItem
73 this.mUri = uri; in NamedDataItem()
78 this.mUri = parcel.readParcelable(Uri.class.getClassLoader()); in NamedDataItem()
89 parcel.writeParcelable(mUri, i); in writeToParcel()
109 return Objects.hashCode(mUri, mContentValues); in hashCode()
118 return Objects.equal(mUri, other.mUri) && in equals()
327 if (Data.CONTENT_URI.equals(dataItem.mUri)) { in getContentValues()
337 if (Data.CONTENT_URI.equals(dataItem.mUri)) { in getDataItems()
348 sb.append("\n ").append(namedDataItem.mUri); in toString()
DContact.java62 private final Uri mUri; field in Contact
111 mUri = null; in Contact()
152 mUri = uri; in Contact()
179 mUri = from.mUri; in Contact()
250 return mUri; in getUri()
478 ",uri=" + mUri + ",status=" + mStatus + "}"; in toString()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java68 private Uri mUri; field in AudioPreview
83 mUri = intent.getData(); in onCreate()
84 if (mUri == null) { in onCreate()
88 String scheme = mUri.getScheme(); in onCreate()
98 String msg = getString(R.string.streamloadingtext, mUri.getHost()); in onCreate()
112 mPlayer.setDataSourceAndPrepare(mUri); in onCreate()
169 if (mUri.getAuthority() == MediaStore.AUTHORITY) { in onCreate()
171 mAsyncQueryHandler.startQuery(0, null, mUri, new String [] { in onCreate()
178 mAsyncQueryHandler.startQuery(0, null, mUri, null, null, null, null); in onCreate()
183 String path = mUri.getPath(); in onCreate()
[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/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionImage.java56 private Uri mUri; field in TransitionImage
89 return mUri; in getUri()
93 mUri = uri; in setUri()
202 mUri = bundle.getParcelable(EXTRA_TRANSITION_BITMAP_URI); in readFromBundle()
204 if (mUri != null) { in readFromBundle()
207 .resource(mUri).build(); in readFromBundle()
248 bundle.putParcelable(EXTRA_TRANSITION_BITMAP_URI, mUri); in writeToBundle()
265 intent.putExtra(EXTRA_TRANSITION_BITMAP_URI, mUri); in writeToIntent()
353 return "{TransitionImage Uri=" + mUri + " rect=" + mRect in toString()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
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()
355 mTransInfo.mFileType, mTransInfo.mTimeStamp, mUri); in onClick()
358 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
367 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
386 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
395 this.getContentResolver().delete(mUri, null, null); in onClick()
409 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
[all …]
DBluetoothOppIncomingFileConfirmActivity.java74 private Uri mUri; field in BluetoothOppIncomingFileConfirmActivity
97 mUri = intent.getData(); in onCreate()
99 mTransInfo = BluetoothOppUtility.queryRecord(this, mUri); in onCreate()
120 if (V) Log.v(TAG, "BluetoothIncomingFileConfirmActivity: Got uri:" + mUri); in onCreate()
145 this.getContentResolver().update(mUri, mUpdateValues, null, null); in onClick()
156 this.getContentResolver().update(mUri, mUpdateValues, null, null); in onClick()
167 this.getContentResolver().update(mUri, mUpdateValues, null, null); in onKeyDown()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java404 private final Uri mUri; field in ImageUtils.ImageResizer
449 mUri = uri; in ImageResizer()
474 return ImageUtils.isGif(mContentType, mUri) ? resizeGifImage() : resizeStaticImage(); in resize()
480 if (MediaScratchFileProvider.isMediaScratchSpaceUri(mUri)) { in resizeGifImage()
481 inputFilePath = MediaScratchFileProvider.getFileFromUri(mUri).getAbsolutePath(); in resizeGifImage()
483 if (!TextUtils.equals(mUri.getScheme(), ContentResolver.SCHEME_FILE)) { in resizeGifImage()
484 Assert.fail("Expected a GIF file uri, but actual uri = " + mUri.toString()); in resizeGifImage()
486 inputFilePath = mUri.getPath(); in resizeGifImage()
573 inputStream = cr.openInputStream(mUri); in ensureImageSizeSet()
582 LogUtil.e(TAG, "Could not open file corresponding to uri " + mUri, e); in ensureImageSizeSet()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemData.java42 private final Uri mUri; field in FilmstripItemData
66 mUri = uri; in FilmstripItemData()
119 return mUri; in getUri()
167 sb.append(mUri); in toString()
190 private final Uri mUri; field in FilmstripItemData.Builder
197 mUri = uri; in Builder()
208 mUri, in build()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DCursorQueryData.java37 protected final Uri mUri; field in CursorQueryData
47 mUri = uri; in CursorQueryData()
55 return new BoundCursorLoader(bindingId, mContext, mUri, mProjection, mSelection, in createBoundCursorLoader()
61 if (mUri == null) { in performSynchronousQuery()
65 return mContext.getContentResolver().query(mUri, mProjection, mSelection, in performSynchronousQuery()
72 return mUri; in getUri()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/fetch/
DVoicemailFetchedCallback.java40 private Uri mUri; field in VoicemailFetchedCallback
44 mUri = uri; in VoicemailFetchedCallback()
54 Log.d(TAG, String.format("Writing new voicemail content: %s", mUri)); in setVoicemailContent()
58 outputStream = mContentResolver.openOutputStream(mUri); in setVoicemailContent()
64 Log.w(TAG, String.format("File not found for %s", mUri)); in setVoicemailContent()
74 int updatedCount = mContentResolver.update(mUri, values, null, null); in setVoicemailContent()
DFetchVoicemailReceiver.java62 private Uri mUri; field in FetchVoicemailReceiver
76 mUri = intent.getData(); in onReceive()
78 if (mUri == null) { in onReceive()
84 mUri.getQueryParameter(VoicemailContract.PARAM_KEY_SOURCE_PACKAGE))) { in onReceive()
89 Cursor cursor = mContentResolver.query(mUri, PROJECTION, null, null, null); in onReceive()
157 new VoicemailFetchedCallback(mContext, mUri), mUid); in fetchVoicemail()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventFragment.java122 private Uri mUri; field in EditEventFragment
191 mOriginalModel.mUri = mUri.toString(); in onQueryComplete()
193 mModel.mUri = mUri.toString(); in onQueryComplete()
462 mUri = null; in startQuery()
468 mUri = ContentUris.withAppendedId(Events.CONTENT_URI, mEvent.id); in startQuery()
485 mUri = ContentUris.withAppendedId(Events.CONTENT_URI, mEventBundle.id); in startQuery()
509 boolean newEvent = mUri == null; in startQuery()
514 Log.d(TAG, "startQuery: uri for event is " + mUri.toString()); in startQuery()
516 mHandler.startQuery(TOKEN_EVENT, null, mUri, EditEventHelper.EVENT_PROJECTION, in startQuery()
809 if (mModel.mUri != null) { in run()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java1480 final Uri mUri; field in ConversationCursor.ConversationProvider.ProviderExecute
1486 mUri = uriFromCachingUri(uri); in ProviderExecute()
1506 return mResolver.delete(mUri, null, null); in go()
1508 return mResolver.insert(mUri, mValues); in go()
1510 return mResolver.update(mUri, mValues, null, null); in go()
1608 Uri underlyingUri = uriFromCachingUri(op.mUri); in apply()
1720 private final Uri mUri; field in ConversationCursor.ConversationOperation
1743 mUri = conv.uri; in ConversationOperation()
1760 sProvider.deleteLocal(mUri, ConversationCursor.this, mUndoCallback); in execute()
1762 sProvider.updateLocal(mUri, mValues, ConversationCursor.this); in execute()
[all …]
/packages/apps/Settings/src/com/android/settings/
DApnEditor.java98 private Uri mUri; field in ApnEditor
217 mUri = uri; in onCreate()
226 mUri = getContentResolver().insert(uri, new ContentValues()); in onCreate()
228 mUri = ContentUris.withAppendedId(Telephony.Carriers.CONTENT_URI, in onCreate()
237 if (mUri == null) { in onCreate()
246 setResult(RESULT_OK, (new Intent()).setAction(mUri.toString())); in onCreate()
253 mCursor = getActivity().managedQuery(mUri, sProjection, null, null); in onCreate()
563 getContentResolver().delete(mUri, null, null); in onOptionsItemSelected()
623 getContentResolver().delete(mUri, null, null); in validateAndSave()
693 getContentResolver().update(mUri, values, null, null); in validateAndSave()
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java284 private Uri mUri; field in BitmapRegionTileSource.UriBitmapSource
287 mUri = uri; in UriBitmapSource()
290 InputStream is = mContext.getContentResolver().openInputStream(mUri); in regenerateInputStream()
307 Log.e("BitmapRegionTileSource", "Failed to load URI " + mUri, e); in loadBitmapRegionDecoder()
319 Log.e("BitmapRegionTileSource", "Failed to load URI " + mUri, e); in loadPreviewBitmap()
332 Log.d("BitmapRegionTileSource", "Failed to load URI " + mUri, e); in readExif()
335 Log.d("BitmapRegionTileSource", "Failed to load URI " + mUri, e); in readExif()
338 Log.d("BitmapRegionTileSource", "Failed to read EXIF for URI " + mUri, e); in readExif()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationCursorLoader.java33 private final Uri mUri; field in ConversationCursorLoader
49 mUri = uri; in ConversationCursorLoader()
55 activity, mUri, useInitialConversationLimit, name); in ConversationCursorLoader()
63 LogUtils.d(TAG, " >> " + loader.mName + " (" + loader.mUri + ")"); in dumpLoaders()
70 LogUtils.d(TAG, "Add loader: " + mUri); in addLoader()

1234