/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
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() 99 new File(FILES_DIR.getPath() + "/snapshots/1_reduced.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() 102 new File(FILES_DIR.getPath() + "/snapshots/2_reduced.jpg")}; in testRemoveObsoleteFiles() 116 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testRemoveObsoleteFiles_addedOneInTheMeantime() [all …]
|
D | TaskSnapshotPersisterLoaderTest.java | 78 final File[] files = new File[]{new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPersistAndLoadSnapshot() 79 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testPersistAndLoadSnapshot() 80 new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg")}; in testPersistAndLoadSnapshot() 101 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.proto").exists()); in testTaskRemovedFromRecents() 102 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.jpg").exists()); in testTaskRemovedFromRecents() 103 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg").exists()); in testTaskRemovedFromRecents() 144 new File(FILES_DIR.getPath() + "/snapshots/3.proto"), in testPurging() 145 new File(FILES_DIR.getPath() + "/snapshots/4.proto")}; in testPurging() 147 new File(FILES_DIR.getPath() + "/snapshots/100.proto"), in testPurging() 148 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPurging() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
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()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
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()
|
/frameworks/multidex/library/src/androidx/multidex/ |
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() 366 Log.w(TAG, "Failed to list secondary dex dir content (" + dexDir.getPath() + ")."); in clearDexDir() 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() [all …]
|
D | MultiDex.java | 459 Log.i(TAG, "Clearing old secondary dex dir (" + dexDir.getPath() + ")."); in clearOldDexDir() 462 Log.w(TAG, "Failed to list secondary dex dir content (" + dexDir.getPath() + ")."); in clearOldDexDir() 466 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " in clearOldDexDir() 469 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearOldDexDir() 471 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in clearOldDexDir() 475 Log.w(TAG, "Failed to delete secondary dex dir " + dexDir.getPath()); in clearOldDexDir() 477 Log.i(TAG, "Deleted old secondary dex dir " + dexDir.getPath()); in clearOldDexDir() 505 Log.e(TAG, "Failed to create dir " + dir.getPath() + ". Parent file is null."); in mkdirChecked() 507 Log.e(TAG, "Failed to create dir " + dir.getPath() + in mkdirChecked() 514 throw new IOException("Failed to create directory " + dir.getPath()); in mkdirChecked() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseErrorHandlerTest.java | 49 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp() 70 BufferedWriter writer = new BufferedWriter(new FileWriter(mDatabaseFile.getPath())); in testDatabaseIsCorrupt() 88 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt() 124 mDatabaseFile.getPath()); in onCorruption() 128 mDatabaseFile.getPath()); in onCorruption()
|
/frameworks/base/core/java/android/database/ |
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()
|
/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
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()
|
D | MtpStorageManagerTest.java | 183 Assert.assertEquals(obj.getName(), mainStorageDir.getPath()); in testMtpObjectGetNameRoot() 301 Assert.assertEquals(stream.get(0).getPath().toString(), newFile.getPath()); in testMtpObjectGetPath() 335 Assert.assertEquals(mainMtpStorage.getPath(), mainStorageDir.getPath()); in testAddMtpStorage() 361 MtpStorageManager.MtpObject obj = manager.getByPath(newFile.getPath()); in testGetByPath() 363 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testGetByPath() 373 MtpStorageManager.MtpObject obj = manager.getByPath(newFile.getPath() + "q"); in testGetByPathError() 383 MtpStorageManager.MtpObject obj = manager.getByPath(newFile.getPath()); in testGetObject() 405 Assert.assertEquals(obj.getPath().toString(), mainStorageDir.getPath()); in testGetStorageRoot() 415 MtpStorageManager.MtpObject parent = manager.getByPath(newDir.getPath()); in testGetObjectsParent() 431 MtpStorageManager.MtpObject parent = manager.getByPath(newDir.getPath()); in testGetObjectsFormat() [all …]
|
/frameworks/base/media/java/android/mtp/ |
D | MtpStorageManager.java | 64 super(object.getPath().toString(), in MtpObjectObserver() 92 Log.i(TAG, "inotify for " + mObject.getPath() + " deleted"); in onEvent() 98 Log.i(TAG, "inotify for " + mObject.getPath() + " CLOSE_WRITE: " + path); in onEvent() 195 return getPath().toFile().lastModified() / 1000; in getModifiedTime() 207 return mIsDir ? 0 : maybeApplyTranscodeLengthWorkaround(getPath().toFile().length()); in getSize() 231 final Path path = getPath(); in isFileTranscodeSupported() 236 Log.w(TAG, "Failed to stat path: " + getPath() + ". Ignoring transcoding."); in isFileTranscodeSupported() 241 public Path getPath() { in getPath() method in MtpStorageManager.MtpObject 242 return isRoot() ? Paths.get(mName) : mParent.getPath().resolve(mName); in getPath() 328 return getPath().toFile().exists(); in exists() [all …]
|
D | MtpStorage.java | 42 mPath = volume.getPath(); in MtpStorage() 66 public final String getPath() { in getPath() method in MtpStorage
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
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()
|
/frameworks/base/tools/aapt/ |
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; }
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
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 …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
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()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | WebAddressTest.java | 30 assertEquals("/b/c/g", webAddress.getPath()); in testHostWithTrailingDot() 38 assertEquals("/?si=1", webAddress.getPath()); in testPathWithoutLeadingSlash()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pdb/ |
D | PersistentDataBlockServiceTest.java | 129 mPdbService = new FakePersistentDataBlockService(mContext, mDataBlockFile.getPath(), in setUp() 130 DEFAULT_BLOCK_DEVICE_SIZE, frpEnabled, mFrpSecretFile.getPath(), in setUp() 131 mFrpSecretTmpFile.getPath()); in setUp() 321 dataBlockFile.getPath(), /* blockDeviceSize */ 128 * 1000, frpEnabled, in frpWriteMoreThan100K() 364 dataBlockFile.getPath(), /* blockDeviceSize */ 128 * 1000, frpEnabled, in getMaximumDataBlockSizeOfLargerPartition() 771 mDataBlockFile.getPath(), DEFAULT_BLOCK_DEVICE_SIZE, frpEnabled, in frpState_StartsActive() 772 mFrpSecretFile.getPath(), mFrpSecretTmpFile.getPath()); in frpState_StartsActive() 902 mPdbService = new FakePersistentDataBlockService(mContext, mDataBlockFile.getPath(), in frpState_TestDowngradeUpgradeSequence() 903 DEFAULT_BLOCK_DEVICE_SIZE, frpEnabled, mFrpSecretFile.getPath(), in frpState_TestDowngradeUpgradeSequence() 904 mFrpSecretTmpFile.getPath()); in frpState_TestDowngradeUpgradeSequence() [all …]
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
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()
|
/frameworks/rs/ |
D | rsCacheDir.cpp | 37 jmethodID getPath = env->GetMethodID(fileClass, "getPath", "()Ljava/lang/String;"); in rsQueryCacheDir() local 38 jstring path_string = (jstring)env->CallObjectMethod(cache_dir, getPath); in rsQueryCacheDir()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
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()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageAbiHelperImpl.java | 109 return Environment.getRootDirectory().getPath(); in calculateBundledApkRoot() 112 return codeRoot.getPath(); in calculateBundledApkRoot() 158 AndroidPackageUtils.getRawSecondaryCpuAbi(pkg)), appLib32InstallDir, pkg.getPath(), in deriveNativeLibraryPaths() 227 final String apkName = deriveCodePathName(pkg.getPath()); in getBundledAppAbis() 245 final File codeFile = new File(pkg.getPath()); in getBundledAppAbi() 255 (new File(apkRoot, new File(LIB64_DIR_NAME, apkName).getPath())).exists(); in getBundledAppAbi() 256 has32BitLibs = (new File(apkRoot, new File(LIB_DIR_NAME, apkName).getPath())).exists(); in getBundledAppAbi() 359 appLib32InstallDir, pkg.getPath(), in derivePackageAbi() 367 final boolean onIncremental = isIncrementalPath(pkg.getPath()); in derivePackageAbi() 537 pkg.getPath(), pkg.getBaseApkPath(), isSystemApp, in derivePackageAbi()
|
/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 64 if (statfs(getPath(), &stat)) in getMaxCapacity() 73 if (statfs(getPath(), &stat)) in getFreeSpace()
|
/frameworks/base/core/java/com/android/internal/content/ |
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()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/ |
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()
|