/external/chromium_org/chrome/installer/util/ |
registry_key_backup_unittest.cc | 36 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), destination_path_.c_str())); 37 EXPECT_FALSE(RegKey(test_data_.root_key(), destination_path_.c_str(), 47 EXPECT_TRUE(backup.Initialize(test_data_.root_key(), 49 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), destination_path_.c_str())); 50 EXPECT_FALSE(RegKey(test_data_.root_key(), destination_path_.c_str(), 58 EXPECT_TRUE(backup.Initialize(test_data_.root_key(), 60 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), destination_path_.c_str())); 61 test_data_.ExpectMatchesNonEmptyKey(test_data_.root_key(), 71 EXPECT_TRUE(backup.Initialize(test_data_.root_key(), 74 EXPECT_TRUE(other_backup.WriteTo(test_data_.root_key(), [all...] |
registry_test_data.cc | 22 bool RegistryTestData::DeleteKey(HKEY root_key, const wchar_t* path) { 24 if (root_key != NULL && path != NULL && *path != L'\0') { 25 result = RegKey(root_key, L"", KEY_QUERY_VALUE).DeleteKey(path); 47 bool RegistryTestData::Initialize(HKEY root_key, const wchar_t* base_path) { 53 if (DeleteKey(root_key, base_path)) { 55 root_key_ = root_key; 83 void RegistryTestData::ExpectMatchesNonEmptyKey(HKEY root_key, 87 EXPECT_EQ(ERROR_SUCCESS, key.Open(root_key, path, KEY_READ)); 98 void RegistryTestData::ExpectEmptyKey(HKEY root_key, const wchar_t* path) { 102 EXPECT_EQ(ERROR_SUCCESS, key.Open(root_key, path, KEY_READ)) [all...] |
copy_reg_key_work_item_unittest.cc | 44 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), key_path, 49 key.Open(test_data_.root_key(), destination_path_.c_str(), 54 key.Open(test_data_.root_key(), destination_path_.c_str(), 63 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), 68 RegistryTestData::ExpectEmptyKey(test_data_.root_key(), 73 key.Open(test_data_.root_key(), destination_path_.c_str(), 82 WorkItem::CreateCopyRegKeyWorkItem(test_data_.root_key(), 87 test_data_.ExpectMatchesNonEmptyKey(test_data_.root_key(), 92 key.Open(test_data_.root_key(), destination_path_.c_str(), 101 key.Create(test_data_.root_key(), destination_path_.c_str() [all...] |
registry_test_data.h | 29 bool Initialize(HKEY root_key, const wchar_t* base_path); 36 void ExpectMatchesNonEmptyKey(HKEY root_key, const wchar_t* path); 38 HKEY root_key() const { return root_key_; } function in class:RegistryTestData 45 static void ExpectEmptyKey(HKEY root_key, const wchar_t* path); 48 static bool DeleteKey(HKEY root_key, const wchar_t* path);
|
delete_reg_key_work_item_unittest.cc | 41 WorkItem::CreateDeleteRegKeyWorkItem(test_data_.root_key(), key_path)); 43 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 47 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 57 WorkItem::CreateDeleteRegKeyWorkItem(test_data_.root_key(), key_path)); 59 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 63 EXPECT_EQ(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 73 WorkItem::CreateDeleteRegKeyWorkItem(test_data_.root_key(), key_path)); 75 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 79 test_data_.ExpectMatchesNonEmptyKey(test_data_.root_key(), key_path.c_str()); 89 EXPECT_EQ(ERROR_SUCCESS, key.Create(test_data_.root_key(), key_name.c_str() [all...] |
install_util.h | 115 // Deletes the registry key at path key_path under the key given by root_key. 116 static bool DeleteRegistryKey(HKEY root_key, const string16& key_path); 138 // Deletes the key |key_to_delete_path| under |root_key| iff the value 139 // |value_name| in the key |key_to_test_path| under |root_key| satisfies 143 HKEY root_key, 149 // Deletes the value |value_name| in the key |key_path| under |root_key| iff 153 HKEY root_key,
|
google_update_settings.cc | 145 HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 147 RegKey key(root_key, reg_path.c_str(), KEY_READ); 265 HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 269 LONG result = key.Create(root_key, reg_path.c_str(), KEY_SET_VALUE); 593 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 597 if (update_key.Open(root_key, google_update::kRegPathGoogleUpdate, 606 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 610 if (key.Open(root_key, 623 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 626 if (update_key.Open(root_key, google_update::kRegPathGoogleUpdate 640 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 663 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local [all...] |
google_update_settings_unittest.cc | 800 HKEY root_key() const { function in class:StatsState 873 const HKEY root_key = stats_state.root_key(); local [all...] |
installation_state.cc | 51 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 58 if (key.Open(root_key, version_key.c_str(), 84 if (key.Open(root_key, state_key.c_str(), 126 key.Open(root_key, distribution->GetStateMediumKey().c_str(),
|
google_chrome_distribution.h | 72 virtual string16 GetDistributionData(HKEY root_key) OVERRIDE;
|
google_chrome_distribution_dummy.cc | 109 string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
|
install_util.cc | 440 bool InstallUtil::DeleteRegistryKey(HKEY root_key, 443 LONG result = ::SHDeleteKey(root_key, key_path.c_str()); 472 HKEY root_key, 477 DCHECK(root_key); 481 if (key.Open(root_key, key_to_test_path.c_str(), 486 delete_result = DeleteRegistryKey(root_key, key_to_delete_path) 494 HKEY root_key, 498 DCHECK(root_key); 503 if (key.Open(root_key, key_path,
|
/external/chromium/base/win/ |
win_util.h | 69 // |root_key| could be HKCU or HKLM or the root of any user hive. 70 BASE_API bool AddCommandToAutoRun(HKEY root_key, const string16& name, 72 // Removes the command specified by |name| from the AutoRun key. |root_key| 74 BASE_API bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name); 76 // Reads the command specified by |name| from the AutoRun key. |root_key| 78 BASE_API bool ReadCommandFromAutoRun(HKEY root_key,
|
win_util.cc | 128 bool AddCommandToAutoRun(HKEY root_key, const string16& name, 130 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_SET_VALUE); 135 bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name) { 136 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_SET_VALUE); 140 bool ReadCommandFromAutoRun(HKEY root_key, 143 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_QUERY_VALUE);
|
registry.cc | 279 RegistryValueIterator::RegistryValueIterator(HKEY root_key, 283 LONG result = RegOpenKeyEx(root_key, folder_key, 0, KEY_READ, &key_); 347 RegistryKeyIterator::RegistryKeyIterator(HKEY root_key, 350 LONG result = RegOpenKeyEx(root_key, folder_key, 0, KEY_READ, &key_);
|
/external/chromium_org/chrome/test/mini_installer/ |
registry_verifier.py | 13 def _RootKeyConstant(self, root_key): 21 if root_key not in root_key_mapping: 22 raise KeyError("Unknown root registry key '%s'" % root_key) 23 return root_key_mapping[root_key] 62 root_key, sub_key = key.split('\\', 1) 66 key_handle = _winreg.OpenKey(self._RootKeyConstant(root_key), sub_key, 0,
|
uninstall_chrome.py | 34 root_key = _winreg.HKEY_LOCAL_MACHINE 36 root_key = _winreg.HKEY_CURRENT_USER 41 key = _winreg.OpenKey(root_key, sub_key, 0, _winreg.KEY_QUERY_VALUE)
|
/external/chromium_org/base/win/ |
win_util.h | 85 // |root_key| could be HKCU or HKLM or the root of any user hive. 86 BASE_EXPORT bool AddCommandToAutoRun(HKEY root_key, const string16& name, 88 // Removes the command specified by |name| from the AutoRun key. |root_key| 90 BASE_EXPORT bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name); 92 // Reads the command specified by |name| from the AutoRun key. |root_key| 94 BASE_EXPORT bool ReadCommandFromAutoRun(HKEY root_key,
|
win_util.cc | 184 bool AddCommandToAutoRun(HKEY root_key, const string16& name, 186 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_SET_VALUE); 191 bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name) { 192 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_SET_VALUE); 196 bool ReadCommandFromAutoRun(HKEY root_key, 199 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_QUERY_VALUE);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_winreg.py | 81 def _write_test_data(self, root_key, CreateKey=CreateKey): 83 SetValue(root_key, test_key_name, REG_SZ, "Default value") 84 key = CreateKey(root_key, test_key_name) 121 def _read_test_data(self, root_key, OpenKey=OpenKey): 123 val = QueryValue(root_key, test_key_name) 127 key = OpenKey(root_key, test_key_name) 161 def _delete_test_data(self, root_key): 162 key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) 183 DeleteKey(root_key, test_key_name) 186 key = OpenKey(root_key, test_key_name [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_winreg.py | 81 def _write_test_data(self, root_key, CreateKey=CreateKey): 83 SetValue(root_key, test_key_name, REG_SZ, "Default value") 84 key = CreateKey(root_key, test_key_name) 121 def _read_test_data(self, root_key, OpenKey=OpenKey): 123 val = QueryValue(root_key, test_key_name) 127 key = OpenKey(root_key, test_key_name) 161 def _delete_test_data(self, root_key): 162 key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) 183 DeleteKey(root_key, test_key_name) 186 key = OpenKey(root_key, test_key_name [all...] |
/external/chromium_org/chrome/installer/launcher_support/ |
chrome_launcher_support.cc | 54 HKEY root_key = (level == USER_LEVEL_INSTALLATION) ? local 60 if (reg_key.Open(root_key, subkey.c_str(), 72 HKEY root_key = (level == USER_LEVEL_INSTALLATION) ? local 78 return reg_key.Open(root_key, subkey.c_str(),
|
/external/chromium_org/chrome/installer/setup/ |
install_worker.cc | 215 installer_state.root_key(), full_cmd_key)->set_log_message( 225 cmd.AddWorkItems(installer_state.root_key(), full_cmd_key, work_item_list); 338 cmd.AddWorkItems(installer_state.root_key(), cmd_key, work_item_list); 385 HKEY reg_root = installer_state.root_key(); 632 HKEY reg_root = installer_state.root_key(); 770 const HKEY root_key = installer_state.root_key(); local 819 const HKEY root_key = installer_state.root_key(); local 874 const HKEY root_key = installer_state.root_key(); local 921 HKEY root_key = installer_state.root_key(); local 1390 const HKEY root_key = installer_state.root_key(); local 1422 const HKEY root_key = installer_state.root_key(); local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
win32regkey.cc | 907 std::wstring root_key; local 910 root_key = *full_key_name; 913 root_key = full_key_name->substr(0, index); 918 for (std::wstring::iterator iter = root_key.begin(); 919 iter != root_key.end(); ++iter) { 923 if (!root_key.compare(L"HKLM") || 924 !root_key.compare(L"HKEY_LOCAL_MACHINE")) { 926 } else if (!root_key.compare(L"HKCU") || 927 !root_key.compare(L"HKEY_CURRENT_USER")) { 929 } else if (!root_key.compare(L"HKU") | 947 HKEY root_key = GetRootKeyInfo(&key); local [all...] |
/external/chromium_org/rlz/win/lib/ |
rlz_value_store_registry.cc | 134 bool DeleteKeyIfEmpty(HKEY root_key, const wchar_t* key_name) { 139 base::win::RegKey key(root_key, key_name, KEY_READ); 143 base::win::RegistryKeyIterator key_iter(root_key, key_name); 147 base::win::RegistryValueIterator value_iter(root_key, key_name); 153 base::win::RegKey key(root_key, L"", KEY_WRITE);
|