Searched refs:mShadowContext (Results 1 – 5 of 5) sorted by relevance
58 private Context mShadowContext; field in ButtonActionDialogFragmentTest63 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 …]
92 private Context mShadowContext; field in AppInfoDashboardFragmentTest97 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()
85 private Context mShadowContext; field in BackgroundActivityPreferenceControllerTest92 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()
66 private Context mShadowContext; field in EntityHeaderControllerTest74 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()
178 Context mShadowContext; field in AppInfoWithHeaderTest.TestFragment190 mShadowContext = RuntimeEnvironment.application; in TestFragment()193 when(mManager.getContext()).thenReturn(mShadowContext); in TestFragment()223 return mShadowContext; in getContext()