/external/autotest/client/site_tests/policy_ManagedBookmarks/ |
D | policy_ManagedBookmarks.py | 62 def _test_managed_bookmarks(self, policy_value, policies_json): argument 73 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 75 'policies_json=%s)', policy_value, policies_json) 76 if policy_value is None: 77 if self._managed_bookmarks_are_shown(policy_value): 80 if not self._managed_bookmarks_are_shown(policy_value): 164 policy_value = self.value 171 policy_value = None 174 policy_value = self.TEST_CASES[case] 175 policy_json = {self.POLICY_NAME: ('[%s]' % policy_value)} [all …]
|
/external/autotest/client/site_tests/policy_RestoreOnStartupURLs/ |
D | policy_RestoreOnStartupURLs.py | 40 def _test_startup_urls(self, policy_value, policies_json): argument 51 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 53 policy_value, policies_json) 68 if tab_urls_value != policy_value: 71 (tab_urls_value, policy_value)) 87 policy_value = self.value 91 policy_value = None 94 policy_value = ','.join(self.TEST_CASES[case]) 100 self._test_startup_urls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_CookiesBlockedForUrls/ |
D | policy_CookiesBlockedForUrls.py | 72 def _test_CookiesBlockedForUrls(self, policy_value, policies_json): argument 88 policy_value, policies_json) 89 self.setup_case(POLICY_NAME, policy_value, policies_json) 93 if policy_value and URL_HOST in policy_value: 112 policy_value = None 118 policy_value = self.value 123 policy_value = ','.join(self.TEST_CASES[case]) 129 self._test_CookiesBlockedForUrls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_CookiesAllowedForUrls/ |
D | policy_CookiesAllowedForUrls.py | 73 def _test_CookiesAllowedForUrls(self, policy_value, policies_json): argument 88 policy_value, policies_json) 89 self.setup_case(POLICY_NAME, policy_value, policies_json) 94 if policy_value and URL_HOST in policy_value: 112 policy_value = None 118 policy_value = self.value 123 policy_value = ','.join(self.TEST_CASES[case]) 129 self._test_CookiesAllowedForUrls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_URLWhitelist/ |
D | policy_URLWhitelist.py | 128 def _test_URLWhitelist(self, policy_value, policies_json): argument 145 policy_value, policies_json) 146 self.setup_case(POLICY_NAME, policy_value, policies_json) 150 if policy_value: 151 if url in policy_value and url_is_blocked: 154 elif url not in policy_value and not url_is_blocked: 174 policy_value = None 180 policy_value = self.value 187 policy_value = None 189 policy_value = ','.join(self.TEST_CASES[case]) [all …]
|
/external/autotest/client/site_tests/policy_URLBlacklist/ |
D | policy_URLBlacklist.py | 123 def _test_URLBlacklist(self, policy_value, policies_json): argument 138 self.setup_case(POLICY_NAME, policy_value, policies_json) 140 policy_value, policies_json) 144 if policy_value: 145 if url in policy_value and not url_is_blocked: 164 policy_value = None 174 policy_value = self.value 180 policy_value = None 183 policy_value = ','.join(SINGLE_BLACKLISTED_FILE_DATA) 187 policy_value = ','.join(MULTIPLE_BLACKLISTED_FILES_DATA) [all …]
|
/external/autotest/client/site_tests/policy_ImagesBlockedForUrls/ |
D | policy_ImagesBlockedForUrls.py | 82 def _test_images_blocked_for_urls(self, policy_value, policies_json): argument 95 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 97 policy_value, policies_json) 109 if policy_value is not None and self.URL_HOST in policy_value: 136 policy_value = self.value 143 policy_value = None 146 policy_value = ','.join(self.URL1_DATA) 149 policy_value = ','.join(self.URL2_DATA) 152 policy_value = ','.join(self.URL3_DATA) 157 self._test_images_blocked_for_urls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_ImagesAllowedForUrls/ |
D | policy_ImagesAllowedForUrls.py | 81 def _test_images_allowed_for_urls(self, policy_value, policies_json): argument 94 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 96 policy_value, policies_json) 108 if policy_value is not None and self.URL_HOST in policy_value: 135 policy_value = self.value 142 policy_value = None 145 policy_value = ','.join(self.URL1_DATA) 148 policy_value = ','.join(self.URL2_DATA) 151 policy_value = ','.join(self.URL3_DATA) 156 self._test_images_allowed_for_urls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_JavaScriptBlockedForUrls/ |
D | policy_JavaScriptBlockedForUrls.py | 91 def _test_javascript_blocked_for_urls(self, policy_value, policies_json): argument 103 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 105 policy_value, policies_json) 116 if policy_value is not None and self.URL_HOST in policy_value: 140 policy_value = self.value 146 policy_value = None 148 policy_value = ','.join(self.TEST_CASES[case]) 154 self._test_javascript_blocked_for_urls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_JavaScriptAllowedForUrls/ |
D | policy_JavaScriptAllowedForUrls.py | 89 def _test_javascript_allowed_for_urls(self, policy_value, policies_json): argument 101 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 103 policy_value, policies_json) 115 if policy_value is not None and self.URL_HOST in policy_value: 139 policy_value = self.value 145 policy_value = None 147 policy_value = ','.join(self.TEST_CASES[case]) 153 self._test_javascript_allowed_for_urls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_EditBookmarksEnabled/ |
D | policy_EditBookmarksEnabled.py | 56 def _test_edit_bookmarks_enabled(self, policy_value, policies_json): argument 74 policy_value, policies_json) 75 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 77 if policy_value == 'true' or policy_value == 'null': 119 policy_value = self.value 124 policy_value = self.json_string(self.TEST_CASES[case]) 130 self._test_edit_bookmarks_enabled(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_PopupsBlockedForUrls/ |
D | policy_PopupsBlockedForUrls.py | 74 def _test_popups_blocked_for_urls(self, policy_value, policies_json): argument 86 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 88 policy_value, policies_json) 97 if policy_value is not None and self.URL_HOST in policy_value: 119 policy_value = self.value 124 policy_value = ','.join(self.TEST_CASES[case]) 130 self._test_popups_blocked_for_urls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_PopupsAllowedForUrls/ |
D | policy_PopupsAllowedForUrls.py | 74 def _test_popups_allowed_for_urls(self, policy_value, policies_json): argument 86 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 88 policy_value, policies_json) 97 if policy_value is not None and self.URL_HOST in policy_value: 119 policy_value = self.value 124 policy_value = ','.join(self.TEST_CASES[case]) 130 self._test_popups_allowed_for_urls(policy_value, policies_json)
|
/external/autotest/client/site_tests/policy_ProxySettings/ |
D | policy_ProxySettings.py | 148 def _test_proxy_configuration(self, policy_value, policies_json): argument 155 policy_value, policies_json) 156 self.setup_case(POLICY_NAME, policy_value, policies_json) 171 if policy_value is None or 'direct' in policy_value: 175 elif 'fixed_servers' in policy_value: 193 policy_value = self.value 198 policy_value = self.TEST_CASES[case] 201 self._test_proxy_configuration(policy_value, policies_json)
|
/external/autotest/client/cros/ |
D | enterprise_policy_base.py | 207 def setup_case(self, policy_name, policy_value, policies_json): argument 239 if not self._policy_value_matches_shown(policy_value, value_shown): 242 (value_shown, policy_value)) 275 def _policy_value_matches_shown(self, policy_value, value_shown): argument 294 if policy_value is None or policy_value == '': 295 policy_value = 'null' 298 trimmed_value = ''.join(policy_value.split()) 433 def json_string(self, policy_value): argument 439 return json.dumps(policy_value)
|
/external/autotest/client/common_lib/cros/ |
D | policy.py | 62 settings.ParseFromString(data_proto.policy_value) 119 data_proto.policy_value = settings.SerializeToString()
|
/external/autotest/client/site_tests/login_OwnershipTaken/ |
D | login_OwnershipTaken.py | 50 polval.ParseFromString(poldata.policy_value)
|
/external/libbrillo/policy/ |
D | device_policy_impl.cc | 132 device_policy_.ParseFromString(policy_data_.policy_value()); in LoadPolicy()
|