/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaProviderForFuseTest.java | 91 file.getPath(), sTestUid)).isEqualTo(0); in testTypical() 93 sTestDir.getPath(), sTestUid))).contains(file.getName()); in testTypical() 100 file.getPath(), file.getPath(), sTestUid, 0 /* tid */, 0 /* transforms_reason */, 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() 135 sTestDir.getPath(), renamed.getPath(), sTestUid)).isEqualTo(0); in testRenameDirectory() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | SilentModeHandlerUnitTest.java | 68 mFileHwStateMonitoring.getFile().getPath(), in testSilentModeHwStateMonitoring() 69 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_NORMAL); in testSilentModeHwStateMonitoring() 84 mFileHwStateMonitoring.getFile().getPath(), in testRebootForForcedSilentMode() 85 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_FORCED_SILENT); in testRebootForForcedSilentMode() 98 mFileHwStateMonitoring.getFile().getPath(), in testRebootForForcedNonSilentMode() 99 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_FORCED_NON_SILENT); in testRebootForForcedNonSilentMode() 112 mFileHwStateMonitoring.getFile().getPath(), in testUpdateKernelSilentMode() 113 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_NORMAL); in testUpdateKernelSilentMode() 118 String contents = readFileAsString(mFileKernelSilentMode.getPath()); in testUpdateKernelSilentMode() 123 contents = readFileAsString(mFileKernelSilentMode.getPath()); in testUpdateKernelSilentMode() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | LastMileLoggerTest.java | 66 FileUtils.stringToFile(mTraceEnableFile.getPath(), "0"); in setUp() 67 mLastMileLogger = new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), in setUp() 68 mTraceEnableFile.getPath(), mTraceReleaseFile.getPath()); in setUp() 77 new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), mTraceEnableFile.getPath(), in ctorDoesNotCrash() 78 mTraceReleaseFile.getPath()); in ctorDoesNotCrash() 172 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in multipleIfaces() 204 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in dumpShowsFailureTrace() 214 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in dumpShowsPendingConnectionTrace() 223 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect try #1"); in dumpShowsLastFailureTraceAndPendingConnectionTrace() 226 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect try #2"); in dumpShowsLastFailureTraceAndPendingConnectionTrace() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 235 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 …]
|
D | AlbumPage.java | 137 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()
|
D | AlbumSetPage.java | 196 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()
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDocumentsProviderTest.java | 863 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/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | UriTest.java | 59 assertNull(u.getPath()); in testBuildUpon() 93 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri() 124 assertEquals("/path", uri.getPath()); in testStringUri() 129 assertEquals("\\.example.com/path", uri.getPath()); in testStringUri() 136 assertEquals("/foo", uri.getPath()); in testStringUri() 145 assertEquals("/", uri.getPath()); in testStringUri() 155 assertEquals("/foo", uri.getPath()); in testStringUri() 321 assertEquals("/a/b/c", withC.getPath()); in testPathOperations() 360 assertNull(uri.getPath()); in testOpaqueUri() 478 assertEquals(path, uri.getPath()); in compareHierarchical()
|
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
D | DownloadCompletionReceiver.java | 52 .getPath(context.getFilesDir().getPath(), "images/animals/", fileName) in getDestinationFile() 60 .getPath(context.getFilesDir().getPath(), "images/image.png") in getDestinationFile()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 255 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()
|
D | PublicApiFunctionalTest.java | 125 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() 718 new File(destination.getPath()).createNewFile(); in testExistingFile() 778 assertEquals(REQUEST_PATH, takeRequest().getPath()); in runRedirectionTest() 779 assertEquals(REDIRECTED_PATH, takeRequest().getPath()); in runRedirectionTest()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | CarStorageMonitoringTest.java | 234 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/services/Mtp/src/com/android/mtp/ |
D | MtpService.java | 74 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() 221 Log.v(TAG, "Adding MTP storage:" + volume.getPath()); in addStorage()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | UriImage.java | 50 return mUri.getPath(); in getDataPath() 56 return new java.io.FileInputStream(mUri.getPath()); in getInputStream() 68 String path = mUri.getPath(); in getPFD()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtilsTests.java | 186 compressCommand.setArgs(new String[] { rawFile.getPath(), file.getPath() }); in runTestHeaderReaderProcessorWithOneSpec() 193 cryptCommand.setArgs(new String[] { rawFile.getPath(), file.getPath() }); in runTestHeaderReaderProcessorWithOneSpec()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiNetworkSpecifier.java | 477 wifiConfiguration.SSID = "\"" + mSsidPatternMatcher.getPath() + "\""; in buildWifiConfiguration() 503 && mSsidPatternMatcher.getPath().equals(MATCH_EMPTY_SSID_PATTERN_PATH)) { in hasSetMatchNonePattern() 726 ssidPatternMatcher.getPath(), ssidPatternMatcher.getType(), bssidPatternMatcher, in hashCode() 739 return Objects.equals(this.ssidPatternMatcher.getPath(), in equals() 740 lhs.ssidPatternMatcher.getPath()) in equals()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | DownloadsDeletionType.java | 168 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/ |
D | BluetoothOppSendFileInfo.java | 158 if (uri.getPath() == null) { in generateFileInfo() 163 EventLog.writeEvent(0x534e4554, "35310991", -1, uri.getPath()); in generateFileInfo() 170 File f = new File(uri.getPath()); in generateFileInfo()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 171 items.add(item.getPath()); in expandMediaSet() 189 Path id = set.getPath(); in getSelected() 226 Path id = item.getPath(); in getSelected()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | VolumeCache.java | 109 return volume.getPath(); in getVolumePath() 147 if (FileUtils.contains(volume.getPath(), file)) { in findVolumeForFile() 153 Log.w(TAG, "Didn't find any volume for getVolume(" + file.getPath() + ")"); in findVolumeForFile()
|
D | MediaService.java | 171 broadcastUri = Uri.fromFile(volume.getPath()); in onScanVolume() 197 provider.scanDirectory(volume.getPath(), reason); in onScanVolume() 211 final File file = new File(uri.getPath()).getCanonicalFile(); in onScanFile()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | MediaSetUtils.java | 63 return set1.getPath().toString().compareTo(set2.getPath().toString()); in compare()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | MmsFileProvider.java | 47 final File file = getFile(uri.getPath()); in buildRawMmsUri() 60 return getFile(uri.getPath()); in getFile()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageEntryTest.java | 299 when(volumeInfo.getPath()).thenReturn(file); in getPath_shouldReturnPath() 305 assertThat(volumeStorage.getPath()).isEqualTo(file); in getPath_shouldReturnPath() 306 assertThat(diskStorage.getPath()).isEqualTo(null); in getPath_shouldReturnPath() 307 assertThat(recordStorage.getPath()).isEqualTo(null); in getPath_shouldReturnPath()
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
D | GalleryProvider.java | 92 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()
|