Home
last modified time | relevance | path

Searched refs:mPreferenceManager (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListFragmentTest.java49 private PreferenceManager mPreferenceManager; field in EnterpriseSetDefaultAppsListFragmentTest
58 when(mPreferenceManager.getContext()).thenReturn(mContext); in setUp()
59 when(mScreen.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
60 mFragment = new EnterpriseSetDefaultAppsListFragmentTestable(mPreferenceManager, mScreen); in setUp()
92 private final PreferenceManager mPreferenceManager; field in EnterpriseSetDefaultAppsListFragmentTest.EnterpriseSetDefaultAppsListFragmentTestable
97 mPreferenceManager = preferenceManager; in EnterpriseSetDefaultAppsListFragmentTestable()
103 return mPreferenceManager; in getPreferenceManager()
DApplicationListFragmentTest.java60 private PreferenceManager mPreferenceManager; field in ApplicationListFragmentTest
69 when(mPreferenceManager.getContext()).thenReturn(mContext); in setUp()
71 mFragment = new ApplicationListFragmentTestable(mPreferenceManager, mScreen); in setUp()
108 private final PreferenceManager mPreferenceManager; field in ApplicationListFragmentTest.ApplicationListFragmentTestable
113 this.mPreferenceManager = preferenceManager; in ApplicationListFragmentTestable()
128 return mPreferenceManager; in getPreferenceManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DNetworkSelectSettingsTest.java56 private PreferenceManager mPreferenceManager; field in NetworkSelectSettingsTest
77 doReturn(mPreferenceManager).when(mConnectedPreferenceCategory).getPreferenceManager(); in setUp()
79 doReturn(mPreferenceManager).when(mPreferenceCategory).getPreferenceManager(); in setUp()
83 doReturn(mPreferenceManager).when(mNetworkSelectSettings).getPreferenceManager(); in setUp()
84 doReturn(mContext).when(mPreferenceManager).getContext(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DEnterpriseDisclosurePreferenceControllerTest.java48 private PreferenceManager mPreferenceManager; field in EnterpriseDisclosurePreferenceControllerTest
59 mPreferenceManager = new PreferenceManager(mContext); in setUp()
60 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
83 doReturn(mPreferenceManager).when(mFragment).getPreferenceManager(); in displayPreference_hasDisclosure_shouldSetTitle()
DChooseAccountPreferenceControllerTest.java63 private PreferenceManager mPreferenceManager; field in ChooseAccountPreferenceControllerTest
72 mPreferenceManager = new PreferenceManager(mContext); in setUp()
73 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
DRemoveAccountPreferenceControllerTest.java91 private PreferenceManager mPreferenceManager; field in RemoveAccountPreferenceControllerTest
109 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
110 when(mPreferenceManager.getContext()).thenReturn(RuntimeEnvironment.application); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsHeaderControllerTest.java64 private PreferenceManager mPreferenceManager; field in UsbDetailsHeaderControllerTest
83 mPreferenceManager = new PreferenceManager(mContext); in setUp()
84 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
89 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
DUsbDetailsDataRoleControllerTest.java60 private PreferenceManager mPreferenceManager; field in UsbDetailsDataRoleControllerTest
78 mPreferenceManager = new PreferenceManager(mContext); in setUp()
79 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
84 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
DUsbDetailsPowerRoleControllerTest.java63 private PreferenceManager mPreferenceManager; field in UsbDetailsPowerRoleControllerTest
81 mPreferenceManager = new PreferenceManager(mContext); in setUp()
82 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
87 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
DUsbDetailsFunctionsControllerTest.java66 private PreferenceManager mPreferenceManager; field in UsbDetailsFunctionsControllerTest
85 mPreferenceManager = new PreferenceManager(mContext); in setUp()
86 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
91 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsControllerTestBase.java54 protected PreferenceManager mPreferenceManager; field in BluetoothDetailsControllerTestBase
69 mPreferenceManager = new PreferenceManager(mContext); in setUp()
70 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
75 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DEmergencyEditTextPreferenceTest.java43 @Mock private PreferenceManager mPreferenceManager; field in EmergencyEditTextPreferenceTest
51 when(mPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); in setUp()
58 when(prefRoot.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
DEmergencyListPreferenceTest.java47 @Mock private PreferenceManager mPreferenceManager; field in EmergencyListPreferenceTest
55 when(mPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); in setUp()
63 when(prefRoot.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
DEmergencyContactsPreferenceTest.java55 @Mock private PreferenceManager mPreferenceManager; field in EmergencyContactsPreferenceTest
66 when(mPreferenceManager.getSharedPreferences()).thenReturn(mSharedPreferences); in setUp()
75 when(prefRoot.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DInstrumentedPreferenceFragmentTest.java49 private PreferenceManager mPreferenceManager; field in InstrumentedPreferenceFragmentTest
58 when(mPreferenceManager.getPreferenceScreen()).thenReturn(mScreen); in setUp()
61 ReflectionHelpers.setField(mFragment, "mPreferenceManager", mPreferenceManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreferenceControllerTest.java76 private PreferenceManager mPreferenceManager; field in UnrestrictedDataAccessPreferenceControllerTest
121 mPreferenceManager = new PreferenceManager(mContext); in onRebuildComplete_restricted_shouldBeDisabled()
122 mPreferenceScreen = spy(mPreferenceManager.createPreferenceScreen(mContext)); in onRebuildComplete_restricted_shouldBeDisabled()
123 doReturn(mPreferenceManager).when(mFragment).getPreferenceManager(); in onRebuildComplete_restricted_shouldBeDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java86 private PreferenceManager mPreferenceManager; field in RestrictedAppDetailsTest
104 mPreferenceManager = new PreferenceManager(mContext); in setUp()
106 doReturn(mPreferenceManager).when(mRestrictedAppDetails).getPreferenceManager(); in setUp()
116 doReturn(mPreferenceManager).when( in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DInputMethodAndSubtypePreferenceControllerTest.java57 private PreferenceManager mPreferenceManager; field in InputMethodAndSubtypePreferenceControllerTest
63 mPreferenceManager = new PreferenceManager(mContext); in setUp()
66 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/compat/
DPlatformCompatDashboardTest.java77 private PreferenceManager mPreferenceManager; field in PlatformCompatDashboardTest
102 mPreferenceManager = new PreferenceManager(mContext); in setUp()
103 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
111 doReturn(mPreferenceManager).when(mDashboard).getPreferenceManager(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFragmentTest.java282 private final PreferenceManager mPreferenceManager; field in DashboardFragmentTest.TestFragment
290 mPreferenceManager = mock(PreferenceManager.class); in TestFragment()
294 when(mPreferenceManager.getContext()).thenReturn(mContext); in TestFragment()
331 return mPreferenceManager; in getPreferenceManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DInstantAppButtonsPreferenceControllerTest.java83 private PreferenceManager mPreferenceManager; field in InstantAppButtonsPreferenceControllerTest
97 mPreferenceManager = new PreferenceManager(mContext); in setUp()
98 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
99 when(mFragment.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DAirplaneModePreferenceControllerTest.java61 private PreferenceManager mPreferenceManager; field in AirplaneModePreferenceControllerTest
78 mPreferenceManager = new PreferenceManager(mContext); in setUp()
79 mScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java72 private PreferenceManager mPreferenceManager; field in TrustAgentsPreferenceControllerTest
81 mPreferenceManager = new PreferenceManager(mContext); in setUp()
82 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/cdma/
DCdmaListPreferenceTest.java44 private PreferenceManager mPreferenceManager; field in CdmaListPreferenceTest
68 verify(mPreferenceManager, never()).showDialog(mPreference); in onClick_inEcm_doNothing()
/packages/apps/Settings/src/com/android/settings/network/telephony/cdma/
DCdmaBasePreferenceController.java46 protected PreferenceManager mPreferenceManager; field in CdmaBasePreferenceController
73 mPreferenceManager = preferenceManager; in init()

12