/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/ |
D | UserFileManagerImplTest.kt | 53 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/ |
D | CustomTileAddedSharedPreferencesRepositoryTest.kt | 43 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/ |
D | CommunalPrefsRepositoryImplTest.kt | 66 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/ |
D | CustomTileAddedRepository.kt | 46 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/ |
D | QSPreferencesRepositoryKosmos.kt | 21 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/ |
D | KeyguardQuickAffordanceLocalUserSelectionManagerTest.kt | 59 @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>()
|
D | MuteQuickAffordanceConfigTest.kt | 59 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/ |
D | DataSaverTileUserActionInteractorTest.kt | 52 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/ |
D | ControlsSettingsDialogManager.kt | 85 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/ |
D | SelectedComponentRepositoryTest.kt | 73 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/ |
D | MuteQuickAffordanceCoreStartableTest.kt | 64 private lateinit var userFileManager: UserFileManager variable in com.android.systemui.keyguard.data.quickaffordance.MuteQuickAffordanceCoreStartableTest 89 userFileManager, in setUp() 125 verifyZeroInteractions(userFileManager) in <lambda>() 138 … userFileManager.getSharedPreferences(eq("quick_affordance_mute_ringer_mode_cache"), any(), any()) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/data/repository/ |
D | QSPreferencesRepository.kt | 41 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/ |
D | MuteQuickAffordanceCoreStartable.kt | 45 private val userFileManager: UserFileManager, in <lambda>() constant in com.android.systemui.keyguard.data.quickaffordance.MuteQuickAffordanceCoreStartable 76 userFileManager.getSharedPreferences( in <lambda>()
|
D | KeyguardQuickAffordanceLocalUserSelectionManager.kt | 53 private val userFileManager: UserFileManager, in <lambda>() constant in com.android.systemui.keyguard.data.quickaffordance.KeyguardQuickAffordanceLocalUserSelectionManager 195 return userFileManager.getSharedPreferences( in <lambda>()
|
D | MuteQuickAffordanceConfig.kt | 56 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/ |
D | AuthorizedPanelsRepositoryImpl.kt | 37 private val userFileManager: UserFileManager, constant in com.android.systemui.controls.panels.AuthorizedPanelsRepositoryImpl 78 userFileManager.getSharedPreferences( in instantiateSharedPrefs()
|
D | SelectedComponentRepositoryImpl.kt | 41 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/ |
D | IssueRecordingState.kt | 34 userFileManager: UserFileManager, 38 userFileManager.getSharedPreferences(
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/saver/domain/interactor/ |
D | DataSaverTileUserActionInteractor.kt | 52 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/ |
D | UserFileManagerKosmos.kt | 22 var Kosmos.userFileManager: UserFileManager by Kosmos.Fixture { fakeUserFileManager } in <lambda>() variable
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/data/ |
D | QSPreferencesRepositoryTest.kt | 29 import com.android.systemui.settings.userFileManager 107 return userFileManager.getSharedPreferences( in getSharedPreferences()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
D | ControlsControllerImpl.kt | 65 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/ |
D | CommunalPrefsRepository.kt | 73 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/ |
D | ControlsSettingsDialogManagerImplTest.kt | 65 @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/ |
D | ControlsControllerImplTest.kt | 96 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>()
|