/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaProviderForFuseTest.java | 107 file.getPath(), sTestUid)).isEqualTo(0); in testTypical() 109 sTestDir.getPath(), sTestUid))).contains(file.getName()); in testTypical() 116 file.getPath(), in testTypical() 117 file.getPath(), in testTypical() 127 file.getPath(), renamed.getPath(), sTestUid)).isEqualTo(0); in testTypical() 129 sTestDir.getPath(), sTestUid))).doesNotContain(file.getName()); in testTypical() 131 sTestDir.getPath(), sTestUid))).contains(renamed.getName()); in testTypical() 135 renamed.getPath(), sTestUid)).isEqualTo(0); in testTypical() 137 sTestDir.getPath(), sTestUid))).doesNotContain(renamed.getName()); in testTypical() 148 oldDir.getPath(), renamedDir.getPath(), sTestUid)).isEqualTo(0); in testRenameDirectory() [all …]
|
D | PublicVolumeTest.java | 97 if (!volume.isPrimary() && volume.getPath().startsWith("/storage")) { in testPublicVolumeDefaultFolders() 98 assertTrue(pollContainsDefaultFolders(volume.getPath())); in testPublicVolumeDefaultFolders() 109 if (!volume.isPrimary() && volume.getPath().startsWith("/storage")) { in testPublicVolumeDefaultFolders() 110 assertTrue(pollContainsDefaultFolders(volume.getPath())); in testPublicVolumeDefaultFolders()
|
/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/modules/Connectivity/tests/unit/java/com/android/server/ethernet/ |
D | EthernetConfigStoreTest.java | 75 mApexTestDir = new File(baseDir.getPath() + "/apex"); in createTestDir() 78 mLegacyTestDir = new File(baseDir.getPath() + "/legacy"); in createTestDir() 111 mApexConfigFile = new File(mApexTestDir.getPath(), "test.txt"); in testWriteIpConfigToApexFilePathAndRead() 112 mEthernetConfigStore.write("eth0", APEX_IP_CONFIG, mApexConfigFile.getPath()); in testWriteIpConfigToApexFilePathAndRead() 115 mEthernetConfigStore.read(mApexTestDir.getPath(), mLegacyTestDir.getPath(), "/test.txt"); in testWriteIpConfigToApexFilePathAndRead() 128 mEthernetConfigStore.write("0", LEGACY_IP_CONFIG, mLegacyConfigFile.getPath()); in testWriteIpConfigToLegacyFilePathAndRead() 131 mEthernetConfigStore.read(mApexTestDir.getPath(), mLegacyTestDir.getPath(), "/test.txt"); in testWriteIpConfigToLegacyFilePathAndRead() 137 assertConfigFileExist(mApexTestDir.getPath() + "/test.txt"); in testWriteIpConfigToLegacyFilePathAndRead() 139 final File apexConfigFile = new File(mApexTestDir.getPath() + "/test.txt"); in testWriteIpConfigToLegacyFilePathAndRead()
|
/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/providers/MediaProvider/src/com/android/providers/media/ |
D | VolumeCache.java | 96 final File volPath = volume.getPath(); in getUnreliableVolumePath() 97 if (volPath != null && volPath.getPath() != null in getUnreliableVolumePath() 98 && !volPath.getPath().startsWith("/storage/")){ in getUnreliableVolumePath() 125 return volume.getPath(); in getVolumePath() 163 if (FileUtils.contains(volume.getPath(), file)) { in findVolumeForFile() 169 Log.w(TAG, "Didn't find any volume for getVolume(" + file.getPath() + ")"); in findVolumeForFile()
|
D | MediaService.java | 153 if (!MediaStore.VOLUME_INTERNAL.equals(volumeName) && volume.getPath() == null) { in onScanVolume() 181 broadcastUri = Uri.fromFile(volume.getPath()); in onScanVolume() 207 provider.scanDirectory(volume.getPath(), reason); in onScanVolume() 221 final File file = new File(uri.getPath()).getCanonicalFile(); in onScanFile()
|
/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/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/simulator_app/src/android/nearby/fastpair/provider/simulator/testing/ |
D | LocalFileStreamIOHandler.java | 57 if (!isFileExists(inputUri.getPath())) { in LocalFileStreamIOHandler() 60 if (!isFileExists(outputUri.getPath())) { in LocalFileStreamIOHandler() 64 this.mInputPath = inputUri.getPath(); in LocalFileStreamIOHandler() 65 this.mOutputPath = outputUri.getPath(); in LocalFileStreamIOHandler()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | UriTest.java | 62 assertNull(u.getPath()); in testBuildUpon() 96 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri() 127 assertEquals("/path", uri.getPath()); in testStringUri() 132 assertEquals("\\.example.com/path", uri.getPath()); in testStringUri() 139 assertEquals("/foo", uri.getPath()); in testStringUri() 148 assertEquals("/", uri.getPath()); in testStringUri() 158 assertEquals("/foo", uri.getPath()); in testStringUri() 324 assertEquals("/a/b/c", withC.getPath()); in testPathOperations() 363 assertNull(uri.getPath()); in testOpaqueUri() 481 assertEquals(path, uri.getPath()); in compareHierarchical()
|
/packages/modules/Virtualization/tests/hostside/java/android/virt/test/ |
D | MicrodroidTestCase.java | 149 String path = mkPayload.getParentFile().getPath() + separator + System.getenv("PATH"); in createPayloadMetadata() 177 String path = signVirtApex.getParentFile().getPath() + separator + System.getenv("PATH"); in resignVirtApex() 185 command.add("--key_override " + filename + "=" + overridingKey.getPath()); in resignVirtApex() 187 command.add(signingKey.getPath()); in resignVirtApex() 188 command.add(virtApexDir.getPath()); in resignVirtApex() 557 sepolicyAnalyzeBin.getPath(), 558 policyFile.getPath(), 562 generalPolicyConfFile.getPath());
|
/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/providers/MediaProvider/src/com/android/providers/media/util/ |
D | SyntheticPathUtils.java | 48 return buildPath(/* base */ null, TRANSFORMS_DIR, SYNTHETIC_DIR, REDACTED_DIR).getPath(); in getRedactedRelativePath() 52 return buildPath(/* base */ null, TRANSFORMS_DIR, SYNTHETIC_DIR, PICKER_DIR).getPath(); in getPickerRelativePath() 119 return buildPath(/* base */ null, TRANSFORMS_DIR, SYNTHETIC_DIR).getPath(); in getSyntheticRelativePath()
|
/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/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/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/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 613 cursor.addRow(new Object[]{++counter, uid, destination, file.getPath()}); in prepareData() 623 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData() 631 cursor.addRow(new Object[]{++counter, uid, destination, file2.getPath()}); in prepareData() 641 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData() 649 cursor.addRow(new Object[]{++counter, uid, destination, file2.getPath()}); in prepareData() 658 final String filePath = file.getPath().replace( in prepareData()
|
/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/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 160 if (uri.getPath() == null) { in generateFileInfo() 165 EventLog.writeEvent(0x534e4554, "35310991", -1, uri.getPath()); in generateFileInfo() 172 File f = new File(uri.getPath()); in generateFileInfo()
|