Home
last modified time | relevance | path

Searched refs:policy_value (Results 1 – 25 of 39) sorted by relevance

12

/external/autotest/client/site_tests/policy_DefaultImagesSetting/
Dpolicy_DefaultImagesSetting.py34 def _image_check(self, policy_value): argument
47 if (policy_value is None or policy_value == 1) and image_is_blocked:
50 elif policy_value == 2 and not image_is_blocked:
72 policy_value = self.LOOKUP[case]
73 self.setup_case(user_policies={self.POLICY_NAME: policy_value})
/external/autotest/client/site_tests/policy_CookiesSessionOnlyForUrls/
Dpolicy_CookiesSessionOnlyForUrls.py120 def _test_cookies_allowed_for_urls(self, policy_value): argument
137 if policy_value and self.WEB_HOST in policy_value:
145 if policy_value and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_RestoreOnStartupURLs/
Dpolicy_RestoreOnStartupURLs.py41 def _test_startup_urls(self, policy_value): argument
57 if policy_value is None:
63 elif set(tab_urls) != set(policy_value):
65 (tab_urls, policy_value))
/external/autotest/client/site_tests/policy_EnterpriseForceInstallCustom/
Dpolicy_EnterpriseForceInstallCustom.py33 policy_value = self._get_policy_value_from_new_tab(self.POLICY_NAME)
34 if not policy_value:
40 if app_settings not in policy_value:
43 for app in policy_value[app_settings]:
/external/autotest/client/site_tests/policy_JavaScriptAllowedForUrls/
Dpolicy_JavaScriptAllowedForUrls.py90 def _test_javascript_allowed_for_urls(self, policy_value): argument
113 if policy_value is not None and (self.WEB_HOST in policy_value or
114 self.TEST_URL in policy_value):
/external/autotest/client/site_tests/policy_JavaScriptBlockedForUrls/
Dpolicy_JavaScriptBlockedForUrls.py93 def _test_javascript_blocked_for_urls(self, policy_value): argument
117 if policy_value is not None and (self.WEB_HOST in policy_value or
118 self.TEST_URL in policy_value):
/external/autotest/client/site_tests/policy_URLWhitelist/
Dpolicy_URLWhitelist.py106 def _test_url_whitelist(self, policy_value): argument
121 if policy_value:
122 if url in policy_value and url_is_blocked:
126 elif url not in policy_value and not url_is_blocked:
/external/autotest/client/site_tests/policy_EditBookmarksEnabled/
Dpolicy_EditBookmarksEnabled.py34 def _test_edit_bookmarks_enabled(self, policy_value): argument
52 if policy_value is False and boomark_present:
55 elif policy_value is not False and not boomark_present:
/external/autotest/client/site_tests/policy_URLBlacklist/
Dpolicy_URLBlacklist.py95 def _test_url_blacklist(self, policy_value): argument
112 if policy_value:
113 should_be_blocked = (policy_value == self.BLACKLIST_WILDCARD or
114 url in policy_value)
/external/autotest/client/site_tests/policy_SearchSuggestEnabled/
Dpolicy_SearchSuggestEnabled.py16 def _search_bar_check(self, policy_value): argument
35 if policy_value is False and search_sugg:
37 elif policy_value is not False and not search_sugg:
/external/autotest/client/site_tests/policy_AlternateErrorPages/
Dpolicy_AlternateErrorPages.py28 def _alt_page_check(self, policy_value): argument
64 if self.RESULTS_DICT[policy_value] != list_content:
68 .format(self.RESULTS_DICT[policy_value], list_content))
/external/autotest/client/cros/enterprise/
Denterprise_policy_utils.py110 def _remove_visual_formatting(policy_value): argument
119 policy_value['value'] = json.loads(policy_value['value'])
/external/autotest/client/site_tests/policy_ExternalStorageReadOnly/
Dpolicy_ExternalStorageReadOnly.py36 def _test_external_storage(self, policy_value): argument
55 if policy_value and os.path.isfile(self.TEST_FILE):
58 elif not policy_value and not os.path.isfile(self.TEST_FILE):
/external/autotest/client/site_tests/policy_DisableScreenshots/
Dpolicy_DisableScreenshots.py88 def _test_screenshot_shortcut(self, policy_value): argument
108 if policy_value:
115 def _test_screenshot_apis(self, policy_value): argument
163 if policy_value:
/external/autotest/client/site_tests/policy_CookiesBlockedForUrls/
Dpolicy_CookiesBlockedForUrls.py73 def _test_cookies_blocked_for_urls(self, policy_value): argument
88 if policy_value and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_CookiesAllowedForUrls/
Dpolicy_CookiesAllowedForUrls.py72 def _test_cookies_allowed_for_urls(self, policy_value): argument
86 if policy_value and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_ManagedBookmarks/
Dpolicy_ManagedBookmarks.py52 def _test_managed_bookmarks(self, policy_value): argument
66 if not policy_value:
74 pol_set = self._get_set(policy_value)
/external/autotest/client/site_tests/policy_PopupsAllowedForUrls/
Dpolicy_PopupsAllowedForUrls.py70 def _test_popups_allowed_for_urls(self, policy_value): argument
87 if policy_value is not None and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_PopupsBlockedForUrls/
Dpolicy_PopupsBlockedForUrls.py71 def _test_popups_blocked_for_urls(self, policy_value): argument
88 if policy_value is not None and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_NotificationsAllowedForUrls/
Dpolicy_NotificationsAllowedForUrls.py90 def _test_notifications_allowed_for_urls(self, policy_value): argument
108 if policy_value is not None and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_ImagesBlockedForUrls/
Dpolicy_ImagesBlockedForUrls.py85 def _test_images_blocked_for_urls(self, policy_value): argument
102 if policy_value is not None and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_NotificationsBlockedForUrls/
Dpolicy_NotificationsBlockedForUrls.py94 def _test_notifications_blocked_for_urls(self, policy_value): argument
112 if policy_value is not None and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_ImagesAllowedForUrls/
Dpolicy_ImagesAllowedForUrls.py86 def _test_images_allowed_for_urls(self, policy_value): argument
104 if policy_value is not None and self.WEB_HOST in policy_value:
/external/autotest/client/site_tests/policy_KeyboardDefaultToFunctionKeys/
Dpolicy_KeyboardDefaultToFunctionKeys.py47 def _test_function_keys_default(self, policy_value): argument
63 if policy_value:
78 (policy_value, keys, action))
/external/autotest/client/site_tests/policy_PluginsBlockedForUrls/
Dpolicy_PluginsBlockedForUrls.py114 def _test_plugins_blocked_for_urls(self, policy_value): argument
140 if policy_value is not None and self.WEB_HOST in policy_value:

12