Searched refs:dataDir (Results 1 – 14 of 14) sorted by relevance
40 assertDirDoesNotExist(applicationInfo.dataDir);50 applicationInfo.dataDir));59 applicationInfo.dataDir));
97 mCePath = mContext.getApplicationInfo().dataDir; in setUp()196 assertDirDoesNotExist(applicationInfo.dataDir); in testCannotAccessAppBDataDir()
59 assertEquals(expected.dataDir, actual.dataDir); in checkInfoSame()
109 assertEquals(mApplicationInfo.dataDir, info.dataDir); in testWriteToParcel()188 mApplicationInfo.dataDir); in verifyDefaultValues()
117 assertEquals(expected.dataDir, actual.dataDir); in checkAppInfo()
50 assertDirDoesNotExist(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanNotAccessAppADataDir()61 assertDirIsAccessible(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanAccessAppADataDir()
96 File privateFile = new File(applicationInfo.dataDir, "files/" + PRIVATE_FILE_NAME); in testAccessPrivateData()114 File publicFile = new File(applicationInfo.dataDir, "files/" + PUBLIC_FILE_NAME); in testAccessPublicData()130 String path = applicationInfo.dataDir; in testStatPrivateDataDir()
75 File dataDir = getContext().getDataDir(); in setUp() local76 testDir = Files.createTempDirectory(dataDir.toPath(), in setUp()
43 new File(aInfo.dataDir)); in writeSecondaryApkToDisk()
149 String myAppDirectory = getContext().getApplicationInfo().dataDir; in testOtherApplicationDirectoriesAreNotWritable()151 if (app.dataDir != null && !myAppDirectory.equals(app.dataDir)) { in testOtherApplicationDirectoriesAreNotWritable()152 … writableDirs.addAll(getWritableDirectoriesAndSubdirectoriesOf(new File(app.dataDir))); in testOtherApplicationDirectoriesAreNotWritable()163 String myDataDir = getContext().getApplicationInfo().dataDir; in testApplicationParentDirectoryNotWritable()1251 String myHome = getContext().getApplicationInfo().dataDir; in getWritableDirectoriesAndSubdirectoriesOf()
77 final File dataDir = getContext().getDataDir(); in testFullDisk() local78 Hoarder.doBlocks(dataDir, true); in testFullDisk()
739 File dataDir = new File("/sdcard/Android/data"); in testAndroidDataObbCannotBeDeleted() local743 assertThat(dataDir.exists()).isTrue(); in testAndroidDataObbCannotBeDeleted()747 assertThat(dataDir.delete()).isFalse(); in testAndroidDataObbCannotBeDeleted()
60 mPrefsFile = new File(applicationInfo.dataDir, in setUp()
1110 File dataDir = getContext().getExternalFilesDir(null); in testAndroidDataObbDoesNotForgetMount() local1111 File upperCaseDataDir = new File(dataDir.getPath().replace("Android/data", "ANDROID/DATA")); in testAndroidDataObbDoesNotForgetMount()1117 StructStat beforeDataStruct = Os.stat(dataDir.getPath()); in testAndroidDataObbDoesNotForgetMount()1120 assertThat(dataDir.exists()).isTrue(); in testAndroidDataObbDoesNotForgetMount()2649 for (File dataDir : dataDirs) { in testCantAccessOtherAppsExternalDirs()2650 final File otherAppExternalDataDir = new File(dataDir.getPath().replace( in testCantAccessOtherAppsExternalDirs()