Home
last modified time | relevance | path

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

123456789

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterLoaderTest.java61 final File[] files = new File[] { new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPersistAndLoadSnapshot()
62 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testPersistAndLoadSnapshot()
63 new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg")}; in testPersistAndLoadSnapshot()
84 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.proto").exists()); in testTaskRemovedFromRecents()
85 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.jpg").exists()); in testTaskRemovedFromRecents()
86 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg").exists()); in testTaskRemovedFromRecents()
123 new File(FILES_DIR.getPath() + "/snapshots/3.proto"), in testPurging()
124 new File(FILES_DIR.getPath() + "/snapshots/4.proto")}; in testPurging()
126 new File(FILES_DIR.getPath() + "/snapshots/100.proto"), in testPurging()
127 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPurging()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java66 public String getPath() { in getPath() method in MountServiceTests.ObbObserver
117 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
120 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
133 assertTrue("mountObb call on " + file.getPath() + " should succeed", in mountObb()
134 sm.mountObb(file.getPath(), null, observer)); in mountObb()
140 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb()
144 file.getPath(), observer.getPath()); in mountObb()
154 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait()
155 .getPath(), null, observer)); in mountObbWithoutWait()
164 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in waitForObbActionCompletion()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DLastMileLoggerTest.java62 mLastMileLogger = new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), in setUp()
63 mTraceEnableFile.getPath(), mTraceReleaseFile.getPath()); in setUp()
68 new LastMileLogger(mWifiInjector, mTraceDataFile.getPath(), mTraceEnableFile.getPath(), in ctorDoesNotCrash()
69 mTraceReleaseFile.getPath()); in ctorDoesNotCrash()
76 assertEquals("1", IoUtils.readFileAsString(mTraceEnableFile.getPath())); in connectionEventStartedEnablesTracing()
91 assertEquals("0", IoUtils.readFileAsString(mTraceEnableFile.getPath())); in connectionEventStartedDoesNotEnableTracingIfReleaseFileIsMissing()
126 assertEquals("0", IoUtils.readFileAsString(mTraceEnableFile.getPath())); in connectionEventSucceededDisablesTracing()
145 assertEquals("0", IoUtils.readFileAsString(mTraceEnableFile.getPath())); in connectionEventFailedDisablesTracingWhenPendingFails()
153 assertEquals("0", IoUtils.readFileAsString(mTraceEnableFile.getPath())); in connectionEventTimeoutDisablesTracing()
177 FileUtils.stringToFile(mTraceDataFile.getPath(), "rdev_connect"); in dumpShowsFailureTrace()
[all …]
DWifiApConfigStoreTest.java143 mApConfigFile.getPath()); in createWifiApConfigStore()
173 m.invoke(null, mApConfigFile.getPath(), config); in writeApConfigFile()
216 mApConfigFile.getPath()); in initWithDefaultConfiguration()
236 mApConfigFile.getPath()); in initWithExistingConfiguration()
258 mApConfigFile.getPath()); in setNullApConfiguration()
274 mApConfigFile.getPath()); in updateApConfiguration()
300 mApConfigFile.getPath()); in convertSingleModeDeviceAnyTo5Ghz()
334 mApConfigFile.getPath()); in singleModeDevice5GhzNotConverted()
361 mApConfigFile.getPath()); in convertDualModeDevice5GhzToAny()
397 mApConfigFile.getPath()); in dualModeDeviceAnyNotConverted()
[all …]
/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.java453 Log.i(TAG, "Clearing old secondary dex dir (" + dexDir.getPath() + ")."); in clearOldDexDir()
456 Log.w(TAG, "Failed to list secondary dex dir content (" + 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()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java46 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()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java180 Assert.assertEquals(obj.getName(), mainStorageDir.getPath()); in testMtpObjectGetNameRoot()
298 Assert.assertEquals(stream.get(0).getPath().toString(), newFile.getPath()); in testMtpObjectGetPath()
332 Assert.assertEquals(mainMtpStorage.getPath(), mainStorageDir.getPath()); in testAddMtpStorage()
358 MtpStorageManager.MtpObject obj = manager.getByPath(newFile.getPath()); in testGetByPath()
360 Assert.assertEquals(obj.getPath().toString(), newFile.getPath()); in testGetByPath()
370 MtpStorageManager.MtpObject obj = manager.getByPath(newFile.getPath() + "q"); in testGetByPathError()
380 MtpStorageManager.MtpObject obj = manager.getByPath(newFile.getPath()); in testGetObject()
402 Assert.assertEquals(obj.getPath().toString(), mainStorageDir.getPath()); in testGetStorageRoot()
412 MtpStorageManager.MtpObject parent = manager.getByPath(newDir.getPath()); in testGetObjectsParent()
428 MtpStorageManager.MtpObject parent = manager.getByPath(newDir.getPath()); in testGetObjectsFormat()
[all …]
/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/java/android/mtp/
DMtpStorageManager.java59 super(object.getPath().toString(), in MtpObjectObserver()
87 Log.i(TAG, "inotify for " + mObject.getPath() + " deleted"); in onEvent()
93 Log.i(TAG, "inotify for " + mObject.getPath() + " CLOSE_WRITE: " + path); 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
206 return isRoot() ? Paths.get(mName) : mParent.getPath().resolve(mName); in getPath()
292 return getPath().toFile().exists(); in exists()
426 MtpObject root = new MtpObject(storage.getPath(), storageId, storage, null, true); in addMtpStorage()
579 Path dir = object.getPath(); in getChildren()
[all …]
DMtpDatabase.java350 mStorageMap.put(storage.getPath(), mtpStorage); in addStorage()
357 MtpStorage mtpStorage = mStorageMap.get(storage.getPath()); in removeStorage()
365 mStorageMap.remove(storage.getPath()); in removeStorage()
425 MediaStore.scanFile(mContext, obj.getPath().toFile()); in endSendObject()
552 Path oldPath = obj.getPath(); in renameFile()
557 Path newPath = obj.getPath(); in renameFile()
634 Path path = newParentObj.getPath().resolve(name); in endMoveObject()
635 Path oldPath = oldParentObj.getPath().resolve(name); in endMoveObject()
692 MediaStore.scanFile(mContext, obj.getPath().toFile()); in endCopyObject()
785 String path = obj.getPath().toString(); in getObjectFilePath()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/backup/
DFullBackupTest.java75 include.getPath()); in testparseBackupSchemeFromXml_onlyInclude()
97 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag()
119 include.getPath()); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag()
143 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag()
168 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags()
194 include.getPath()); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlagAndIngoreGarbage()
228 excludesSet.iterator().next().getPath()); in testparseBackupSchemeFromXml_onlyExclude()
245 fileDomainIncludes.iterator().next().getPath()); in testparseBackupSchemeFromXml_includeAndExclude()
250 excludesSet.iterator().next().getPath()); in testparseBackupSchemeFromXml_includeAndExclude()
273 fileDomainIncludes.iterator().next().getPath()); in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
[all …]
/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/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/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java863 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()
867 assertEquals("15", path.getPath().get(3)); 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()
880 assertEquals("18", path.getPath().get(2)); in testFindDocumentPath_singleStorage_toDoc()
892 assertEquals(4, path.getPath().size()); in testFindDocumentPath_multiStorage_toRoot()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java194 int res = nativeCopyNativeBinaries(apkHandle, sharedLibraryDir.getPath(), abi, in copyNativeBinaries()
250 Slog.w(TAG, "Deleting native binaries from: " + nativeLibraryRoot.getPath()); in removeNativeBinariesFromDirLI()
269 Slog.w(TAG, "Could not delete native binary: " + files[nn].getPath()); in removeNativeBinariesFromDirLI()
278 nativeLibraryRoot.getPath()); in removeNativeBinariesFromDirLI()
292 throw new IOException("Cannot create " + path.getPath()); in createNativeLibrarySubdir()
296 Os.chmod(path.getPath(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); in createNativeLibrarySubdir()
299 + path.getPath(), e); in createNativeLibrarySubdir()
302 throw new IOException("Cannot set SELinux context for " + path.getPath()); in createNativeLibrarySubdir()
/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/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/base/core/java/android/view/textclassifier/
DModelFileManager.java219 public String getPath() { in getPath() method in ModelFileManager.ModelFile
276 return Objects.hash(getPath()); in hashCode()
286 return TextUtils.equals(getPath(), otherModel.getPath()); in equals()
299 getPath(), getName(), mVersion, localesJoiner.toString()); in toString()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotLoader.java79 final Bitmap bitmap = BitmapFactory.decodeFile(bitmapFile.getPath(), options); in loadTask()
81 Slog.w(TAG, "Failed to load bitmap: " + bitmapFile.getPath()); in loadTask()
87 + bitmapFile.getPath()); in loadTask()
/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/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()
/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/os/
DBatteryStatsHistory.java115 Slog.wtf(TAG, "HistoryDir does not exist:" + mHistoryDir.getPath()); in BatteryStatsHistory()
167 Slog.d(TAG, "activeHistoryFile:" + mActiveFile.getBaseFile().getPath()); in setActiveFile()
339 Slog.d(TAG, "readFileToParcel:" + file.getBaseFile().getPath() in readFileToParcel()
343 Slog.e(TAG, "Error reading file "+ file.getBaseFile().getPath(), e); in readFileToParcel()
382 Slog.e(TAG, "Error reading file "+ file.getBaseFile().getPath(), e); in writeToParcel()
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
DLowStorageTest.java52 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()

123456789