Home
last modified time | relevance | path

Searched refs:mRealContext (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java137 private Context mRealContext; field in PowerUsageSummaryTest
149 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 …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java41 private final Context mRealContext; field in ContactsMockPackageManager
48 mRealContext = realContext; in ContactsMockPackageManager()
122 if (mRealContext.getPackageName().equals(appPackageName)) { in getResourcesForApplication()
123 return mRealContext.getResources(); in getResourcesForApplication()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java279 private Context mRealContext; field in EnterprisePolicyGuardTest.TestMockContext
284 mRealContext = realContext; in TestMockContext()
300 return mRealContext.getSystemServiceName(serviceClass); in getSystemServiceName()