Home
last modified time | relevance | path

Searched refs:mUserTracker (Results 1 – 25 of 139) sorted by relevance

123456

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/time/
DDateFormatUtil.java31 private final UserTracker mUserTracker; field in DateFormatUtil
36 mUserTracker = userTracker; in DateFormatUtil()
41 return DateFormat.is24HourFormat(mContext, mUserTracker.getUserId()); in is24HourFormat()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileControllerImpl.java44 private final UserTracker mUserTracker; field in ManagedProfileControllerImpl
56 mUserTracker = userTracker; in ManagedProfileControllerImpl()
91 int user = mUserTracker.getUserId(); in reloadManagedProfiles()
114 if (!mListening || mUserTracker.getUserId() != mCurrentUser) { in hasActiveProfile()
141 mUserTracker.addCallback(mUserTrackerCallback, mMainExecutor); in setListening()
143 mUserTracker.removeCallback(mUserTrackerCallback); in setListening()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
DObservableServiceConnectionTest.java98 private FakeUserTracker mUserTracker; field in ObservableServiceConnectionTest
105 mUserTracker = new FakeUserTracker(); in setUp()
107 mUserTracker.set(List.of(new UserInfo(MAIN_USER_ID, "main", UserInfo.FLAG_MAIN)), 0); in setUp()
113 mIntent, mUserTracker, mExecutor, mTransformer); in testConnect()
134 mIntent, mUserTracker, mExecutor, mTransformer); in testDisconnect()
166 mIntent, mUserTracker, mExecutor, mTransformer); in testUnbind()
191 mIntent, mUserTracker, mExecutor, mTransformer); in testBindServiceThrowsError()
208 mIntent, mUserTracker, mExecutor, mTransformer); in testUnbindDoesNotCallUnbindServiceWhenBindThrowsError()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DDreamTileTest.java86 private UserTracker mUserTracker; field in DreamTileTest
136 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())).thenReturn(null); in testNotAvailable()
147 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())) in testInactiveWhenDreaming()
160 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())) in testActive()
173 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())) in testClick()
219 when(mUserTracker.getUserInfo()).thenReturn(mainUserInfo); in testUserAvailability()
221 when(mUserTracker.getUserInfo()).thenReturn(nonMainUserInfo); in testUserAvailability()
225 when(mUserTracker.getUserInfo()).thenReturn(mainUserInfo); in testUserAvailability()
227 when(mUserTracker.getUserInfo()).thenReturn(nonMainUserInfo); in testUserAvailability()
286 mUserTracker, in constructTileForTest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qrcodescanner/controller/
DQRCodeScannerController.java94 private final UserTracker mUserTracker; field in QRCodeScannerController
120 mUserTracker = userTracker; in QRCodeScannerController()
223 if (mUserTracker == null) continue; in unregisterQRCodeScannerChangeObservers()
253 mUserTracker.getUserId()) != 0; in updateQRCodeScannerPreferenceDetails()
256 mQRCodeScannerActivity, mUserTracker.getUserId()); in updateQRCodeScannerPreferenceDetails()
330 mUserTracker.removeCallback(mUserChangedListener); in unregisterUserChangeObservers()
350 mUserTracker.getUserId()); in unregisterQRCodePreferenceObserver()
406 int userId = mUserTracker.getUserId(); in registerQRCodePreferenceObserver()
440 mUserTracker.addCallback(mUserChangedListener, mExecutor); in registerUserChangeObservers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterViewController.java61 private final UserTracker mUserTracker; field in BatteryMeterViewController
147 mUserTracker = userTracker; in BatteryMeterViewController()
169 registerShowBatteryPercentObserver(mUserTracker.getUserId()); in onViewAttached()
171 mUserTracker.addCallback(mUserChangedCallback, new HandlerExecutor(mMainHandler)); in onViewAttached()
182 mUserTracker.removeCallback(mUserChangedCallback); in onViewDetached()
248 private final UserTracker mUserTracker; field in BatteryMeterViewController.Factory
266 mUserTracker = userTracker; in Factory()
280 mUserTracker, in create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSuppressor.java60 private final UserTracker mUserTracker; field in DozeSuppressor
75 mUserTracker = userTracker; in DozeSuppressor()
154 mMachine.requestState(mConfig.alwaysOnEnabled(mUserTracker.getUserId()) in handleCarModeExited()
172 && mConfig.alwaysOnEnabled(mUserTracker.getUserId())) {
187 if (mConfig.alwaysOnEnabled(mUserTracker.getUserId()) && !suppressed) {
DDozeDockHandler.java43 private final UserTracker mUserTracker; field in DozeDockHandler
53 mUserTracker = userTracker; in DozeDockHandler()
110 nextState = mConfig.alwaysOnEnabled(mUserTracker.getUserId()) ? State.DOZE_AOD in onEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakReporterTest.java55 private UserTracker mUserTracker; field in LeakReporterTest
64 mUserTracker = mock(UserTracker.class); in setup()
65 when(mUserTracker.getUserHandle()).thenReturn( in setup()
76 mLeakReporter = new LeakReporter(mContext, mUserTracker, mLeakDetector, "test@example.com"); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSettingsController.java52 private final UserTracker mUserTracker; field in NotificationSettingsController
66 mUserTracker = userTracker; in NotificationSettingsController()
77 int userId = mUserTracker.getUserId(); in NotificationSettingsController()
105 mUserTracker.addCallback( in NotificationSettingsController()
135 uri, false, mContentObserver, mUserTracker.getUserId()); in addCallback()
140 int userId = mUserTracker.getUserId(); in addCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DReduceBrightColorsControllerImpl.java44 private final UserTracker mUserTracker; field in ReduceBrightColorsControllerImpl
57 mUserTracker = userTracker; in ReduceBrightColorsControllerImpl()
88 mUserTracker.addCallback(mCurrentUserTrackerCallback, new HandlerExecutor(handler)); in ReduceBrightColorsControllerImpl()
99 false, mContentObserver, mUserTracker.getUserId()); in addCallback()
DQSFooterViewController.java42 private final UserTracker mUserTracker; field in QSFooterViewController
60 mUserTracker = userTracker; in QSFooterViewController()
77 mUserTracker.getUserContext().getSystemService(ClipboardManager.class); in onViewAttached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/settings/
DSystemSettingsImpl.java31 private final UserTracker mUserTracker; field in SystemSettingsImpl
36 mUserTracker = userTracker; in SystemSettingsImpl()
46 return mUserTracker; in getUserTracker()
DSecureSettingsImpl.java31 private final UserTracker mUserTracker; field in SecureSettingsImpl
36 mUserTracker = userTracker; in SecureSettingsImpl()
46 return mUserTracker; in getUserTracker()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNextAlarmControllerImpl.java51 private final UserTracker mUserTracker; field in NextAlarmControllerImpl
74 mUserTracker = userTracker; in NextAlarmControllerImpl()
78 mUserTracker.addCallback(mUserChangedCallback, mainExecutor); in NextAlarmControllerImpl()
122 mNextAlarm = mAlarmManager.getNextAlarmClock(mUserTracker.getUserId()); in updateNextAlarm()
DUserInfoControllerImpl.java57 private final UserTracker mUserTracker; field in UserInfoControllerImpl
72 mUserTracker = userTracker; in UserInfoControllerImpl()
73 mUserTracker.addCallback(mUserChangedCallback, mainExecutor); in UserInfoControllerImpl()
107 final int currentUser = mUserTracker.getUserId();
129 userInfo = mUserTracker.getUserInfo(); in queryForUserInformation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServiceManagerTest.java82 private UserTracker mUserTracker; field in TileServiceManagerTest
106 when(mUserTracker.getUserId()).thenReturn(UserHandle.USER_SYSTEM); in setUp()
107 when(mUserTracker.getUserHandle()).thenReturn(UserHandle.SYSTEM); in setUp()
111 when(mTileLifecycle.getUserId()).thenAnswer(invocation -> mUserTracker.getUserId()); in setUp()
117 mTileServiceManager = new TileServiceManager(mTileServices, handler, mUserTracker, in setUp()
133 .setTileAdded(mComponentName, mUserTracker.getUserId(), true); in testSetTileAddedIfNotAdded()
149 when(mUserTracker.getUserId()).thenReturn(user); in testSetTileAddedCorrectUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java98 private UserTracker mUserTracker; field in TunerServiceImpl
117 mUserTracker = userTracker; in TunerServiceImpl()
127 mCurrentUser = mUserTracker.getUserId(); in TunerServiceImpl()
136 mUserTracker.addCallback(mCurrentUserTracker, in TunerServiceImpl()
142 mUserTracker.removeCallback(mCurrentUserTracker); in destroy()
291 mUserTracker.getUserContext().getPackageManager().setComponentEnabledSetting( in setTunerEnabled()
302 return mUserTracker.getUserContext().getPackageManager().getComponentEnabledSetting( in isTunerEnabled()
337 if (userId == mUserTracker.getUserId()) { in onChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DSecureSettingsContentObserver.java48 private final UserTracker mUserTracker; field in SecureSettingsContentObserver
61 mUserTracker = userTracker; in SecureSettingsContentObserver()
110 return Settings.Secure.getStringForUser(mContentResolver, mKey, mUserTracker.getUserId()); in getSettingsValue()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java119 private UserTracker mUserTracker; field in QSTileHostTest
170 mQSLogger, mUserTracker, mSecureSettings, mCustomTileStatePersister, in setUp()
181 }, mUserTracker.getUserId()); in setUp()
186 SETTING, value, "", false, mUserTracker.getUserId(), false); in saveSetting()
190 return mSecureSettings.getStringForUser(SETTING, mUserTracker.getUserId()); in getSetting()
552 int user = mUserTracker.getUserId(); in testIsTileAdded_true()
563 int user = mUserTracker.getUserId(); in testIsTileAdded_false()
574 int user = mUserTracker.getUserId(); in testIsTileAdded_notSet()
581 int user = mUserTracker.getUserId(); in testIsTileAdded_differentUser()
592 int user = mUserTracker.getUserId(); in testSetTileAdded_true()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/settings/
DUserSettingsProxyTest.kt47 private var mUserTracker = FakeUserTracker() variable in com.android.systemui.util.settings.UserSettingsProxyTest
48 private var mSettings: UserSettingsProxy = FakeUserSettingsProxy(mUserTracker)
53 mUserTracker.set( in setUp()
64 mUserTracker.userId in registerContentObserverForUser_inputString_success()
81 mUserTracker.userId in registerContentObserverForUser_inputString_notifyForDescendants_true()
97 mUserTracker.userId in registerContentObserverForUser_inputUri_success()
114 mUserTracker.userId in registerContentObserverForUser_inputUri_notifyForDescendants_true()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DAccessibilityButtonTargetsObserverTest.java53 private UserTracker mUserTracker; field in AccessibilityButtonTargetsObserverTest
63 when(mUserTracker.getUserId()).thenReturn(MY_USER_ID); in setUp()
65 mUserTracker); in setUp()
DAccessibilityButtonModeObserverTest.java53 private UserTracker mUserTracker; field in AccessibilityButtonModeObserverTest
64 when(mUserTracker.getUserId()).thenReturn(MY_USER_ID); in setUp()
69 mUserTracker); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResumeSessionReceiver.java60 private final UserTracker mUserTracker; field in GuestResumeSessionReceiver
72 UserInfo currentUser = mUserTracker.getUserInfo();
110 mUserTracker = userTracker; in GuestResumeSessionReceiver()
120 mUserTracker.addCallback(mUserChangedCallback, mMainExecutor); in register()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivityController.java40 private final UserTracker mUserTracker; field in WorkLockActivityController
53 mUserTracker = userTracker; in WorkLockActivityController()
73 mUserTracker.getUserId()); in startWorkChallengeInTask()

123456