Searched refs:mockDataDirectory (Results 1 – 3 of 3) sorted by relevance
44 private lateinit var mockDataDirectory: File variable in com.android.role.persistence.RolesPersistenceTest65 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()
44 private lateinit var mockDataDirectory: File variable in com.android.permission.persistence.RuntimePermissionsPersistenceTest62 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()
56 File mockDataDirectory = mContext.getDir("mock_data", Context.MODE_PRIVATE); in before() local57 when(Environment.getDataDirectory()).thenReturn(mockDataDirectory); in before()