Searched refs:pref (Results 1 - 25 of 311) sorted by relevance

1234567891011>>

/external/chromium/chrome/browser/ui/webui/
H A Dshown_sections_handler_unittest.cc28 scoped_ptr<PrefService> pref(new TestingPrefService);
30 pref->RegisterIntegerPref(prefs::kNTPShownSections, 0);
32 EXPECT_EQ(APPS, MigratePrefValue(pref.get(), APPS));
33 EXPECT_EQ(THUMB, MigratePrefValue(pref.get(), THUMB));
34 EXPECT_EQ(APPS, MigratePrefValue(pref.get(), APPS | THUMB));
38 EXPECT_EQ(THUMB, MigratePrefValue(pref.get(), 3));
42 EXPECT_EQ(THUMB, MigratePrefValue(pref.get(), 0));
/external/apache-harmony/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/
H A DAbstractPreferencesTest.java53 AbstractPreferences pref; field in class:AbstractPreferencesTest
95 // pref = new MockAbstractPreferences((AbstractPreferences) parent,
98 pref = (AbstractPreferences) parent.node("mock");
104 if (pref instanceof MockAbstractPreferences) {
105 ((MockAbstractPreferences) pref)
118 pref = new MockAbstractPreferences(
125 pref = new MockAbstractPreferences(null, "mock");
137 new MockAbstractPreferences(pref, "");
143 new MockAbstractPreferences(pref, null);
148 if (!(pref instanceo
[all...]
/external/chromium/chrome/browser/prefs/
H A Dpref_set_observer.cc19 void PrefSetObserver::AddPref(const std::string& pref) { argument
20 if (!prefs_.count(pref) && pref_service_->FindPreference(pref.c_str())) {
21 prefs_.insert(pref);
22 registrar_.Add(pref.c_str(), this);
26 void PrefSetObserver::RemovePref(const std::string& pref) { argument
27 if (prefs_.erase(pref))
28 registrar_.Remove(pref.c_str(), this);
31 bool PrefSetObserver::IsObserved(const std::string& pref) { argument
32 return prefs_.count(pref) >
37 const PrefService::Preference* pref = local
[all...]
H A Dsession_startup_pref.cc35 // Converts an integer pref value to a SessionStartupPref::Type.
56 const SessionStartupPref& pref) {
58 SetStartupPref(profile->GetPrefs(), pref);
63 const SessionStartupPref& pref) {
67 prefs->SetInteger(prefs::kRestoreOnStartup, TypeToPrefValue(pref.type));
71 // user changes the startup type pref.
72 // Ownership of the ListValue retains with the pref service.
77 for (size_t i = 0; i < pref.urls.size(); ++i) {
79 new StringValue(pref.urls[i].spec()));
93 SessionStartupPref pref(
54 SetStartupPref( Profile* profile, const SessionStartupPref& pref) argument
62 SetStartupPref(PrefService* prefs, const SessionStartupPref& pref) argument
[all...]
H A Dpref_observer_mock.h26 const PrefService::Preference* pref = local
28 if (!pref)
31 const Value* actual_value = pref->GetValue();
H A Dpref_set_observer.h25 // Add a |pref| to the set of preferences to observe.
26 void AddPref(const std::string& pref);
27 // Remove |pref| from the set of observed peferences.
28 void RemovePref(const std::string& pref);
30 // Check whether |pref| is in the set of observed preferences.
31 bool IsObserved(const std::string& pref);
35 // Create a pref set observer for all preferences relevant to proxies.
40 // Create a pref set observer for all preferences relevant to default search.
H A Dpref_service.cc80 void NotifyReadError(PrefService* pref, int message_id) { argument
334 const Preference* pref = FindPreference(path); local
335 if (!pref) {
336 NOTREACHED() << "Trying to read an unregistered pref: " << path;
339 bool rv = pref->GetValue()->GetAsBoolean(&result);
349 const Preference* pref = FindPreference(path); local
350 if (!pref) {
351 NOTREACHED() << "Trying to read an unregistered pref: " << path;
354 bool rv = pref->GetValue()->GetAsInteger(&result);
364 const Preference* pref local
379 const Preference* pref = FindPreference(path); local
394 const Preference* pref = FindPreference(path); local
405 const Preference* pref = FindPreference(path); local
414 const Preference* pref = FindPreference(i->first.c_str()); local
443 const Preference* pref = FindPreference(pref_name); local
450 const Preference* pref = FindPreference(path); local
466 const Preference* pref = FindPreference(path); local
511 const Preference* pref = FindPreference(path); local
522 const Preference* pref = FindPreference(path); local
568 const Preference* pref = FindPreference(path); local
594 const Preference* pref = FindPreference(path); local
631 const Preference* pref = FindPreference(path); local
[all...]
H A Dsession_startup_pref.h34 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref);
36 const SessionStartupPref& pref);
/external/chromium_org/chrome/browser/resources/options/
H A Dconfirm_dialog.js10 * Boolean |pref| to |true|, asking for confirmation. If the user clicks OK,
19 * @param {string} pref The pref that requires confirmation.
21 * @param {string} confirmed_pref A pref used to remember whether the user has
24 * will pop up every time the user attempts to set |pref| to |true|.
27 function ConfirmDialog(name, title, pageDivName, okButton, cancelButton, pref,
32 this.pref = pref;
43 * Handle changes to |pref|. Only uncommitted changes are relevant as these
57 Preferences.getInstance().commitPref(this.pref, thi
[all...]
H A Dpreferences.js210 var pref = this.registeredPreferences_[name];
211 pref.action = 'set';
212 pref.type = type;
213 pref.value = value;
216 // Decorate pref value as CoreOptionsHandler::CreateValueForPref() does.
219 recommendedValue: pref.orig.recommendedValue,
220 disabled: pref.orig.disabled,
233 var pref = this.registeredPreferences_[name];
234 pref.action = 'clear';
235 delete pref
[all...]
H A Dsettings_dialog.js45 var els = this.pageDiv.querySelectorAll('[dialog-pref]');
47 if (els[i].pref)
48 prefs.commitPref(els[i].pref, els[i].metric);
59 var els = this.pageDiv.querySelectorAll('[dialog-pref]');
61 if (els[i].pref)
62 prefs.rollbackPref(els[i].pref);
/external/chromium/chrome/browser/metrics/
H A Dmetrics_log.cc47 int64 MetricsLog::GetIncrementalUptime(PrefService* pref) { argument
54 int64 metrics_uptime = pref->GetInt64(prefs::kUninstallMetricsUptimeSec);
56 pref->SetInt64(prefs::kUninstallMetricsUptimeSec, metrics_uptime);
63 PrefService* pref = g_browser_process->local_state(); local
64 if (pref) {
65 return pref->GetString(prefs::kMetricsClientIDTimestamp);
95 PrefService* pref = g_browser_process->local_state(); local
96 DCHECK(pref);
105 WriteRequiredStabilityAttributes(pref);
106 WriteRealtimeStabilityAttributes(pref);
112 WriteStabilityElement(PrefService* pref) argument
149 WritePluginStabilityElements(PrefService* pref) argument
188 WriteRequiredStabilityAttributes(PrefService* pref) argument
199 WriteRealtimeStabilityAttributes(PrefService* pref) argument
307 PrefService* pref = g_browser_process->local_state(); local
[all...]
H A Dmetrics_log.h59 static int64 GetIncrementalUptime(PrefService* pref);
76 void WriteStabilityElement(PrefService* pref);
79 void WritePluginStabilityElements(PrefService* pref);
82 void WriteRequiredStabilityAttributes(PrefService* pref);
88 void WriteRealtimeStabilityAttributes(PrefService* pref);
/external/chromium/chrome/browser/chromeos/
H A Dlanguage_preferences_unittest.cc38 const LanguageMultipleChoicePreference<T>& pref = prefs[i]; local
39 if (pref.values_and_ids[j].item_message_id == 0) {
42 if (Compare(pref.default_pref_value,
43 pref.values_and_ids[j].ibus_config_value)) {
64 const LanguageMultipleChoicePreference<T>& pref = prefs[i]; local
65 if (pref.values_and_ids[j].item_message_id == 0) {
68 const T ibus_config_value = pref.values_and_ids[j].ibus_config_value;
73 const int item_message_id = pref.values_and_ids[j].item_message_id;
87 const LanguageIntegerRangePreference& pref = prefs[i]; local
88 if (pref
[all...]
/external/chromium_org/base/prefs/
H A Dpref_change_registrar.cc37 DCHECK(!IsObserved(path)) << "Already had this pref registered.";
63 bool PrefChangeRegistrar::IsObserved(const std::string& pref) { argument
64 return observers_.find(pref) != observers_.end();
70 const PrefService::Preference* pref = local
72 if (pref && pref->IsManaged())
79 const std::string& pref) {
80 if (IsObserved(pref))
81 observers_[pref].Run(pref);
78 OnPreferenceChanged(PrefService* service, const std::string& pref) argument
[all...]
H A Dmock_pref_change_callback.h22 const PrefService::Preference* pref = local
24 if (!pref)
27 const base::Value* actual_value = pref->GetValue();
/external/chromium/chrome/browser/extensions/
H A Dextension_content_settings_apitest.cc22 const PrefService::Preference* pref = pref_service->FindPreference( local
24 ASSERT_TRUE(pref);
25 EXPECT_TRUE(pref->IsExtensionControlled());
45 const PrefService::Preference* pref = local
47 ASSERT_TRUE(pref);
48 EXPECT_TRUE(pref->IsExtensionControlled());
51 pref = prefs->FindPreference(prefs::kBlockThirdPartyCookies);
52 ASSERT_TRUE(pref);
53 EXPECT_FALSE(pref->IsExtensionControlled());
73 const PrefService::Preference* pref local
[all...]
/external/chromium/chrome/browser/policy/
H A Dmanaged_prefs_banner_base.cc33 void ManagedPrefsBannerBase::AddLocalStatePref(const char* pref) { argument
34 local_state_set_->AddPref(pref);
37 void ManagedPrefsBannerBase::RemoveLocalStatePref(const char* pref) { argument
38 local_state_set_->RemovePref(pref);
41 void ManagedPrefsBannerBase::AddUserPref(const char* pref) { argument
42 user_pref_set_->AddPref(pref);
45 void ManagedPrefsBannerBase::RemoveUserPref(const char* pref) { argument
46 user_pref_set_->RemovePref(pref);
117 std::string* pref = Details<std::string>(details).ptr(); local
118 if (pref
[all...]
H A Dmanaged_prefs_banner_base.h41 void AddLocalStatePref(const char* pref);
43 void RemoveLocalStatePref(const char* pref);
46 void AddUserPref(const char* pref);
48 void RemoveUserPref(const char* pref);
/external/kernel-headers/original/linux/
H A Dipv6_route.h34 #define RTF_PREF(pref) ((pref) << 27)
41 #define IPV6_DECODE_PREF(pref) ((pref) ^ 2) /* 1:low,2:med,3:high */
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/
H A Dpopup.js6 var pref = chrome.privacy.websites.thirdPartyCookiesAllowed; variable
54 console.log('pref.get result:' + JSON.stringify(settings));
67 console.log('pref.onChange event:' + JSON.stringify(settings));
77 pref.get({'incognito': true}, updateUIFromGet);
82 pref.get({}, updateUIFromGet);
83 pref.onChange.addListener(updateUIFromOnChange);
104 pref.set({'value': enabled, 'scope': scope});
116 pref.clear({'incognito': true});
119 pref.get({'incognito': true}, function(settings) {
120 pref
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/
H A Dpopup.js6 var pref = chrome.privacy.websites.referrersEnabled; variable
54 console.log('pref.get result:' + JSON.stringify(settings));
67 console.log('pref.onChange event:' + JSON.stringify(settings));
77 pref.get({'incognito': true}, updateUIFromGet);
82 pref.get({}, updateUIFromGet);
83 pref.onChange.addListener(updateUIFromOnChange);
104 pref.set({'value': enabled, 'scope': scope});
116 pref.clear({'incognito': true});
119 pref.get({'incognito': true}, function(settings) {
120 pref
[all...]
/external/svox/pico/src/com/svox/pico/
H A DEngineSettings.java60 Preference pref = findPreference(available.get(i));
61 pref.setTitle(loc.getDisplayLanguage() + " (" + loc.getDisplayCountry() + ")");
62 pref.setSummary(R.string.installed);
63 pref.setEnabled(false);
71 Preference pref = findPreference(unavailableLang);
72 pref.setTitle(loc.getDisplayLanguage() + " (" + loc.getDisplayCountry() + ")");
73 pref.setSummary(R.string.not_installed);
74 pref.setEnabled(true);
75 pref.setOnPreferenceClickListener(new OnPreferenceClickListener(){
/external/chromium/chrome/browser/ui/views/bookmarks/
H A Dbookmark_bar_instructions_view.cc43 gfx::Size pref = view->GetPreferredSize(); local
47 descent = std::max(descent, pref.height() - baseline);
49 height = std::max(pref.height(), height);
51 width += pref.width();
64 gfx::Size pref = view->GetPreferredSize(); local
70 y = (height() - pref.height()) / 2;
71 int view_width = std::min(remaining_width, pref.width());
72 view->SetBounds(x, y, view_width, pref.height());
/external/chromium_org/chrome/browser/prefs/
H A Dsession_startup_pref_unittest.cc26 // Make the tests independent of the Mac startup pref migration (see
101 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
105 EXPECT_EQ(SessionStartupPref::LAST, pref.type);
106 EXPECT_EQ(0U, pref.urls.size());
108 EXPECT_EQ(SessionStartupPref::URLS, pref.type);
109 EXPECT_EQ(1U, pref.urls.size());
110 EXPECT_EQ(GURL("http://chromium.org/"), pref.urls[0]);
128 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
132 EXPECT_EQ(SessionStartupPref::LAST, pref.type);
134 EXPECT_EQ(SessionStartupPref::DEFAULT, pref
155 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
179 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
196 SessionStartupPref pref = SessionStartupPref::GetStartupPref( local
[all...]

Completed in 775 milliseconds

1234567891011>>