Home
last modified time | relevance | path

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

12

/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStorePendingTest.java113 final String displayName = "cts" + System.nanoTime(); in verifySuccessfulImageInsertion() local
116 insertUri, displayName, "image/png"); in verifySuccessfulImageInsertion()
151 assertEquals(displayName + ".png", rawFile.getName()); in verifySuccessfulImageInsertion()
163 final String displayName = "cts" + System.nanoTime(); in testSimple_Abandoned() local
167 insertUri, displayName, "image/png"); in testSimple_Abandoned()
201 final String displayName = "cts" + System.nanoTime(); in testDuplicates() local
205 insertUri, displayName, "audio/mpeg"); in testDuplicates()
207 insertUri, displayName, "audio/mpeg"); in testDuplicates()
226 final String displayName = "cts" + System.nanoTime(); in testMimeTypes() local
228 assertCreatePending(new PendingParams(mExternalAudio, displayName, "audio/ogg")); in testMimeTypes()
[all …]
DMediaStore_DownloadsTest.java157 final String displayName = "cts" + System.nanoTime(); in testMediaInDownloadsDir() local
158 final Uri insertUri = insertImage(displayName, "test image", in testMediaInDownloadsDir()
159 new File(mDownloadsDir, displayName + ".jpg"), "image/jpeg", R.raw.scenery); in testMediaInDownloadsDir()
165 null, "title LIKE ?1", new String[]{displayName}, null)) { in testMediaInDownloadsDir() argument
182 final String displayName = "cts" + System.nanoTime(); in testInsertDownload() local
188 mExternalDownloads, displayName, mimeType); in testInsertDownload()
211 assertEquals(displayName + ".html", in testInsertDownload()
232 final String displayName = "cts" + System.nanoTime(); in testUpdateDownload() local
234 mExternalDownloads, displayName, "video/3gpp"); in testUpdateDownload()
268 final String displayName = "cts" + System.nanoTime(); in testDeleteDownload() local
[all …]
DMediaStore_Video_MediaTest.java315 final String displayName = "cts" + System.nanoTime(); in testLocationDeprecated() local
317 mExternalVideo, displayName, "video/mp4"); in testLocationDeprecated()
436 final String displayName = c.getString(c.getColumnIndex(VideoColumns.DISPLAY_NAME)); in testMetadata() local
437 assertTrue("Invalid display name " + displayName, displayName.startsWith("cts")); in testMetadata()
438 assertTrue("Invalid display name " + displayName, displayName.endsWith(".mp4")); in testMetadata()
448 final String displayName = "cts" + System.nanoTime(); in testMediaWithSubtitles() local
450 final String mediaDisplayName = displayName + ".mp4"; in testMediaWithSubtitles()
451 final String subDisplayName = displayName + ".srt"; in testMediaWithSubtitles()
DMediaStorePlacementTest.java317 final String displayName = "cts" + System.nanoTime() + ".jpg"; in stageImageInAudio() local
319 Environment.DIRECTORY_ALARMS, displayName); in stageImageInAudio()
324 private boolean updatePlacement(Uri uri, Optional<String> path, Optional<String> displayName) in updatePlacement() argument
330 if (displayName != null) { in updatePlacement()
331 values.put(MediaColumns.DISPLAY_NAME, displayName.orElse(null)); in updatePlacement()
DMediaStoreUtils.java102 public PendingParams(@NonNull Uri insertUri, @NonNull String displayName, in PendingParams() argument
107 this.insertValues.put(MediaColumns.DISPLAY_NAME, Objects.requireNonNull(displayName)); in PendingParams()
DMediaStore_Images_MediaTest.java464 final String displayName = "cts" + System.nanoTime();
466 mExternalImages, displayName, "image/jpeg");
585 final String displayName = c.getString(c.getColumnIndex(ImageColumns.DISPLAY_NAME));
586 assertTrue("Invalid display name " + displayName, displayName.startsWith("cts"));
587 assertTrue("Invalid display name " + displayName, displayName.endsWith(".jpg"));
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35676/src/android/security/cts/CVE_2023_35676/com/google/android/apps/miphone/aiai/matchnaker/overview/api/generatedv2/
DSuggestParcelables.java34 public String displayName; field in SuggestParcelables.Action
44 if (bundle.containsKey(context.getString(R.string.displayName))) { in Action()
45 this.displayName = bundle.getString(context.getString(R.string.displayName)); in Action()
56 bundle.putString(context.getString(R.string.displayName), this.displayName); in writeToBundle()
64 public String displayName; field in SuggestParcelables.ActionGroup
74 if (bundle.containsKey(context.getString(R.string.displayName))) { in ActionGroup()
75 this.displayName = bundle.getString(context.getString(R.string.displayName)); in ActionGroup()
DEntitiesData.java98 context.getString(R.string.displayName), in writeToParcel()
99 actionGroup.displayName); in writeToParcel()
/cts/hostsidetests/appcloning/test-apps/AppCloningTestApp/src/com/android/cts/appcloningtestapp/
DMediaStoreWriteOperation.java36 public static Uri createImageFileToMediaStoreReturnUri(Context context, String displayName, in createImageFileToMediaStoreReturnUri() argument
42 displayName + "_" + Calendar.getInstance().getTime() + ".jpg"); in createImageFileToMediaStoreReturnUri()
74 public static boolean createImageFileToMediaStore(Context context, String displayName, in createImageFileToMediaStore() argument
77 createImageFileToMediaStoreReturnUri(context, displayName, bitmap, imageCollection); in createImageFileToMediaStore()
90 return displayNameActual.contains(displayName); in createImageFileToMediaStore()
DImage.java29 public Image(String data, String displayName) { in Image() argument
31 mDisplayName = displayName; in Image()
DMediaStoreReadOperation.java53 String displayName = cursor.getString(displayNameColumn); in getImageFilesFromMediaStore() local
59 imageList.add(new Image(data, displayName)); in getImageFilesFromMediaStore()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationEndToEndSelfManagedTest.kt53 singleDevice = false, selfManaged = true, displayName = DEVICE_DISPLAY_NAME) in test_userRejected()
57 singleDevice = false, selfManaged = true, displayName = DEVICE_DISPLAY_NAME) in test_userRejected()
61 sendRequestAndLaunchConfirmation(selfManaged = true, displayName = DEVICE_DISPLAY_NAME) in test_userRejected()
77 assertEquals(actual = associationFromCallback.displayName, expected = DEVICE_DISPLAY_NAME) in test_userRejected()
DUiAutomationTestBase.kt125 displayName: String? = null in <lambda>()
126 ) = test_cancelled(singleDevice, selfManaged, userRejected = true, displayName) { in <lambda>()
138 displayName: String? = null in <lambda>()
139 ) = test_cancelled(singleDevice, selfManaged, userRejected = false, displayName) { in <lambda>()
148 displayName: String?, in <lambda>()
157 sendRequestAndLaunchConfirmation(singleDevice, selfManaged, displayName) in <lambda>()
303 displayName: String? = null, in <lambda>()
318 displayName?.let { setDisplayName(it) } in <lambda>()
DAssociationEndToEndTest.kt56 super.test_userRejected(singleDevice = false, selfManaged = false, displayName = null) in test_userRejected()
60 super.test_userDismissed(singleDevice = false, selfManaged = false, displayName = null) in test_userRejected()
DAssociationEndToEndSingleDeviceTest.kt41 super.test_userRejected(singleDevice = true, selfManaged = false, displayName = null) in test_userRejected()
45 super.test_userDismissed(singleDevice = true, selfManaged = false, displayName = null) in test_userRejected()
/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()
207 public String displayName; field in MyDocumentsProvider.Doc
218 row.add(Document.COLUMN_DISPLAY_NAME, displayName); in include()
242 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument
245 final Doc doc = buildDoc(docId, displayName, mimeType, null); in createDocument()
252 public String renameDocument(String documentId, String displayName) in renameDocument() argument
254 mDocs.get(documentId).displayName = displayName; in renameDocument()
285 final Doc docCopy = buildDoc(doc.docId + "_copy", doc.displayName + "_COPY", doc.mimeType, in copyDocument()
344 if (!TextUtils.isEmpty(doc.displayName) && doc.displayName.toLowerCase().contains( in querySearchDocuments()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DContactsTest.java110 String displayName; field in ContactsTest.ContactInfo
115 public ContactInfo(String contactId, String displayName, String photoUri, in ContactInfo() argument
118 this.displayName = displayName; in ContactInfo()
190 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
198 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testPrimaryProfilePhoneAndEmailLookup_insertedAndfound()
218 assertEquals(MANAGED_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
226 assertEquals(MANAGED_CONTACT_DISPLAY_NAME, contactInfo.displayName); in testManagedProfilePhoneAndEmailLookup_insertedAndfound()
244 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME_2, contactInfo.displayName); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
251 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME_2, contactInfo.displayName); in testPrimaryProfileDuplicatedPhoneEmailContact_insertedAndfound()
266 assertEquals(MANAGED_CONTACT_DISPLAY_NAME_2, contactInfo.displayName); in testManagedProfileDuplicatedPhoneEmailContact_insertedAndfound()
[all …]
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DAssociationRequestBuilderTest.kt49 assertNull(displayName) in test_defaultValues()
76 assertEquals(actual = displayName, expected = DISPLAY_NAME) in test_setters()
DAssociateSelfManagedTest.kt90 assertEquals(actual = displayName, expected = DEVICE_DISPLAY_NAME) in test_associate_selfManaged_nullProfile_leadsToNoUiFlow()
128 assertEquals(actual = displayName, expected = DEVICE_DISPLAY_NAME) in test_associate_selfManaged_alreadyRoleHolder_leadsToNoUiFlow()
DAssociationInfoBuilderTest.kt63 assertEquals(actual = newAssociationInfo.displayName, expected = DISPLAY_NAME) in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
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()
DMediaStorageTest.java973 final String displayName = "cts" + System.nanoTime(); in createDownload() local
977 MediaStore.Downloads.EXTERNAL_CONTENT_URI, displayName, mimeType); in createDownload()
998 final String displayName = "cts" + System.nanoTime(); in createAudio() local
1000 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, displayName, "audio/mpeg"); in createAudio()
1014 final String displayName = "cts" + System.nanoTime(); in createVideo() local
1016 MediaStore.Video.Media.EXTERNAL_CONTENT_URI, displayName, "video/mpeg"); in createVideo()
1029 final String displayName = "cts" + System.nanoTime(); in createImage() local
1031 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, displayName, "image/png"); in createImage()
1044 final String displayName = "cts" + System.nanoTime(); in createPlaylist() local
1046 MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, displayName, "audio/mpegurl"); in createPlaylist()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DPhotoPickerFilesUtils.java175 final String displayName = DISPLAY_NAME_PREFIX + System.nanoTime(); in stageMedia() local
177 collectionUri, displayName, mimeType); in stageMedia()
186 return new Pair(session.publish(), displayName); in stageMedia()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35676/src/android/security/cts/CVE_2023_35676/
DContentSuggestionsService.java78 actionBundle.putString(getString(R.string.displayName), getString(R.string.cve_button)); in onClassifyContentSelections()
83 actionGroupBundle.putString(getString(R.string.displayName), "groupDisplayName"); in onClassifyContentSelections()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DCallLogTest.java586 private ContentValues createBusinessCallValues(boolean isBusiness, String displayName) { in createBusinessCallValues() argument
590 values.put(Calls.ASSERTED_DISPLAY_NAME, displayName); in createBusinessCallValues()
598 String displayName) { in verifyBusinessCallValues() argument
605 assertEquals(displayName, cursor.getString( in verifyBusinessCallValues()

12