/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | BluetoothTest.java | 285 assertThat(TestApis.devicePolicy().userRestrictions(dpc.user()) in newManagedProfile_disallowBluetoothSharingIsSet() 299 assertThat(TestApis.devicePolicy().userRestrictions(dpc.user()) in clearDisallowBluetoothSharing_newManagedProfile_disallowBluetoothSharingIsNotSet() 348 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)) in addUserRestriction_preU_disallowBluetoothSharing_isSet() 359 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)) in addUserRestriction_disallowBluetoothSharing_isSet() 371 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)) in addUserRestrictionGlobally_disallowBluetoothSharing_isSet() 386 TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)); in addUserRestriction_preU_disallowBluetoothSharing_isNotSet() 391 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)) in addUserRestriction_preU_disallowBluetoothSharing_isNotSet() 402 TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)); in addUserRestriction_disallowBluetoothSharing_isNotSet() 407 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)) in addUserRestriction_disallowBluetoothSharing_isNotSet() 418 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_BLUETOOTH_SHARING)) in addUserRestrictionGlobally_disallowBluetoothSharing_isNotSet() [all …]
|
D | FactoryResetTest.java | 63 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FACTORY_RESET)) in addUserRestriction_disallowFactoryReset_isSet() 83 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FACTORY_RESET)) in clearUserRestriction_disallowFactoryReset_isNotSet() 103 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FACTORY_RESET)) in addUserRestrictionGlobally_disallowFactoryReset_isSet() 126 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FACTORY_RESET)) in clearGlobalUserRestriction_disallowFactoryReset_isNotSet()
|
D | FunTest.java | 63 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FUN)) in addUserRestriction_disallowFun_isSet() 83 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FUN)) in clearUserRestriction_disallowFun_isNotSet() 103 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FUN)) in addUserRestrictionGlobally_disallowFun_isSet() 126 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_FUN)) in clearGlobalUserRestriction_disallowFun_isNotSet()
|
D | WindowsTest.java | 63 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CREATE_WINDOWS)) in addUserRestriction_disallowCreateWindows_isSet() 83 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CREATE_WINDOWS)) in clearUserRestriction_disallowCreateWindows_isNotSet() 103 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CREATE_WINDOWS)) in addUserRestrictionGlobally_disallowCreateWindows_isSet() 126 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CREATE_WINDOWS)) in clearGlobalUserRestriction_disallowCreateWindows_isNotSet()
|
D | DefaultApplicationsTest.java | 66 assertThat(TestApis.devicePolicy().userRestrictions() in addUserRestriction_disallowConfigDefaultApps_isSet() 87 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_DEFAULT_APPS)) in clearUserRestriction_disallowConfigDefaultApps_isNotSet() 107 assertThat(TestApis.devicePolicy().userRestrictions() in addUserRestrictionGlobally_disallowConfigDefaultApps_isSet() 131 assertThat(TestApis.devicePolicy().userRestrictions() in clearGlobalUserRestriction_disallowConfigDefaultApps_isNotSet()
|
D | PrivateProfileTest.java | 69 …assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_ADD_PRIVATE_PROFILE)).isTrue(… in hasDeviceOwner_disallowAddPrivateProfileIsSet() 82 …assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_ADD_PRIVATE_PROFILE)).isFalse… in hasWorkProfile_disallowAddPrivateProfileIsNotSet() 95 …assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_ADD_PRIVATE_PROFILE)).isFalse… in hasOrganizationOwnedWorkProfile_disallowAddPrivateProfileIsNotSet() 108 assertThat(TestApis.devicePolicy().userRestrictions() in addUserRestriction_restrictionApplies()
|
D | TelephonyTest.java | 105 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_CELL_BROADCASTS)) in setUserRestriction_disallowConfigCellBroadcasts_isSet() 121 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_CELL_BROADCASTS)) in setUserRestriction_disallowConfigCellBroadcasts_isNotSet() 165 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_MOBILE_NETWORKS)) in setUserRestriction_disallowConfigMobileNetworks_isSet() 181 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_MOBILE_NETWORKS)) in setUserRestriction_disallowConfigMobileNetworks_isNotSet() 226 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_OUTGOING_CALLS)) in setUserRestriction_disallowOutgoingCalls_isSet() 243 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_OUTGOING_CALLS)) in setUserRestriction_disallowOutgoingCalls_isNotSet() 288 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_SMS)) in setUserRestriction_disallowSms_isSet() 305 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_SMS)) in setUserRestriction_disallowSms_isNotSet() 349 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_DATA_ROAMING)) in setUserRestriction_disallowDataRoaming_isSet() 365 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_DATA_ROAMING)) in setUserRestriction_disallowDataRoaming_isNotSet() [all …]
|
D | InstallUnknownSourcesTest.java | 69 assertThat(TestApis.devicePolicy().userRestrictions() in addUserRestriction_disallowInstallUnknownSources_isSet() 87 assertThat(TestApis.devicePolicy().userRestrictions() in addUserRestriction_disallowInstallUnknownSources_isNotSet() 106 assertThat(TestApis.devicePolicy().userRestrictions().isSet( in addUserRestriction_disallowInstallUnknownSourcesGlobally_isSet()
|
D | LocationTest.java | 71 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_SHARE_LOCATION)) in setUserRestriction_disallowShareLocation_isSet() 87 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_SHARE_LOCATION)) in setUserRestriction_disallowShareLocation_isNotSet() 137 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_LOCATION)) in setUserRestriction_disallowConfigLocation_isSet() 153 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_LOCATION)) in setUserRestriction_disallowConfigLocation_isNotSet()
|
D | ContentTest.java | 83 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONTENT_CAPTURE)) in setUserRestriction_disallowContentCapture_isSet() 99 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONTENT_CAPTURE)) in setUserRestriction_disallowContentCapture_isNotSet() 145 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONTENT_SUGGESTIONS)) in setUserRestriction_disallowContentSuggestions_isSet() 161 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONTENT_SUGGESTIONS)) in setUserRestriction_disallowContentSuggestions_isNotSet()
|
D | PackagesTest.java | 62 assertThat(TestApis.devicePolicy().userRestrictions().isSet(ENSURE_VERIFY_APPS)) in setUserRestriction_ensureVerifyApps_isSet() 78 assertThat(TestApis.devicePolicy().userRestrictions().isSet(ENSURE_VERIFY_APPS)) in setUserRestriction_ensureVerifyApps_isNotSet()
|
D | ModifyUsersTest.java | 65 assertThat(TestApis.devicePolicy().userRestrictions().isSet( in setUserRestriction_disallowAddUser_isSet() 82 assertThat(TestApis.devicePolicy().userRestrictions().isSet( in setUserRestriction_disallowAddUser_isNotSet()
|
D | WifiTest.java | 139 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_WIFI)) in setUserRestriction_disallowConfigWifi_isSet() 156 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_WIFI)) in setUserRestriction_disallowConfigWifi_isNotSet() 209 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CHANGE_WIFI_STATE)) in setUserRestriction_disallowChangeWifiState_isSet() 225 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CHANGE_WIFI_STATE)) in setUserRestriction_disallowChangeWifiState_isNotSet() 280 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_WIFI_TETHERING)) in setUserRestriction_disallowWifiTethering_isSet() 297 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_WIFI_TETHERING)) in setUserRestriction_disallowWifiTethering_isNotSet() 357 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_TETHERING)) in setUserRestriction_disallowConfigTethering_isSet() 374 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_TETHERING)) in setUserRestriction_disallowConfigTethering_isNotSet() 420 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_WIFI_DIRECT)) in setUserRestriction_disallowWifiDirect_isSet() 437 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_WIFI_DIRECT)) in setUserRestriction_disallowWifiDirect_isNotSet() [all …]
|
D | PhysicalMediaTest.java | 67 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_MOUNT_PHYSICAL_MEDIA)) in setUserRestriction_disallowMountPhysicalMedia_isSet() 83 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_MOUNT_PHYSICAL_MEDIA)) in setUserRestriction_disallowMountPhysicalMedia_isNotSet()
|
D | SystemErrorDialogsTest.java | 88 .userRestrictions().isSet(DISALLOW_SYSTEM_ERROR_DIALOGS)) in addUserRestriction_disallowSystemErrorDialogs_isSet() 108 .userRestrictions().isSet(DISALLOW_SYSTEM_ERROR_DIALOGS)) in addUserRestrictionGlobally_disallowSystemErrorDialogs_isSet() 130 assertThat(TestApis.devicePolicy().userRestrictions() in clearUserRestriction_disallowSystemErrorDialogs_isNotSet()
|
D | SafeBootTest.java | 70 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_SAFE_BOOT)) in setUserRestriction_disallowSafeBoot_isSet() 86 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_SAFE_BOOT)) in setUserRestriction_disallowSafeBoot_isNotSet()
|
D | FileTransferTest.java | 70 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_USB_FILE_TRANSFER)) in setUserRestriction_disallowUsbFileTransfer_isSet() 86 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_USB_FILE_TRANSFER)) in setUserRestriction_disallowUsbFileTransfer_isNotSet()
|
D | DnsTest.java | 69 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_PRIVATE_DNS)) in setUserRestriction_disallowConfigPrivateDns_isSet() 85 … assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_CONFIG_PRIVATE_DNS)) in setUserRestriction_disallowConfigPrivateDns_isNotSet()
|
D | UserTest.kt | 78 TestApis.devicePolicy().userRestrictions() in <lambda>() 100 TestApis.devicePolicy().userRestrictions() in <lambda>() 185 TestApis.devicePolicy().userRestrictions() in <lambda>() 207 TestApis.devicePolicy().userRestrictions() in <lambda>()
|
D | AudioTest.java | 73 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_UNMUTE_MICROPHONE)) in setUserRestriction_disallowUnmuteMicrophone_isSet() 89 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_UNMUTE_MICROPHONE)) in setUserRestriction_disallowUnmuteMicrophone_isNotSet()
|
D | AirplaneModeTest.java | 82 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_AIRPLANE_MODE)) in addUserRestriction_disallowAirplaneMode_isSet() 118 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_AIRPLANE_MODE)) in addUserRestrictionGlobally_disallowAirplaneMode_isSet() 138 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_AIRPLANE_MODE)) in clearUserRestriction_disallowAirplaneMode_isNotSet()
|
D | PrintingTest.java | 107 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_PRINTING)) in addUserRestriction_disallowPrinting_isSet() 128 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_PRINTING)) in addUserRestriction_disallowPrinting_isNotSet()
|
D | ThreadNetworkTest.java | 95 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_THREAD_NETWORK)) in setUserRestriction_disallowThreadNetwork_isSet() 111 assertThat(TestApis.devicePolicy().userRestrictions().isSet(DISALLOW_THREAD_NETWORK)) in setUserRestriction_disallowThreadNetwork_isNotSet()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | UserRestrictionsContext.java | 69 || TestApis.devicePolicy().userRestrictions(mUser).isSet(restriction)) { in apply() 77 || !TestApis.devicePolicy().userRestrictions(mUser).isSet(restriction)) { in apply()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicyTest.java | 407 assertThat(TestApis.devicePolicy().userRestrictions( in userRestrictions_withUserHandle_returnsObject() 413 assertThat(TestApis.devicePolicy().userRestrictions( in userRestrictions_withUserReference_returnsObject() 449 assertThat(TestApis.devicePolicy().userRestrictions().isSet(USER_RESTRICTION)).isTrue(); in isSet_userRestrictionIsSet_returnsTrue() 469 TestApis.devicePolicy().userRestrictions().isSet(USER_RESTRICTION)).isFalse(); in isSet_userRestrictionIsNotSet_returnsFalse() 489 assertThat(TestApis.devicePolicy().userRestrictions(sDeviceState.additionalUser()) in isSet_userRestrictionIsSet_differentUser_returnsTrue() 510 assertThat(TestApis.devicePolicy().userRestrictions(sDeviceState.additionalUser()) in isSet_userRestrictionIsNotSet_differentUser_returnsFalse()
|