Searched refs:mMainFragment (Results 1 – 2 of 2) sorted by relevance
60 private MainFragment mMainFragment; field in MainFragmentTest66 doReturn(RuntimeEnvironment.application).when(mMainFragment).getContext(); in setUp()72 doReturn(networkPref).when(mMainFragment).findPreference(MainFragment.KEY_NETWORK); in testUpdateConnectivity_NoNetwork()74 mMainFragment.mConnectivityListenerOptional = Optional.of(listener); in testUpdateConnectivity_NoNetwork()81 mMainFragment.updateConnectivity(); in testUpdateConnectivity_NoNetwork()89 doReturn(networkPref).when(mMainFragment).findPreference(MainFragment.KEY_NETWORK); in testUpdateConnectivity_hasEthernet()91 mMainFragment.mConnectivityListenerOptional = Optional.of(listener); in testUpdateConnectivity_hasEthernet()98 mMainFragment.updateConnectivity(); in testUpdateConnectivity_hasEthernet()106 doReturn(networkPref).when(mMainFragment).findPreference(MainFragment.KEY_NETWORK); in testUpdateConnectivity_hasEthernetConnected()108 mMainFragment.mConnectivityListenerOptional = Optional.of(listener); in testUpdateConnectivity_hasEthernetConnected()[all …]
111 private TopLevelSettings mMainFragment; field in SettingsHomepageActivity184 return mMainFragment; in getMainFragment()285 mMainFragment = showFragment(() -> { in onCreate()759 mMainFragment.getArguments().putString(SettingsActivity.EXTRA_FRAGMENT_ARG_KEY, in reloadHighlightMenuKey()761 mMainFragment.reloadHighlightMenuKey(); in reloadHighlightMenuKey()794 mMainFragment.setPaddingHorizontal(padding); in updateHomepagePaddings()796 mMainFragment.setPaddingHorizontal(0); in updateHomepagePaddings()798 mMainFragment.updatePreferencePadding(mIsTwoPane); in updateHomepagePaddings()