Home
last modified time | relevance | path

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

12345

/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/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java46 private final Uri mUri; field in MockContentProvider.Query
63 mUri = null; in Query()
67 mUri = null; in Query()
72 mUri = uri; in Query()
77 return queryToString(mUri, mProjection, mSelection, mSelectionArgs, mSortOrder); in toString()
138 if (mUri == null) { in equals()
142 } else if (!uri.equals(mUri)) { in equals()
208 private final Uri mUri; field in MockContentProvider.TypeQuery
212 mUri = uri; in TypeQuery()
217 return mUri; in getUri()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java115 private final Uri mUri; field in ImageLoader.ImageLoaderTask
118 mUri = uri; in ImageLoaderTask()
125 if (Scheme.isFile(mUri)) { in run()
126 data = IoUtils.readFromFile(new File(mUri.getPath())); in run()
127 } else if (Scheme.isHttp(mUri) || Scheme.isHttps(mUri)) { in run()
128 data = Http.get(mUri.toString()); in run()
130 throw new IllegalArgumentException("Unknown scheme '" + mUri.getScheme() + "'"); in run()
137 mBitmapCache.put(mUri, bitmap); in run()
138 mOrientationCache.put(mUri, bitmap); in run()
141 loadCallbacks = mLoadCallbacks.remove(mUri); in run()
[all …]
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java64 private final Uri mUri; field in UriRecord
67 this.mUri = Preconditions.checkNotNull(uri); in UriRecord()
71 String scheme = mUri.getScheme(); in getIntentForUri()
73 return new Intent(Intent.ACTION_CALL, mUri); in getIntentForUri()
75 return new Intent(Intent.ACTION_SENDTO, mUri); in getIntentForUri()
77 return new Intent(Intent.ACTION_VIEW, mUri); in getIntentForUri()
82 String scheme = mUri.getScheme(); in getPrettyUriString()
86 String ssp = mUri.getSchemeSpecificPart(); in getPrettyUriString()
97 return mUri.toString(); in getPrettyUriString()
119 if (mUri.getScheme().equalsIgnoreCase("file")) { in onClick()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DCardContentProviderTest.java51 private Uri mUri; field in CardContentProviderTest
58 mUri = new Uri.Builder() in setUp()
75 mResolver.insert(mUri, generateOneRow()); in cardData_insert()
84 mResolver.bulkInsert(mUri, generateTwoRows()); in cardData_bulkInsert_twoRows()
92 mResolver.insert(mUri, generateOneRow()); in cardData_query()
100 mResolver.delete(mUri, null, null); in cardData_delete()
105 mResolver.insert(mUri, generateOneRow()); in cardData_update()
112 mResolver.update(mUri, values, strWhere, selectionArgs); in cardData_update()
120 mProvider.insert(mUri, generateOneRow()); in insert_isMainThread_shouldEnableStrictMode()
130 mProvider.query(mUri, null, null, null); in query_isMainThread_shouldEnableStrictMode()
[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/services/BuiltInPrintService/src/com/android/bips/ipp/
DGetCapabilitiesTask.java43 private final Uri mUri; field in GetCapabilitiesTask
49 mUri = uri; in GetCapabilitiesTask()
87 printerCaps.inetAddress = InetAddress.getByName(mUri.getHost()); in doInBackground()
92 boolean online = isDeviceOnline(mUri); in doInBackground()
94 Log.d(TAG, "isDeviceOnline uri=" + mUri + " online=" + online in doInBackground()
115 status = mBackend.nativeGetCapabilities(Backend.getIp(mUri.getHost()), in doInBackground()
116 mUri.getPort(), mUri.getPath(), mUri.getScheme(), mTimeout, printerCaps); in doInBackground()
122 Log.d(TAG, "callNativeGetCapabilities uri=" + mUri + " status=" + status in doInBackground()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/widget/
DUriImageView.java37 private Uri mUri; field in UriImageView
55 mUri = null; in setImageResource()
61 mUri = null; in setImageDrawable()
67 mUri = null; in setImageBitmap()
77 mUri = uri; in setImageURI()
86 imageLoader.loadImage(mUri, (loadedUri, bitmap) -> { in loadImage()
87 if (mUri != null && mUri.equals(loadedUri)) { in loadImage()
89 mUri = loadedUri; in loadImage()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DContentUriAsset.java53 private final Uri mUri; field in ContentUriAsset
71 mUri = uri; in ContentUriAsset()
128 "content URI: " + mUri); in decodeBitmapRegion()
138 "content URI: " + mUri); in decodeBitmapRegion()
155 String mimeType = mContext.getContentResolver().getType(mUri); in isJpeg()
163 String mimeType = mContext.getContentResolver().getType(mUri); in isPng()
197 Log.w(TAG, "Couldn't read stream for " + mUri, e); in ensureExifInterface()
206 return mContext.getContentResolver().openInputStream(mUri); in openInputStream()
231 + mUri); in readExifOrientation()
244 .load(mUri) in loadDrawable()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DThumbnailLoader.java61 private final Uri mUri; field in ThumbnailLoader
77 mUri = uri; in ThumbnailLoader()
86 if (VERBOSE) Log.v(TAG, "Starting icon loader task for " + mUri); in ThumbnailLoader()
91 if (VERBOSE) Log.v(TAG, "Icon loader task for " + mUri + " was cancelled."); in preempt()
109 resolver, mUri.getAuthority()); in doInBackground()
111 mUri, mThumbSize, mSignal); in doInBackground()
114 cache.putThumbnail(mUri, mThumbSize, result, mLastModified); in doInBackground()
118 Log.w(TAG, "Failed to load thumbnail for " + mUri + ": " + e); in doInBackground()
128 if (VERBOSE) Log.v(TAG, "Loader task for " + mUri + " completed"); in onPostExecute()
/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/WallpaperPicker2/src/com/android/wallpaper/model/
DImageWallpaperInfo.java62 private Uri mUri; field in ImageWallpaperInfo
67 mUri = uri; in ImageWallpaperInfo()
71 mUri = uri; in ImageWallpaperInfo()
76 mUri = Uri.parse(in.readString()); in ImageWallpaperInfo()
81 return mUri; in getUri()
148 mUri, in getAsset()
152 mAsset = new ContentUriAsset(context, mUri); in getAsset()
177 parcel.writeString(mUri.toString()); in writeToParcel()
/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/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/Dialer/java/com/android/contacts/common/model/
DRawContact.java237 if (Data.CONTENT_URI.equals(dataItem.mUri)) { in getContentValues()
247 if (Data.CONTENT_URI.equals(dataItem.mUri)) { in getDataItems()
258 sb.append("\n ").append(namedDataItem.mUri); in toString()
297 public final Uri mUri; field in RawContact.NamedDataItem
312 this.mUri = uri; in NamedDataItem()
317 this.mUri = parcel.readParcelable(Uri.class.getClassLoader()); in NamedDataItem()
328 parcel.writeParcelable(mUri, i); in writeToParcel()
334 return Objects.hash(mUri, mContentValues); in hashCode()
347 return Objects.equals(mUri, other.mUri) in equals()
/packages/apps/Contacts/src/com/android/contacts/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()
/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/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt65 private var mUri: Uri? = null variable in com.android.music.AudioPreview
78 mUri = intent.getData() in onCreate()
79 if (mUri == null) { in onCreate()
83 val scheme: String? = mUri?.getScheme() in onCreate()
91 val msg: String = getString(R.string.streamloadingtext, mUri!!.getHost()) in onCreate()
103 mPlayer!!.setDataSourceAndPrepare(mUri!!) in onCreate()
153 if (mUri!!.getAuthority() === MediaStore.AUTHORITY) { in onCreate()
155 …mAsyncQueryHandler.startQuery(0, null, mUri, arrayOf<String>(MediaStore.Audio.Media.TITLE, MediaSt… in onCreate()
161 mAsyncQueryHandler.startQuery(0, null, mUri, null, null, null, null) in onCreate()
166 val path: String? = mUri?.getPath() in onCreate()
[all …]
/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()
168 if (mUri.getAuthority() == MediaStore.AUTHORITY) { in onCreate()
170 mAsyncQueryHandler.startQuery(0, null, mUri, in onCreate()
177 mAsyncQueryHandler.startQuery(0, null, mUri, null, null, null, null); in onCreate()
182 String path = mUri.getPath(); in onCreate()
[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/Contacts/src/com/android/contacts/activities/
DContactEditorSpringBoardActivity.java48 private Uri mUri; field in ContactEditorSpringBoardActivity
63 return new PickRawContactLoader(ContactEditorSpringBoardActivity.this, mUri);
108 mUri = intent.getData(); in onCreate()
109 final String authority = mUri.getAuthority(); in onCreate()
110 final String type = getContentResolver().getType(mUri); in onCreate()
116 final long rawContactId = ContentUris.parseId(mUri); in onCreate()
199 intent = EditorIntents.createEditContactIntent(this, mUri, mMaterialPalette, -1); in loadEditor()
221 this, mUri, rawContactId, mMaterialPalette); in getIntentForRawContact()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DUriWallpaperInfo.java23 public final Uri mUri; field in UriWallpaperInfo
27 mUri = uri; in UriWallpaperInfo()
34 new BitmapRegionTileSource.InputStreamSource(a, mUri); in onClick()
66 a.cropImageAndSetWallpaper(mUri, h, shouldFadeOutOnFinish); in onSave()
84 InputStreamProvider isp = InputStreamProvider.fromUri(activity, mUri); in loadThumbnaleAsync()
107 Log.e(TAG, "Error loading thumbnail for uri=" + mUri); in loadThumbnaleAsync()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java69 private Uri mUri; field in BluetoothOppTransferActivity
133 mUri = intent.getData(); in onCreate()
136 mTransInfo = BluetoothOppUtility.queryRecord(this, mUri); in onCreate()
158 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onCreate()
353 mTransInfo.mFileType, mTransInfo.mTimeStamp, mUri); in onClick()
356 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
362 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
371 this.getContentResolver().delete(mUri, null, null); in onClick()
385 BluetoothOppUtility.updateVisibilityToHidden(this, mUri); in onClick()
396 mTransInfo = BluetoothOppUtility.queryRecord(this, mUri); in updateProgressbar()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceData.java67 private final Uri mUri; field in SliceData
107 return mUri; in getUri()
134 mUri = builder.mUri; in SliceData()
170 private Uri mUri; field in SliceData.Builder
221 mUri = uri; in setUri()

12345