Home
last modified time | relevance | path

Searched refs:dataDir (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/
DInstrumentationInfo.java97 public String dataDir; field in InstrumentationInfo
137 dataDir = orig.dataDir; in InstrumentationInfo()
168 dest.writeString(dataDir); in writeToParcel()
200 dataDir = source.readString(); in InstrumentationInfo()
220 ai.dataDir = dataDir; in copyTo()
DApplicationInfo.java916 public String dataDir; field in ApplicationInfo
1347 pw.println(prefix + "dataDir=" + dataDir); in dump()
1429 proto.write(ApplicationInfoProto.DATA_DIR, dataDir); in writeToProto()
1573 dataDir = orig.dataDir; in ApplicationInfo()
1652 dest.writeString(dataDir); in writeToParcel()
1728 dataDir = source.readString(); in ApplicationInfo()
1808 dataDir = Environment.getDataSystemDirectory().getAbsolutePath(); in initForUser()
1821 dataDir = deviceProtectedDataDir; in initForUser()
1823 dataDir = credentialProtectedDataDir; in initForUser()
/frameworks/base/core/java/android/app/
DDexLoadReporter.java76 /*package*/ void registerAppDataDir(String packageName, String dataDir) { in registerAppDataDir() argument
78 Slog.i(TAG, "Package " + packageName + " registering data dir: " + dataDir); in registerAppDataDir()
82 if (dataDir != null) { in registerAppDataDir()
84 mDataDirs.add(dataDir); in registerAppDataDir()
193 for (String dataDir : dataDirs) { in isSecondaryDexFile()
194 if (FileUtils.contains(dataDir, dexPath)) { in isSecondaryDexFile()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java68 File dataDir, in createUserBackupManagerServiceAndRunTasks() argument
71 userId, context, startBackupThread(null), baseStateDir, dataDir, transportManager); in createUserBackupManagerServiceAndRunTasks()
86 File dataDir, in createUserBackupManagerServiceAndRunTasks() argument
95 dataDir, in createUserBackupManagerServiceAndRunTasks()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java115 new File(applicationInfo.dataDir), in install()
169 File dataDir = new File(applicationInfo.dataDir); in installInstrumentation() local
173 dataDir, in installInstrumentation()
180 dataDir, in installInstrumentation()
201 private static void doInstallation(Context mainContext, File sourceApk, File dataDir, in doInstallation() argument
237 File dexDir = getDexDir(mainContext, dataDir, secondaryFolderName); in doInstallation()
476 private static File getDexDir(Context context, File dataDir, String secondaryFolderName) in getDexDir() argument
478 File cache = new File(dataDir, CODE_CACHE_NAME); in getDexDir()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java341 String[] dataDirs = new String[] {ai.dataDir, ai.deviceProtectedDataDir, in cachePackageInfo()
357 for (String dataDir : dataDirs) { in cachePackageCodeLocation()
362 if (dataDir != null) { in cachePackageCodeLocation()
363 pcl.mergeAppDataDirs(dataDir, userId); in cachePackageCodeLocation()
814 mergeAppDataDirs(ai.dataDir, userId); in PackageCodeLocations()
834 public void mergeAppDataDirs(String dataDir, int userId) { in mergeAppDataDirs() argument
836 dataDirs.add(dataDir); in mergeAppDataDirs()
853 for (String dataDir : userDataDirs) { in searchDex()
854 if (dexPath.startsWith(dataDir)) { in searchDex()
DViewCompiler.java41 final String outDexFile = appInfo.dataDir + "/code_cache/compiled_view.dex"; in compileLayouts()
/frameworks/base/services/core/java/com/android/server/am/
DDumpHeapProvider.java42 File dataDir = Environment.getDataDirectory(); in onCreate() local
43 File systemDir = new File(dataDir, "system"); in onCreate()
/frameworks/base/services/core/java/com/android/server/pm/
DAbstractStatsBase.java57 File dataDir = Environment.getDataDirectory(); in getFile() local
58 File systemDir = new File(dataDir, "system"); in getFile()
DOtaDexoptService.java238 File dataDir = Environment.getDataDirectory(); in getMainLowSpaceThreshold() local
240 long lowThreshold = StorageManager.from(mContext).getStorageLowBytes(dataDir); in getMainLowSpaceThreshold()
256 File dataDir = Environment.getDataDirectory(); in getAvailableSpace() local
257 long usableSpace = dataDir.getUsableSpace(); in getAvailableSpace()
DPackageManagerServiceUtils.java327 File dataDir = Environment.getDataDirectory(); in getSettingsProblemFile() local
328 File systemDir = new File(dataDir, "system"); in getSettingsProblemFile()
/frameworks/base/services/core/java/com/android/server/
DEntropyMixer.java213 File dataDir = Environment.getDataDirectory(); in getSystemDir() local
214 File systemDir = new File(dataDir, "system"); in getSystemDir()
DSystemServiceManager.java332 File dataDir = Environment.getDataDirectory(); in ensureSystemDir() local
333 sSystemDir = new File(dataDir, "system"); in ensureSystemDir()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java49 File dataDir, FileMetadata info, ParcelFileDescriptor inFD, IBackupAgent agent, in KeyValueAdbRestoreEngine() argument
52 mDataDir = dataDir; in KeyValueAdbRestoreEngine()
DKeyValueAdbBackupEngine.java71 File baseStateDir, File dataDir) { in KeyValueAdbBackupEngine() argument
77 mDataDir = dataDir; in KeyValueAdbBackupEngine()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackPackageHealthObserver.java90 File dataDir = new File(Environment.getDataDirectory(), "rollback-observer"); in RollbackPackageHealthObserver() local
91 dataDir.mkdirs(); in RollbackPackageHealthObserver()
92 mLastStagedRollbackIdFile = new File(dataDir, "last-staged-rollback-id"); in RollbackPackageHealthObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java114 public final File dataDir; field in MockSystemServices
117 dataDir = new File(realContext.getCacheDir(), name); in MockSystemServices()
118 DpmTestUtils.clearDir(dataDir); in MockSystemServices()
244 final File dir = new File(dataDir, "users/" + userId); in addUser()
DDevicePolicyManagerServiceMigrationTest.java65 (new File(getServices().dataDir, OwnersTestable.LEGACY_FILE)).getAbsoluteFile(), in testMigration()
203 (new File(getServices().dataDir, OwnersTestable.LEGACY_FILE)).getAbsoluteFile(), in testMigration2_profileOwnerOnUser0()
DDevicePolicyManagerServiceTestable.java81 return mServices.dataDir; in environmentGetDataSystemDirectory()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java113 File dataDir = getContext().getDataDir(); in setUp() local
114 mBigFile = new File(dataDir, BIG_FILE); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexManagerTests.java629 ai.dataDir = "/data/user/" + userId + "/" + packageName; in getMockApplicationInfo()
659 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary1.dex"); in getSecondaryDexPaths()
660 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary2.dex"); in getSecondaryDexPaths()
661 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary3.dex"); in getSecondaryDexPaths()
667 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary4.dex"); in getSecondaryDexPathsForOwnUse()
668 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary5.dex"); in getSecondaryDexPathsForOwnUse()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageStatusStorageTest.java50 File dataDir = context.getFilesDir(); in setUp() local
54 mPackageStatusStorage = new PackageStatusStorage(dataDir); in setUp()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/
DServicesTests.java92 new File(InstrumentationRegistry.getTargetContext().getApplicationInfo().dataDir); in setup()
317 … InstrumentationRegistry.getTargetContext().getApplicationInfo().dataDir, in getSecondaryFolder()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java426 File dataDir = Environment.getDataDirectory(); in assertInstall() local
427 String appInstallPath = new File(dataDir, "app").getPath(); in assertInstall()
428 String drmInstallPath = new File(dataDir, "app-private").getPath(); in assertInstall()
475 final File nativeLibSymLink = new File(info.dataDir, "lib"); in assertInstall()
975 File file = new File(info.dataDir); in deleteFromRawResource()
1228 info.dataDir, info.nativeLibraryDir); in moveFromRawResource()
2903 File dexModuleDir = new File(info.dataDir, "module-dir"); in testRegisterDexModuleSuccessfully()
2933 String nonExistentApk = Paths.get(info.dataDir, "non-existent.apk").toString(); in testRegisterDexModuleNotExists()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java129 public static JobStore initAndGetForTesting(Context context, File dataDir) { in initAndGetForTesting() argument
130 JobStore jobStoreUnderTest = new JobStore(context, new Object(), dataDir); in initAndGetForTesting()
138 private JobStore(Context context, Object lock, File dataDir) { in JobStore() argument
143 File systemDir = new File(dataDir, "system"); in JobStore()

12