Home
last modified time | relevance | path

Searched refs:state_map (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/chrome/browser/sync/glue/
Dbackend_data_type_configurer.cc13 DataTypeConfigState state, const DataTypeConfigStateMap& state_map) { in GetDataTypesInState() argument
15 for (DataTypeConfigStateMap::const_iterator type_it = state_map.begin(); in GetDataTypesInState()
16 type_it != state_map.end(); ++type_it) { in GetDataTypesInState()
26 DataTypeConfigStateMap* state_map) { in SetDataTypesState() argument
28 (*state_map)[it.Get()] = state; in SetDataTypesState()
Dbackend_data_type_configurer.h56 DataTypeConfigState state, const DataTypeConfigStateMap& state_map);
61 DataTypeConfigStateMap* state_map);
/external/chromium/chrome/browser/geolocation/
Dgeolocation_settings_state_unittest.cc45 GeolocationSettingsState::StateMap state_map = in TEST_F() local
46 state.state_map(); in TEST_F()
47 EXPECT_EQ(2U, state_map.size()); in TEST_F()
106 state.state_map(); in TEST_F()
107 EXPECT_EQ(state_map.size(), new_state_map.size()); in TEST_F()
113 EXPECT_TRUE(state.state_map().empty()); in TEST_F()
147 GeolocationSettingsState::StateMap state_map = in TEST_F() local
148 state.state_map(); in TEST_F()
149 EXPECT_EQ(3U, state_map.size()); in TEST_F()
Dgeolocation_permission_context_unittest.cc164 const GeolocationSettingsState::StateMap& state_map = in CheckTabContentsState() local
165 content_settings->geolocation_settings_state().state_map(); in CheckTabContentsState()
166 EXPECT_EQ(1U, state_map.count(requesting_frame.GetOrigin())); in CheckTabContentsState()
167 EXPECT_EQ(0U, state_map.count(requesting_frame)); in CheckTabContentsState()
169 state_map.find(requesting_frame.GetOrigin()); in CheckTabContentsState()
170 ASSERT_FALSE(settings == state_map.end()) in CheckTabContentsState()
Dgeolocation_settings_state.h25 const StateMap& state_map() const { in state_map() function
Dgeolocation_browsertest.cc314 size_t state_map_size = settings_state.state_map().size(); in SetInfobarResponse()
325 EXPECT_GT(settings_state.state_map().size(), state_map_size); in SetInfobarResponse()
327 EXPECT_EQ(1U, settings_state.state_map().count(requesting_origin)); in SetInfobarResponse()
331 settings_state.state_map().find(requesting_origin)->second); in SetInfobarResponse()
/external/chromium_org/chrome/browser/content_settings/
Dcontent_settings_usages_state_unittest.cc57 ContentSettingsUsagesState::StateMap state_map = in ClearOnNewOrigin() local
58 state.state_map(); in ClearOnNewOrigin()
59 EXPECT_EQ(2U, state_map.size()); in ClearOnNewOrigin()
118 state.state_map(); in ClearOnNewOrigin()
119 EXPECT_EQ(state_map.size(), new_state_map.size()); in ClearOnNewOrigin()
125 EXPECT_TRUE(state.state_map().empty()); in ClearOnNewOrigin()
171 ContentSettingsUsagesState::StateMap state_map = in ShowPortOnSameHost() local
172 state.state_map(); in ShowPortOnSameHost()
173 EXPECT_EQ(3U, state_map.size()); in ShowPortOnSameHost()
Dcontent_settings_usages_state.h30 const StateMap& state_map() const { in state_map() function
/external/chromium_org/chrome/browser/geolocation/
Dgeolocation_settings_state_unittest.cc60 GeolocationSettingsState::StateMap state_map = in TEST_F() local
61 state.state_map(); in TEST_F()
62 EXPECT_EQ(2U, state_map.size()); in TEST_F()
121 state.state_map(); in TEST_F()
122 EXPECT_EQ(state_map.size(), new_state_map.size()); in TEST_F()
128 EXPECT_TRUE(state.state_map().empty()); in TEST_F()
174 GeolocationSettingsState::StateMap state_map = in TEST_F() local
175 state.state_map(); in TEST_F()
176 EXPECT_EQ(3U, state_map.size()); in TEST_F()
Dchrome_geolocation_permission_context_unittest.cc223 const ContentSettingsUsagesState::StateMap& state_map = in CheckTabContentsState() local
224 content_settings->geolocation_usages_state().state_map(); in CheckTabContentsState()
225 EXPECT_EQ(1U, state_map.count(requesting_frame.GetOrigin())); in CheckTabContentsState()
226 EXPECT_EQ(0U, state_map.count(requesting_frame)); in CheckTabContentsState()
228 state_map.find(requesting_frame.GetOrigin()); in CheckTabContentsState()
229 ASSERT_FALSE(settings == state_map.end()) in CheckTabContentsState()
Dgeolocation_browsertest.cc402 size_t state_map_size = usages_state.state_map().size(); in SetInfoBarResponse()
419 EXPECT_GT(usages_state.state_map().size(), state_map_size); in SetInfoBarResponse()
421 EXPECT_EQ(1U, usages_state.state_map().count(requesting_origin)); in SetInfoBarResponse()
425 usages_state.state_map().find(requesting_origin)->second); in SetInfoBarResponse()
/external/chromium_org/chrome/browser/predictors/
Dlogged_in_predictor_table.cc123 LoggedInPredictorTable::LoggedInStateMap* state_map) { in GetAllData() argument
125 DCHECK(state_map != NULL); in GetAllData()
126 state_map->clear(); in GetAllData()
136 (*state_map)[domain] = value; in GetAllData()
Dlogged_in_predictor_table.h43 void GetAllData(LoggedInStateMap* state_map);
/external/chromium_org/chrome/browser/extensions/
Dblacklist.cc120 const Blacklist::BlacklistStateMap& state_map) { in CheckOneExtensionState() argument
121 callback.Run(state_map.empty() ? Blacklist::NOT_BLACKLISTED in CheckOneExtensionState()
122 : state_map.begin()->second); in CheckOneExtensionState()
127 const Blacklist::BlacklistStateMap& state_map) { in GetMalwareFromBlacklistStateMap() argument
129 for (Blacklist::BlacklistStateMap::const_iterator it = state_map.begin(); in GetMalwareFromBlacklistStateMap()
130 it != state_map.end(); ++it) { in GetMalwareFromBlacklistStateMap()
/external/chromium_org/sync/notifier/
Dunacked_invalidation_set_test_util.cc87 const UnackedInvalidationsMap& state_map) { in UnackedInvalidationsMapToObjectIdInvalidationMap() argument
89 for (UnackedInvalidationsMap::const_iterator it = state_map.begin(); in UnackedInvalidationsMapToObjectIdInvalidationMap()
90 it != state_map.end(); ++it) { in UnackedInvalidationsMapToObjectIdInvalidationMap()
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dminimize.h445 vector<StateId> state_map(partition.num_classes()); in MergeStates()
448 state_map[i] = siter.Value(); // first state in partition; in MergeStates()
459 arc.nextstate = state_map[partition.class_id(arc.nextstate)]; in MergeStates()
461 if (s == state_map[c]) // first state just set destination in MergeStates()
464 fst->AddArc(state_map[c], arc); in MergeStates()
468 fst->SetStart(state_map[partition.class_id(fst->Start())]); in MergeStates()
/external/openfst/src/include/fst/
Dminimize.h458 vector<StateId> state_map(partition.num_classes()); in MergeStates()
461 state_map[i] = siter.Value(); // first state in partition; in MergeStates()
472 arc.nextstate = state_map[partition.class_id(arc.nextstate)]; in MergeStates()
474 if (s == state_map[c]) // first state just set destination in MergeStates()
477 fst->AddArc(state_map[c], arc); in MergeStates()
481 fst->SetStart(state_map[partition.class_id(fst->Start())]); in MergeStates()
/external/chromium_org/chrome/browser/sync/test/integration/
Dprofile_sync_service_harness.cc1051 browser_sync::DataTypeController::StateMap state_map; in IsTypeRunning() local
1052 service()->GetDataTypeControllerStates(&state_map); in IsTypeRunning()
1053 return (state_map.count(type) != 0 && in IsTypeRunning()
1054 state_map[type] == browser_sync::DataTypeController::RUNNING); in IsTypeRunning()
1066 browser_sync::DataTypeController::StateMap state_map; in GetNumDatatypes() local
1067 service()->GetDataTypeControllerStates(&state_map); in GetNumDatatypes()
1068 return state_map.size(); in GetNumDatatypes()
/external/chromium/chrome/browser/
Dcontent_setting_bubble_model.cc465 const GeolocationSettingsState::StateMap& state_map = in OnCustomLinkClicked() local
466 content_settings->geolocation_settings_state().state_map(); in OnCustomLinkClicked()
470 state_map.begin(); it != state_map.end(); ++it) { in OnCustomLinkClicked()
Dcontent_setting_image_model.cc149 if (settings_state.state_map().empty()) in UpdateFromTabContents()
/external/chromium_org/chrome/browser/ui/content_settings/
Dcontent_setting_bubble_model.cc949 const ContentSettingsUsagesState::StateMap& state_map = in OnCustomLinkClicked() local
950 content_settings->geolocation_usages_state().state_map(); in OnCustomLinkClicked()
955 state_map.begin(); it != state_map.end(); ++it) { in OnCustomLinkClicked()
1200 const ContentSettingsUsagesState::StateMap& state_map = in OnCustomLinkClicked() local
1201 content_settings->midi_usages_state().state_map(); in OnCustomLinkClicked()
1206 state_map.begin(); it != state_map.end(); ++it) { in OnCustomLinkClicked()
Dcontent_setting_image_model.cc186 if (usages_state.state_map().empty()) in UpdateFromWebContents()
322 if (usages_state.state_map().empty()) in UpdateFromWebContents()
/external/chromium/chrome/browser/sync/
Dprofile_sync_service.h177 browser_sync::DataTypeController::StateMap* state_map) const;
Dprofile_sync_service.cc219 browser_sync::DataTypeController::StateMap* state_map) const { in GetDataTypeControllerStates()
223 (*state_map)[iter->first] = iter->second.get()->state(); in GetDataTypeControllerStates()
/external/chromium_org/chrome/browser/sync/
Dprofile_sync_service.h360 browser_sync::DataTypeController::StateMap* state_map) const;

12