/external/chromium_org/chrome/browser/resources/options/ |
D | preferences.js | 211 var pref = this.registeredPreferences_[name]; 212 pref.action = 'set'; 213 pref.type = type; 214 pref.value = value; 219 if (pref.orig) { 220 event.value.recommendedValue = pref.orig.recommendedValue; 221 event.value.disabled = pref.orig.disabled; 233 var pref = this.registeredPreferences_[name]; 234 pref.action = 'clear'; 235 delete pref.type; [all …]
|
D | confirm_dialog.js | 27 function ConfirmDialog(name, title, pageDivName, okButton, cancelButton, pref, argument 32 this.pref = pref; 63 Preferences.getInstance().commitPref(this.pref, this.metric); 82 this.pref, this.onPrefChanged_.bind(this)); 98 Preferences.getInstance().commitPref(this.pref, this.metric); 110 Preferences.getInstance().rollbackPref(this.pref); 120 Preferences.getInstance().rollbackPref(this.pref);
|
D | pref_ui.js | 66 Preferences.getInstance().addEventListener(this.pref, function(event) { 193 Preferences.setBooleanPref(this.pref, value, 239 Preferences.setIntegerPref(this.pref, this.value, 269 Preferences.setBooleanPref(this.pref, 273 Preferences.setIntegerPref(this.pref, this.value, 331 this.pref, 399 Preferences.setIntegerPref(this.pref, value, 403 Preferences.setDoublePref(this.pref, value, 407 Preferences.setBooleanPref(this.pref, value == 'true', 411 Preferences.setStringPref(this.pref, value, [all …]
|
/external/chromium_org/chrome/browser/prefs/ |
D | pref_model_associator_unittest.cc | 37 const PrefService::Preference* pref = in SetPrefToEmpty() local 39 ASSERT_TRUE(pref); in SetPrefToEmpty() 40 base::Value::Type type = pref->GetType(); in SetPrefToEmpty() 77 const PrefService::Preference* pref = in TEST_F() local 81 PrefModelAssociator::MergePreference(pref->name(), in TEST_F() 82 *pref->GetValue(), in TEST_F() 89 const PrefService::Preference* pref = in TEST_F() local 92 PrefModelAssociator::MergePreference(pref->name(), in TEST_F() 93 *pref->GetValue(), in TEST_F() 106 const PrefService::Preference* pref = in TEST_F() local [all …]
|
D | session_startup_pref_unittest.cc | 101 SessionStartupPref pref = SessionStartupPref::GetStartupPref( in TEST_F() local 105 EXPECT_EQ(SessionStartupPref::LAST, pref.type); in TEST_F() 106 EXPECT_EQ(0U, pref.urls.size()); in TEST_F() 108 EXPECT_EQ(SessionStartupPref::URLS, pref.type); in TEST_F() 109 EXPECT_EQ(1U, pref.urls.size()); in TEST_F() 110 EXPECT_EQ(GURL("http://chromium.org/"), pref.urls[0]); in TEST_F() 128 SessionStartupPref pref = SessionStartupPref::GetStartupPref( in TEST_F() local 132 EXPECT_EQ(SessionStartupPref::LAST, pref.type); in TEST_F() 134 EXPECT_EQ(SessionStartupPref::DEFAULT, pref.type); in TEST_F() 137 EXPECT_EQ(0U, pref.urls.size()); in TEST_F() [all …]
|
D | session_startup_pref.cc | 52 void URLListToPref(const base::ListValue* url_list, SessionStartupPref* pref) { in URLListToPref() argument 53 pref->urls.clear(); in URLListToPref() 58 pref->urls.push_back(fixed_url); in URLListToPref() 98 const SessionStartupPref& pref) { in SetStartupPref() argument 100 SetStartupPref(profile->GetPrefs(), pref); in SetStartupPref() 105 const SessionStartupPref& pref) { in SetStartupPref() argument 109 prefs->SetInteger(prefs::kRestoreOnStartup, TypeToPrefValue(pref.type)); in SetStartupPref() 119 for (size_t i = 0; i < pref.urls.size(); ++i) { in SetStartupPref() 121 new base::StringValue(pref.urls[i].spec())); in SetStartupPref() 139 SessionStartupPref pref( in GetStartupPref() local [all …]
|
/external/chromium_org/chrome/browser/metrics/ |
D | chrome_stability_metrics_provider.cc | 39 PrefService* pref = g_browser_process->local_state(); in IncrementPrefValue() local 40 DCHECK(pref); in IncrementPrefValue() 41 int value = pref->GetInteger(path); in IncrementPrefValue() 42 pref->SetInteger(path, value + 1); in IncrementPrefValue() 46 PrefService* pref = g_browser_process->local_state(); in IncrementLongPrefsValue() local 47 DCHECK(pref); in IncrementLongPrefsValue() 48 int64 value = pref->GetInt64(path); in IncrementLongPrefsValue() 49 pref->SetInt64(path, value + 1); in IncrementLongPrefsValue() 94 PrefService* pref = g_browser_process->local_state(); in ProvideStabilityMetrics() local 98 int count = pref->GetInteger(prefs::kStabilityPageLoadCount); in ProvideStabilityMetrics() [all …]
|
/external/chromium_org/ui/views/layout/ |
D | grid_layout_unittest.cc | 23 explicit SettableSizeView(const gfx::Size& pref) { in SettableSizeView() argument 24 pref_ = pref; in SettableSizeView() 64 pref = layout.GetPreferredSize(&host); in GetPreferredSize() 67 gfx::Size pref; member in views::GridLayoutTest 89 gfx::Size pref = layout.GetPreferredSize(&host); in TestAlignment() local 90 EXPECT_EQ(gfx::Size(10, 20), pref); in TestAlignment() 139 EXPECT_EQ(gfx::Size(30, 20), pref); in TEST_F() 141 host.SetBounds(0, 0, pref.width(), pref.height()); in TEST_F() 163 EXPECT_EQ(gfx::Size(100, 60), pref); in TEST_F() 165 host.SetBounds(0, 0, pref.width(), pref.height()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/preference/ |
D | preference_apitest.cc | 37 const PrefService::Preference* pref = prefs->FindPreference( in CheckPreferencesSet() local 39 ASSERT_TRUE(pref); in CheckPreferencesSet() 40 EXPECT_TRUE(pref->IsExtensionControlled()); in CheckPreferencesSet() 57 const PrefService::Preference* pref = prefs->FindPreference( in CheckPreferencesCleared() local 59 ASSERT_TRUE(pref); in CheckPreferencesCleared() 60 EXPECT_FALSE(pref->IsExtensionControlled()); in CheckPreferencesCleared() 155 const PrefService::Preference* pref = in IN_PROC_BROWSER_TEST_F() local 157 ASSERT_TRUE(pref); in IN_PROC_BROWSER_TEST_F() 158 EXPECT_TRUE(pref->IsExtensionControlled()); in IN_PROC_BROWSER_TEST_F() 161 pref = prefs->FindPreference(prefs::kBlockThirdPartyCookies); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/base/prefs/ |
D | pref_change_registrar.cc | 63 bool PrefChangeRegistrar::IsObserved(const std::string& pref) { in IsObserved() argument 64 return observers_.find(pref) != observers_.end(); in IsObserved() 70 const PrefService::Preference* pref = in IsManaged() local 72 if (pref && pref->IsManaged()) in IsManaged() 79 const std::string& pref) { in OnPreferenceChanged() argument 80 if (IsObserved(pref)) in OnPreferenceChanged() 81 observers_[pref].Run(pref); in OnPreferenceChanged()
|
D | pref_service.cc | 165 const Preference* pref = FindPreference(path); in HasPrefPath() local 166 return pref && !pref->IsDefaultValue(); in HasPrefPath() 229 const Preference* pref = FindPreference(pref_name); in IsManagedPreference() local 230 return pref && pref->IsManaged(); in IsManagedPreference() 234 const Preference* pref = FindPreference(pref_name); in IsUserModifiablePreference() local 235 return pref && pref->IsUserModifiable(); in IsUserModifiablePreference() 257 const Preference* pref = FindPreference(path); in GetUserPrefValue() local 258 if (!pref) { in GetUserPrefValue() 269 if (!value->IsType(pref->GetType())) { in GetUserPrefValue() 328 const Preference* pref = FindPreference(path); in ClearPref() local [all …]
|
/external/svox/pico/src/com/svox/pico/ |
D | EngineSettings.java | 60 Preference pref = findPreference(available.get(i)); in onActivityResult() local 61 pref.setTitle(loc.getDisplayLanguage() + " (" + loc.getDisplayCountry() + ")"); in onActivityResult() 62 pref.setSummary(R.string.installed); in onActivityResult() 63 pref.setEnabled(false); in onActivityResult() 71 Preference pref = findPreference(unavailableLang); in onActivityResult() local 72 pref.setTitle(loc.getDisplayLanguage() + " (" + loc.getDisplayCountry() + ")"); in onActivityResult() 73 pref.setSummary(R.string.not_installed); in onActivityResult() 74 pref.setEnabled(true); in onActivityResult() 75 pref.setOnPreferenceClickListener(new OnPreferenceClickListener(){ in onActivityResult()
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/allowThirdPartyCookies/ |
D | popup.js | 6 var pref = chrome.privacy.websites.thirdPartyCookiesAllowed; variable 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.set({'incognito': true, 'value': settings.value});
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/preferences/enableReferrer/ |
D | popup.js | 6 var pref = chrome.privacy.websites.referrersEnabled; variable 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.set({'incognito': true, 'value': settings.value});
|
/external/pixman/pixman/ |
D | pixman-mips-memcpy-asm.S | 92 pref 0, 0(a1) /* bring the first line of src, addr 0 */ 93 pref 0, 32(a1) /* bring the second line of src, addr 32 */ 94 pref 0, 64(a1) /* bring the third line of src, addr 64 */ 95 pref 30, 32(a0) /* safe, as we have at least 64 bytes ahead */ 101 pref 30, 64(a0) 103 pref 0, 96(a1) 107 pref 30, 96(a0) /* continue setting up the dest, addr 96 */ 115 pref 0, 128(a1) /* bring the next lines of src, addr 128 */ 129 pref 30, 128(a0) /* continue setting up the dest, addr 128 */ 137 pref 0, 160(a1) /* bring the next lines of src, addr 160 */ [all …]
|
/external/chromium_org/components/metrics/ |
D | metrics_log.cc | 59 std::string GetMetricsEnabledDate(PrefService* pref) { in GetMetricsEnabledDate() argument 60 if (!pref) { in GetMetricsEnabledDate() 65 return pref->GetString(metrics::prefs::kMetricsReportingEnabledTimestamp); in GetMetricsEnabledDate() 223 PrefService* pref = local_state_; in RecordStabilityMetrics() local 224 DCHECK(pref); in RecordStabilityMetrics() 230 WriteRequiredStabilityAttributes(pref); in RecordStabilityMetrics() 236 WriteRealtimeStabilityAttributes(pref, incremental_uptime, uptime); in RecordStabilityMetrics() 247 pref->GetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount); in RecordStabilityMetrics() 248 pref->SetInteger(metrics::prefs::kStabilityIncompleteSessionEndCount, 0); in RecordStabilityMetrics() 250 pref->GetInteger(metrics::prefs::kStabilityBreakpadRegistrationSuccess); in RecordStabilityMetrics() [all …]
|
/external/chromium_org/chrome/browser/chromeos/login/saml/ |
D | saml_offline_signin_limiter_unittest.cc | 113 const PrefService::Preference* pref = in TEST_F() local 115 ASSERT_TRUE(pref); in TEST_F() 116 EXPECT_FALSE(pref->HasUserSetting()); in TEST_F() 132 pref = prefs->FindPreference(prefs::kSAMLLastGAIASignInTime); in TEST_F() 133 ASSERT_TRUE(pref); in TEST_F() 134 EXPECT_FALSE(pref->HasUserSetting()); in TEST_F() 157 const PrefService::Preference* pref = in TEST_F() local 159 ASSERT_TRUE(pref); in TEST_F() 160 EXPECT_FALSE(pref->HasUserSetting()); in TEST_F() 176 pref = prefs->FindPreference(prefs::kSAMLLastGAIASignInTime); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/cocoa/ |
D | window_size_autosaver_unittest.mm | 49 PrefService* pref = profile()->GetPrefs(); 50 ASSERT_TRUE(pref != NULL); 52 // Check to make sure there is no existing pref for window placement. 53 const base::DictionaryValue* placement = pref->GetDictionary(path_); 75 prefService:pref 93 prefService:pref 102 EXPECT_TRUE(pref->GetDictionary(path_) != NULL); 104 const base::DictionaryValue* windowPref = pref->GetDictionary(path_); 116 PrefService* pref = profile()->GetPrefs(); 117 ASSERT_TRUE(pref != NULL); [all …]
|
/external/skia/include/core/ |
D | SkImageDecoder.h | 282 Result decode(SkStream*, SkBitmap* bitmap, SkColorType pref, Mode); 303 bool decodeSubset(SkBitmap* bm, const SkIRect& subset, SkColorType pref); 319 static bool DecodeFile(const char file[], SkBitmap* bitmap, SkColorType pref, Mode, 334 static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap, SkColorType pref, 364 static bool DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap, SkColorType pref, Mode, 371 bool decode(SkStream* stream, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode) { in decode() argument 372 return this->decode(stream, bitmap, SkBitmapConfigToColorType(pref), mode); in decode() 374 bool decodeSubset(SkBitmap* bm, const SkIRect& subset, SkBitmap::Config pref) { in decodeSubset() argument 375 return this->decodeSubset(bm, subset, SkBitmapConfigToColorType(pref)); in decodeSubset() 377 static bool DecodeFile(const char file[], SkBitmap* bitmap, SkBitmap::Config pref, Mode mode, [all …]
|
/external/chromium_org/sync/internal_api/ |
D | sync_backup_manager_unittest.cc | 123 ReadNode pref(&trans); in TEST_F() local 125 pref.InitByClientTagLookup(SEARCH_ENGINES, "test")); in TEST_F() 126 EXPECT_FALSE(pref.GetEntry()->GetId().ServerKnows()); in TEST_F() 127 EXPECT_TRUE(pref.GetEntry()->GetIsUnsynced()); in TEST_F() 135 ReadNode pref(&trans); in TEST_F() local 137 pref.InitByClientTagLookup(SEARCH_ENGINES, "test")); in TEST_F() 138 EXPECT_TRUE(pref.GetEntry()->GetId().ServerKnows()); in TEST_F() 139 EXPECT_FALSE(pref.GetEntry()->GetIsUnsynced()); in TEST_F() 157 ReadNode pref(&trans); in TEST_F() local 159 pref.InitByClientTagLookup(SEARCH_ENGINES, "test")); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/ui/views/bookmarks/ |
D | bookmark_bar_instructions_view.cc | 55 gfx::Size pref = view->GetPreferredSize(); in GetPreferredSize() local 59 descent = std::max(descent, pref.height() - baseline); in GetPreferredSize() 61 height = std::max(pref.height(), height); in GetPreferredSize() 63 width += pref.width(); in GetPreferredSize() 76 gfx::Size pref = view->GetPreferredSize(); in Layout() local 82 y = (height() - pref.height()) / 2; in Layout() 83 int view_width = std::min(remaining_width, pref.width()); in Layout() 84 view->SetBounds(x, y, view_width, pref.height()); in Layout()
|
/external/chromium_org/ui/gfx/win/ |
D | hwnd_util.cc | 136 const Size& pref) { in CenterAndSizeWindow() argument 137 DCHECK(window && pref.width() > 0 && pref.height() > 0); in CenterAndSizeWindow() 161 if (pref.width() < (center_bounds.right - center_bounds.left)) { in CenterAndSizeWindow() 163 (center_bounds.right - center_bounds.left - pref.width()) / 2; in CenterAndSizeWindow() 165 window_bounds.right = window_bounds.left + pref.width(); in CenterAndSizeWindow() 168 if (pref.height() < (center_bounds.bottom - center_bounds.top)) { in CenterAndSizeWindow() 170 (center_bounds.bottom - center_bounds.top - pref.height()) / 2; in CenterAndSizeWindow() 172 window_bounds.bottom = window_bounds.top + pref.height(); in CenterAndSizeWindow() 183 window_bounds.right = window_bounds.left + pref.width(); in CenterAndSizeWindow() 184 window_bounds.bottom = window_bounds.top + pref.height(); in CenterAndSizeWindow()
|
/external/chromium_org/chrome/browser/policy/ |
D | policy_prefs_browsertest.cc | 94 PrefMapping(const std::string& pref, in PrefMapping() argument 100 : pref_(pref), in PrefMapping() 108 const std::string& pref() const { return pref_; } in pref() function in policy::__anon6e24df870111::PrefMapping 309 std::string pref; in GetPolicyTestCase() local 311 !pref_mapping_dict->GetString("pref", &pref)) { in GetPolicyTestCase() 329 PrefMapping* pref_mapping = new PrefMapping(pref, in GetPolicyTestCase() 564 if (StartsWithASCII((*pref_mapping)->pref(), kCrosSettingsPrefix, true)) in IN_PROC_BROWSER_TEST_F() 575 const PrefService::Preference* pref = in IN_PROC_BROWSER_TEST_F() local 576 prefs->FindPreference((*pref_mapping)->pref().c_str()); in IN_PROC_BROWSER_TEST_F() 577 ASSERT_TRUE(pref); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/ |
D | prefs.js | 96 for (var pref in cvox.ChromeVoxPrefs.DEFAULT_PREFS) { 97 if (localStorage[pref] === undefined) { 98 localStorage[pref] = cvox.ChromeVoxPrefs.DEFAULT_PREFS[pref]; 125 for (var pref in cvox.ChromeVoxPrefs.DEFAULT_PREFS) { 126 prefs[pref] = localStorage[pref];
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkImageDecoder.cpp | 159 bool SkImageDecoder::decode(SkStream* stream, SkBitmap* bm, SkColorType pref, Mode mode) { in decode() argument 163 fDefaultPref = pref; in decode() 175 bool SkImageDecoder::decodeSubset(SkBitmap* bm, const SkIRect& rect, SkColorType pref) { in decodeSubset() argument 179 fDefaultPref = pref; in decodeSubset() 240 bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm, SkColorType pref, Mode mode, in DecodeFile() argument 247 if (SkImageDecoder::DecodeStream(stream, bm, pref, mode, format)) { in DecodeFile() 255 bool SkImageDecoder::DecodeMemory(const void* buffer, size_t size, SkBitmap* bm, SkColorType pref, in DecodeMemory() argument 263 return SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format); in DecodeMemory() 266 bool SkImageDecoder::DecodeStream(SkStreamRewindable* stream, SkBitmap* bm, SkColorType pref, in DecodeStream() argument 275 success = codec->decode(stream, bm, pref, mode); in DecodeStream()
|