Searched refs:screenDensity (Results 1 – 13 of 13) sorted by relevance
412 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in CreateResConfigFromKeyParams() local425 screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams()438 resConfig->SetScreenDensity(screenDensity); in CreateResConfigFromKeyParams()469 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity() local471 screenDensity = SCREEN_DENSITY_SDPI; in GetScreenDensity()473 screenDensity = SCREEN_DENSITY_MDPI; in GetScreenDensity()475 screenDensity = SCREEN_DENSITY_LDPI; in GetScreenDensity()477 screenDensity = SCREEN_DENSITY_XLDPI; in GetScreenDensity()479 screenDensity = SCREEN_DENSITY_XXLDPI; in GetScreenDensity()481 screenDensity = SCREEN_DENSITY_XXXLDPI; in GetScreenDensity()[all …]
38 this.log('BaseAbility onCreate:' + this.context.config.screenDensity);44 this.log('BaseAbility onCreate:' + this.context.config.screenDensity);
631 configKey.screenDensity = GetScreenDensity(kp->value_); in CreateResConfigFromKeyParams()671 resConfig->SetScreenDensity((configKey->screenDensity) / Utils::DPI_BASE); in BuildResConfig()734 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; in GetScreenDensity() local736 screenDensity = SCREEN_DENSITY_SDPI; in GetScreenDensity()738 screenDensity = SCREEN_DENSITY_MDPI; in GetScreenDensity()740 screenDensity = SCREEN_DENSITY_LDPI; in GetScreenDensity()742 screenDensity = SCREEN_DENSITY_XLDPI; in GetScreenDensity()744 screenDensity = SCREEN_DENSITY_XXLDPI; in GetScreenDensity()746 screenDensity = SCREEN_DENSITY_XXXLDPI; in GetScreenDensity()748 return screenDensity; in GetScreenDensity()[all …]
210 std::string screenDensity; member217 ScreenDensity screenDensity = SCREEN_DENSITY_NOT_SET; member
90 void SetScreenDensity(float screenDensity);
72 void SetScreenDensity(ScreenDensity screenDensity);
37 virtual void SetScreenDensity(ScreenDensity screenDensity) = 0;
88 void ResConfigImpl::SetScreenDensity(ScreenDensity screenDensity) in SetScreenDensity() argument90 this->screenDensity_ = screenDensity; in SetScreenDensity()
42 virtual void SetScreenDensity(float screenDensity) = 0;
67 void AddColorModeResource(DeviceType deviceType, ColorMode colorMode, float screenDensity);
119 float screenDensity) in AddColorModeResource() argument129 rc->SetScreenDensity(screenDensity); in AddColorModeResource()
191 void ResConfigImpl::SetScreenDensity(float screenDensity) in SetScreenDensity() argument193 this->density_ = screenDensity; in SetScreenDensity()194 this->screenDensityDpi_ = ConvertDensity(screenDensity); in SetScreenDensity()
442 napi_value screenDensity; in CreateJsDeviceCap() local443 …_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &screenDensity); in CreateJsDeviceCap()448 status = napi_set_named_property(env, result, "screenDensity", screenDensity); in CreateJsDeviceCap()