/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 | 75 final File[] files = new File[]{new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPersistAndLoadSnapshot() 76 new File(FILES_DIR.getPath() + "/snapshots/1.jpg"), in testPersistAndLoadSnapshot() 77 new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg")}; in testPersistAndLoadSnapshot() 92 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.proto").exists()); in testTaskRemovedFromRecents() 93 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.jpg").exists()); in testTaskRemovedFromRecents() 94 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg").exists()); in testTaskRemovedFromRecents() 131 new File(FILES_DIR.getPath() + "/snapshots/3.proto"), in testPurging() 132 new File(FILES_DIR.getPath() + "/snapshots/4.proto")}; in testPurging() 134 new File(FILES_DIR.getPath() + "/snapshots/100.proto"), in testPurging() 135 new File(FILES_DIR.getPath() + "/snapshots/1.proto"), in testPurging() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | LastMileLoggerTest.java | 61 FileUtils.stringToFile(mTraceEnableFile.getPath(), "0"); in setUp() 62 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() [all …]
|
/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 | 453 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/ |
D | DatabaseErrorHandlerTest.java | 46 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/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()
|
/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
D | MtpStorageManagerTest.java | 180 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 …]
|
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()
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | ResourcesManagerPerfTest.java | 89 getResourcesForPath(sResourcesCompressed.getPath()); in getResourcesCached() 91 getResourcesForPath(sResourcesCompressed.getPath()); in getResourcesCached() 101 resourcesManager.invalidatePath(sResourcesCompressed.getPath()); in getResourcesCompressedUncached() 104 getResourcesForPath(sResourcesCompressed.getPath()); in getResourcesCompressedUncached() 114 resourcesManager.invalidatePath(sResourcesUncompressed.getPath()); in getResourcesUncompressedUncached() 117 getResourcesForPath(sResourcesUncompressed.getPath()); in getResourcesUncompressedUncached()
|
/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/java/android/mtp/ |
D | MtpStorageManager.java | 59 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() 285 return getPath().toFile().exists(); in exists() 419 MtpObject root = new MtpObject(storage.getPath(), storageId, storage, null, true); in addMtpStorage() 572 Path dir = object.getPath(); in getChildren() [all …]
|
D | MtpStorage.java | 39 mPath = volume.getPath(); in MtpStorage() 62 public final String getPath() { in getPath() method in MtpStorage
|
D | MtpDatabase.java | 354 mStorageMap.put(storage.getPath(), mtpStorage); in addStorage() 361 MtpStorage mtpStorage = mStorageMap.get(storage.getPath()); in removeStorage() 369 mStorageMap.remove(storage.getPath()); in removeStorage() 430 updateMediaStore(mContext, obj.getPath().toFile()); in endSendObject() 558 Path oldPath = obj.getPath(); in renameFile() 563 Path newPath = obj.getPath(); in renameFile() 614 Path path = newParentObj.getPath().resolve(name); in endMoveObject() 615 Path oldPath = oldParentObj.getPath().resolve(name); in endMoveObject() 642 updateMediaStore(mContext, obj.getPath().toFile()); in endCopyObject() 747 String path = obj.getPath().toString(); in getObjectFilePath() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | FullBackupTest.java | 75 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/ |
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/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/core/java/com/android/server/wm/ |
D | TaskSnapshotLoader.java | 165 final Bitmap bitmap = BitmapFactory.decodeFile(bitmapFile.getPath(), options); in loadTask() 167 Slog.w(TAG, "Failed to load bitmap: " + bitmapFile.getPath()); in loadTask() 174 Slog.w(TAG, "Failed to create hardware bitmap: " + bitmapFile.getPath()); in loadTask() 180 + bitmapFile.getPath()); in loadTask()
|
/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/base/core/java/com/android/internal/content/ |
D | NativeLibraryHelper.java | 197 int res = nativeCopyNativeBinaries(apkHandle, sharedLibraryDir.getPath(), abi, in copyNativeBinaries() 253 Slog.w(TAG, "Deleting native binaries from: " + nativeLibraryRoot.getPath()); in removeNativeBinariesFromDirLI() 272 Slog.w(TAG, "Could not delete native binary: " + files[nn].getPath()); in removeNativeBinariesFromDirLI() 281 nativeLibraryRoot.getPath()); in removeNativeBinariesFromDirLI() 295 throw new IOException("Cannot create " + path.getPath()); in createNativeLibrarySubdir() 299 Os.chmod(path.getPath(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); in createNativeLibrarySubdir() 302 + path.getPath(), e); in createNativeLibrarySubdir() 305 throw new IOException("Cannot set SELinux context for " + path.getPath()); in createNativeLibrarySubdir()
|
/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/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()
|
/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 64 if (statfs(getPath(), &stat)) in getMaxCapacity() 73 if (statfs(getPath(), &stat)) in getFreeSpace()
|
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/ |
D | LowStorageTest.java | 52 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()
|