Searched refs:mRealContext (Results 1 – 3 of 3) sorted by relevance
137 private Context mRealContext; field in PowerUsageSummaryTest149 mRealContext = spy(RuntimeEnvironment.application); in setUp()151 mScreenUsagePref = new PowerGaugePreference(mRealContext); in setUp()152 mLastFullChargePref = new PowerGaugePreference(mRealContext); in setUp()153 mFragment = spy(new TestFragment(mRealContext)); in setUp()155 mBatteryMeterView = new BatteryMeterView(mRealContext); in setUp()156 mBatteryMeterView.mDrawable = new BatteryMeterView.BatteryMeterDrawable(mRealContext, 0); in setUp()193 mFragment.mBatteryUtils = spy(new BatteryUtils(mRealContext)); in setUp()204 when(mFragment.getContext()).thenReturn(mRealContext); in updateLastFullChargePreference_noAverageTime_showLastFullChargeSummary()218 when(mFragment.getContext()).thenReturn(mRealContext); in updateLastFullChargePreference_hasAverageTime_showFullChargeLastSummary()[all …]
41 private final Context mRealContext; field in ContactsMockPackageManager48 mRealContext = realContext; in ContactsMockPackageManager()122 if (mRealContext.getPackageName().equals(appPackageName)) { in getResourcesForApplication()123 return mRealContext.getResources(); in getResourcesForApplication()
279 private Context mRealContext; field in EnterprisePolicyGuardTest.TestMockContext284 mRealContext = realContext; in TestMockContext()300 return mRealContext.getSystemServiceName(serviceClass); in getSystemServiceName()