Home
last modified time | relevance | path

Searched refs:getPath (Results 1 – 25 of 194) sorted by relevance

12345678

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderForFuseTest.java90 file.getPath(), sTestUid)).isEqualTo(0); in testTypical()
92 sTestDir.getPath(), sTestUid))).contains(file.getName()); in testTypical()
99 file.getPath(), sTestUid, true)).isEqualTo(0); in testTypical()
103 file.getPath(), sTestUid, 0)).isEqualTo(new long[0]); in testTypical()
108 file.getPath(), renamed.getPath(), sTestUid)).isEqualTo(0); in testTypical()
110 sTestDir.getPath(), sTestUid))).doesNotContain(file.getName()); in testTypical()
112 sTestDir.getPath(), sTestUid))).contains(renamed.getName()); in testTypical()
116 renamed.getPath(), sTestUid)).isEqualTo(0); in testTypical()
118 sTestDir.getPath(), sTestUid))).doesNotContain(renamed.getName()); in testTypical()
129 file.getPath(), sTestUid)).isEqualTo(0); in testRenameDirectory()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java235 private Path getPath(int index) { in getPath() method in PhotoDataAdapter
238 return item.getPath(); in getPath()
266 mPaths[i] = getPath(mCurrentIndex + i - SCREEN_NAIL_MAX); in fireDataChange()
320 if (path == getPath(mCurrentIndex + i)) { in updateScreenNail()
341 if (path == getPath(mCurrentIndex)) { in updateFullImage()
401 mItemPath = item == null ? null : item.getPath(); in updateCurrentIndex()
421 ImageEntry e = mImageCache.get(item.getPath()); in uploadScreenNail()
454 ImageEntry entry = mImageCache.get(item.getPath()); in getScreenNail()
524 ImageEntry entry = mImageCache.get(getPath(mCurrentIndex + offset)); in getLoadingState()
586 if (item != null && item.getPath() != path) { in setCurrentPhoto()
[all …]
DAlbumPage.java137 if (item != null && item.getPath() == path) return i;
257 mSelectionManager.toggle(item.getPath()); in onSingleTapUp()
301 item.getPath().toString()); in pickPhoto()
320 Uri uri = dm.getContentUri(item.getPath()); in onGetContent()
342 mSelectionManager.toggle(item.getPath()); in onLongTap()
348 String basePath = mMediaSet.getPath().toString(); in doCluster()
772 mAlbumView.setHighlightItemPath(item.getPath()); in getDetails()
DAlbumSetPage.java196 mSelectionManager.toggle(targetSet.getPath()); in onSingleTapUp()
248 String mediaPath = targetSet.getPath().toString(); in pickAlbum()
257 .putExtra(AlbumPicker.KEY_ALBUM_PATH, targetSet.getPath().toString()); in pickAlbum()
305 mSelectionManager.toggle(set.getPath()); in onLongTap()
311 String basePath = mMediaSet.getPath().toString(); in doCluster()
555 FilterUtils.setupMenuItems(mActionBar, mMediaSet.getPath(), false); in onCreateActionBar()
757 mAlbumSetView.setHighlightItemPath(item.getPath()); in getDetails()
DVideoUtils.java61 genVideoUsingMuxer(filePath, dstFileInfo.mFile.getPath(), -1, -1, in startMute()
74 genVideoUsingMuxer(src.getPath(), dst.getPath(), startMs, endMs, in startTrim()
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java863 assertEquals(4, path.getPath().size()); in testFindDocumentPath_singleStorage_toRoot()
864 assertEquals("1", path.getPath().get(0)); in testFindDocumentPath_singleStorage_toRoot()
865 assertEquals("3", path.getPath().get(1)); in testFindDocumentPath_singleStorage_toRoot()
866 assertEquals("6", path.getPath().get(2)); in testFindDocumentPath_singleStorage_toRoot()
867 assertEquals("15", path.getPath().get(3)); in testFindDocumentPath_singleStorage_toRoot()
877 assertEquals(3, path.getPath().size()); in testFindDocumentPath_singleStorage_toDoc()
878 assertEquals("3", path.getPath().get(0)); in testFindDocumentPath_singleStorage_toDoc()
879 assertEquals("7", path.getPath().get(1)); in testFindDocumentPath_singleStorage_toDoc()
880 assertEquals("18", path.getPath().get(2)); in testFindDocumentPath_singleStorage_toDoc()
892 assertEquals(4, path.getPath().size()); in testFindDocumentPath_multiStorage_toRoot()
[all …]
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DDownloadCompletionReceiver.java52 .getPath(context.getFilesDir().getPath(), "images/animals/", fileName) in getDestinationFile()
60 .getPath(context.getFilesDir().getPath(), "images/image.png") in getDestinationFile()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java234 new String(Files.readAllBytes(temporaryFile.getPath()))); in testWearEstimateRecordJson()
273 new String(Files.readAllBytes(temporaryFile.getPath()))); in testWearHistoryJson()
361 statsFile.getPath()); in testUidIoStatEntry()
407 statsFile.getPath()); in testUidIoStatEntryMissingFields()
422 statsFile.getPath()); in testUidIoStatEntryNonNumericFields()
478 new String(Files.readAllBytes(temporaryFile.getPath()))); in testUidIoStatEntryJson()
692 new String(Files.readAllBytes(temporaryFile.getPath()))); in testUidIoStatsDeltaJson()
707 Files.write(ext4_part1.getPath().resolve("lifetime_write_kbytes"), in testLifetimeWriteInfo()
709 Files.write(f2fs_part1.getPath().resolve("lifetime_write_kbytes"), in testLifetimeWriteInfo()
711 Files.write(ext4_part2.getPath().resolve("lifetime_write_kbytes"), in testLifetimeWriteInfo()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java255 cursor.addRow(new Object[]{++counter, uid, destination, file.getPath()}); in prepareData()
265 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData()
273 cursor.addRow(new Object[]{++counter, uid, destination, file2.getPath()}); in prepareData()
283 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData()
291 cursor.addRow(new Object[]{++counter, uid, destination, file2.getPath()}); in prepareData()
300 final String filePath = file.getPath().replace( in prepareData()
DPublicApiFunctionalTest.java125 assertEquals(REQUEST_PATH, request.getPath()); in testBasicRequest()
361 InputStream stream = new FileInputStream(destination.getPath()); in testDestination()
415 assertEquals(REDIRECTED_PATH, lastRequest.getPath()); in testRedirect301()
421 assertEquals(REQUEST_PATH, lastRequest.getPath()); in testRedirect302()
717 new File(destination.getPath()).createNewFile(); in testExistingFile()
777 assertEquals(REQUEST_PATH, takeRequest().getPath()); in runRedirectionTest()
778 assertEquals(REDIRECTED_PATH, takeRequest().getPath()); in runRedirectionTest()
/packages/services/Mtp/src/com/android/mtp/
DMtpService.java74 if (volume.getPath().equals(path)) {
143 mVolumeMap.put(v.getPath(), v); in onStartCommand()
179 …" with storage " + primary.getPath() + (mUnlocked ? " unlocked" : "") + " as user " + UserHandle.m… in startServer()
225 Log.v(TAG, "Adding MTP storage:" + volume.getPath()); in addStorage()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java186 compressCommand.setArgs(new String[] { rawFile.getPath(), file.getPath() }); in runTestHeaderReaderProcessorWithOneSpec()
193 cryptCommand.setArgs(new String[] { rawFile.getPath(), file.getPath() }); in runTestHeaderReaderProcessorWithOneSpec()
/packages/apps/Gallery/src/com/android/camera/gallery/
DUriImage.java50 return mUri.getPath(); in getDataPath()
56 return new java.io.FileInputStream(mUri.getPath()); in getInputStream()
68 String path = mUri.getPath(); in getPFD()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsDeletionType.java168 mUncheckedFiles.remove(file.getPath()); in setFileChecked()
170 mUncheckedFiles.add(file.getPath()); in setFileChecked()
199 return !mUncheckedFiles.contains(file.getPath()); in isChecked()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java152 if (uri.getPath() == null) { in generateFileInfo()
157 EventLog.writeEvent(0x534e4554, "35310991", -1, uri.getPath()); in generateFileInfo()
164 File f = new File(uri.getPath()); in generateFileInfo()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java171 items.add(item.getPath()); in expandMediaSet()
189 Path id = set.getPath(); in getSelected()
226 Path id = item.getPath(); in getSelected()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java92 Path path = Path.fromString(uri.getPath()); in getType()
118 Path path = Path.fromString(uri.getPath()); in query()
180 Path path = Path.fromString(uri.getPath()); in openFile()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DMediaSetUtils.java63 return set1.getPath().toString().compareTo(set2.getPath().toString()); in compare()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMmsFileProvider.java47 final File file = getFile(uri.getPath()); in buildRawMmsUri()
60 return getFile(uri.getPath()); in getFile()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DPackage.java54 compressCommand.setArgs(new String[] { mArgs[0], intermediateFile.getPath() }); in run()
57 cryptCommand.setArgs(new String[] { intermediateFile.getPath(), mArgs[1] }); in run()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaObject.java85 public Path getPath() { in getPath() method in MediaObject
111 Log.e(TAG, "The object was created from path: " + getPath()); in getContentUri()
DFilterTypeSet.java88 String filteredPath = basePath + "/{" + set.getPath().toString() + "}"; in updateData()
107 Path path = item.getPath(); in updateData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java111 final long sharedDataSize = volume.getPath().getTotalSpace(); in updateSizes()
118 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DClusterContentProvider.java57 String filename = new File(uri.getPath()).getName(); in openFile()
74 Log.e(TAG, "could not copy file to internal cache: " + uri.getPath(), e); in openFile()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java126 final long sharedDataSize = volume.getPath().getTotalSpace(); in updateSizes()
133 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes()

12345678