Home
last modified time | relevance | path

Searched refs:mDarkModeObserver (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeObserverTest.java38 private DarkModeObserver mDarkModeObserver; field in DarkModeObserverTest
46 mDarkModeObserver = new DarkModeObserver(mContext); in setUp()
47 mContentObserver = mDarkModeObserver.getContentObserver(); in setUp()
53 mDarkModeObserver.subscribe(mCallback); in callbackTest_subscribedCallbackCalled()
60 mDarkModeObserver.subscribe(mCallback); in callbackTest_unsubscribedCallNotbackCalled()
62 mDarkModeObserver.unsubscribe(); in callbackTest_unsubscribedCallNotbackCalled()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModePreference.java30 private DarkModeObserver mDarkModeObserver; field in DarkModePreference
36 mDarkModeObserver = new DarkModeObserver(context); in DarkModePreference()
46 mDarkModeObserver.subscribe(mCallback); in DarkModePreference()
52 mDarkModeObserver.subscribe(mCallback); in onAttached()
58 mDarkModeObserver.unsubscribe(); in onDetached()