/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | AddWifiPreferenceControllerTest.java | 19 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/ |
D | AddWifiPreferenceController.java | 19 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/ |
D | AddNetworkFragmentTest.java | 19 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/ |
D | WifiDppConfiguratorActivityTest.java | 19 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/ |
D | NetworkFragment.java | 221 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()
|
D | AddWifiNetworkActivity.java | 19 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/ |
D | WifiDialogActivityTest.java | 21 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()
|
D | AddWifiNetworkPreferenceTest.java | 66 null /* component */, UserManager.DISALLOW_ADD_WIFI_CONFIG, null /* user */); in updatePreferenceForRestriction_isAddWifiConfigNotAllowed_prefIsDisabled()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | AddNetworkFragment.java | 19 import static android.os.UserManager.DISALLOW_ADD_WIFI_CONFIG; 254 if (userManager != null && userManager.hasUserRestriction(DISALLOW_ADD_WIFI_CONFIG)) { in isAddWifiConfigAllowed()
|
D | LongPressWifiEntryPreference.java | 83 UserManager.DISALLOW_ADD_WIFI_CONFIG); in checkRestrictionAndSetDisabled()
|
D | AddWifiNetworkPreference.java | 56 checkRestrictionAndSetDisabled(UserManager.DISALLOW_ADD_WIFI_CONFIG); in AddWifiNetworkPreference()
|
D | WifiDialogActivity.java | 20 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/ |
D | WifiDppConfiguratorActivity.java | 19 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/ |
D | OpenNetworkNotifierTest.java | 484 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()
|
D | WifiServiceImplTest.java | 6862 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/ |
D | NfcWifiProtectedSetup.java | 86 UserManager.DISALLOW_ADD_WIFI_CONFIG, in tryNfcWifiSetup()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | RestrictedPreferenceAdapter.java | 183 || (isRestricted(UserManager.DISALLOW_ADD_WIFI_CONFIG) && !mIsApSaved))) { in getPreference()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | AvailableNetworkNotifier.java | 290 UserManager.DISALLOW_ADD_WIFI_CONFIG, currentUser)); in isControllerEnabled()
|
D | WifiServiceImpl.java | 3910 UserManager.DISALLOW_ADD_WIFI_CONFIG, in addOrUpdateNetwork() 4720 UserManager.DISALLOW_ADD_WIFI_CONFIG, 6242 UserManager.DISALLOW_ADD_WIFI_CONFIG,
|