Lines Matching refs:aceRunArgs
92 OHOS::Ace::Platform::AceAbility::CreateInstance(JsAppImpl::GetInstance().aceRunArgs);
118 OHOS::Ace::Platform::AceAbility::CreateInstance(JsAppImpl::GetInstance().aceRunArgs);
147 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, 222);
148 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceHeight, 333);
171 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, 111);
172 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceHeight, 222);
173 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.density, 3);
175 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.orientation,
184 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, 222);
185 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceHeight, 111);
186 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.density, 2);
188 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.orientation,
225 OHOS::Ace::Platform::AceAbility::CreateInstance(JsAppImpl::GetInstance().aceRunArgs);
230 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.colorMode,
236 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.colorMode,
243 OHOS::Ace::Platform::AceAbility::CreateInstance(JsAppImpl::GetInstance().aceRunArgs);
270 OHOS::Ace::Platform::AceAbility::CreateInstance(JsAppImpl::GetInstance().aceRunArgs);
279 OHOS::Ace::Platform::AceAbility::CreateInstance(JsAppImpl::GetInstance().aceRunArgs);
301 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, width);
302 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceHeight, height);
319 EXPECT_NE(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, width);
320 EXPECT_NE(JsAppImpl::GetInstance().aceRunArgs.deviceHeight, height);
523 EXPECT_TRUE(JsAppImpl::GetInstance().aceRunArgs.packageNameList.empty());
528 EXPECT_TRUE(JsAppImpl::GetInstance().aceRunArgs.packageNameList.empty());
533 EXPECT_TRUE(JsAppImpl::GetInstance().aceRunArgs.packageNameList.empty());
538 EXPECT_FALSE(JsAppImpl::GetInstance().aceRunArgs.packageNameList.empty());
539 EXPECT_TRUE(JsAppImpl::GetInstance().aceRunArgs.pkgContextInfoJsonStringMap.empty());
544 EXPECT_FALSE(JsAppImpl::GetInstance().aceRunArgs.packageNameList.empty());
545 EXPECT_FALSE(JsAppImpl::GetInstance().aceRunArgs.pkgContextInfoJsonStringMap.empty());
578 OHOS::Ace::Platform::AceAbility::CreateInstance(JsAppImpl::GetInstance().aceRunArgs);
602 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height);
603 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::WATCH);
605 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height);
606 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::TV);
608 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height);
609 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::PHONE);
611 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height);
612 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::PHONE);
614 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height);
615 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::TWO_IN_ONE);
617 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height);
618 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::TABLET);
620 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height);
621 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.deviceType, OHOS::Ace::DeviceType::CAR);
653 JsAppImpl::GetInstance().ParseSystemParams(JsAppImpl::GetInstance().aceRunArgs, paramObj);
654 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.colorMode, OHOS::Ace::ColorMode::DARK);
667 JsAppImpl::GetInstance().ParseSystemParams(JsAppImpl::GetInstance().aceRunArgs, paramObj2);
668 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, width);
669 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceHeight, height);
670 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceConfig.colorMode, OHOS::Ace::ColorMode::LIGHT);