/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SettingsSliceProviderTest.java | 158 final Uri uri = SliceBuilderUtils.getUri(INTENT_PATH, false); in testInitialSliceReturned_emptySlice() 161 assertThat(slice.getUri()).isEqualTo(uri); in testInitialSliceReturned_emptySlice() 168 final Uri uri = SliceBuilderUtils.getUri(INTENT_PATH, false); in testLoadSlice_returnsSliceFromAccessor() 180 final Uri uri = SliceBuilderUtils.getUri(INTENT_PATH, false); in loadSlice_registersIntentFilter() 190 final Uri uri = SliceBuilderUtils.getUri(INTENT_PATH, false); in loadSlice_registersBackgroundListener() 204 mProvider.mSliceWeakDataCache.put(data.getUri(), data); in testLoadSlice_cachedEntryRemovedOnBuild() 205 mProvider.onBindSlice(data.getUri()); in testLoadSlice_cachedEntryRemovedOnBuild() 208 SliceData cachedData = mProvider.mSliceWeakDataCache.get(data.getUri()); in testLoadSlice_cachedEntryRemovedOnBuild() 218 mProvider.mSliceWeakDataCache.put(data.getUri(), data); in onBindSlice_mainThread_shouldNotOverrideStrictMode() 219 mProvider.onBindSlice(data.getUri()); in onBindSlice_mainThread_shouldNotOverrideStrictMode() [all …]
|
D | SlicesDatabaseAccessorTest.java | 109 assertThat(data.getUri()).isNull(); in testGetSliceDataFromKey_validKey_validSliceReturned() 129 assertThat(data.getUri()).isNull(); in testGetSliceDataFromKey_allowDynamicSummary_validSliceReturned() 145 Uri uri = SliceBuilderUtils.getUri(path, false); in testGetSliceFromUri_validUri_validSliceReturned() 156 assertThat(data.getUri()).isEqualTo(uri); in testGetSliceFromUri_validUri_validSliceReturned() 162 Uri uri = SliceBuilderUtils.getUri("intent/durr", false); in testGetSliceFromUri_invalidUri_errorThrown() 242 assertThat(data.getUri()).isNull(); in testGetSliceDataFromKey_defaultUnavailableSlice_validSliceReturned() 262 assertThat(data.getUri()).isNull(); in testGetSliceDataFromKey_customizeSubtitleOfUnavailableSlice_validSliceReturned()
|
D | SliceDataTest.java | 68 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_buildsMatchingObject() 146 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_noSubtitle_buildsMatchingObject() 169 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_noScreenTitle_buildsMatchingObject() 192 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_noIcon_buildsMatchingObject() 216 assertThat(data.getUri()).isNull(); in testBuilder_noUri_buildsMatchingObject()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaTests.java | 196 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert() 202 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert() 208 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert() 239 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 245 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 251 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 257 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 282 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate() 288 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate() 294 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate() [all …]
|
D | RawContactModifierTests.java | 391 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 397 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 403 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 415 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 526 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate() 532 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate() 538 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate() 550 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate() 573 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimInsertEmpty() 603 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimInsertInsert() [all …]
|
/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/ |
D | AllUriTest.java | 263 private static Uri getUri(String[] path) { in getUri() method in AllUriTest 375 final Uri uri = getUri(path); in testSelect() 394 final Uri uri = getUri(path); in testNoHiddenColumns() 463 final Uri uri = getUri(path); in testSelectWithSelection() 522 final Uri uri = getUri(path); in testSelectWithAllArgs() 539 final Uri uri = getUri(path); in testNonSelect() 619 final Uri uri = getUri(path); in testProhibitedColumns() 658 final Uri uri = getUri(path); in testAllOperations() 705 final Uri uri = getUri(path); in testAllFileOperations()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | FrequentContactsCursorQueryData.java | 57 final Uri uri = getUri(); in execute() 63 protected abstract Uri getUri(); in getUri() method in FrequentContactsCursorQueryData.FrequentContactsCursorLoader.StrequentContactsQueryStrategy 68 protected Uri getUri() { in getUri() method in FrequentContactsCursorQueryData.FrequentContactsCursorLoader.PrimaryStrequentContactsQueryStrategy 76 protected Uri getUri() { in getUri() method in FrequentContactsCursorQueryData.FrequentContactsCursorLoader.FrequentOnlyContactsQueryStrategy 87 protected Uri getUri() { in getUri() method in FrequentContactsCursorQueryData.FrequentContactsCursorLoader.PhoneOnlyStrequentContactsQueryStrategy
|
/packages/apps/PermissionController/src/com/android/packageinstaller/incident/ |
D | PendingList.java | 151 incidentManager.denyReport(report.getUri()); in updateState() 176 final String uri = rec.report.getUri().toString(); in updateState() 190 Log.d(TAG, " [" + i + "] " + notificationRecs.get(i).report.getUri()); in updateState() 217 if (!firstDialog.report.getUri().equals(ConfirmationActivity.getCurrentUri())) { in updateState() 251 new Intent(ApprovalReceiver.ACTION_DENY, rec.report.getUri(), in showNotifications() 275 mNm.notify(rec.report.getUri().toString(), Constants.INCIDENT_NOTIFICATION_ID, in showNotifications() 306 final Intent result = new Intent(Intent.ACTION_MAIN, rec.report.getUri(), in newDialogIntent()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | PhotoItem.java | 112 return mPhotoItemFactory.get(mData.getUri()); in refresh() 133 renderTinySize(mData.getUri()).into(imageView); in fillImageView() 167 renderTinySize(mData.getUri()).into((ImageView) view); in renderTiny() 176 renderScreenSize(mData.getUri()).into((ImageView) view); in renderThumbnail() 185 renderFullSize(mData.getUri()).into((ImageView) view); in renderFullRes() 225 return Storage.getPlaceholderForSession(data.getUri()); in generateThumbnail()
|
D | FilmstripItemList.java | 50 return mUri.equals(((FilmstripItem) o).getData().getUri()); in equals() 86 mUriMap.put(data.getData().getUri(), data); in set() 91 mUriMap.put(data.getData().getUri(), data); in add() 96 mUriMap.put(data.getData().getUri(), data); in add()
|
D | VideoItem.java | 143 return mVideoItemFactory.get(mData.getUri()); in refresh() 172 videoClickedCallback.playVideo(mData.getUri(), mData.getTitle()); in getView() 195 mGlideManager.loadScreen(mData.getUri(), generateSignature(mData), mSuggestedSize) in renderThumbnail() 196 .thumbnail(mGlideManager.loadMediaStoreThumb(mData.getUri(), in renderThumbnail() 229 mGlideManager.loadMediaStoreThumb(mData.getUri(), generateSignature(mData)) in renderTiny()
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | DelayedDiscovery.java | 60 DiscoveredPrinter old = mPending.put(printer.getUri(), printer); in DelayedDiscovery() 63 DiscoveredPrinter pending = mPending.remove(printer.getUri()); in DelayedDiscovery() 74 mPending.remove(printer.getUri()); in DelayedDiscovery() 75 printerLost(printer.getUri()); in DelayedDiscovery()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | ActionHandlerTest.java | 412 assertRootPicked(TestProvidersAccess.HAMMY.getUri()); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot() 429 TestProvidersAccess.DOWNLOADS.getUri().toString()); in testInitLocation_forceDefaultsToRoot() 432 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_forceDefaultsToRoot() 440 TestProvidersAccess.HOME.getUri().toString()); in testInitLocation_DocumentsRootEnabled() 443 assertRootPicked(TestProvidersAccess.HOME.getUri()); in testInitLocation_DocumentsRootEnabled() 453 assertRootPicked(TestProvidersAccess.HAMMY.getUri()); in testInitLocation_BrowseRootWithoutRootId() 462 TestProvidersAccess.HOME.getUri().toString()); in testInitLocation_BrowseRootWrongAuthority_ShowDefault() 473 intent.setData(TestProvidersAccess.PICKLES.getUri()); in testInitLocation_BrowseRoot() 476 assertRootPicked(TestProvidersAccess.PICKLES.getUri()); in testInitLocation_BrowseRoot() 513 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_LaunchToDownloads() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/ |
D | SliceBuilderUtils.java | 171 .setData(data.getUri()) in getActionIntent() 228 public static Uri getUri(String path, boolean isPlatformSlice) { in getUri() method in SliceBuilderUtils 277 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildToggleSlice() 298 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildIntentSlice() 323 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildSliderSlice() 348 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildCopyableSlice() 436 return new ListBuilder(context, data.getUri(), ListBuilder.INFINITY) in buildUnavailableSlice() 458 + data.getUri(), e); in getSafeIcon()
|
D | CustomSliceable.java | 70 Uri getUri(); in getUri() method 94 final Intent intent = new Intent(getUri().toString()) in getBroadcastIntent() 95 .setData(getUri()) in getBroadcastIntent()
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceBuilderUtils.java | 171 .setData(data.getUri()) in getActionIntent() 217 public static Uri getUri(String path, boolean isPlatformSlice) { in getUri() method in SliceBuilderUtils 266 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildToggleSlice() 287 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildIntentSlice() 316 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildSliderSlice() 342 return new ListBuilder(context, sliceData.getUri(), ListBuilder.INFINITY) in buildCopyableSlice() 430 return new ListBuilder(context, data.getUri(), ListBuilder.INFINITY) in buildUnavailableSlice() 452 + data.getUri(), e); in getSafeIcon()
|
D | CustomSliceable.java | 70 Uri getUri(); in getUri() method 94 final Intent intent = new Intent(getUri().toString()) in getBroadcastIntent() 95 .setData(getUri()) in getBroadcastIntent()
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputSlice.java | 63 mPackageName = getUri().getQueryParameter(MEDIA_PACKAGE_NAME); in MediaOutputSlice() 77 final ListBuilder listBuilder = new ListBuilder(mContext, getUri(), ListBuilder.INFINITY) in getSlice() 133 mWorker = (MediaDeviceUpdateWorker) SliceBackgroundWorker.getInstance(getUri()); in getWorker() 163 final Intent intent = new Intent(getUri().toString()); in getBroadcastIntent() 172 public Uri getUri() { in getUri() method in MediaOutputSlice
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivity.java | 311 mSelectedRingtoneUri = toSelect.getUri(); in onLoadFinished() 360 ConfirmRemoveCustomRingtoneDialogFragment.show(manager, toRemove.getUri(), hasPermissions); in onContextItemSelected() 368 if (ringtoneHolder.getUri().equals(uri)) { in getRingtoneHolder() 389 RingtonePreviewKlaxon.start(getApplicationContext(), ringtone.getUri()); in startPlayingRingtone() 395 mSelectedRingtoneUri = ringtone.getUri(); in startPlayingRingtone() 523 ((RingtoneHolder) viewHolder.getItemHolder()).getUri(), false); in onItemClicked() 665 mSelectedRingtoneUri = defaultRingtone.getUri(); in onPostExecute()
|
D | RingtoneHolder.java | 46 Uri getUri() { return item; } in getUri() method in RingtoneHolder 48 boolean isSilent() { return Utils.RINGTONE_SILENT.equals(getUri()); } in isSilent() 57 return mName != null ? mName : DataModel.getDataModel().getRingtoneTitle(getUri()); in getName()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailStatusTable.java | 80 .update(uriData.getUri(), mTableName, values, combinedClause, null); in insert() 87 return ContentUris.withAppendedId(uriData.getUri(), rowId); in insert() 93 return ContentUris.withAppendedId(uriData.getUri(), rowId); in insert() 149 .update(uriData.getUri(), mTableName, values, combinedClause, selectionArgs); in update()
|
D | VoicemailContentProvider.java | 272 throw new IllegalStateException("Invalid uri type for uri: " + uriData.getUri()); in getTableDelegate() 295 public final Uri getUri() { in getUri() method in VoicemailContentProvider.UriData 372 uriData.getUri()); in checkAndAddSourcePackageIntoValues() 395 return openFileHelper(uriData.getUri(), mode); in openDataFile() 474 VoicemailContract.PARAM_KEY_SOURCE_PACKAGE, uriData.getUri())); in checkPackagePermission() 477 uriData.getUri()); in checkPackagePermission()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/ |
D | MediaOutputSlice.java | 62 mPackageName = getUri().getQueryParameter(MEDIA_PACKAGE_NAME); in MediaOutputSlice() 132 mWorker = (MediaDeviceUpdateWorker) SliceBackgroundWorker.getInstance(getUri()); in getWorker() 162 final Intent intent = new Intent(getUri().toString()); in getBroadcastIntent() 171 public Uri getUri() { in getUri() method in MediaOutputSlice
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | RingtoneModel.java | 99 if (ringtone.getUri().equals(uri)) { in removeCustomRingtone() 109 if (ringtone.getUri().equals(uri)) { in getCustomRingtone() 132 permissions.add(uriPermission.getUri()); in loadRingtonePermissions() 137 i.set(ringtone.setHasPermissions(permissions.contains(ringtone.getUri()))); in loadRingtonePermissions()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 146 assertRootPicked(TestProvidersAccess.HAMMY.getUri()); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot() 156 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_CopyDestination_DefaultsToDownloads() 162 …mActivity.resources.strings.put(R.string.default_root_uri, TestProvidersAccess.HOME.getUri().toStr… in testInitLocation_CopyDestination_DocumentsRootEnabled() 167 assertRootPicked(TestProvidersAccess.HOME.getUri()); in testInitLocation_CopyDestination_DocumentsRootEnabled() 567 TestProvidersAccess.DOWNLOADS.getUri().toString()); in testInitLocationDefaultToDownloadsOnAction() 573 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocationDefaultToDownloadsOnAction() 582 assertEquals(expectedUri, root.getUri()); in assertRootPicked() 611 assertEquals(contents[i], clipData.getItemAt(i).getUri()); in assertContent()
|