Home
last modified time | relevance | path

Searched refs:getUri (Results 1 – 25 of 35) sorted by relevance

12

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_PhotoTest.java66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
67 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
68 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
78 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
79 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
80 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
87 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
88 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddEmptyPhoto()
89 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddEmptyPhoto()
96 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
[all …]
DContactsContract_AllUriTest.java240 private static Uri getUri(String[] path) { in getUri() method in ContactsContract_AllUriTest
351 final Uri uri = getUri(path); in testSelect()
366 final Uri uri = getUri(path); in testNoHiddenColumns()
432 final Uri uri = getUri(path); in testSelectWithSelection()
491 final Uri uri = getUri(path); in testSelectWithAllArgs()
508 final Uri uri = getUri(path); in testNonSelect()
588 final Uri uri = getUri(path); in testProhibitedColumns()
627 final Uri uri = getUri(path); in testAllOperations()
670 final Uri uri = getUri(path); in testAllFileOperations()
DContactsContract_TestDataBuilder.java93 public Uri getUri() { in getUri() method in ContactsContract_TestDataBuilder.Builder
135 int count = mProvider.delete(getUri(), null, null); in delete()
136 assertEquals("Wrong number of rows deleted for " + getUri(), 1, count); in delete()
143 Uri uri = getUri().buildUpon() in deletePermanently()
156 mCursor = mProvider.query(getUri(), null, null, null, null, null); in load()
DContactsContract_RawContactsTest.java98 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriBySourceId()
115 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriByDisplayName()
DContactsContract_IsSuperPrimaryName.java118 mResolver.update(nonPrimaryName.getUri(), values, null, null); in testInner_displayNameFromIsSuperPrimary()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceBuilderTest.java55 assertEquals(BASE_URI, s.getUri()); in testInt()
73 assertEquals(BASE_URI, s.getUri()); in testIcon()
91 assertEquals(BASE_URI, s.getUri()); in testText()
109 assertEquals(BASE_URI, s.getUri()); in testLong()
127 assertEquals(BASE_URI, s.getUri()); in testRemoteInput()
145 assertEquals(BASE_URI, s.getUri()); in testBundle()
165 assertEquals(BASE_URI, s.getUri()); in testActionSubtype()
184 assertEquals(BASE_URI, s.getUri()); in testSubsliceSubtype()
199 assertEquals(BASE_URI, s.getUri()); in testSpec()
211 assertEquals(BASE_URI, s.getUri()); in testCallerNeeded()
[all …]
DSliceBindingTest.java76 assertEquals(BASE_URI, s.getUri()); in testSliceUri()
83 assertEquals(uri, s.getUri()); in testSubSlice()
90 assertTrue(item.getSlice().getUri().toString().startsWith(uri.toString())); in testSubSlice()
91 assertNotEquals(uri, item.getSlice().getUri()); in testSubSlice()
99 assertEquals(uri, s.getUri()); in testText()
113 assertEquals(uri, s.getUri()); in testIcon()
137 assertEquals(uri, s.getUri()); in testAction()
160 assertEquals(uri, s.getUri()); in testInt()
173 assertEquals(uri, s.getUri()); in testTimestamp()
187 assertEquals(uri, s.getUri()); in testHints()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DContentObservableTest.java77 assertNull(mObserver.getUri()); in testDispatchChange()
86 assertNull(mObserver.getUri()); in testDispatchChange()
101 assertEquals(CONTENT_URI, mObserver.getUri()); in testDispatchChangeWithUri()
110 assertEquals(CONTENT_URI, mObserver.getUri()); in testDispatchChangeWithUri()
152 protected Uri getUri() { in getUri() method in ContentObservableTest.MyContentObserver
DContentObserverTest.java81 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
90 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
104 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
113 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
211 protected Uri getUri() { in getUri() method in ContentObserverTest.MyContentObserverWithUri
/cts/tests/tests/app/src/android/app/cts/
DRemoteActionTest.java53 assertEquals(icon.getUri(), result.getIcon().getUri()); in testParcel()
74 assertEquals(icon.getUri(), result.getIcon().getUri()); in testClone()
/cts/tests/app/src/android/app/cts/
DPersonTest.java45 assertEquals(TEST_URI, person.getUri()); in testPerson_builder()
58 assertNull(person.getUri()); in testPerson_builder_defaults()
76 assertEquals(TEST_URI, result.getUri()); in testToBuilder()
102 assertEquals(person.getUri(), result.getUri()); in testPerson_parcelable()
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java194 assertNotNull(font.getUri()); in querySingleFont()
211 assertNotNull(font.getUri()); in queryMultipleFont()
229 assertNotNull(font.getUri()); in queryAttributes()
237 assertNotNull(font.getUri()); in queryAttributes()
325 assertNotNull(font.getUri()); in queryMandatoryFieldsOnly()
DWifiSliceTest.java91 assertThat(mWifiSlice.getUri()).isEqualTo(WIFI_SLICE_URI); in wifiSlice_hasCorrectUri()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadFlowTest.java91 String file2RelativePath = CtsDownloadService.FILE_INFO_2.getUri().getPath().substring( in testFileInSubdirectoryDownloadFlow()
124 String relativePath = fileInfo.getUri().getPath().substring( in testMultiFileDownloadFlow()
156 assertEquals(fileInfo.getUri().getLastPathSegment(), in checkFileContentIntegrity()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java161 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
165 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
169 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java107 if (!perm.getUri().equals(uri)) { in verifyOutgoingPersisted()
109 "Expected " + uri + " but found " + perm.getUri()); in verifyOutgoingPersisted()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java118 Uri uri = item.getUri(); in assertReadingClipNotAllowed()
222 Uri uri = item.getUri(); in assertWritingClipNotAllowed()
567 grantIntent.setData(clip.getItemAt(0).getUri()); in grantClipUriPermission()
572 Uri uri = clip.getItemAt(i).getUri(); in grantClipUriPermission()
620 Uri uri = item.getUri(); in assertReadingClipAllowed()
736 Uri uri = item.getUri(); in assertWritingClipAllowed()
1366 assertEquals("unexpected uri", uri, perm.getUri()); in assertPersistedUriPermission()
1674 assertEquals(expectedItem.getUri(), actualItem.getUri()); in assertClipDataEquals()
/cts/tests/tests/content/src/android/content/cts/
DImageCaptureActivity.java90 Uri filePath = clipData.getItemAt(0).getUri(); in getFileFromIntent()
DReadableFileReceiverActivity.java92 Uri filePath = clipData.getItemAt(i).getUri(); in getFilesFromIntent()
DClipboardManagerTest.java363 assertEquals(expectedItem.mUri.toString(), item.getUri().toString()); in assertClipItem()
365 assertNull(item.getUri()); in assertClipItem()
/cts/hostsidetests/incident/src/com/android/server/cts/
DUsbIncidentTest.java67 assertTrue(uap.getUri().isEmpty()); in verifyUsbAccessoryProto()
/cts/libs/testserver/src/android/webkit/cts/
DTestWebServer.java402 Log.i(TAG, requestLine.getMethod() + ": " + requestLine.getUri()); in getResponse()
403 String uriString = requestLine.getUri(); in getResponse()
619 String uriString = requestLine.getUri(); in isShutdownRequest()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java84 permCheckRead = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
86 permCheckWrite = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java84 permCheckRead = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
86 permCheckWrite = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java82 final Uri uri = clipData != null ? clipData.getItemAt(0).getUri() : null; in onCreate()

12