Searched refs:isConfigWifiAllowed (Results 1 – 4 of 4) sorted by relevance
58 when(mWifiRestrictionsCache.isConfigWifiAllowed()).thenReturn(true); in setUp()83 when(mWifiRestrictionsCache.isConfigWifiAllowed()).thenReturn(false); in handleIntent_notAllowedConfigWifi_shouldFinish()92 when(mWifiRestrictionsCache.isConfigWifiAllowed()).thenReturn(true); in handleIntent_hasIntentDataAndAllowedConfigWifi_shouldShowFragment()
127 if (!isConfigWifiAllowed() || !isAddWifiConfigAllowed()) { in onCreate()389 boolean isConfigWifiAllowed() { in isConfigWifiAllowed() method in WifiDialogActivity392 final boolean isConfigWifiAllowed = !userManager.hasUserRestriction(DISALLOW_CONFIG_WIFI); in isConfigWifiAllowed()393 if (!isConfigWifiAllowed) { in isConfigWifiAllowed()398 return isConfigWifiAllowed; in isConfigWifiAllowed()
82 return mWifiRestrictionsCache.isConfigWifiAllowed(); in isWifiConfigAllowed()
234 assertThat(mActivity.isConfigWifiAllowed()).isTrue(); in isConfigWifiAllowed_hasNoUserRestriction_returnTrue()241 assertThat(mActivity.isConfigWifiAllowed()).isFalse(); in isConfigWifiAllowed_hasUserRestriction_returnFalse()