Lines Matching refs:result
55 JSIValue result = JSI::CreateObject();
56 if (!NativeapiDeviceInfo::GetProductInfo(result)) {
59 NativeapiCommon::SuccessCallBack(thisVal, args, result);
61 JSI::ReleaseValueList(args, thisVal, result, ARGS_END);
72 bool NativeapiDeviceInfo::GetAPILevel(JSIValue result)
78 JSI::SetStringProperty(result, "apiVersion", std::to_string(apiLevel).c_str());
87 bool NativeapiDeviceInfo::GetDeviceType(JSIValue result)
93 JSI::SetStringProperty(result, "deviceType", deviceType);
97 bool NativeapiDeviceInfo::GetLanguage(JSIValue result)
102 JSI::SetStringProperty(result, "language", "");
104 JSI::SetStringProperty(result, "language", langStr);
109 bool NativeapiDeviceInfo::GetProductInfo(JSIValue result)
118 JSI::SetStringProperty(result, "brand", brand);
119 JSI::SetStringProperty(result, "manufacturer", manufacture);
120 JSI::SetStringProperty(result, "model", model);
121 JSI::SetStringProperty(result, "product", model);
124 if (!NativeapiDeviceInfo::GetDeviceType(result) ||
125 !NativeapiDeviceInfo::GetLanguage(result) ||
126 !NativeapiDeviceInfo::GetAPILevel(result) ||
127 !NativeapiDeviceInfo::GetRegion(result)) {
133 JSI::SetNumberProperty(result, "windowWidth", static_cast<double>(screen.GetWidth()));
134 JSI::SetNumberProperty(result, "windowHeight", static_cast<double>(screen.GetHeight()));
138 JSI::SetNumberProperty(result, "screenDensity", static_cast<double>(defaultScreenDensity));
139 JSI::SetStringProperty(result, "screenShape", defaultScreenShape);
143 bool NativeapiDeviceInfo::GetRegion(JSIValue result)
148 JSI::SetStringProperty(result, "region", "");
150 JSI::SetStringProperty(result, "region", region);