Home
last modified time | relevance | path

Searched refs:getUri (Results 1 – 25 of 34) 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.java96 public Uri getUri() { in getUri() method in ContactsContract_TestDataBuilder.Builder
138 int count = mProvider.delete(getUri(), null, null); in delete()
139 assertEquals("Wrong number of rows deleted for " + getUri(), 1, count); in delete()
146 Uri uri = getUri().buildUpon() in deletePermanently()
159 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.java54 assertEquals(BASE_URI, s.getUri()); in testInt()
72 assertEquals(BASE_URI, s.getUri()); in testIcon()
90 assertEquals(BASE_URI, s.getUri()); in testText()
108 assertEquals(BASE_URI, s.getUri()); in testLong()
126 assertEquals(BASE_URI, s.getUri()); in testRemoteInput()
144 assertEquals(BASE_URI, s.getUri()); in testBundle()
164 assertEquals(BASE_URI, s.getUri()); in testActionSubtype()
183 assertEquals(BASE_URI, s.getUri()); in testSubsliceSubtype()
198 assertEquals(BASE_URI, s.getUri()); in testSpec()
210 assertEquals(BASE_URI, s.getUri()); in testCallerNeeded()
[all …]
DSliceBindingTest.java75 assertEquals(BASE_URI, s.getUri()); in testSliceUri()
82 assertEquals(uri, s.getUri()); in testSubSlice()
89 assertTrue(item.getSlice().getUri().toString().startsWith(uri.toString())); in testSubSlice()
90 assertNotEquals(uri, item.getSlice().getUri()); in testSubSlice()
98 assertEquals(uri, s.getUri()); in testText()
112 assertEquals(uri, s.getUri()); in testIcon()
136 assertEquals(uri, s.getUri()); in testAction()
159 assertEquals(uri, s.getUri()); in testInt()
172 assertEquals(uri, s.getUri()); in testTimestamp()
186 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/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/app/src/android/app/cts/
DRemoteActionTest.java52 assertEquals(icon.getUri(), result.getIcon().getUri()); in testParcel()
73 assertEquals(icon.getUri(), result.getIcon().getUri()); in testClone()
/cts/tests/tests/telephony/src/android/telephony/embms/cts/
DMbmsDownloadFlowTest.java81 String file2RelativePath = CtsDownloadService.FILE_INFO_2.getUri().getPath().substring( in testFileInSubdirectoryDownloadFlow()
113 String relativePath = fileInfo.getUri().getPath().substring( in testMultiFileDownloadFlow()
145 assertEquals(fileInfo.getUri().getLastPathSegment(), in checkFileContentIntegrity()
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java195 assertNotNull(font.getUri()); in querySingleFont()
212 assertNotNull(font.getUri()); in queryMultipleFont()
230 assertNotNull(font.getUri()); in queryAttributes()
238 assertNotNull(font.getUri()); in queryAttributes()
326 assertNotNull(font.getUri()); in queryMandatoryFieldsOnly()
/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/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java160 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
164 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
168 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
/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.java306 assertEquals(expectedItem.mUri.toString(), item.getUri().toString()); in assertClipItem()
308 assertNull(item.getUri()); in assertClipItem()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java116 Uri uri = item.getUri(); in assertReadingClipNotAllowed()
210 Uri uri = item.getUri(); in assertWritingClipNotAllowed()
547 grantIntent.setData(clip.getItemAt(0).getUri()); in grantClipUriPermission()
552 Uri uri = clip.getItemAt(i).getUri(); in grantClipUriPermission()
600 Uri uri = item.getUri(); in assertReadingClipAllowed()
716 Uri uri = item.getUri(); in assertWritingClipAllowed()
1326 assertEquals("unexpected uri", uri, perm.getUri()); in assertPersistedUriPermission()
1625 assertEquals(expectedItem.getUri(), actualItem.getUri()); in assertClipDataEquals()
/cts/hostsidetests/incident/src/com/android/server/cts/
DUsbIncidentTest.java65 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()
/cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/
DDropTarget.java169 Uri uri = item.getUri(); in processDrop()

12