Home
last modified time | relevance | path

Searched refs:userFileManager (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserFileManagerImplTest.kt53 lateinit var userFileManager: UserFileManagerImpl variable in com.android.systemui.settings.UserFileManagerImplTest
62 userFileManager = in setUp()
68 assertThat(userFileManager.getFile(TEST_FILE_NAME, 0).path) in testGetFile()
70 assertThat(userFileManager.getFile(TEST_FILE_NAME, 11).path) in testGetFile()
76 val primarySharedPref = userFileManager.getSharedPreferences(TEST_FILE_NAME, 0, 0) in testGetSharedPreferences()
77 val secondarySharedPref = userFileManager.getSharedPreferences(TEST_FILE_NAME, 0, 11) in testGetSharedPreferences()
108 val file = userFileManager.getFile(fileName, userId) in testMigrateFile()
139 val prefs = userFileManager.getSharedPreferences(fileName, Context.MODE_PRIVATE, userId) in testMigrateSharedPrefs()
147 val userFileManager = spy(userFileManager) in testUserFileManagerStart() constant
148 userFileManager.start() in testUserFileManagerStart()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DCustomTileAddedSharedPreferencesRepositoryTest.kt43 val userFileManager = FakeUserFileManager(mapOf(userId to sharedPrefs)) in setTileAdded_inSharedPreferences() constant
45 underTest = CustomTileAddedSharedPrefsRepository(userFileManager) in setTileAdded_inSharedPreferences()
58 val userFileManager = FakeUserFileManager(mapOf(userId to sharedPrefs)) in setTileAdded_differentComponents() constant
60 underTest = CustomTileAddedSharedPrefsRepository(userFileManager) in setTileAdded_differentComponents()
72 val userFileManager = FakeUserFileManager(mapOf(0 to sharedPrefs0, 1 to sharedPrefs1)) in setTileAdded_differentUsers() constant
74 underTest = CustomTileAddedSharedPrefsRepository(userFileManager) in setTileAdded_differentUsers()
86 val userFileManager = FakeUserFileManager(mapOf(userId to sharedPrefs)) in isTileAdded_fromSharedPreferences() constant
88 underTest = CustomTileAddedSharedPrefsRepository(userFileManager) in isTileAdded_fromSharedPreferences()
103 val userFileManager = FakeUserFileManager(mapOf(userId to sharedPrefs)) in isTileAdded_differentComponents() constant
105 underTest = CustomTileAddedSharedPrefsRepository(userFileManager) in isTileAdded_differentComponents()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalPrefsRepositoryImplTest.kt66 private lateinit var userFileManager: UserFileManager variable in com.android.systemui.communal.data.repository.CommunalPrefsRepositoryImplTest
75 userFileManager = in setUp()
87 underTest = createCommunalPrefsRepositoryImpl(userFileManager) in isCtaDismissedValue_byDefault_isFalse()
95 underTest = createCommunalPrefsRepositoryImpl(userFileManager) in isCtaDismissedValue_onSet_isTrue()
105 underTest = createCommunalPrefsRepositoryImpl(userFileManager) in isCtaDismissedValue_whenSwitchUser()
128 val userFileManagerSpy = Mockito.spy(userFileManager) in getSharedPreferences_whenFileRestored()
152 private fun createCommunalPrefsRepositoryImpl(userFileManager: UserFileManager) = in createCommunalPrefsRepositoryImpl()
157 userFileManager, in createCommunalPrefsRepositoryImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DCustomTileAddedRepository.kt46 constructor(private val userFileManager: UserFileManager) : CustomTileAddedRepository { in isTileAdded() constant in com.android.systemui.qs.pipeline.data.repository.CustomTileAddedSharedPrefsRepository
49 return userFileManager in isTileAdded()
55 userFileManager in isTileAdded()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/panels/data/repository/
DQSPreferencesRepositoryKosmos.kt21 import com.android.systemui.settings.userFileManager
25 Kosmos.Fixture { QSPreferencesRepository(userFileManager, userRepository, testDispatcher) } in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DKeyguardQuickAffordanceLocalUserSelectionManagerTest.kt59 @Mock private lateinit var userFileManager: UserFileManager variable in com.android.systemui.keyguard.data.quickaffordance.KeyguardQuickAffordanceLocalUserSelectionManagerTest
71 whenever(userFileManager.getSharedPreferences(anyString(), anyInt(), anyInt())).thenAnswer { in setUp()
82 userFileManager = userFileManager, in setUp()
362 clearInvocations(userFileManager) in <lambda>()
369 verify(userFileManager, atLeastOnce()).getSharedPreferences(anyString(), anyInt(), anyInt()) in <lambda>()
DMuteQuickAffordanceConfigTest.kt59 private lateinit var userFileManager: UserFileManager variable in com.android.systemui.keyguard.data.quickaffordance.MuteQuickAffordanceConfigTest
72 whenever(userFileManager.getSharedPreferences(any(), any(), any())) in setUp()
78 userFileManager, in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/saver/domain/interactor/
DDataSaverTileUserActionInteractorTest.kt52 private lateinit var userFileManager: UserFileManager variable in com.android.systemui.qs.tiles.impl.saver.domain.interactor.DataSaverTileUserActionInteractorTest
59 userFileManager = mock<UserFileManager>() in setup()
63 userFileManager.getSharedPreferences( in setup()
80 userFileManager, in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/settings/
DControlsSettingsDialogManager.kt85 private val userFileManager: UserFileManager, constant in com.android.systemui.controls.settings.ControlsSettingsDialogManagerImpl
95 userFileManager: UserFileManager,
101 userFileManager,
121 userFileManager.getSharedPreferences( in maybeShowDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/panels/
DSelectedComponentRepositoryTest.kt73 private lateinit var userFileManager: UserFileManager variable in com.android.systemui.controls.panels.SelectedComponentRepositoryTest
86 userFileManager = in setUp()
95 userFileManager = userFileManager, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceCoreStartableTest.kt64 private lateinit var userFileManager: UserFileManager variable in com.android.systemui.keyguard.data.quickaffordance.MuteQuickAffordanceCoreStartableTest
89 userFileManager, in setUp()
125 verifyZeroInteractions(userFileManager) in <lambda>()
138userFileManager.getSharedPreferences(eq("quick_affordance_mute_ringer_mode_cache"), any(), any()) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/data/repository/
DQSPreferencesRepository.kt41 private val userFileManager: UserFileManager, in <lambda>() constant in com.android.systemui.qs.panels.data.repository.QSPreferencesRepository
62 return userFileManager.getSharedPreferences( in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceCoreStartable.kt45 private val userFileManager: UserFileManager, in <lambda>() constant in com.android.systemui.keyguard.data.quickaffordance.MuteQuickAffordanceCoreStartable
76 userFileManager.getSharedPreferences( in <lambda>()
DKeyguardQuickAffordanceLocalUserSelectionManager.kt53 private val userFileManager: UserFileManager, in <lambda>() constant in com.android.systemui.keyguard.data.quickaffordance.KeyguardQuickAffordanceLocalUserSelectionManager
195 return userFileManager.getSharedPreferences( in <lambda>()
DMuteQuickAffordanceConfig.kt56 private val userFileManager: UserFileManager, in <lambda>() constant in com.android.systemui.keyguard.data.quickaffordance.MuteQuickAffordanceConfig
138 userFileManager in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImpl.kt37 private val userFileManager: UserFileManager, constant in com.android.systemui.controls.panels.AuthorizedPanelsRepositoryImpl
78 userFileManager.getSharedPreferences( in instantiateSharedPrefs()
DSelectedComponentRepositoryImpl.kt41 private val userFileManager: UserFileManager, constant in com.android.systemui.controls.panels.SelectedComponentRepositoryImpl
54 return userFileManager.getSharedPreferences( in getSharedPreferencesForUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recordissue/
DIssueRecordingState.kt34 userFileManager: UserFileManager,
38 userFileManager.getSharedPreferences(
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/saver/domain/interactor/
DDataSaverTileUserActionInteractor.kt52 userFileManager: UserFileManager, in <lambda>()
61 userFileManager.getSharedPreferences(PREFS, Context.MODE_PRIVATE, context.userId) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/
DUserFileManagerKosmos.kt22 var Kosmos.userFileManager: UserFileManager by Kosmos.Fixture { fakeUserFileManager } in <lambda>() variable
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/data/
DQSPreferencesRepositoryTest.kt29 import com.android.systemui.settings.userFileManager
107 return userFileManager.getSharedPreferences( in getSharedPreferences()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsControllerImpl.kt65 private val userFileManager: UserFileManager, in <lambda>() constant in com.android.systemui.controls.controller.ControlsControllerImpl
95 userStructure = UserStructure(context, currentUser, userFileManager) in <lambda>()
114 userStructure = UserStructure(context, currentUser, userFileManager) in <lambda>()
184 val prefs = userFileManager.getSharedPreferences( in <lambda>()
596 class UserStructure(context: Context, user: UserHandle, userFileManager: UserFileManager) {
598 val file = userFileManager.getFile(ControlsFavoritePersistenceWrapper.FILE_NAME,
600 val auxiliaryFile = userFileManager.getFile(AuxiliaryPersistenceWrapper.AUXILIARY_FILE_NAME,
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalPrefsRepository.kt73 private val userFileManager: UserFileManager, constant in com.android.systemui.communal.data.repository.CommunalPrefsRepositoryImpl
142 return userFileManager.getSharedPreferences( in getSharedPrefsForUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/settings/
DControlsSettingsDialogManagerImplTest.kt65 @Mock private lateinit var userFileManager: UserFileManager in <lambda>() variable in com.android.systemui.controls.settings.ControlsSettingsDialogManagerImplTest
89 userFileManager.getSharedPreferences( in <lambda>()
104 userFileManager, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsControllerImplTest.kt96 private lateinit var userFileManager: UserFileManager in <lambda>() variable in com.android.systemui.controls.controller.ControlsControllerImplTest
166 `when`(userFileManager.getFile(anyString(), anyInt())).thenReturn(mock(File::class.java)) in <lambda>()
167 `when`(userFileManager.getSharedPreferences(anyString(), anyInt(), anyInt())) in <lambda>()
177 userFileManager, in <lambda>()
231 userFileManager, in <lambda>()
251 userFileManager, in <lambda>()
945 val userStructure = UserStructure(context, context.user, userFileManager) in <lambda>()
946 verify(userFileManager, times(2)) in <lambda>()

12