Home
last modified time | relevance | path

Searched refs:shadowContext (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRingVolumePreferenceControllerTest.java63 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
64 shadowContext.setSystemService(Context.TELEPHONY_SERVICE, mTelephonyManager); in setUp()
65 shadowContext.setSystemService(Context.AUDIO_SERVICE, mAudioManager); in setUp()
66 shadowContext.setSystemService(Context.VIBRATOR_SERVICE, mVibrator); in setUp()
67 shadowContext.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); in setUp()
68 mContext = shadowContext.getApplicationContext(); in setUp()
DCastPreferenceControllerTest.java51 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
52 shadowContext.setSystemService(Context.TELEPHONY_SERVICE, mTelephonyManager); in setUp()
53 mContext = shadowContext.getApplicationContext(); in setUp()
DPhoneRingtonePreferenceControllerTest.java50 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
51 shadowContext.setSystemService(Context.TELEPHONY_SERVICE, mTelephonyManager); in setUp()
52 mContext = shadowContext.getApplicationContext(); in setUp()
DAdjustVolumeRestrictedPreferenceControllerTest.java58 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
59 mContext = spy(shadowContext.getApplicationContext()); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageUtilsTest.java44 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
45 mContext = shadowContext.getApplicationContext(); in setUp()
46 shadowContext.setSystemService(Context.CONNECTIVITY_SERVICE, mManager); in setUp()
DDataUsageSummaryTest.java63 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
64 shadowContext.setSystemService(Context.CONNECTIVITY_SERVICE, mManager); in setUp()
65 mContext = shadowContext.getApplicationContext(); in setUp()
DDataPlanUsageSummaryTest.java62 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
63 shadowContext.setSystemService(Context.CONNECTIVITY_SERVICE, mManager); in setUp()
64 mContext = shadowContext.getApplicationContext(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAddUserWhenLockedPreferenceControllerTest.java62 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
63 shadowContext.setSystemService(Context.USER_SERVICE, mUserManager); in setUp()
64 mContext = shadowContext.getApplicationContext(); in setUp()
DAutoSyncPersonalDataPreferenceControllerTest.java63 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
64 shadowContext.setSystemService(Context.USER_SERVICE, mUserManager); in setUp()
65 mContext = shadowContext.getApplicationContext(); in setUp()
DAutoSyncDataPreferenceControllerTest.java68 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
69 shadowContext.setSystemService(Context.USER_SERVICE, mUserManager); in setUp()
70 mContext = shadowContext.getApplicationContext(); in setUp()
DAccountTypePreferenceLoaderTest.java70 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
71 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp()
76 mContext = shadowContext.getApplicationContext(); in setUp()
DRemoveAccountPreferenceControllerTest.java90 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
91 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp()
92 mContext = spy(shadowContext.getApplicationContext()); in setUp()
DAccountDetailDashboardFragmentTest.java81 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
82 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp()
83 mContext = spy(shadowContext.getApplicationContext()); in setUp()
DAccountPreferenceControllerTest.java92 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
93 shadowContext.setSystemService(Context.USER_SERVICE, mUserManager); in setUp()
94 shadowContext.setSystemService(Context.ACCOUNT_SERVICE, mAccountManager); in setUp()
95 mContext = shadowContext.getApplicationContext(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBugReportInPowerPreferenceControllerTest.java68 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
69 shadowContext.setSystemService(Context.USER_SERVICE, mUserManager); in setUp()
70 mContext = spy(shadowContext.getApplicationContext()); in setUp()
DVerifyAppsOverUsbPreferenceControllerTest.java80 final ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
81 mContext = spy(shadowContext.getApplicationContext()); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java193 final Context shadowContext = spy(RuntimeEnvironment.application); in setUp() local
194 doReturn(mPackageManager).when(shadowContext).getPackageManager(); in setUp()
195 doReturn(mAppOpsManager).when(shadowContext).getSystemService(Context.APP_OPS_SERVICE); in setUp()
196 mBatteryUtils = spy(new BatteryUtils(shadowContext)); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DApplicationListPreferenceControllerTest.java84 final ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
85 mContext = shadowContext.getApplicationContext(); in setUp()
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java87 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
88 mContext = spy(shadowContext.getApplicationContext()); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DOwnerInfoPreferenceControllerTest.java75 ShadowApplication shadowContext = ShadowApplication.getInstance(); in setUp() local
76 mContext = spy(shadowContext.getApplicationContext()); in setUp()