/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | EncodedBufferTest.java | 222 final byte[] DATA = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; in testStartEditingChunkSize1() 226 buffer.writeRawBuffer(DATA); in testStartEditingChunkSize1() 229 assertEquals(DATA.length, buffer.getWritePos()); in testStartEditingChunkSize1() 230 assertEquals(DATA.length-1, buffer.getWriteBufIndex()); in testStartEditingChunkSize1() 232 assertEquals(DATA.length, buffer.getChunkCount()); in testStartEditingChunkSize1() 243 assertEquals(DATA.length, buffer.getChunkCount()); in testStartEditingChunkSize1() 244 assertEquals(DATA.length, buffer.getReadableSize()); in testStartEditingChunkSize1() 254 final byte[] DATA = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; in testStartEditingChunkSize100() 258 buffer.writeRawBuffer(DATA); in testStartEditingChunkSize100() 261 assertEquals(DATA.length, buffer.getWritePos()); in testStartEditingChunkSize100() [all …]
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStoreAudioTestHelper.java | 67 contentResolver.delete(dirUri, MediaStore.Audio.Media.DATA + "=?", new String[]{ in insert() 68 values.getAsString(MediaStore.Audio.Media.DATA) in insert() 119 values.put(Media.DATA, data.getAbsolutePath()); in getContentValues() 181 values.put(Media.DATA, data.getAbsolutePath()); in getContentValues() 217 values.put(Media.DATA, values.getAsString(Media.DATA) + ".3.mp3"); in getContentValues() 235 values.put(Media.DATA, values.getAsString(Media.DATA) + ".4.mp3"); in getContentValues() 253 values.put(Media.DATA, values.getAsString(Media.DATA) + ".5.mp3"); in getContentValues() 274 values.put(Media.DATA, values.getAsString(Media.DATA) + ".6.mp3"); in getContentValues() 296 values.put(Media.DATA, values.getAsString(Media.DATA) + ".recording.mp3"); in getContentValues()
|
D | MediaStore_FilesTest.java | 101 values.put(MediaColumns.DATA, dataPath); in testGetContentUri() 114 assertStringColumn(fileUri, MediaColumns.DATA, dataPath); in testGetContentUri() 119 values.put(MediaColumns.DATA, updatedPath); in testGetContentUri() 121 assertStringColumn(fileUri, MediaColumns.DATA, updatedPath); in testGetContentUri() 146 values.put(MediaColumns.DATA, b + "/testing" + System.nanoTime()); in testGetContentUri() 157 new String[] { MediaColumns.DATA }, null, null, null); in testGetContentUri() 185 values.put(MediaColumns.DATA, fileLower.getAbsolutePath()); in testCaseSensitivity() 202 values.put(MediaColumns.DATA, valid); in testAccessInternal() 223 values.put(MediaColumns.DATA, invalid); in testAccessInternal() 241 values.put(MediaColumns.DATA, valid); in testAccess() [all …]
|
D | MediaStore_VideoTest.java | 81 values.put(VideoColumns.DATA, valueOfData); in testQuery() 86 Cursor c = Video.query(mResolver, newUri, new String[] { VideoColumns.DATA }); in testQuery() 89 assertEquals(valueOfData, c.getString(c.getColumnIndex(VideoColumns.DATA))); in testQuery()
|
D | MediaStore_Images_ThumbnailsTest.java | 154 values.put(Thumbnails.DATA, path); in testQueryExternalThumbnails() 166 assertEquals(path, c.getString(c.getColumnIndex(Thumbnails.DATA))); in testQueryExternalThumbnails() 179 assertEquals(path, c.getString(c.getColumnIndex(Thumbnails.DATA))); in testQueryExternalThumbnails() 205 new String[]{Media._ID, Media.DATA}, null, null, null); in testQueryExternalMiniThumbnails() 208 String imagePath = c.getString(c.getColumnIndex(Media.DATA)); in testQueryExternalMiniThumbnails() 230 new String[]{Media._ID, Media.DATA}, null, null, null); in testQueryExternalMiniThumbnails() 233 imagePath = c.getString(c.getColumnIndex(Media.DATA)); in testQueryExternalMiniThumbnails() 266 values.put(Thumbnails.DATA, externalImgPath); in testStoreImagesMediaExternal() 282 assertEquals(externalImgPath, c.getString(c.getColumnIndex(Thumbnails.DATA))); in testStoreImagesMediaExternal() 291 values.put(Thumbnails.DATA, externalImgPath2); in testStoreImagesMediaExternal()
|
D | MediaStore_Images_MediaTest.java | 207 Cursor c = Media.query(mContentResolver, Uri.parse(stringUrl), new String[]{Media.DATA}, in testInsertImageWithBitmap() 212 Uri.fromFile(new File(c.getString(c.getColumnIndex(Media.DATA))))); in testInsertImageWithBitmap() 258 values.put(Media.DATA, externalPath); in testStoreImagesMediaExternal() 286 assertEquals(externalPath, c.getString(c.getColumnIndex(Media.DATA))); in testStoreImagesMediaExternal() 327 values.put(Media.DATA, insertedFile.getAbsolutePath()); 333 values.put(Media.DATA, externalPath); 371 values.put(Media.DATA, externalPath);
|
D | MediaStore_Audio_Playlists_MembersTest.java | 68 Members.DATA, 97 Members.DATA, 253 .getAsString(Members.DATA); in testStoreAudioPlaylistsMembersExternal() 254 assertEquals(expected1, c.getString(c.getColumnIndex(Members.DATA))); in testStoreAudioPlaylistsMembersExternal() 298 .getAsString(Members.DATA); in testStoreAudioPlaylistsMembersExternal() 299 assertEquals(expected2, c.getString(c.getColumnIndex(Members.DATA))); in testStoreAudioPlaylistsMembersExternal()
|
D | MediaStore_Audio_MediaTest.java | 139 String expected = audio1.getContentValues(mVolumeName).getAsString(Media.DATA); in testStoreAudioMedia() 140 assertEquals(expected, c.getString(c.getColumnIndex(Media.DATA))); in testStoreAudioMedia() 212 String expected = audio7.getContentValues(mVolumeName).getAsString(Media.DATA); in testStoreNotAudioRecordingMedia() 213 assertEquals(expected, c.getString(c.getColumnIndex(Media.DATA))); in testStoreNotAudioRecordingMedia()
|
D | MediaStoreTrashedTest.java | 147 c.getString(c.getColumnIndexOrThrow(MediaColumns.DATA))); in doTrashed()
|
D | MediaStore_Video_MediaTest.java | 144 values.put(Media.DATA, externalVideoPath); in testStoreVideoMediaExternal() 173 assertEquals(externalVideoPath, c.getString(c.getColumnIndex(Media.DATA))); in testStoreVideoMediaExternal() 206 values.put(VideoColumns.DATA, file.getAbsolutePath()); in insertVideo()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_DataTest.java | 144 cv1.put(Email.DATA, "tamale@acme.com"); in cv1.put() argument 151 cv2.put(Phone.DATA, "510-123-5769"); in cv2.put() argument 158 cv3.put(Email.DATA, "hot@google.com"); in cv3.put() argument 165 cv4.put(Email.DATA, "eggs@farmers.org"); in cv4.put() argument 172 cv5.put(Email.DATA, "doeassociates@deer.com"); in cv5.put() argument 179 cv6.put(Phone.DATA, "518-354-1111"); in cv6.put() argument 186 cv7.put(SipAddress.DATA, "mysip@sipaddress.com"); in cv7.put() argument 434 .with(Email.DATA, "test@test.com") in testContactablesUri() 438 cv.put(Email.DATA, "test@test.com"); in testContactablesUri() 450 .with(Phone.DATA, "123456789") in testContactablesUri() [all …]
|
D | ContactsContract_SearchSnippetsTest.java | 337 .with(Phone.DATA, "510-123-5769") in setupTestData() 351 .with(Email.DATA, "eggs@farmers.org") in setupTestData() 355 .with(Phone.DATA, "123-456-7890") in setupTestData() 370 .with(StructuredPostal.DATA, "123 Main Street Unit 3113") in setupTestData()
|
D | ContactsContract_FrequentsStrequentsTest.java | 432 .with(Phone.DATA, "510-123-5769") in setupTestData() 446 .with(Email.DATA, "eggs@farmers.org") in setupTestData() 460 .with(Phone.DATA, "518-354-1111") in setupTestData()
|
D | ContactsContract_PhoneLookup.java | 82 .with(Phone.DATA, "1111222333444") in setupTestData() 96 .with(Phone.DATA, "2111222333444") in setupTestData()
|
D | ContactsTest.java | 226 Photos.LOCAL_VERSION, Photos.DATA, in testPhotosTable() 250 value.put(Photos.DATA, data); in testPhotosTable() 578 ContactMethods.DATA, ContactMethods.AUX_DATA, ContactMethods.TYPE, 606 value.put(ContactMethods.DATA, insertData); 629 value.put(ContactMethods.DATA, updateData);
|
/cts/hostsidetests/appcloning/test-apps/AppCloningTestApp/src/com/android/cts/appcloningtestapp/ |
D | MediaStoreReadOperation.java | 37 MediaStore.Images.Media.DATA, in getImageFilesFromMediaStore() 46 int dataColumn = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); in getImageFilesFromMediaStore()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CredentialManagementAppActivity.java | 84 private static final byte[] DATA = "test".getBytes(); field in CredentialManagementAppActivity 281 sign.update(DATA); in getPrivateKeyAndSignData() 309 verify.update(DATA); in getPublicKeyAndVerifySignature()
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaScannerTest.java | 213 MediaColumns.DATA + "=?", new String[] { mMediaFile.getAbsolutePath() }, null); in testMediaScanner() 224 MediaColumns.DATA + "=?", new String[] { mMediaFile.getAbsolutePath() }, null); in testMediaScanner() 237 MediaColumns.DATA + "=?", new String[] { mMediaFile.getAbsolutePath() }, null); in testMediaScanner() 250 MediaStore.Files.FileColumns.DATA + "=?", in testMediaScanner() 253 MediaStore.Files.FileColumns.DATA + "=?", in testMediaScanner() 594 MediaStore.Audio.Media.DATA + "=?", new String[] {path}, null); in testEncodingDetection() 615 MediaStore.Audio.Media.DATA + "=?", new String[] {path}); in testEncodingDetection()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 550 values.put(MediaStore.MediaColumns.DATA, filePath); in insertFileFromExternalMedia() 599 values.put(MediaStore.MediaColumns.DATA, androidObbDir); in verifyInsertFromExternalPrivateDirViaData_denied() 604 values.put(MediaStore.MediaColumns.DATA, androidDataDir); in verifyInsertFromExternalPrivateDirViaData_denied() 613 values.put(MediaStore.MediaColumns.DATA, androidMediaDirFile); in verifyInsertFromExternalMediaDirViaData_allowed() 624 values.put(MediaStore.MediaColumns.DATA, androidMediaDirFile); in verifyUpdateToExternalDirsViaData_denied() 629 values.put(MediaStore.MediaColumns.DATA, androidObbDir); in verifyUpdateToExternalDirsViaData_denied() 633 values.put(MediaStore.MediaColumns.DATA, androidDataDir); in verifyUpdateToExternalDirsViaData_denied() 798 values.put(MediaStore.MediaColumns.DATA, file.getPath()); in insertFileUsingDataColumn() 825 values.put(MediaStore.MediaColumns.DATA, newPath.getPath()); in renameWithMediaProvider() 827 values, /*where*/ MediaStore.MediaColumns.DATA + "=?", in renameWithMediaProvider() [all …]
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 385 values.put(MediaStore.MediaColumns.DATA, hiddenImageFile.getAbsolutePath()); in testInsertHiddenFile() 722 values.put(MediaStore.MediaColumns.DATA, renamedImageInDCIM.getAbsolutePath()); in testCanRenameAFileWithNoDBRow_hasRW() 983 values.put(MediaStore.MediaColumns.DATA, jpgFile.getAbsolutePath()); in testScanUpdatesMetadataForNewlyAddedFile_hasRW() 1094 values.put(MediaStore.MediaColumns.DATA, androidObbDir); in testInsertFromExternalDirsViaData() 1098 values.put(MediaStore.MediaColumns.DATA, androidDataDir); in testInsertFromExternalDirsViaData() 1123 values.put(MediaStore.MediaColumns.DATA, androidMediaDirFile); in testUpdateToExternalDirsViaData() 1128 values.put(MediaStore.MediaColumns.DATA, androidObbDir); in testUpdateToExternalDirsViaData() 1132 values.put(MediaStore.MediaColumns.DATA, androidDataDir); in testUpdateToExternalDirsViaData() 1150 values.put(MediaStore.Files.FileColumns.DATA, in testInsertToOtherAppPrivateDirFails()
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | ChangeDefaultUris.java | 45 values.put(MediaStore.MediaColumns.DATA, mediaFile.getPath()); in testChangeDefaultUris()
|
/cts/libs/testserver/ |
D | LICENSE_BSD | 22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | StorageOtherFilesTest.java | 226 try (Cursor c = sContentResolver.query(uri, new String[]{MediaColumns.DATA}, null, null, in testDeleteWithParamDeleteData() argument 229 path = c.getString(c.getColumnIndex(MediaColumns.DATA)); in testDeleteWithParamDeleteData()
|
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/ |
D | RedactUriDeviceTest.java | 191 MediaStore.MediaColumns.DATA); in testQueryOnRedactionUri() 223 MediaStore.MediaColumns.DATA, in testQueryOnRedactionUri() 424 getStringFromCursor(redactedUriCursor, MediaStore.MediaColumns.DATA)); in testOpenOnRedactedUri_file()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 185 final int DATA = 1; in testFromSocket() local 197 out.write(DATA); in testFromSocket() 213 assertEquals(DATA, in.read()); in testFromSocket()
|