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.cpp68 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config, in DeserializeConfigFromPb() argument
70 out_config->mcc = static_cast<uint16_t>(pb_config.mcc()); in DeserializeConfigFromPb()
71 out_config->mnc = static_cast<uint16_t>(pb_config.mnc()); in DeserializeConfigFromPb()
73 if (!pb_config.locale().empty()) { in DeserializeConfigFromPb()
75 if (!lv.InitFromBcp47Tag(pb_config.locale())) { in DeserializeConfigFromPb()
77 error << "configuration has invalid locale '" << pb_config.locale() << "'"; in DeserializeConfigFromPb()
84 switch (pb_config.layout_direction()) { in DeserializeConfigFromPb()
99 out_config->smallestScreenWidthDp = static_cast<uint16_t>(pb_config.smallest_screen_width_dp()); in DeserializeConfigFromPb()
100 out_config->screenWidthDp = static_cast<uint16_t>(pb_config.screen_width_dp()); in DeserializeConfigFromPb()
101 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.cpp425 pb::Configuration pb_config; in ExpectConfigSerializes() local
426 SerializeConfig(expected_config, &pb_config); in ExpectConfigSerializes()
430 ASSERT_TRUE(DeserializeConfigFromPb(pb_config, &actual_config, &error)); in ExpectConfigSerializes()