Home
last modified time | relevance | path

Searched refs:getPath (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotLowResDisabledTest.java72 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 …]
DTaskSnapshotPersisterLoaderTest.java78 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/
DFakeProviderRemote.java40 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/
DDisplayShapeTest.java50 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/
DMultiDexExtractor.java96 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 …]
DMultiDex.java459 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/
DDatabaseErrorHandlerTest.java49 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/
DDefaultDatabaseErrorHandler.java54 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/
DMtpDatabaseTest.java59 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()
DMtpStorageManagerTest.java183 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/
DMtpStorageManager.java64 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 …]
DMtpStorage.java42 mPath = volume.getPath(); in MtpStorage()
66 public final String getPath() { in getPath() method in MtpStorage
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesManagerPerfTest.java88 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/
DOutputSet.h37 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/
DFullBackupTest.java77 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/
DDocumentsProviderTest.java80 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/
DWebAddressTest.java30 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/
DPersistentDataBlockServiceTest.java129 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/
DDownloadManagerTestApp.java100 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/
DrsCacheDir.cpp37 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/
DAppSnapshotLoader.java168 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/
DPackageAbiHelperImpl.java109 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/
DMtpStorage.cpp64 if (statfs(getPath(), &stat)) in getMaxCapacity()
73 if (statfs(getPath(), &stat)) in getFreeSpace()
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java198 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/
DAbstractService.java64 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()

12345678910>>...12