Home
last modified time | relevance | path

Searched refs:displayName (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/
DMediaStorePendingTest.java108 final String displayName = "cts" + System.nanoTime(); in verifySuccessfulImageInsertion() local
111 insertUri, displayName, "image/png"); in verifySuccessfulImageInsertion()
146 assertEquals(displayName + ".png", rawFile.getName()); in verifySuccessfulImageInsertion()
157 final String displayName = "cts" + System.nanoTime(); in testSimple_Abandoned() local
161 insertUri, displayName, "image/png"); in testSimple_Abandoned()
195 final String displayName = "cts" + System.nanoTime(); in testDuplicates() local
199 insertUri, displayName, "audio/mpeg"); in testDuplicates()
201 insertUri, displayName, "audio/mpeg"); in testDuplicates()
220 final String displayName = "cts" + System.nanoTime(); in testMimeTypes() local
222 assertCreatePending(new PendingParams(mExternalAudio, displayName, "audio/ogg")); in testMimeTypes()
[all …]
DMediaStore_DownloadsTest.java148 final String displayName = "cts" + System.nanoTime(); in testMediaInDownloadsDir() local
149 final Uri insertUri = insertImage(displayName, "test image", in testMediaInDownloadsDir()
150 new File(mDownloadsDir, displayName + ".jpg"), "image/jpeg", R.raw.scenery); in testMediaInDownloadsDir()
156 null, "title LIKE ?1", new String[] { displayName }, null)) { in testMediaInDownloadsDir() argument
173 final String displayName = "cts" + System.nanoTime(); in testInsertDownload() local
179 mExternalDownloads, displayName, mimeType); in testInsertDownload()
202 assertEquals(displayName + ".html", in testInsertDownload()
223 final String displayName = "cts" + System.nanoTime(); in testUpdateDownload() local
225 mExternalDownloads, displayName, "video/3gpp"); in testUpdateDownload()
259 final String displayName = "cts" + System.nanoTime(); in testDeleteDownload() local
[all …]
DMediaStore_Video_MediaTest.java215 final String displayName = "cts" + System.nanoTime(); in testLocationRedaction() local
217 mExternalVideo, displayName, "video/mp4"); in testLocationRedaction()
280 final String displayName = "cts" + System.nanoTime(); in testLocationDeprecated() local
282 mExternalVideo, displayName, "video/mp4"); in testLocationDeprecated()
387 final String displayName = c.getString(c.getColumnIndex(VideoColumns.DISPLAY_NAME)); in testMetadata() local
388 assertTrue("Invalid display name " + displayName, displayName.startsWith("cts")); in testMetadata()
389 assertTrue("Invalid display name " + displayName, displayName.endsWith(".mp4")); in testMetadata()
DMediaStore_Images_MediaTest.java310 final String displayName = "cts" + System.nanoTime();
312 mExternalImages, displayName, "image/jpeg");
369 final String displayName = "cts" + System.nanoTime();
371 mExternalImages, displayName, "image/jpeg");
477 final String displayName = c.getString(c.getColumnIndex(ImageColumns.DISPLAY_NAME));
478 assertTrue("Invalid display name " + displayName, displayName.startsWith("cts"));
479 assertTrue("Invalid display name " + displayName, displayName.endsWith(".jpg"));
DMediaStoreUtils.java96 public PendingParams(@NonNull Uri insertUri, @NonNull String displayName, in PendingParams() argument
101 this.insertValues.put(MediaColumns.DISPLAY_NAME, Objects.requireNonNull(displayName)); in PendingParams()
DMediaStorePlacementTest.java229 private boolean updatePlacement(Uri uri, Optional<String> path, Optional<String> displayName) in updatePlacement() argument
235 if (displayName != null) { in updatePlacement()
236 values.put(MediaColumns.DISPLAY_NAME, displayName.orElse(null)); in updatePlacement()
DProviderTestUtils.java233 final String displayName = "cts" + System.nanoTime(); in stageMedia() local
234 final PendingParams params = new PendingParams(collectionUri, displayName, mimeType); in stageMedia()
DMediaStore_Images_ThumbnailsTest.java422 final String displayName = "cts" + System.nanoTime(); in testInsertUpdateDelete() local
424 mExternalImages, displayName, "image/png"); in testInsertUpdateDelete()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DContactsTest.java99 String displayName; field in ContactsTest.ContactInfo
104 public ContactInfo(String contactId, String displayName, String photoUri, in ContactInfo() argument
107 this.displayName = displayName; in ContactInfo()
171 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
179 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
199 assertEquals(MANAGED_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
207 assertEquals(MANAGED_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
225 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME_2, contactInfo.displayName); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
232 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME_2, contactInfo.displayName); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
247 assertEquals(MANAGED_CONTACT_DISPLAY_NAME_2, contactInfo.displayName); in testManagedProfileDuplicatedPhoneEmailContact_insertedAndfound()
[all …]
DCrossProfileCalendarTest.java473 private long insertWorkCalendar(String displayName) { in insertWorkCalendar() argument
478 cv.put(CalendarContract.Calendars.CALENDAR_DISPLAY_NAME, displayName); in insertWorkCalendar()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java119 private Doc buildDoc(String docId, String displayName, String mimeType, in buildDoc() argument
123 doc.displayName = displayName; in buildDoc()
206 public String displayName; field in MyDocumentsProvider.Doc
217 row.add(Document.COLUMN_DISPLAY_NAME, displayName); in include()
241 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument
244 final Doc doc = buildDoc(docId, displayName, mimeType, null); in createDocument()
251 public String renameDocument(String documentId, String displayName) in renameDocument() argument
253 mDocs.get(documentId).displayName = displayName; in renameDocument()
284 final Doc docCopy = buildDoc(doc.docId + "_copy", doc.displayName + "_COPY", doc.mimeType, in copyDocument()
343 if (!TextUtils.isEmpty(doc.displayName) && doc.displayName.toLowerCase().contains( in querySearchDocuments()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java394 final String displayName = "cts" + System.nanoTime(); in createAudio() local
396 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, displayName, "audio/mpeg"); in createAudio()
409 final String displayName = "cts" + System.nanoTime(); in createVideo() local
411 MediaStore.Video.Media.EXTERNAL_CONTENT_URI, displayName, "video/mpeg"); in createVideo()
424 final String displayName = "cts" + System.nanoTime(); in createImage() local
426 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, displayName, "image/png"); in createImage()
DMediaStoreUtils.java90 public PendingParams(@NonNull Uri insertUri, @NonNull String displayName, in PendingParams() argument
95 this.insertValues.put(MediaColumns.DISPLAY_NAME, Objects.requireNonNull(displayName)); in PendingParams()