/packages/apps/Camera2/src/com/android/camera/session/ |
D | CaptureSessionImpl.java | 73 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/UniversalMediaPlayer/java/com/android/pump/util/ |
D | ImageLoader.java | 136 private final Uri mUri; field in ImageLoader.ImageLoaderTask 139 mUri = uri; in ImageLoaderTask() 146 if (isAtLeastRunningQ() || !isVideoThumbnailUri(mUri)) { in run() 148 if (Scheme.isContent(mUri)) { in run() 149 data = readFromContent(mUri); in run() 150 } else if (Scheme.isFile(mUri)) { in run() 151 data = IoUtils.readFromFile(new File(mUri.getPath())); in run() 152 } else if (Scheme.isHttp(mUri) || Scheme.isHttps(mUri)) { in run() 153 data = Http.get(mUri.toString()); in run() 156 "Unknown scheme '" + mUri.getScheme() + "'"); in run() [all …]
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | PreferenceSliceLiveData.java | 67 Uri mUri; field in PreferenceSliceLiveData.SliceLiveDataImpl 72 mUri = uri; in SliceLiveDataImpl() 80 if (mUri != null) { in onActive() 81 mSliceViewManager.registerSliceCallback(mUri, mSliceCallback); in onActive() 87 if (mUri != null) { in onInactive() 88 mSliceViewManager.unregisterSliceCallback(mUri, mSliceCallback); in onInactive() 103 Slice s = mUri != null ? mSliceViewManager.bindSlice(mUri) 105 if (mUri == null && s != null) { 106 mUri = s.getUri(); 107 mSliceViewManager.registerSliceCallback(mUri, mSliceCallback);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | CardContentProviderTest.java | 51 private Uri mUri; field in CardContentProviderTest 58 mUri = new Uri.Builder() in setUp() 76 mResolver.insert(mUri, generateOneRow()); in cardData_insert() 86 mResolver.bulkInsert(mUri, generateTwoRows()); in cardData_bulkInsert_twoRows() 96 mResolver.bulkInsert(mUri, generateTwoRowsWithDismissTimestamp()); in bulkInsert_keepDismissalTimestamp_shouldHaveTimestamp() 98 mResolver.bulkInsert(mUri, generateTwoRows()); in bulkInsert_keepDismissalTimestamp_shouldHaveTimestamp() 106 mResolver.bulkInsert(mUri, generateTwoRowsWithDismissTimestamp()); in bulkInsert_notKeepDismissalTimestamp_shouldNotHaveTimestamp() 108 mResolver.bulkInsert(mUri, generateTwoRows()); in bulkInsert_notKeepDismissalTimestamp_shouldNotHaveTimestamp() 116 mResolver.insert(mUri, generateOneRow()); in cardData_query() 124 mResolver.delete(mUri, null, null); in cardData_delete() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 46 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/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/ |
D | DBTrustedBiddingData.java | 47 private final Uri mUri; field in DBTrustedBiddingData 57 this.mUri = uri; in DBTrustedBiddingData() 80 int totalSize = mUri.toString().getBytes().length; in size() 91 return mUri; in getUri() 109 return mUri.equals(that.mUri) && mKeys.equals(that.mKeys); in equals() 114 return Objects.hash(mUri, mKeys); in hashCode() 119 return "DBTrustedBiddingData{" + "mUri=" + mUri + ", mKeys=" + mKeys + '}'; in toString() 126 private Uri mUri; field in DBTrustedBiddingData.Builder 134 mUri = trustedBiddingData.getUri(); in Builder() 140 this.mUri = uri; in setUri() [all …]
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | UriRecord.java | 64 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/Gallery/src/com/android/camera/gallery/ |
D | UriImage.java | 35 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 …]
|
D | BaseImage.java | 45 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/Car/systemlibs/car-qc-lib/src/com/android/car/qc/controller/ |
D | RemoteQCController.java | 56 private final Uri mUri; field in RemoteQCController 64 mUri = uri; in RemoteQCController() 74 mUri = uri; in RemoteQCController() 101 b.putParcelable(EXTRA_URI, mUri); in destroy() 140 extras.putParcelable(EXTRA_URI, mUri); in getQCItem() 164 b.putParcelable(EXTRA_URI, mUri); in subscribe() 179 b.putParcelable(EXTRA_URI, mUri); in unsubscribe() 191 .acquireContentProviderClient(mUri); in getClient() 200 getObserver(callback, new QCObserver(mUri, executor, callback)).startObserving(); in registerQCCallback() 205 QCObserver observer = mObserverLookup.remove(new Pair<>(mUri, callback)); in unregisterQCCallback() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | GetCapabilitiesTask.java | 43 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/ |
D | UriImageView.java | 37 private Uri mUri; field in UriImageView 55 mUri = null; in setImageResource() 61 mUri = null; in setImageDrawable() 67 mUri = null; in setImageBitmap() 78 mUri = uri; in setImageURI() 87 imageLoader.loadImage(mUri, (loadedUri, bitmap) -> { in loadImage() 88 if (mUri != null && mUri.equals(loadedUri)) { in loadImage() 90 mUri = loadedUri; in loadImage()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothLeCall.java | 129 private String mUri; field in BluetoothLeCall 144 mUri = that.mUri; in BluetoothLeCall() 154 mUri = uri; in BluetoothLeCall() 168 return mUuid.equals(that.mUuid) && mUri.equals(that.mUri) in equals() 175 return Objects.hash(mUuid, mUri, mFriendlyName, mState, mCallFlags); in hashCode() 199 out.writeString(mUri); in writeToParcel() 217 mUri = in.readString(); in BluetoothLeCall() 243 return mUri; in getUri()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | ContentUriAsset.java | 59 private final Uri mUri; field in ContentUriAsset 77 mUri = uri; in ContentUriAsset() 134 "content URI: " + mUri); in decodeBitmapRegion() 144 "content URI: " + mUri); in decodeBitmapRegion() 162 String mimeType = mContext.getContentResolver().getType(mUri); in isJpeg() 170 String mimeType = mContext.getContentResolver().getType(mUri); in isPng() 204 Log.w(TAG, "Couldn't read stream for " + mUri, e); in ensureExifInterface() 213 return mContext.getContentResolver().openInputStream(mUri); in openInputStream() 238 + mUri); in readExifOrientation() 251 .load(mUri) in loadDrawable() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/command/ |
D | BrowserUri.java | 31 private final String mUri; field in BrowserUri 34 mUri = command.getValue().toString(); in BrowserUri() 52 return mUri; in getUri() 60 return TextUtils.equals(mUri, that.mUri); in equals() 65 return Objects.hash(mUri); in hashCode() 70 return "BrowserUri{mUri: " + mUri + "}"; in toString()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ThumbnailLoader.java | 64 private final Uri mUri; field in ThumbnailLoader 82 mUri = uri; in ThumbnailLoader() 92 if (VERBOSE) Log.v(TAG, "Starting icon loader task for " + mUri); in ThumbnailLoader() 97 if (VERBOSE) Log.v(TAG, "Icon loader task for " + mUri + " was cancelled."); in preempt() 115 resolver, mUri.getAuthority()); in doInBackground() 117 mUri, mThumbSize, mSignal); in doInBackground() 120 cache.putThumbnail(mUri, mUserId, mThumbSize, result, mLastModified); in doInBackground() 124 Log.w(TAG, "Failed to load thumbnail for " + mUri + ": " + e); in doInBackground() 134 if (VERBOSE) Log.v(TAG, "Loader task for " + mUri + " completed"); in onPostExecute()
|
/packages/apps/Settings/src/com/android/settings/biometrics/activeunlock/ |
D | ActiveUnlockContentListener.java | 52 @Nullable private final Uri mUri; field in ActiveUnlockContentListener 79 mUri = new Uri.Builder() in ActiveUnlockContentListener() 85 mUri = null; in ActiveUnlockContentListener() 92 if (mSubscribed || mUri == null) { in subscribe() 97 mUri, true /* notifyForDescendants */, mContentObserver); in subscribe() 107 if (!mSubscribed || mUri == null) { in unsubscribe() 122 if (mUri == null) { in getContentFromUri() 127 ContentProviderClient client = contentResolver.acquireContentProviderClient(mUri); in getContentFromUri()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtProviderTest.java | 61 private Uri mUri; field in AvrcpCoverArtProviderTest 84 when(mUri.getQueryParameter("device")).thenReturn("00:01:02:03:04:05"); in openFile_whenFileNotFoundExceptionIsCaught() 85 when(mUri.getQueryParameter("uuid")).thenReturn("1111"); in openFile_whenFileNotFoundExceptionIsCaught() 88 assertThrows(FileNotFoundException.class, () -> mArtProvider.openFile(mUri, TEST_MODE)); in openFile_whenFileNotFoundExceptionIsCaught() 93 when(mUri.getQueryParameter("device")).thenThrow(NullPointerException.class); in openFile_whenNullPointerExceptionIsCaught() 95 assertThrows(FileNotFoundException.class, () -> mArtProvider.openFile(mUri, TEST_MODE)); in openFile_whenNullPointerExceptionIsCaught() 101 when(mUri.getQueryParameter("device")).thenReturn(null); in openFile_whenIllegalArgumentExceptionIsCaught() 102 when(mUri.getQueryParameter("uuid")).thenReturn("1111"); in openFile_whenIllegalArgumentExceptionIsCaught() 105 assertThrows(FileNotFoundException.class, () -> mArtProvider.openFile(mUri, TEST_MODE)); in openFile_whenIllegalArgumentExceptionIsCaught()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | UriImage.java | 50 private final Uri mUri; field in UriImage 65 mUri = uri; in UriImage() 95 String scheme = mUri.getScheme().toLowerCase(Locale.ENGLISH); in openOrDownloadInner() 102 .openInputStream(mUri); in openOrDownloadInner() 107 .openFileDescriptor(mUri, "r"); in openOrDownloadInner() 111 Log.w(TAG, "fail to open: " + mUri, e); in openOrDownloadInner() 116 URL url = new URI(mUri.toString()).toURL(); in openOrDownloadInner() 238 return ContentResolver.SCHEME_FILE.equals(mUri.getScheme()); in isSharable() 248 return mUri; in getContentUri() 261 if (ContentResolver.SCHEME_FILE.equals(mUri.getScheme())) { in getDetails() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | CursorQueryData.java | 37 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/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | ImageWallpaperInfo.java | 62 private Uri mUri; field in ImageWallpaperInfo 67 mUri = uri; in ImageWallpaperInfo() 71 mUri = uri; in ImageWallpaperInfo() 77 mUri = Uri.parse(in.readString()); in ImageWallpaperInfo() 82 return mUri; in getUri() 149 mUri, in getAsset() 153 mAsset = new ContentUriAsset(context, mUri); in getAsset() 180 parcel.writeString(mUri.toString()); in writeToParcel()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MovieViewControl.java | 59 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/Contacts/src/com/android/contacts/model/ |
D | RawContact.java | 57 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/Dialer/java/com/android/contacts/common/model/ |
D | RawContact.java | 237 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/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | UriWallpaperInfo.java | 23 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()
|