/aosp14/frameworks/base/core/tests/coretests/src/android/util/apk/ |
H A D | SourceStampVerifierTest.java | 73 SourceStampVerifier.verify(testApk.getAbsolutePath()); in testSourceStamp_noStamp() 86 SourceStampVerifier.verify(mPrimaryApk.getAbsolutePath()); in testSourceStamp_correctSignature() 101 SourceStampVerifier.verify(mPrimaryApk.getAbsolutePath()); in testSourceStamp_signatureMissing() 113 SourceStampVerifier.verify(mPrimaryApk.getAbsolutePath()); in testSourceStamp_certificateMismatch() 125 SourceStampVerifier.verify(mPrimaryApk.getAbsolutePath()); in testSourceStamp_apkHashMismatch_v1SignatureScheme() 137 SourceStampVerifier.verify(mPrimaryApk.getAbsolutePath()); in testSourceStamp_apkHashMismatch_v2SignatureScheme() 149 SourceStampVerifier.verify(mPrimaryApk.getAbsolutePath()); in testSourceStamp_apkHashMismatch_v3SignatureScheme() 174 apkFiles.add(mPrimaryApk.getAbsolutePath()); in testSourceStamp_multiApk_validStamps() 175 apkFiles.add(mSecondaryApk.getAbsolutePath()); in testSourceStamp_multiApk_validStamps() 192 apkFiles.add(mPrimaryApk.getAbsolutePath()); in testSourceStamp_multiApk_invalidStamps() [all …]
|
/aosp14/frameworks/base/core/java/android/os/incremental/ |
H A D | IncrementalFileStorages.java | 100 incrementalManager.registerLoadingProgressCallback(stageDir.getAbsolutePath(), in initialize() 117 inheritedDir.getAbsolutePath())) { in IncrementalFileStorages() 119 inheritedDir.getAbsolutePath()); in IncrementalFileStorages() 128 mDefaultStorage = mIncrementalManager.createStorage(stageDir.getAbsolutePath(), in IncrementalFileStorages() 139 mDefaultStorage = mIncrementalManager.createStorage(stageDir.getAbsolutePath(), in IncrementalFileStorages() 196 mInheritedStorage.makeLink(sourcePath.getAbsolutePath(), mDefaultStorage, in makeLink() 197 destPath.getAbsolutePath()); in makeLink() 227 mIncrementalManager.unregisterLoadingProgressCallbacks(mStageDir.getAbsolutePath()); in cleanUp() 228 defaultStorage.unBind(mStageDir.getAbsolutePath()); in cleanUp()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | StorageManagerIntegrationTest.java | 39 String filePath = file.getAbsolutePath(); in testMountSingleObb() 55 String filePath1 = file1.getAbsolutePath(); in testMountMultipleObb() 60 String filePath2 = file2.getAbsolutePath(); in testMountMultipleObb() 65 String filePath3 = file3.getAbsolutePath(); in testMountMultipleObb() 91 String filePath = file.getAbsolutePath(); in testMountUnsignedObb() 106 String filePath = file.getAbsolutePath(); in testMountBadPackageNameObb() 116 String filePath = file.getAbsolutePath(); in testRemountObb()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ExifInterfaceTest.java | 174 IMAGE_FILENAMES[i]).getAbsolutePath(); in setUp() 189 IMAGE_FILENAMES[i]).getAbsolutePath(); in tearDown() 323 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testExifInterfaceCommon() 349 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600); in testExifInterfaceCommon() 364 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testSaveAttributes_withFileName() 366 exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testSaveAttributes_withFileName() 372 exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testSaveAttributes_withFileName() 380 exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testSaveAttributes_withFileName() 390 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDWR, 0600); in testSaveAttributes_withFileDescriptor() 523 if (imageFileAfterOneSave.getAbsolutePath().endsWith(".png") in assertSecondSaveProducesSameSizeFile() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/cpu/ |
H A D | CpuInfoReader.java | 123 mCpuFreqDir.getAbsolutePath()); in init() 266 writer.printf("mCpusetDir = %s\n", mCpusetDir.getAbsolutePath()); in dump() 267 writer.printf("mCpuFreqDir = %s\n", mCpuFreqDir.getAbsolutePath()); in dump() 335 cpuFreqDir.getAbsolutePath()); in setCpuFreqDir() 431 cpuCoresFile.getAbsolutePath()); in readStaticPolicyInfo() 451 policyDir.getAbsolutePath()); in readDynamicPolicyInfo() 464 policyDir.getAbsolutePath()); in readDynamicPolicyInfo() 524 timeInStateFile.getAbsolutePath()); in readTimeInState() 589 file.getAbsolutePath()); in readCpuCores() 623 file.getAbsolutePath()); in readCpuCores() [all …]
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | AppMetadataBackupWriter.java | 105 filesDir.getAbsolutePath(), in backupManifest() 106 manifestFile.getAbsolutePath(), in backupManifest() 193 filesDir.getAbsolutePath(), in backupWidget() 194 metadataFile.getAbsolutePath(), in backupWidget() 265 Log.i(TAG, "obb dir: " + obbDir.getAbsolutePath()); in backupObb() 269 String obbDirName = obbDir.getAbsolutePath(); in backupObb() 276 obb.getAbsolutePath(), in backupObb()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | ApexEnvironmentTest.java | 38 apexEnvironment.getDeviceProtectedDataDir().getAbsolutePath()); in dataDirectoryPathsAreAsExpected() 42 .getDeviceProtectedDataDirForUser(UserHandle.of(5)).getAbsolutePath()); in dataDirectoryPathsAreAsExpected() 46 UserHandle.of(16)).getAbsolutePath()); in dataDirectoryPathsAreAsExpected()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
H A D | PackageCacher.java | 66 sb.append(packageFile.getAbsolutePath().hashCode()); in getCacheKey() 131 "Failed to find APEX file backing " + packageFile.getAbsolutePath()); in isCacheUpToDate() 139 final StructStat pkg = Os.stat(packageFile.getAbsolutePath()); in isCacheUpToDate() 140 final StructStat cache = Os.stat(cacheFile.getAbsolutePath()); in isCacheUpToDate() 175 final byte[] bytes = IoUtils.readFileAsByteArray(cacheFile.getAbsolutePath()); in getCachedResult() 177 if (!packageFile.getAbsolutePath().equals(parsed.getPath())) { in getCachedResult()
|
/aosp14/frameworks/base/services/core/java/com/android/server/backup/ |
H A D | SystemBackupAgent.java | 73 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 76 "wallpaper").getAbsolutePath(); 81 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 84 "wallpaper_info.xml").getAbsolutePath();
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | RandomAccessFileUtils.java | 39 Slog.w(TAG, "Error writing file:" + file.getAbsolutePath(), e); in writeBoolean() 48 Slog.w(TAG, "Error reading file:" + file.getAbsolutePath(), e); in readBoolean()
|
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
H A D | WearPackageUtil.java | 45 Os.chmod(newFileDir.getAbsolutePath(), 0771); in getTemporaryFile() 58 Os.chmod(newFileDir.getAbsolutePath(), 0771); in getIconFile() 105 Os.chmod(newFile.getAbsolutePath(), 0644); in getFileFromFd()
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationHistoryDatabase.java | 182 Slog.e(TAG, "error reading " + file.getBaseFile().getAbsolutePath(), e); in readNotificationHistory() 208 Slog.e(TAG, "error reading " + file.getBaseFile().getAbsolutePath(), e); in readNotificationHistory() 274 if (af != null && filePath.equals(af.getBaseFile().getAbsolutePath())) { in removeFilePathFromHistory() 287 removeFilePathFromHistory(file.getBaseFile().getAbsolutePath()); in deleteFile() 310 Slog.e(TAG, "Cannot open " + file.getBaseFile().getAbsolutePath(), e); in readLocked() 341 + file.getBaseFile().getAbsolutePath()); in run() 378 + af.getBaseFile().getAbsolutePath(), e); in run()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | NativeActivity.java | 171 getAbsolutePath(getFilesDir()), getAbsolutePath(getObbDir()), in onCreate() 172 getAbsolutePath(getExternalFilesDir(null)), in onCreate() 183 private static String getAbsolutePath(File file) { in getAbsolutePath() method in NativeActivity 184 return (file != null) ? file.getAbsolutePath() : null; in getAbsolutePath()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageAbiHelperImpl.java | 74 String fullPath = codePath.getAbsolutePath(); in calculateBundledApkRoot() 171 apkName).getAbsolutePath(); in deriveNativeLibraryPaths() 176 secondaryLibDir, apkName).getAbsolutePath(); in deriveNativeLibraryPaths() 183 .getAbsolutePath(); in deriveNativeLibraryPaths() 191 nativeLibraryRootDir = new File(codeFile, LIB_DIR_NAME).getAbsolutePath(); in deriveNativeLibraryPaths() 195 getPrimaryInstructionSet(abis)).getAbsolutePath(); in deriveNativeLibraryPaths() 199 VMRuntime.getInstructionSet(abis.secondary)).getAbsolutePath(); in deriveNativeLibraryPaths()
|
H A D | InitAppsHelper.java | 144 if (apexInfo.preInstalledApexPath.getAbsolutePath().equals( in resolveApexToScanPartition() 145 sp.getFolder().getAbsolutePath()) in resolveApexToScanPartition() 146 || apexInfo.preInstalledApexPath.getAbsolutePath().startsWith( in resolveApexToScanPartition() 147 sp.getFolder().getAbsolutePath() + File.separator)) { in resolveApexToScanPartition() 369 Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "scanDir [" + scanDir.getAbsolutePath() + "]"); in scanDirTracedLI()
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
H A D | SlicePermissionManagerTest.java | 57 Log.v(TAG, "testGrant: slice permissions stored in " + sliceDir.getAbsolutePath()); in testGrant() 75 Log.v(TAG, "testBackup: slice permissions stored in " + sliceDir.getAbsolutePath()); in testBackup() 119 Log.v(TAG, "testInvalid: slice permissions stored in " + sliceDir.getAbsolutePath()); in testInvalid()
|
/aosp14/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/ |
H A D | ServicesTests.java | 42 assertFalse("Failed to delete result file '" + resultFile.getAbsolutePath() + "'.", in testStressConcurentFirstLaunch() 46 assertFalse("Failed to delete completion file '" + completeFile.getAbsolutePath() + in testStressConcurentFirstLaunch()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | GraphicsStatsService.java | 111 + mGraphicsStatsDir.getAbsolutePath()); in GraphicsStatsService() 267 nAddToDump(dump, data.getAbsolutePath()); in pullGraphicsStatsImpl() 311 Log.w(TAG, "Unable to create path: '" + parent.getAbsolutePath() + "'"); in saveBuffer() 314 nSaveBuffer(path.getAbsolutePath(), buffer.mInfo.mPackageName, in saveBuffer() 328 Log.w(TAG, "Failed to delete '" + file.getAbsolutePath() + "'!"); in deleteRecursiveLocked() 408 nAddToDump(dump, path.getAbsolutePath(), buffer.mInfo.mPackageName, in dumpActiveLocked() 423 nAddToDump(dump, data.getAbsolutePath()); in dumpHistoricalLocked()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | KernelCpuUidFreqTimeReaderTest.java | 91 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in setUp() 92 new KernelCpuProcStringReader(mTestFile.getAbsolutePath()), mBpfMapReader, false); in setUp() 113 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in testReadFreqs_perClusterTimesNotAvailable() 114 … new KernelCpuProcStringReader(mTestFile.getAbsolutePath()), mBpfMapReader, false); in testReadFreqs_perClusterTimesNotAvailable() 141 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in testReadFreqs_perClusterTimesAvailable() 142 … new KernelCpuProcStringReader(mTestFile.getAbsolutePath()), mBpfMapReader, false); in testReadFreqs_perClusterTimesAvailable()
|
/aosp14/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/ |
H A D | ServicesTests.java | 201 throw new AssertionError("Failed to clear '" + subElement.getAbsolutePath() + "'"); in clearDirContent() 228 "Failed to delete result file '" + resultFile.getAbsolutePath() + "'.", in initServicesWorkFiles() 233 "Failed to delete completion file '" + completeFile.getAbsolutePath() + "'.", in initServicesWorkFiles() 320 Assert.assertTrue(dir.getAbsolutePath(), dir.isDirectory()); in getSecondaryFolder()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
H A D | SettingsTest.java | 82 enableFsVerity(packagesXml.getAbsolutePath()); in performTest() 85 BlockDeviceWriter.damageFileAgainstBlockDevice(getDevice(), packagesXml.getAbsolutePath(), in performTest()
|
/aosp14/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/ |
H A D | DumpCommand.java | 58 + DEFAULT_DUMP_FILE.getAbsolutePath() + "\n"; in detailedOptions() 121 String.format("UI hierchary dumped to: %s", dumpFile.getAbsolutePath())); in run()
|
/aosp14/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/ |
H A D | StagedInstallInternalTest.java | 265 "--staged-ready-timeout", "60000", apexFile.getAbsolutePath()); in testAdbStagdReadyTimeoutFlagWorks() 280 apexFile.getAbsolutePath()); in testAdbStagedInstallWaitsTillReadyByDefault() 295 "--staged-ready-timeout", "0", apexFile.getAbsolutePath()); in testAdbStagedReadyWaitCanBeSkipped() 312 "--enable-rollback", apexFile.getAbsolutePath()); in testAdbRollbackAppWaitsForStagedReady() 330 apexFile.getAbsolutePath(), apkFile.getAbsolutePath()); in testAdbInstallMultiPackageCommandWorks()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | FontFallbackSetup.java | 59 mTestFontsDir = cacheDir.getAbsolutePath() + "/"; in FontFallbackSetup() 61 final String testFontsXml = new File(mTestFontsDir, "fonts.xml").getAbsolutePath(); in FontFallbackSetup()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
H A D | RollbackStoreTest.java | 134 assertThat(rollback.getBackupDir().getAbsolutePath()) in createNonStaged() 135 .isEqualTo(mFolder.getRoot().getAbsolutePath() + "/" + ID); in createNonStaged() 153 assertThat(rollback.getBackupDir().getAbsolutePath()) in createStaged() 154 .isEqualTo(mFolder.getRoot().getAbsolutePath() + "/" + ID); in createStaged() 323 File expectedFile = new File(mRollbackDir.getAbsolutePath() + "/rollback.json"); in saveAndDelete()
|