Home
last modified time | relevance | path

Searched refs:dataDir (Results 1 – 25 of 38) 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()
154 for (String dataDir : dataDirs) { in isSecondaryDexFile()
155 if (FileUtils.contains(dataDir, dexPath)) { in isSecondaryDexFile()
/frameworks/base/core/java/android/content/pm/
DInstrumentationInfo.java97 public String dataDir; field in InstrumentationInfo
131 dataDir = orig.dataDir; in InstrumentationInfo()
160 dest.writeString(dataDir); in writeToParcel()
190 dataDir = source.readString(); in InstrumentationInfo()
208 ai.dataDir = dataDir; in copyTo()
DApplicationInfo.java741 public String dataDir; field in ApplicationInfo
1051 pw.println(prefix + "dataDir=" + dataDir); in dump()
1163 dataDir = orig.dataDir; in ApplicationInfo()
1231 dest.writeString(dataDir); in writeToParcel()
1296 dataDir = source.readString(); in ApplicationInfo()
1365 dataDir = Environment.getDataSystemDirectory().getAbsolutePath(); in initForUser()
1378 dataDir = deviceProtectedDataDir; in initForUser()
1380 dataDir = credentialProtectedDataDir; in initForUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java66 mLegacyFile = new File(context.dataDir, LEGACY_FILE); in OwnersTestable()
67 mDeviceOwnerFile = new File(context.dataDir, DEVICE_OWNER_FILE); in OwnersTestable()
68 mUsersDataDir = new File(context.dataDir, "users"); in OwnersTestable()
91 public DevicePolicyManagerServiceTestable(DpmMockContext context, File dataDir) { in DevicePolicyManagerServiceTestable() argument
92 this(new MockInjector(context, dataDir)); in DevicePolicyManagerServiceTestable()
122 public final File dataDir; field in DevicePolicyManagerServiceTestable.MockInjector
127 private MockInjector(DpmMockContext context, File dataDir) { in MockInjector() argument
130 this.dataDir = dataDir; in MockInjector()
DDevicePolicyManagerServiceMigrationTest.java65 (new File(mContext.dataDir, OwnersTestable.LEGACY_FILE)).getAbsoluteFile(), in testMigration()
128 dpms = new DevicePolicyManagerServiceTestable(mContext, dataDir); in testMigration()
203 (new File(mContext.dataDir, OwnersTestable.LEGACY_FILE)).getAbsoluteFile(), in testMigration2_profileOwnerOnUser0()
241 dpms = new DevicePolicyManagerServiceTestable(mContext, dataDir); in testMigration2_profileOwnerOnUser0()
307 dpms = new DevicePolicyManagerServiceTestable(mContext, dataDir); in testMigration3_managedProfileOwner()
DDpmMockContext.java279 public final File dataDir; field in DpmMockContext
379 public DpmMockContext(Context context, File dataDir) { in DpmMockContext() argument
382 this.dataDir = dataDir; in DpmMockContext()
383 DpmTestUtils.clearDir(dataDir); in DpmMockContext()
475 final File dir = new File(dataDir, "users/" + userId); in addUser()
DDpmTestBase.java44 public File dataDir; field in DpmTestBase
/frameworks/support/compat/java/android/support/v4/content/
DContextCompat.java168 final String dataDir = context.getApplicationInfo().dataDir; in getDataDir() local
169 return dataDir != null ? new File(dataDir) : null; in getDataDir()
454 return createFilesDir(new File(appInfo.dataDir, "no_backup")); in getNoBackupFilesDir()
478 return createFilesDir(new File(appInfo.dataDir, "code_cache")); in getCodeCacheDir()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java239 String[] dataDirs = new String[] {ai.dataDir, ai.deviceProtectedDataDir, in cachePackageInfo()
255 for (String dataDir : dataDirs) { in cachePackageCodeLocation()
260 if (dataDir != null) { in cachePackageCodeLocation()
261 pcl.mergeAppDataDirs(dataDir, userId); in cachePackageCodeLocation()
534 mergeAppDataDirs(ai.dataDir, userId); in PackageCodeLocations()
554 public void mergeAppDataDirs(String dataDir, int userId) { in mergeAppDataDirs() argument
556 dataDirs.add(dataDir); in mergeAppDataDirs()
573 for (String dataDir : userDataDirs) { in searchDex()
574 if (dexPath.startsWith(dataDir)) { in searchDex()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexManagerTests.java409 ai.dataDir = "/data/user/" + userId + "/" + packageName; in getMockApplicationInfo()
431 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary1.dex"); in getSecondaryDexPaths()
432 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary2.dex"); in getSecondaryDexPaths()
433 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary3.dex"); in getSecondaryDexPaths()
439 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary4.dex"); in getSecondaryDexPathsForOwnUse()
440 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary5.dex"); in getSecondaryDexPathsForOwnUse()
446 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary6.dex"); in getSecondaryDexPathsFromProtectedDirs()
447 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary7.dex"); in getSecondaryDexPathsFromProtectedDirs()
/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.java221 File dataDir = Environment.getDataDirectory(); in getMainLowSpaceThreshold() local
223 long lowThreshold = StorageManager.from(mContext).getStorageLowBytes(dataDir); in getMainLowSpaceThreshold()
239 File dataDir = Environment.getDataDirectory(); in getAvailableSpace() local
240 long usableSpace = dataDir.getUsableSpace(); in getAvailableSpace()
/frameworks/base/services/core/java/com/android/server/
DEntropyMixer.java202 File dataDir = Environment.getDataDirectory(); in getSystemDir() local
203 File systemDir = new File(dataDir, "system"); in getSystemDir()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java50 KeyValueAdbRestoreEngine(BackupManagerService backupManagerService, File dataDir, in KeyValueAdbRestoreEngine() argument
53 mDataDir = dataDir; in KeyValueAdbRestoreEngine()
DKeyValueAdbBackupEngine.java63 File baseStateDir, File dataDir) { in KeyValueAdbBackupEngine() argument
69 mDataDir = dataDir; in KeyValueAdbBackupEngine()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppCacheTest.java283 String dataDir="/data/data"; in testAppCacheClear() local
284 StatFs st = new StatFs(dataDir); in testAppCacheClear()
328 st.restat(dataDir); in testAppCacheClear()
331 st.restat(dataDir); in testAppCacheClear()
725 return new File(appInfo.dataDir); in getDataDir()
DPackageManagerTests.java414 File dataDir = Environment.getDataDirectory(); in assertInstall() local
415 String appInstallPath = new File(dataDir, "app").getPath(); in assertInstall()
416 String drmInstallPath = new File(dataDir, "app-private").getPath(); in assertInstall()
483 final File nativeLibSymLink = new File(info.dataDir, "lib"); in assertInstall()
1029 File file = new File(info.dataDir); in deleteFromRawResource()
1622 info.dataDir, info.nativeLibraryDir); in moveFromRawResource()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplaySettings.java65 File dataDir = Environment.getDataDirectory(); in DisplaySettings() local
66 File systemDir = new File(dataDir, "system"); in DisplaySettings()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp482 jstring instructionSet, jstring dataDir) { in ForkAndSpecializeCommon() argument
554 if (use_native_bridge && dataDir == NULL) { in ForkAndSpecializeCommon()
593 ScopedUtfChars data_dir(env, dataDir); in ForkAndSpecializeCommon()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java393 File dataDir = Environment.getDataDirectory(); in getUserKeyFile() local
394 File adbDir = new File(dataDir, ADB_DIRECTORY); in getUserKeyFile()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java102 public static JobStore initAndGetForTesting(Context context, File dataDir) { in initAndGetForTesting() argument
103 JobStore jobStoreUnderTest = new JobStore(context, new Object(), dataDir); in initAndGetForTesting()
111 private JobStore(Context context, Object lock, File dataDir) { in JobStore() argument
116 File systemDir = new File(dataDir, "system"); in JobStore()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java413 assertEquals(a.dataDir, that.dataDir); in assertApplicationInfoEqual()
/frameworks/multidex/library/src/android/support/multidex/
DMultiDex.java340 File cache = new File(applicationInfo.dataDir, CODE_CACHE_NAME); in getDexDir()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java465 private SyncStorageEngine(Context context, File dataDir) { in SyncStorageEngine() argument
474 File systemDir = new File(dataDir, "system"); in SyncStorageEngine()
501 File dataDir = Environment.getDataDirectory(); in init() local
502 sSyncStorageEngine = new SyncStorageEngine(context, dataDir); in init()

12