Home
last modified time | relevance | path

Searched refs:mockDataDirectory (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Permission/tests/apex/java/com/android/role/persistence/
DRolesPersistenceTest.kt44 private lateinit var mockDataDirectory: File variable in com.android.role.persistence.RolesPersistenceTest
65 mockDataDirectory = context.getDir("mock_data", Context.MODE_PRIVATE) in createMockDataDirectory()
66 mockDataDirectory.listFiles()!!.forEach { assertThat(it.deleteRecursively()).isTrue() } in createMockDataDirectory()
78 File(mockDataDirectory, it.arguments[0].toString()).also { it.mkdirs() } in mockApexEnvironment()
/packages/modules/Permission/tests/apex/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceTest.kt44 private lateinit var mockDataDirectory: File variable in com.android.permission.persistence.RuntimePermissionsPersistenceTest
62 mockDataDirectory = context.getDir("mock_data", Context.MODE_PRIVATE) in createMockDataDirectory()
63 mockDataDirectory.listFiles()!!.forEach { assertThat(it.deleteRecursively()).isTrue() } in createMockDataDirectory()
76 File(mockDataDirectory, it.arguments[0].toString()).also { it.mkdirs() } in mockApexEnvironment()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthConnectDatabaseTestRule.java56 File mockDataDirectory = mContext.getDir("mock_data", Context.MODE_PRIVATE); in before() local
57 when(Environment.getDataDirectory()).thenReturn(mockDataDirectory); in before()