Home
last modified time | relevance | path

Searched refs:pb_config (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp66 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config, in DeserializeConfigFromPb() argument
68 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 …]
DProtoDeserialize.h53 bool DeserializeConfigFromPb(const pb::Configuration& pb_config,
DProtoSerialize_test.cpp421 pb::Configuration pb_config; in ExpectConfigSerializes() local
422 SerializeConfig(expected_config, &pb_config); in ExpectConfigSerializes()
426 ASSERT_TRUE(DeserializeConfigFromPb(pb_config, &actual_config, &error)); in ExpectConfigSerializes()