Searched refs:pb_config (Results 1 – 3 of 3) sorted by relevance
66 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config, in DeserializeConfigFromPb() argument68 out_config->mcc = static_cast<uint16_t>(pb_config.mcc()); in DeserializeConfigFromPb()69 out_config->mnc = static_cast<uint16_t>(pb_config.mnc()); in DeserializeConfigFromPb()71 if (!pb_config.locale().empty()) { in DeserializeConfigFromPb()73 if (!lv.InitFromBcp47Tag(pb_config.locale())) { in DeserializeConfigFromPb()75 error << "configuration has invalid locale '" << pb_config.locale() << "'"; in DeserializeConfigFromPb()82 switch (pb_config.layout_direction()) { in DeserializeConfigFromPb()97 out_config->smallestScreenWidthDp = static_cast<uint16_t>(pb_config.smallest_screen_width_dp()); in DeserializeConfigFromPb()98 out_config->screenWidthDp = static_cast<uint16_t>(pb_config.screen_width_dp()); in DeserializeConfigFromPb()99 out_config->screenHeightDp = static_cast<uint16_t>(pb_config.screen_height_dp()); in DeserializeConfigFromPb()[all …]
53 bool DeserializeConfigFromPb(const pb::Configuration& pb_config,
421 pb::Configuration pb_config; in ExpectConfigSerializes() local422 SerializeConfig(expected_config, &pb_config); in ExpectConfigSerializes()426 ASSERT_TRUE(DeserializeConfigFromPb(pb_config, &actual_config, &error)); in ExpectConfigSerializes()