Home
last modified time | relevance | path

Searched refs:DISALLOW_ADD_WIFI_CONFIG (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DAddWifiPreferenceControllerTest.java19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
140 mockUserRestrictionSetByUm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByUm()
147 mockUserRestrictionSetByUm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByUm_zoneWrite()
156 mockUserRestrictionSetByUm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByUm_zoneRead()
165 mockUserRestrictionSetByUm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByUm_zoneHidden()
174 mockUserRestrictionSetByDpm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByDpm()
181 mockUserRestrictionSetByDpm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByDpm_zoneWrite()
190 mockUserRestrictionSetByDpm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByDpm_zoneRead()
199 mockUserRestrictionSetByDpm(mMockUserManager, DISALLOW_ADD_WIFI_CONFIG, true); in getAvailabilityStatus_restrictionByDpm_zoneHidden()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DAddWifiPreferenceController.java19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
52 WifiUtil.runClickableWhileDisabled(getContext(), DISALLOW_ADD_WIFI_CONFIG, in onCreateInternal() local
65 if (hasUserRestrictionByUm(context, DISALLOW_ADD_WIFI_CONFIG) in getDefaultAvailabilityStatus()
66 || hasUserRestrictionByDpm(context, DISALLOW_ADD_WIFI_CONFIG)) { in getDefaultAvailabilityStatus()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DAddNetworkFragmentTest.java19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
63 when(mUserManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)).thenReturn(false); in isAddWifiConfigAllowed_hasNoUserRestriction_returnTrue()
70 when(mUserManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)).thenReturn(true); in isAddWifiConfigAllowed_hasUserRestriction_returnFalse()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiDppConfiguratorActivityTest.java19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
63 when(mUserManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)).thenReturn(false); in isAddWifiConfigAllowed_hasNoUserRestriction_returnTrue()
70 when(mUserManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)).thenReturn(true); in isAddWifiConfigAllowed_hasUserRestriction_returnFalse()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkFragment.java221 mAddPref.checkRestrictionAndSetDisabled(UserManager.DISALLOW_ADD_WIFI_CONFIG); in onCreatePreferences()
223 UserManager.DISALLOW_ADD_WIFI_CONFIG); in onCreatePreferences()
227 || userManager.hasUserRestriction(UserManager.DISALLOW_ADD_WIFI_CONFIG)) { in onCreatePreferences()
417 userRestrictions.add(UserManager.DISALLOW_ADD_WIFI_CONFIG); in updateWifiList()
DAddWifiNetworkActivity.java19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
236 if (userManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)) { in isAddWifiAllowed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiDialogActivityTest.java21 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
246 when(mUserManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)).thenReturn(false); in isAddWifiConfigAllowed_hasNoUserRestriction_returnTrue()
253 when(mUserManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)).thenReturn(true); in isAddWifiConfigAllowed_hasUserRestriction_returnFalse()
DAddWifiNetworkPreferenceTest.java66 null /* component */, UserManager.DISALLOW_ADD_WIFI_CONFIG, null /* user */); in updatePreferenceForRestriction_isAddWifiConfigNotAllowed_prefIsDisabled()
/packages/apps/Settings/src/com/android/settings/wifi/
DAddNetworkFragment.java19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
254 if (userManager != null && userManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)) { in isAddWifiConfigAllowed()
DLongPressWifiEntryPreference.java83 UserManager.DISALLOW_ADD_WIFI_CONFIG); in checkRestrictionAndSetDisabled()
DAddWifiNetworkPreference.java56 checkRestrictionAndSetDisabled(UserManager.DISALLOW_ADD_WIFI_CONFIG); in AddWifiNetworkPreference()
DWifiDialogActivity.java20 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
404 if (userManager != null && userManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)) { in isAddWifiConfigAllowed()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppConfiguratorActivity.java19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG;
419 if (userManager != null && userManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)) { in isAddWifiConfigAllowed()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DOpenNetworkNotifierTest.java484 eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), any()); in userHasDisallowConfigWifiRestriction_notificationNotDisplayed()
508 eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), any()); in userHasDisallowConfigWifiRestriction_showingNotificationIsCleared()
517 when(mUserManager.hasUserRestrictionForUser(UserManager.DISALLOW_ADD_WIFI_CONFIG, in userHasDisallowAddWifiConfigRestriction_notificationNotDisplayed()
541 when(mUserManager.hasUserRestrictionForUser(UserManager.DISALLOW_ADD_WIFI_CONFIG, in userHasDisallowAddWifiConfigRestriction_showingNotificationIsCleared()
DWifiServiceImplTest.java6862 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in testAddOrUpdateNetworkIsNotAllowedForAppsTargetingBelowQSdkWithUserRestriction()
6920 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in testAddOrUpdateNetworkIsNotAllowedForCameraDisallowAddWifiConfig()
7307 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in testAddNetworkSuggestionsIsAllowedForCarrierAppWithUserRestriction()
7331 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in testAddNetworkSuggestionsIsAllowedForPrivilegedAppWithUserRestriction()
7355 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in testAddNetworkSuggestionsIsAllowedForSystemAppWithUserRestriction()
7378 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in testAddNetworkSuggestionsIsAllowedForAdminAppWithUserRestriction()
7401 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in testAddNetworkSuggestionsIsNotAllowedForNormalAppWithUserRestriction()
8132 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in addOrUpdatePasspointConfigIsNotAllowedForAppsTargetingBelowRSdkWithUserRestriction()
8163 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in addOrUpdatePasspointConfigIsNotAllowedForSystemAppWithUserRestriction()
8195 when(mUserManager.hasUserRestrictionForUser(eq(UserManager.DISALLOW_ADD_WIFI_CONFIG), in addOrUpdatePasspointConfigIsAllowedSystemAlertAdminAppWithUserRestriction()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java86 UserManager.DISALLOW_ADD_WIFI_CONFIG, in tryNfcWifiSetup()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRestrictedPreferenceAdapter.java183 || (isRestricted(UserManager.DISALLOW_ADD_WIFI_CONFIG) && !mIsApSaved))) { in getPreference()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DAvailableNetworkNotifier.java290 UserManager.DISALLOW_ADD_WIFI_CONFIG, currentUser)); in isControllerEnabled()
DWifiServiceImpl.java3910 UserManager.DISALLOW_ADD_WIFI_CONFIG, in addOrUpdateNetwork()
4720 UserManager.DISALLOW_ADD_WIFI_CONFIG,
6242 UserManager.DISALLOW_ADD_WIFI_CONFIG,