Home
last modified time | relevance | path

Searched refs:mShadowContext (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DButtonActionDialogFragmentTest.java58 private Context mShadowContext; field in ButtonActionDialogFragmentTest
63 mShadowContext = RuntimeEnvironment.application; in setUp()
66 doReturn(mShadowContext).when(mFragment).getContext(); in setUp()
104 mShadowContext.getString(R.string.force_stop_dlg_text)); in testOnCreateDialog_forceStopDialog()
106 mShadowContext.getString(R.string.force_stop_dlg_title)); in testOnCreateDialog_forceStopDialog()
108 mShadowContext.getString(R.string.dlg_ok)); in testOnCreateDialog_forceStopDialog()
110 mShadowContext.getString(R.string.dlg_cancel)); in testOnCreateDialog_forceStopDialog()
125 mShadowContext.getString(R.string.app_disable_dlg_text)); in testOnCreateDialog_disableDialog()
127 mShadowContext.getString(R.string.app_disable_dlg_positive)); in testOnCreateDialog_disableDialog()
129 mShadowContext.getString(R.string.dlg_cancel)); in testOnCreateDialog_disableDialog()
[all …]
DAppInfoDashboardFragmentTest.java92 private Context mShadowContext; field in AppInfoDashboardFragmentTest
97 mShadowContext = RuntimeEnvironment.application; in setUp()
100 doReturn(mShadowContext).when(mFragment).getContext(); in setUp()
284 assertThat(mFragment.createPreferenceControllers(mShadowContext)).isNull(); in getPreferenceControllers_noPackageInfo_shouldReturnNull()
291 assertThat(mFragment.createPreferenceControllers(mShadowContext)).isNull(); in getPreferenceControllers_exiting_shouldReturnNull()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBackgroundActivityPreferenceControllerTest.java85 private Context mShadowContext; field in BackgroundActivityPreferenceControllerTest
92 mShadowContext = RuntimeEnvironment.application; in setUp()
110 mBatteryUtils = spy(new BatteryUtils(mShadowContext)); in setUp()
113 mPreference = spy(new RestrictedPreference(mShadowContext, null /* attrs */)); in setUp()
158 mShadowContext.getText(R.string.background_activity_summary_allowlisted)); in updateState_allowlisted()
174 final CharSequence expectedSummary = mShadowContext.getText( in updateSummary_modeError_showSummaryDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DEntityHeaderControllerTest.java66 private Context mShadowContext; field in EntityHeaderControllerTest
74 mShadowContext = RuntimeEnvironment.application; in setUp()
75 when(mActivity.getApplicationContext()).thenReturn(mShadowContext); in setUp()
77 when(mFragment.getContext()).thenReturn(mShadowContext); in setUp()
78 mLayoutInflater = LayoutInflater.from(mShadowContext); in setUp()
94 Preference preference = mController.done(mActivity, mShadowContext); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
122 mController.setIcon(mShadowContext.getDrawable(R.drawable.ic_add_24dp)); in bindViews_shouldBindAllData()
235 mController.setIcon(mShadowContext.getDrawable(R.drawable.ic_add_24dp)); in iconContentDescription_shouldWorkWithSetIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppInfoWithHeaderTest.java178 Context mShadowContext; field in AppInfoWithHeaderTest.TestFragment
190 mShadowContext = RuntimeEnvironment.application; in TestFragment()
193 when(mManager.getContext()).thenReturn(mShadowContext); in TestFragment()
223 return mShadowContext; in getContext()