Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DIsolatedService.java40 assertDirDoesNotExist(applicationInfo.dataDir);
50 applicationInfo.dataDir));
59 applicationInfo.dataDir));
DAppATests.java97 mCePath = mContext.getApplicationInfo().dataDir; in setUp()
196 assertDirDoesNotExist(applicationInfo.dataDir); in testCannotAccessAppBDataDir()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstrumentationInfoTest.java59 assertEquals(expected.dataDir, actual.dataDir); in checkInfoSame()
DApplicationInfoTest.java109 assertEquals(mApplicationInfo.dataDir, info.dataDir); in testWriteToParcel()
188 mApplicationInfo.dataDir); in verifyDefaultValues()
DPackageInfoTest.java117 assertEquals(expected.dataDir, actual.dataDir); in checkAppInfo()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java50 assertDirDoesNotExist(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanNotAccessAppADataDir()
61 assertDirIsAccessible(replacePackageBWithPackageA(applicationInfo.dataDir)); in testCanAccessAppADataDir()
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java96 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()
/cts/tests/tests/car/src/android/car/cts/
DCarWatchdogDaemonTest.java75 File dataDir = getContext().getDataDir(); in setUp() local
76 testDir = Files.createTempDirectory(dataDir.toPath(), in setUp()
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/
DAppComponentFactoryTest.java43 new File(aInfo.dataDir)); in writeSecondaryApkToDisk()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java149 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()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DStorageTest.java77 final File dataDir = getContext().getDataDir(); in testFullDisk() local
78 Hoarder.doBlocks(dataDir, true); in testFullDisk()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java739 File dataDir = new File("/sdcard/Android/data"); in testAndroidDataObbCannotBeDeleted() local
743 assertThat(dataDir.exists()).isTrue(); in testAndroidDataObbCannotBeDeleted()
747 assertThat(dataDir.delete()).isFalse(); in testAndroidDataObbCannotBeDeleted()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java60 mPrefsFile = new File(applicationInfo.dataDir, in setUp()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java1110 File dataDir = getContext().getExternalFilesDir(null); in testAndroidDataObbDoesNotForgetMount() local
1111 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()