Lines Matching refs:paramObj
755 void JsAppImpl::ParseSystemParams(OHOS::Ace::Platform::AceRunArgs& args, const Json2::Value& paramObj)
757 if (paramObj.IsNull()) {
769 SetDeviceWidth(args, paramObj["width"].AsInt());
770 SetDeviceHeight(args, paramObj["height"].AsInt());
773 SetColorMode(args, paramObj["colorMode"].AsString());
774 SetOrientation(args, paramObj["orientation"].AsString());
775 std::string deviceType = paramObj["deviceType"].AsString();
777 AdaptDeviceType(args, deviceType, args.deviceWidth, paramObj["dpi"].AsDouble());
778 std::string lanInfo = paramObj["locale"].AsString();
784 void JsAppImpl::SetSystemParams(OHOS::Ace::Platform::SystemParams& params, const Json2::Value& paramObj)
786 ParseSystemParams(aceRunArgs, paramObj);
795 params.isRound = (paramObj.IsNull()) ? (commandInfo.screenShape == "circle") :
796 paramObj["roundScreen"].AsBool();