/aosp14/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 | 79 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testPersistAndLoadSnapshot() 140 new File(FILES_DIR.getPath() + "/snapshots/3.proto"), in testPurging() 141 new File(FILES_DIR.getPath() + "/snapshots/4.proto")}; in testPurging() 143 new File(FILES_DIR.getPath() + "/snapshots/100.proto"), in testPurging() 144 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPurging() 145 new File(FILES_DIR.getPath() + "/snapshots/1.proto")}; in testPurging() 427 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testRemoveObsoleteFiles() 428 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testRemoveObsoleteFiles() 432 new File(FILES_DIR.getPath() + "/snapshots/2.jpg"), in testRemoveObsoleteFiles() 448 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testRemoveObsoleteFiles_addedOneInTheMeantime() [all …]
|
/aosp14/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()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | DisplayShapeTest.java | 50 final Path path = displayShape.getPath(); in testGetPath() 87 SPEC_RECTANGULAR_SHAPE, 1f, 100, 200).getPath(); in testGetPath_cache() 89 SPEC_RECTANGULAR_SHAPE, 1f, 100, 200).getPath(), in testGetPath_cache() 98 final Path path = displayShape.getPath(); in testRotate_90() 111 final Path path = displayShape.getPath(); in testRotate_270() 124 final Path path = displayShape.getPath(); in testOffset() 136 final Path path = displayShape.getPath(); in testPhysicalPixelDisplaySizeRatio()
|
/aosp14/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()
|
/aosp14/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()
|
/aosp14/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
H A D | MtpStorageManagerTest.java | 363 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testGetByPath() 614 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccess() 633 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccessDir() 661 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccessDelayed() 680 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testSendObjectSuccessDirDelayed() 1098 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectSuccess() 1120 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectDirSuccess() 1150 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectDirVisitedSuccess() 1178 Assert.assertEquals(obj.getPath().toString(), renamed.getPath()); in testRenameObjectDelayed() 1201 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()
|
/aosp14/frameworks/base/media/java/android/mtp/ |
H A D | MtpStorageManager.java | 64 super(object.getPath().toString(), in MtpObjectObserver() 92 Log.i(TAG, "inotify for " + mObject.getPath() + " deleted"); in onEvent() 195 return getPath().toFile().lastModified() / 1000; in getModifiedTime() 231 final Path path = getPath(); in isFileTranscodeSupported() 241 public Path getPath() { in getPath() method in MtpStorageManager.MtpObject 328 return getPath().toFile().exists(); in exists() 617 Path dir = object.getPath(); in getChildren() 682 Log.w(TAG, "Failed to remove from parent " + removed.getPath()); in removeObjectFromCache() 711 Log.d(TAG, "Inconsistent directory info! " + obj.getPath()); in handleAddedObject() 909 if (!files.contains(child.getPath().toString())) { in checkConsistency() [all …]
|
H A D | MtpStorage.java | 42 mPath = volume.getPath(); in MtpStorage() 66 public final String getPath() { in getPath() method in MtpStorage
|
/aosp14/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()
|
/aosp14/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 …]
|
/aosp14/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; }
|
/aosp14/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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageAbiHelperImpl.java | 99 return Environment.getRootDirectory().getPath(); in calculateBundledApkRoot() 102 return codeRoot.getPath(); in calculateBundledApkRoot() 141 AndroidPackageUtils.getRawSecondaryCpuAbi(pkg)), appLib32InstallDir, pkg.getPath(), in deriveNativeLibraryPaths() 210 final String apkName = deriveCodePathName(pkg.getPath()); in getBundledAppAbis() 228 final File codeFile = new File(pkg.getPath()); in getBundledAppAbi() 238 (new File(apkRoot, new File(LIB64_DIR_NAME, apkName).getPath())).exists(); in getBundledAppAbi() 239 has32BitLibs = (new File(apkRoot, new File(LIB_DIR_NAME, apkName).getPath())).exists(); in getBundledAppAbi() 309 appLib32InstallDir, pkg.getPath(), in derivePackageAbi() 317 final boolean onIncremental = isIncrementalPath(pkg.getPath()); in derivePackageAbi() 470 pkg.getPath(), pkg.getBaseApkPath(), isSystemApp, in derivePackageAbi()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | WebAddressTest.java | 30 assertEquals("/b/c/g", webAddress.getPath()); in testHostWithTrailingDot() 38 assertEquals("/?si=1", webAddress.getPath()); in testPathWithoutLeadingSlash()
|
/aosp14/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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppSnapshotLoader.java | 168 final Bitmap bitmap = BitmapFactory.decodeFile(bitmapFile.getPath(), options); in loadTask() 170 Slog.w(TAG, "Failed to load bitmap: " + bitmapFile.getPath()); in loadTask() 177 Slog.w(TAG, "Failed to create hardware bitmap: " + bitmapFile.getPath()); in loadTask() 183 + bitmapFile.getPath()); in loadTask()
|
/aosp14/frameworks/base/core/java/com/android/internal/content/ |
H A D | NativeLibraryHelper.java | 198 int res = nativeCopyNativeBinaries(apkHandle, sharedLibraryDir.getPath(), abi, in copyNativeBinaries() 254 Slog.w(TAG, "Deleting native binaries from: " + nativeLibraryRoot.getPath()); in removeNativeBinariesFromDirLI() 273 Slog.w(TAG, "Could not delete native binary: " + files[nn].getPath()); in removeNativeBinariesFromDirLI() 282 nativeLibraryRoot.getPath()); in removeNativeBinariesFromDirLI() 296 throw new IOException("Cannot create " + path.getPath()); in createNativeLibrarySubdir() 300 Os.chmod(path.getPath(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); in createNativeLibrarySubdir() 303 + path.getPath(), e); in createNativeLibrarySubdir() 306 throw new IOException("Cannot set SELinux context for " + path.getPath()); in createNativeLibrarySubdir()
|
/aosp14/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/ |
H A D | AbstractService.java | 64 Log.i(TAG, "Writing 0x42434445 at " + raf.length() + " in " + resultFile.getPath()); in run() 68 + " in " + resultFile.getPath()); in run() 77 Log.i(TAG, "Saving the result (" + value + ") to " + resultFile.getPath()); in run() 81 Log.i(TAG, "Writing result at " + raf.length() + " in " + resultFile.getPath()); in run() 91 Log.i(TAG, "creating complete file " + resultFile.getPath()); in run()
|
/aosp14/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/ |
H A D | LowStorageTest.java | 52 StatFs stat = new StatFs(path.getPath()); in onCreate() 80 StatFs stat = new StatFs(path.getPath()); in fillupdisk() 122 StatFs stat = new StatFs(path.getPath()); in updateInfo()
|
/aosp14/frameworks/base/telephony/java/android/telephony/mbms/ |
H A D | MbmsDownloadReceiver.java | 150 MbmsTempFileProvider.getEmbmsTempFileDir(context).getPath())) { in onReceive() 268 Path appSpecifiedDestination = FileSystems.getDefault().getPath( in moveDownloadedFile() 269 request.getDestinationUri().getPath()); in moveDownloadedFile() 273 String relativeLocation = getFileRelativePath(request.getSourceUri().getPath(), in moveDownloadedFile() 274 completedFileInfo.getUri().getPath()); in moveDownloadedFile() 306 Log.w(LOG_TAG, "Failed to delete temp file at " + tempFile.getPath()); in cleanupPostMove() 458 Path fromFile = FileSystems.getDefault().getPath(fromPath.getPath()); in moveToFinalLocation()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestHelper.java | 75 .getExternalFilesDir(null).getPath(), CAMERA_STRESS_IMAGES_DIRECTORY, 101 .getExternalFilesDir(null).getPath(), CAMERA_STRESS_IMAGES_DIRECTORY)); in setupCameraTest() 136 .getExternalFilesDir(null).getPath(), CAMERA_STRESS_IMAGES_DIRECTORY)); in cleanupTestImages()
|
/aosp14/frameworks/base/core/java/android/app/slice/ |
H A D | SliceMetrics.java | 48 mLogMaker.addTaggedData(MetricsEvent.FIELD_SLICE_PATH, uri.getPath()); in SliceMetrics() 91 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_PATH, subSlice.getPath()); in logTouch()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/ |
H A D | ParsedProviderTest.kt | 52 PatternMatcher::getPath, 70 PatternMatcher::getPath,
|