Searched defs:pref (Results 1 - 25 of 72) sorted by relevance

123

/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...]
H A Dextension_proxy_apitest.cc29 const PrefService::Preference* pref = local
31 ASSERT_TRUE(pref != NULL);
32 EXPECT_TRUE(pref->IsExtensionControlled());
64 const PrefService::Preference* pref = local
66 ASSERT_TRUE(pref != NULL);
67 EXPECT_FALSE(pref->IsExtensionControlled());
/external/chromium/chrome/browser/prefs/
H A Dpref_observer_mock.h26 const PrefService::Preference* pref = local
28 if (!pref)
31 const Value* actual_value = pref->GetValue();
H A Dbrowser_prefs.cc166 // Copy pref values which have been migrated to user_prefs from local_state,
185 const PrefService::Preference* pref = local
187 DCHECK(pref);
188 user_prefs->Set(prefs::kBrowserWindowPlacement, *(pref->GetValue()));
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_member.cc35 // Add ourselves as a pref observer so we can keep our local value in sync.
66 const PrefService::Preference* pref = local
68 DCHECK(pref);
71 internal()->UpdateValue(pref->GetValue()->DeepCopy(), pref->IsManaged());
H A Dpref_member_unittest.cc116 // Try changing back through the pref.
137 // Try changing back through the pref.
158 // Try changing back through the pref.
179 // Try changing back through the pref.
211 // Try changing back through the pref.
255 // Changing the pref does fire the observer.
272 IntegerPrefMember pref; local
H A Dpref_service_unittest.cc74 // Setting the pref to the same value should not set the pref value a second
80 // Clearing the pref should cause the pref to fire.
86 // Clearing the pref again should not cause the pref to fire.
129 // Now try adding a second pref observer.
152 // the user pref file, it uses the correct fallback value instead.
161 const PrefService::Preference* pref = local
163 ASSERT_TRUE(pref);
[all...]
/external/skia/src/images/
H A DSkBitmapRegionDecoder.cpp4 SkBitmap::Config pref, int sampleSize) {
6 return fDecoder->decodeRegion(bitmap, rect, pref);
3 decodeRegion(SkBitmap* bitmap, SkIRect rect, SkBitmap::Config pref, int sampleSize) argument
/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/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...]
/external/bluetooth/bluez/test/
H A Dtest-health82 pref = None variable
84 while pref == None:
90 pref = "Reliable" variable
92 pref = "Streaming" variable
105 "ChannelType": pref})
/external/chromium/chrome/browser/
H A Dexternal_protocol_handler.cc94 PrefService* pref = g_browser_process->local_state(); local
95 if (pref) { // May be NULL during testing.
96 DictionaryPrefUpdate update_excluded_schemas(pref, prefs::kExcludedSchemes);
115 PrefService* pref = g_browser_process->local_state(); local
116 if (pref) { // May be NULL during testing.
117 DictionaryPrefUpdate update_excluded_schemas(pref, prefs::kExcludedSchemes);
H A Dbackground_contents_service_unittest.cc41 // Returns the stored pref URL for the passed app id.
43 const DictionaryValue* pref = GetPrefs(profile); local
44 EXPECT_TRUE(pref->HasKey(UTF16ToUTF8(appid)));
46 pref->GetDictionaryWithoutPathExpansion(UTF16ToUTF8(appid), &value);
/external/chromium/chrome/browser/ui/views/location_bar/
H A Dkeyword_hint_view.cc122 gfx::Size pref; local
125 pref = leading_label_->GetPreferredSize();
126 leading_label_->SetBounds(x, 0, pref.width(), height());
128 x += pref.width() + kTabButtonBitmap->width();
129 pref = trailing_label_->GetPreferredSize();
130 trailing_label_->SetBounds(x, 0, pref.width(), height());
/external/chromium/chrome/browser/sync/glue/
H A Dpreference_change_processor.cc126 LOG(ERROR) << "No way to handle pref deletion";
153 const PrefService::Preference* pref = local
155 DCHECK(pref);
156 if (!pref->IsUserModifiable())
H A Dpreference_model_associator_unittest.cc40 const PrefService::Preference* pref = local
42 ASSERT_TRUE(pref);
43 Value::ValueType type = pref->GetType();
80 const PrefService::Preference* pref = local
84 PreferenceModelAssociator::MergePreference(*pref, *server_value));
90 const PrefService::Preference* pref = local
93 PreferenceModelAssociator::MergePreference(*pref, server_url_list_));
105 const PrefService::Preference* pref = local
108 PreferenceModelAssociator::MergePreference(*pref, *null_value));
122 const PrefService::Preference* pref local
139 const PrefService::Preference* pref = local
161 const PrefService::Preference* pref = local
182 const PrefService::Preference* pref = local
215 const PrefService::Preference* pref = local
230 const PrefService::Preference* pref = local
247 const PrefService::Preference* pref = local
343 MergeListPreference(const char* pref) argument
360 MergeDictionaryPreference(const char* pref) argument
[all...]
/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/iproute2/ip/
H A Diprule.c37 fprintf(stderr, " [ iif STRING ] [ oif STRING ] [ pref NUMBER ]\n");
268 __u32 pref; local
270 if (get_u32(&pref, *argv, 0))
272 addattr32(&req.n, sizeof(req), FRA_PRIORITY, pref);
/external/libxslt/libxslt/
H A Dnamespaces.c584 xmlChar pref[30]; local
592 snprintf((char *) pref, 30, "%s_%d", nsPrefix, counter++);
593 ns = xmlSearchNs(target->doc, target, BAD_CAST pref);
602 ns = xmlNewNs(target, nsName, BAD_CAST pref);
/external/skia/samplecode/
H A DSampleImage.cpp26 SkBitmap::Config pref, const char name[] = NULL)
28 if (SkImageDecoder::DecodeStream(stream, bitmap, pref,
25 SetImageRef(SkBitmap* bitmap, SkStream* stream, SkBitmap::Config pref, const char name[] = NULL) argument
/external/chromium/chrome/browser/chromeos/frame/
H A Dbubble_frame_view.cc156 gfx::Size pref = frame_->client_view()->GetPreferredSize(); local
157 gfx::Rect bounds(0, 0, pref.width(), pref.height());
/external/chromium/chrome/browser/content_settings/
H A Dcontent_settings_policy_provider.cc26 // Base pref path of the prefs that contain the managed default content
225 // If a pref to manage a default-content-setting was not set (NOTICE:
226 // "HasPrefPath" returns false if no value was set for a registered pref) then
229 // This indicates that no managed value is set. If a pref was set, than it
340 const PrefService::Preference* pref = prefs->FindPreference(pref_name); local
341 DCHECK(pref->IsManaged());
342 DCHECK_EQ(Value::TYPE_LIST, pref->GetType());
345 static_cast<const ListValue*>(pref->GetValue());
/external/chromium/chrome/browser/importer/
H A Dprofile_writer.cc56 const PrefService::Preference* pref = prefs->FindPreference(prefs::kHomePage); local
57 if (pref && !pref->IsManaged()) {
276 // Check whether the bookmark bar is shown in current pref.
278 // Set the pref and notify the notification service.

Completed in 560 milliseconds

123