Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/com/android/server/
DMountServiceTests.java76 public String getPath() { in getPath() method in MountServiceTests.ObbObserver
127 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
130 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
143 assertTrue("mountObb call on " + file.getPath() + " should succeed", in mountObb()
144 sm.mountObb(file.getPath(), null, observer)); in mountObb()
150 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb()
154 file.getPath(), observer.getPath()); in mountObb()
164 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait()
165 .getPath(), null, observer)); in mountObbWithoutWait()
174 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in waitForObbActionCompletion()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java45 return nativeSumNativeBinaries(apkFile.getPath(), cpuAbi, cpuAbi2); in sumNativeBinariesLI()
62 return nativeCopyNativeBinaries(apkFile.getPath(), sharedLibraryDir.getPath(), cpuAbi, in copyNativeBinariesIfNeededLI()
75 Slog.w(TAG, "Deleting native binaries from: " + nativeLibraryDir.getPath()); in removeNativeBinariesFromDirLI()
94 Slog.w(TAG, "Could not delete native binary: " + binaries[nn].getPath()); in removeNativeBinariesFromDirLI()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java47 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp()
69 BufferedWriter writer = new BufferedWriter(new FileWriter(mDatabaseFile.getPath())); in testDatabaseIsCorrupt()
95 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt()
117 mDatabaseFile.getPath()); in onCorruption()
121 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()
64 deleteDatabaseFile(dbObj.getPath()); in onCorruption()
91 deleteDatabaseFile(dbObj.getPath()); in onCorruption()
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java140 String archiveFilePath = fileUri.getPath();
170 final File apkFile = new File(packageUri.getPath());
180 final File apkFile = new File(packageUri.getPath());
255 String codePath = packageURI.getPath(); in copyResourceInner()
263 Slog.w(TAG, "File does not exist when trying to copy " + codeFile.getPath()); in copyResourceInner()
294 Slog.e(TAG, "Could not copy native libraries to " + sharedLibraryDir.getPath()); in copyResourceInner()
299 Slog.e(TAG, "Could not create native lib directory: " + sharedLibraryDir.getPath()); in copyResourceInner()
354 final File srcPackageFile = new File(pPackageURI.getPath()); in copyFile()
521 final StatFs internalStats = new StatFs(Environment.getDataDirectory().getPath()); in isUnderInternalThreshold()
545 final StatFs sdStats = new StatFs(Environment.getExternalStorageDirectory().getPath()); in isUnderExternalThreshold()
/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()
DUriTest.java81 assertNull(u.getPath()); in testBuildUponOpaqueStringUri()
94 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
293 assertEquals("/b/c/g", uri.getPath()); in testHostWithTrailingDot()
301 assertNull(uri.getPath()); in testSchemeOnly()
343 assertEquals("/a/b/c", withC.getPath()); in testPathOperations()
383 assertNull(uri.getPath()); in testOpaqueUri()
502 assertEquals(path, uri.getPath()); in compareHierarchical()
/frameworks/base/media/java/android/mtp/
DMtpStorage.java39 mPath = volume.getPath(); in MtpStorage()
72 public final String getPath() { in getPath() method in MtpStorage
/frameworks/base/core/java/android/app/backup/
DFullBackup.java115 Log.e(TAG, "Unable to create/open file " + outFile.getPath(), e); in restoreFile()
135 Log.e(TAG, "Unable to write to file " + outFile.getPath(), e); in restoreFile()
149 Libcore.os.chmod(outFile.getPath(), (int)mode); in restoreFile()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/
DDownloadManagerTestApp.java113 String path = Environment.getExternalStorageDirectory().getPath(); in getDownloadStartedFilePath()
282 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleSwitching()
297 Log.i(LOG_TAG, "setting localUri to: " + localUri.getPath()); in runDownloadMultipleSwitching()
357 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleWiFiEnableDisable()
371 Log.i(LOG_TAG, "setting localUri to: " + localUri.getPath()); in runDownloadMultipleWiFiEnableDisable()
427 String localDownloadDirectory = Environment.getExternalStorageDirectory().getPath(); in runDownloadMultipleAirplaneModeEnableDisable()
441 Log.i(LOG_TAG, "setting localUri to: " + localUri.getPath()); in runDownloadMultipleAirplaneModeEnableDisable()
/frameworks/base/media/mtp/
DMtpStorage.cpp67 if (statfs(getPath(), &stat)) in getMaxCapacity()
76 if (statfs(getPath(), &stat)) in getFreeSpace()
DMtpStorage.h52 inline const char* getPath() const { return (const char *)mFilePath; } in getPath() function
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java80 Assert.assertTrue(FileUtils.getFileStatus(mTestFile.getPath(), null)); in testGetFileStatus()
83 FileUtils.getFileStatus(mTestFile.getPath(), status1); in testGetFileStatus()
106 FileUtils.getFileStatus(mTestFile.getPath(), status2); in testGetFileStatus()
114 Assert.assertFalse(FileUtils.getFileStatus(mTestFile.getPath(), null)); in testGetFileStatus()
/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()
/frameworks/base/services/java/com/android/server/
DBootReceiver.java122 addFileToDropBox(db, prefs, headers, tombstoneFiles[i].getPath(), in logBootEvents()
128 sTombstoneObserver = new FileObserver(TOMBSTONE_DIR.getPath(), FileObserver.CLOSE_WRITE) { in logBootEvents()
132 String filename = new File(TOMBSTONE_DIR, path).getPath(); in logBootEvents()
DSamplingProfilerService.java80 if (LOCAL_LOGV) Slog.v(TAG, file.getPath() + " added to dropbox"); in handleSnapshotFile()
82 Slog.e(TAG, "Can't add " + file.getPath() + " to dropbox", e); in handleSnapshotFile()
/frameworks/base/core/java/com/android/internal/os/storage/
DExternalStorageFormatter.java126 mStorageVolume.getPath(); in onCancel()
146 mStorageManager.getVolumeState(mStorageVolume.getPath()); in updateProgressState()
153 mStorageVolume.getPath(); in updateProgressState()
167 mStorageVolume.getPath(); in updateProgressState()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
DVideoEditorExportTest.java86 mVideoEditorHelper.deleteProject(new File(mVideoEditor.getPath())); in tearDown()
107 .createRandomFile(mVideoEditor.getPath() + "/") in testExportMergeTrim()
189 .createRandomFile(mVideoEditor.getPath() + "/") + ".3gp"; in testExportEffectOverlay()
310 .createRandomFile(mVideoEditor.getPath() + "/") + ".3gp"; in testExportEffectKenBurn()
369 .createRandomFile(mVideoEditor.getPath() + "/") + ".3gp"; in testExportAudio()
437 .createRandomFile(mVideoEditor.getPath() + "/") + ".3gp"; in testExportTransition()
634 .createRandomFile(mVideoEditor.getPath() + "/") + ".3gp"; in testExportMMS()
711 mVideoEditor.getPath() + "/") + ".3gp"; in testExportDuration1Hour()
748 .createRandomFile(mVideoEditor.getPath() + "/") + ".3gp"; in testExportWithStorageFull()
783 .createRandomFile(mVideoEditor.getPath() + "/") + ".3gp"; in testExportTwoVideos()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java109 if (FileUtils.getFileStatus(mFile.getPath(), stat) && mFile.canRead()) { in loadFromDiskLocked()
135 return new File(prefsFile.getPath() + ".bak"); in makeBackupFile()
159 if (!FileUtils.getFileStatus(mFile.getPath(), stat)) { in hasFileChangedUnexpectedly()
531 parent.getPath(), in createFileOutputStream()
579 ContextImpl.setFilePermissionsFromMode(mFile.getPath(), mMode, 0); in writeToFile()
581 if (FileUtils.getFileStatus(mFile.getPath(), stat)) { in writeToFile()
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModel.java101 Log.e("Selected Path: ", selectedImageUri.getPath()); in onActivityResult()
102 mView.loadA3DFile(selectedImageUri.getPath()); in onActivityResult()
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DSharedStorageAgent.java49 fullBackupFileTree(null, domain, v.getPath(), null, output); in onFullBackup()
71 outFile = new File(mVolumes[i].getPath(), relpath.substring(slash + 1)); in onRestoreFile()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java158 clearOrCreateLocalWindow(getDatabase().getPath()); in fillWindow()
326 "database = " + mQuery.mDatabase.getPath() + ", table = " + mEditTable + in finalize()
334 Log.v(TAG, "Finalizing cursor on database = " + mQuery.mDatabase.getPath() + in finalize()
DSQLiteClosable.java66 buff.append(((SQLiteDatabase)this).getPath()); in getObjInfo()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java38 mBackupName = new File(baseName.getPath() + ".bak"); in AtomicFile()
66 parent.getPath(), in startWrite()
/frameworks/base/libs/ui/
DKeyboard.cpp111 String8 path(getPath(deviceIdentifier, name, in loadKeyLayout()
130 String8 path(getPath(deviceIdentifier, name, in loadKeyCharacterMap()
147 String8 KeyMap::getPath(const InputDeviceIdentifier& deviceIdentifier, in getPath() function in android::KeyMap

12345