Home
last modified time | relevance | path

Searched refs:extract (Results 1 – 25 of 139) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java80 mActivityShadow = Shadow.extract(mActivity); in setUp()
141 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails()
162 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails_shortSupportMessageIsNull()
184 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetailsNotAdmin()
205 ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testMaybeSetLearnMoreButton()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageEntryPreferenceControllerTest.java25 import static org.robolectric.shadow.api.Shadow.extract;
143 return (ShadowConnectivityManager) extract( in getShadowConnectivityManager()
148 return (ShadowSubscriptionManager) extract( in getShadowSubscriptionManager()
DDataUsageSummaryPreferenceControllerTest.java26 import static org.robolectric.shadow.api.Shadow.extract;
351 return (ShadowTelephonyManager) extract( in getShadowTelephonyManager()
356 return Shadow.extract(mContext.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE)); in getShadowSubscriptionManager()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/specialaccess/
DSpecialAppAccessTest.java24 import static org.robolectric.shadow.api.Shadow.extract;
56 mActivityManager = extract(RuntimeEnvironment.application in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DExternalSourcesDetailsTest.java115 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
154 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
193 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountDetailDashboardFragmentTest.java183 Shadow.extract(mContext.getSystemService(UserManager.class)); in onResume_accountMissing_shouldFinish()
195 Shadow.extract(mContext.getSystemService(UserManager.class)); in onResume_accountPresentOneProfile_shouldNotFinish()
207 Shadow.extract(mContext.getSystemService(UserManager.class)); in onResume_accountPresentTwoProfiles_shouldNotFinish()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessControllerTest.java57 mActivityManager = Shadow.extract(mContext.getSystemService(Context.ACTIVITY_SERVICE)); in setUp()
81 final ShadowNotificationManager snm = Shadow.extract(mContext.getSystemService( in hasAccess_granted_yes()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DBubbleSummaryNotificationPreferenceControllerTest.java80 Shadow.extract(mContext.getSystemService(ActivityManager.class)); in isAvailable_lowRam_returnsUnsupported()
88 Shadow.extract(mContext.getSystemService(ActivityManager.class)); in isAvailable_notLowRam_returnsAvailable()
DBubbleNotificationPreferenceControllerTest.java77 Shadow.extract(mContext.getSystemService(ActivityManager.class)); in isAvailable_lowRam_returnsUnsupported()
85 Shadow.extract(mContext.getSystemService(ActivityManager.class)); in isAvailable_notLowRam_returnsAvailable()
DRedactionInterstitialTest.java109 Shadow.extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in managedProfileNoRestrictionsTest()
124 Shadow.extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in managedProfileUnredactedRestrictionTest()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DAddStartStateTest.java20 import static org.robolectric.shadow.api.Shadow.extract;
55 ShadowStateMachine shadowStateMachine = extract(stateMachine); in setUp()
DAddPageBasedOnNetworkStateTest.java23 import static org.robolectric.shadow.api.Shadow.extract;
65 ShadowStateMachine shadowStateMachine = extract(stateMachine); in setUp()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/autofill/
DAutofillPickerFragmentTest.java24 import static org.robolectric.shadow.api.Shadow.extract;
64 mUserManager = extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowWifiManager.java77 ShadowWifiInfo shadowWifiInfo = Shadow.extract(wifiInfo); in connect()
98 Shadow.extract(RuntimeEnvironment.application in connect()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/
DMainFragmentTest.java26 import static org.robolectric.shadow.api.Shadow.extract;
233 ShadowAccountManager am = extract(AccountManager.get(RuntimeEnvironment.application)); in testUpdateAccountPrefInfo_hasOneAccount()
265 ShadowAccountManager am = extract(AccountManager.get(RuntimeEnvironment.application)); in testUpdateAccountPrefInfo_hasMoreThanOneAccount()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothNamePreferenceControllerTest.java160 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
164 return Shadow.extract(UserManager.get(RuntimeEnvironment.application)); in getShadowUserManager()
DBluetoothDevicePreferenceControllerTest.java144 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
148 return Shadow.extract(UserManager.get(mContext)); in getShadowUserManager()
DBluetoothPreferenceControllerTest.java155 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
159 return Shadow.extract(UserManager.get(RuntimeEnvironment.application)); in getShadowUserManager()
DBluetoothUnbondedDevicesPreferenceControllerTest.java211 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
215 return Shadow.extract(UserManager.get(RuntimeEnvironment.application)); in getShadowUserManager()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/inputmethod/
DKeyboardFragmentTest.java23 import static org.robolectric.shadow.api.Shadow.extract;
74 mUserManager = extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in setUp()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBackupRestoreTest.java87 mUserManager = Shadow.extract(userManager); in setupUserManager()
94 final LShadowBackupManager bm = Shadow.extract(mBackupManager); in setupBackupManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java112 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in onStart_shouldRegisterObserver()
126 ShadowContentResolver shadowContentResolver = Shadow.extract(mContext.getContentResolver()); in onStop_shouldUnregisterObserver()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/
DDevicePrefFragmentTest.java26 import static org.robolectric.shadow.api.Shadow.extract;
62 mUserManager = extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAvailableMediaBluetoothDeviceUpdaterTest.java84 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
86 mShadowCachedBluetoothDeviceManager = Shadow.extract( in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DBubbleSummaryPreferenceControllerTest.java151 Shadow.extract(mContext.getSystemService(ActivityManager.class)); in isAvailable_lowRam_shouldReturnFalse()
162 Shadow.extract(mContext.getSystemService(ActivityManager.class)); in isAvailable_notLowRam_shouldReturnTrue()

123456