Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/app/
DDexLoadReporter.java75 /*package*/ void registerAppDataDir(String packageName, String dataDir) { in registerAppDataDir() argument
77 Slog.i(TAG, "Package " + packageName + " registering data dir: " + dataDir); in registerAppDataDir()
81 if (dataDir != null) { in registerAppDataDir()
83 mDataDirs.add(dataDir); in registerAppDataDir()
174 for (String dataDir : dataDirs) { in isSecondaryDexFile()
175 if (FileUtils.contains(dataDir, dexPath)) { in isSecondaryDexFile()
DIApplicationThread.aidl140 void attachStartupAgents(String dataDir); in attachStartupAgents() argument
/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.java918 public String dataDir; field in ApplicationInfo
1349 pw.println(prefix + "dataDir=" + dataDir); in dump()
1431 proto.write(ApplicationInfoProto.DATA_DIR, dataDir); in writeToProto()
1575 dataDir = orig.dataDir; in ApplicationInfo()
1654 dest.writeString(dataDir); in writeToParcel()
1730 dataDir = source.readString(); in ApplicationInfo()
1810 dataDir = Environment.getDataSystemDirectory().getAbsolutePath(); in initForUser()
1823 dataDir = deviceProtectedDataDir; in initForUser()
1825 dataDir = credentialProtectedDataDir; in initForUser()
/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.java312 String[] dataDirs = new String[] {ai.dataDir, ai.deviceProtectedDataDir, in cachePackageInfo()
328 for (String dataDir : dataDirs) { in cachePackageCodeLocation()
333 if (dataDir != null) { in cachePackageCodeLocation()
334 pcl.mergeAppDataDirs(dataDir, userId); in cachePackageCodeLocation()
785 mergeAppDataDirs(ai.dataDir, userId); in PackageCodeLocations()
805 public void mergeAppDataDirs(String dataDir, int userId) { in mergeAppDataDirs() argument
807 dataDirs.add(dataDir); in mergeAppDataDirs()
824 for (String dataDir : userDataDirs) { in searchDex()
825 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()
/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.java343 File dataDir = Environment.getDataDirectory(); in ensureSystemDir() local
344 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/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/services/core/java/com/android/server/rollback/
DRollbackPackageHealthObserver.java98 File dataDir = new File(Environment.getDataDirectory(), "rollback-observer"); in RollbackPackageHealthObserver() local
99 dataDir.mkdirs(); in RollbackPackageHealthObserver()
100 mLastStagedRollbackIdFile = new File(dataDir, "last-staged-rollback-id"); in RollbackPackageHealthObserver()
/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/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/services/tests/servicestests/src/com/android/server/pm/dex/
DDexManagerTests.java735 ai.dataDir = "/data/user/" + userId + "/" + packageName; in getMockApplicationInfo()
765 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary1.dex"); in getSecondaryDexPaths()
766 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary2.dex"); in getSecondaryDexPaths()
767 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary3.dex"); in getSecondaryDexPaths()
773 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary4.dex"); in getSecondaryDexPathsForOwnUse()
774 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary5.dex"); in getSecondaryDexPathsForOwnUse()
/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