/aosp12/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
H A 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() 129 file.getPath(), sTestUid)).isEqualTo(0); in testRenameDirectory() 135 sTestDir.getPath(), renamed.getPath(), sTestUid)).isEqualTo(0); in testRenameDirectory() 137 renamed.getPath(), sTestUid))).contains(file.getName()); in testRenameDirectory() [all …]
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | TaskSnapshotLowResDisabledTest.java | 72 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPersistAndLoadSnapshot() 73 new File(FILES_DIR.getPath() + "/snapshots/1.jpg")}; in testPersistAndLoadSnapshot() 75 new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg")}; in testPersistAndLoadSnapshot() 96 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testRemoveObsoleteFiles() 97 new File(FILES_DIR.getPath() + "/snapshots/1.jpg")}; in testRemoveObsoleteFiles() 100 new File(FILES_DIR.getPath() + "/snapshots/2.proto"), in testRemoveObsoleteFiles() 101 new File(FILES_DIR.getPath() + "/snapshots/2.jpg"), in testRemoveObsoleteFiles() 116 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testRemoveObsoleteFiles_addedOneInTheMeantime() 117 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testRemoveObsoleteFiles_addedOneInTheMeantime() 118 new File(FILES_DIR.getPath() + "/snapshots/2.proto"), in testRemoveObsoleteFiles_addedOneInTheMeantime() [all …]
|
H A D | TaskSnapshotPersisterLoaderTest.java | 77 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testPersistAndLoadSnapshot() 132 new File(FILES_DIR.getPath() + "/snapshots/3.proto"), in testPurging() 133 new File(FILES_DIR.getPath() + "/snapshots/4.proto")}; in testPurging() 135 new File(FILES_DIR.getPath() + "/snapshots/100.proto"), in testPurging() 136 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPurging() 137 new File(FILES_DIR.getPath() + "/snapshots/1.proto")}; in testPurging() 417 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testRemoveObsoleteFiles() 418 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testRemoveObsoleteFiles() 422 new File(FILES_DIR.getPath() + "/snapshots/2.jpg"), in testRemoveObsoleteFiles() 438 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testRemoveObsoleteFiles_addedOneInTheMeantime() [all …]
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
H A D | SilentModeHandlerUnitTest.java | 68 mFileHwStateMonitoring.getFile().getPath(), in testSilentModeHwStateMonitoring() 69 mFileKernelSilentMode.getFile().getPath(), BOOT_REASON_NORMAL); in testSilentModeHwStateMonitoring() 84 mFileHwStateMonitoring.getFile().getPath(), in testRebootForForcedSilentMode() 98 mFileHwStateMonitoring.getFile().getPath(), 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() 164 mFileHwStateMonitoring.getFile().getPath(), in testSetSilentMode_toForced() 184 mFileHwStateMonitoring.getFile().getPath(), in testSetSilentMode_toNonForced() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | LastMileLoggerTest.java | 66 FileUtils.stringToFile(mTraceEnableFile.getPath(), "0"); 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() 250 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in dumpDoesNotClearLastFailureData() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | FakeProviderRemote.java | 40 if (uri.getPath() != null && uri.getPath().contains("error")) { in getType() 63 if (uri.getPath() != null && uri.getPath().contains("error")) { in canonicalize() 72 if (uri.getPath() != null && uri.getPath().contains("error")) { in uncanonicalize()
|
/aosp12/frameworks/multidex/library/src/androidx/multidex/ |
H A D | MultiDexExtractor.java | 96 Log.i(TAG, "MultiDexExtractor(" + sourceApk.getPath() + ", " + dexDir.getPath() + ")"); in MultiDexExtractor() 105 Log.i(TAG, "Blocking on lock " + lockFile.getPath()); in MultiDexExtractor() 111 Log.i(TAG, lockFile.getPath() + " locked"); in MultiDexExtractor() 129 Log.i(TAG, "MultiDexExtractor.load(" + sourceApk.getPath() + ", " + forceReload + ", " + in load() 209 extractedFile.getPath() + "'"); in loadExistingExtractions() 297 extractedFile.getPath() + "'"); in performExtractions() 370 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " + in clearDexDir() 373 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearDexDir() 375 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in clearDexDir() 388 Log.i(TAG, "Extracting " + tmp.getPath()); in extract() [all …]
|
H A D | MultiDex.java | 453 Log.i(TAG, "Clearing old secondary dex dir (" + dexDir.getPath() + ")."); in clearOldDexDir() 460 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " in clearOldDexDir() 463 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearOldDexDir() 465 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in clearOldDexDir() 469 Log.w(TAG, "Failed to delete secondary dex dir " + dexDir.getPath()); in clearOldDexDir() 471 Log.i(TAG, "Deleted old secondary dex dir " + dexDir.getPath()); in clearOldDexDir() 499 Log.e(TAG, "Failed to create dir " + dir.getPath() + ". Parent file is null."); in mkdirChecked() 501 Log.e(TAG, "Failed to create dir " + dir.getPath() + in mkdirChecked() 508 throw new IOException("Failed to create directory " + dir.getPath()); in mkdirChecked() 718 DexFile.loadDex(file.getPath(), optimizedPathFor(file), 0)); in makeDexElements() [all …]
|
/aosp12/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
H A D | MtpStorageManagerTest.java | 361 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testGetByPath() 612 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccess() 631 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccessDir() 659 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccessDelayed() 678 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccessDirDelayed() 1096 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectSuccess() 1118 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectDirSuccess() 1148 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectDirVisitedSuccess() 1176 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectDelayed() 1199 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectDirVisitedDelayed() [all …]
|
H A D | MtpDatabaseTest.java | 59 private static final String MAIN_STORAGE_DIR = mBaseDir.getPath() + "/" + TAG + "/"; 80 "Failed to create file: name=" + name + ", " + parent.getPath()); in createNewDir() 221 Assert.assertNotNull("Fail to generate thumbnail:" + imgFile.getPath(), byteArray); in testThumbnail() 225 } else Assert.assertNull("Bad image should return null:" + imgFile.getPath(), byteArray); in testThumbnail() 234 final String baseTestDirStr = mMainStorageDir.getPath() + TEST_DIRNAME; in testMtpDatabaseThumbnail() 252 handleJpgBadThumb = mMtpDatabase.beginSendObject(jpgfileBadThumb.getPath(), in testMtpDatabaseThumbnail() 256 handleJpgNoThumb = mMtpDatabase.beginSendObject(jpgFileNoThumb.getPath(), in testMtpDatabaseThumbnail() 260 handleJpgBad = mMtpDatabase.beginSendObject(jpgfileBad.getPath(), in testMtpDatabaseThumbnail() 264 handlePng1 = mMtpDatabase.beginSendObject(pngFile1.getPath(), in testMtpDatabaseThumbnail() 268 handlePngBad = mMtpDatabase.beginSendObject(pngFileBad.getPath(), in testMtpDatabaseThumbnail()
|
/aosp12/frameworks/base/media/java/android/mtp/ |
H A D | MtpStorageManager.java | 59 super(object.getPath().toString(), in MtpObjectObserver() 87 Log.i(TAG, "inotify for " + mObject.getPath() + " deleted"); in onEvent() 190 return getPath().toFile().lastModified() / 1000; in getModifiedTime() 202 return mIsDir ? 0 : getPath().toFile().length(); in getSize() 205 public Path getPath() { in getPath() method in MtpStorageManager.MtpObject 292 return getPath().toFile().exists(); in exists() 579 Path dir = object.getPath(); in getChildren() 644 Log.w(TAG, "Failed to remove from parent " + removed.getPath()); in removeObjectFromCache() 673 Log.d(TAG, "Inconsistent directory info! " + obj.getPath()); in handleAddedObject() 871 if (!files.contains(child.getPath().toString())) { in checkConsistency() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseErrorHandlerTest.java | 46 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp() 68 BufferedWriter writer = new BufferedWriter(new FileWriter(mDatabaseFile.getPath())); in testDatabaseIsCorrupt() 94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt() 116 mDatabaseFile.getPath()); in onCorruption() 120 mDatabaseFile.getPath()); in onCorruption()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/backup/ |
H A D | FullBackupTest.java | 77 include.getPath()); in testparseBackupSchemeFromXml_onlyInclude() 99 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() 121 include.getPath()); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() 145 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() 170 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags() 196 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlagAndIngoreGarbage() 230 excludesSet.iterator().next().getPath()); in testparseBackupSchemeFromXml_onlyExclude() 247 fileDomainIncludes.iterator().next().getPath()); in testparseBackupSchemeFromXml_includeAndExclude() 252 excludesSet.iterator().next().getPath()); in testparseBackupSchemeFromXml_includeAndExclude() 275 fileDomainIncludes.iterator().next().getPath()); in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes() [all …]
|
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/app/ |
H A D | ResourcesManagerPerfTest.java | 88 getResourcesForPath(sResourcesCompressed.getPath()); in getResourcesCached() 90 getResourcesForPath(sResourcesCompressed.getPath()); in getResourcesCached() 100 resourcesManager.invalidatePath(sResourcesCompressed.getPath()); in getResourcesCompressedUncached() 103 getResourcesForPath(sResourcesCompressed.getPath()); in getResourcesCompressedUncached() 113 resourcesManager.invalidatePath(sResourcesUncompressed.getPath()); in getResourcesUncompressedUncached() 116 getResourcesForPath(sResourcesUncompressed.getPath()); in getResourcesUncompressedUncached()
|
/aosp12/frameworks/base/core/java/android/database/ |
H A D | DefaultDatabaseErrorHandler.java | 54 Log.e(TAG, "Corruption reported by sqlite on database: " + dbObj.getPath()); in onCorruption() 55 SQLiteDatabase.wipeDetected(dbObj.getPath(), "corruption"); in onCorruption() 65 deleteDatabaseFile(dbObj.getPath()); in onCorruption() 92 deleteDatabaseFile(dbObj.getPath()); in onCorruption()
|
/aosp12/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
H A D | DownloadCompletionReceiver.java | 52 .getPath(context.getFilesDir().getPath(), "images/animals/", fileName) in getDestinationFile() 60 .getPath(context.getFilesDir().getPath(), "images/image.png") in getDestinationFile()
|
/aosp12/art/test/595-profile-saving/src/ |
H A D | Main.java | 32 file.getPath(), in main() 33 file.getPath(), in main() 49 System.out.println("IsForBootImage: " + isForBootImage(file.getPath())); in main() 63 if (!presentInProfile(file.getPath(), m)) { in testAddMethodToProfile()
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | OutputSet.h | 37 inline const android::String8& getPath() const { in getPath() function 41 bool operator<(const OutputEntry& o) const { return getPath() < o.mPath; } 42 bool operator==(const OutputEntry& o) const { return getPath() == o.mPath; }
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | PhotoDataAdapter.java | 235 private Path getPath(int index) { in getPath() method in PhotoDataAdapter 238 return item.getPath(); in getPath() 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() 586 if (item != null && item.getPath() != path) { in setCurrentPhoto() 661 if (item == null || item.getPath() != mItemPath) { in updateImageRequests() 813 Path path = item.getPath(); in updateImageCache() 857 mPath = item.getPath(); in FullImageListener() [all …]
|
/aosp12/packages/services/Mtp/tests/src/com/android/mtp/ |
H A 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() 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() 892 assertEquals(4, path.getPath().size()); in testFindDocumentPath_multiStorage_toRoot() 893 assertEquals("2", path.getPath().get(0)); in testFindDocumentPath_multiStorage_toRoot() 894 assertEquals("4", path.getPath().get(1)); in testFindDocumentPath_multiStorage_toRoot() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageAbiHelperImpl.java | 98 return Environment.getRootDirectory().getPath(); in calculateBundledApkRoot() 101 return codeRoot.getPath(); in calculateBundledApkRoot() 140 appLib32InstallDir, pkg.getPath(), pkg.getBaseApkPath(), pkg.isSystem(), in deriveNativeLibraryPaths() 209 final String apkName = deriveCodePathName(pkg.getPath()); in getBundledAppAbis() 227 final File codeFile = new File(pkg.getPath()); in getBundledAppAbi() 237 (new File(apkRoot, new File(LIB64_DIR_NAME, apkName).getPath())).exists(); in getBundledAppAbi() 238 has32BitLibs = (new File(apkRoot, new File(LIB_DIR_NAME, apkName).getPath())).exists(); in getBundledAppAbi() 308 appLib32InstallDir, pkg.getPath(), in derivePackageAbi() 316 final boolean onIncremental = isIncrementalPath(pkg.getPath()); in derivePackageAbi() 469 pkg.getPath(), pkg.getBaseApkPath(), pkg.isSystem(), in derivePackageAbi()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | DocumentsProviderTest.java | 80 assertEquals(expected.getPath(), actual.getPath()); in testFindDocumentPath_treeUri() 103 assertEquals(Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID), path.getPath()); in testFindDocumentPath_treeUri_erasesNonNullRootId() 115 assertEquals(Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID), path.getPath()); in testFindDocumentPath_treeUri_erasesDocsOutsideTree()
|
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A 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()
|
/aosp12/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerTestApp.java | 100 String path = Environment.getExternalStorageDirectory().getPath(); in getDownloadStartedFilePath() 267 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleSwitching() 282 Log.i(LOG_TAG, "setting localUri to: " + localUri.getPath()); in runDownloadMultipleSwitching() 344 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleWiFiEnableDisable() 358 Log.i(LOG_TAG, "setting localUri to: " + localUri.getPath()); in runDownloadMultipleWiFiEnableDisable() 414 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleAirplaneModeEnableDisable() 428 Log.i(LOG_TAG, "setting localUri to: " + localUri.getPath()); in runDownloadMultipleAirplaneModeEnableDisable()
|
/aosp12/art/test/2230-profile-save-hotness/src-art/ |
H A D | Main.java | 43 file.getPath(), in main() 44 file.getPath(), in main() 53 if (!presentInProfile(file.getPath(), appMethod)) { in main()
|