Lines Matching defs:screenDensity
178 SetDeviceScreenDensity(atoi(screenDensity.c_str()), commandInfo.deviceType);
604 void JsAppImpl::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason)
607 param.compressionHeight, screenDensity);
653 int32_t changedHeight, int32_t screenDensity)
659 SetDeviceScreenDensity(screenDensity, commandInfo.deviceType);
698 void JsAppImpl::SetDeviceScreenDensity(const int32_t screenDensity, const std::string type)
700 if (type == "wearable" && screenDensity != 0) {
701 watchScreenDensity = screenDensity;
704 if (type == "tv" && screenDensity != 0) {
705 tvScreenDensity = screenDensity;
708 if ((type == "phone" || type == "default") && screenDensity != 0) {
709 phoneScreenDensity = screenDensity;
712 if (type == "2in1" && screenDensity != 0) {
713 twoInOneScreenDensity = screenDensity;
716 if (type == "tablet" && screenDensity != 0) {
717 tabletScreenDensity = screenDensity;
720 if (type == "car" && screenDensity != 0) {
721 carScreenDensity = screenDensity;
738 screenDensity = value;
764 SetDeviceScreenDensity(atoi(screenDensity.c_str()), commandInfo.deviceType);
776 SetDeviceScreenDensity(atoi(screenDensity.c_str()), deviceType);
930 ResolutionChanged(param, atoi(screenDensity.c_str()), reason);