/ohos5.0/foundation/ability/ability_runtime/test/unittest/app_utils_test/ |
H A D | app_utils_test.cpp | 56 std::string deviceType = OHOS::system::GetDeviceType(); 76 std::string deviceType = OHOS::system::GetDeviceType(); 96 std::string deviceType = OHOS::system::GetDeviceType(); 116 std::string deviceType = OHOS::system::GetDeviceType(); 136 std::string deviceType = OHOS::system::GetDeviceType(); 156 std::string deviceType = OHOS::system::GetDeviceType(); 176 std::string deviceType = OHOS::system::GetDeviceType(); 196 std::string deviceType = OHOS::system::GetDeviceType(); 216 std::string deviceType = OHOS::system::GetDeviceType(); 236 std::string deviceType = OHOS::system::GetDeviceType(); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/focus_animation/ |
H A D | render_focus_animation.cpp | 54 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in Update() 107 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in SetFocusAnimationProperties() 113 } else if (SystemProperties::GetDeviceType() == DeviceType::PHONE) { in SetFocusAnimationProperties() 126 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in SetFocusAnimationProperties() 136 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in CancelFocusAnimation() 149 if (SystemProperties::GetDeviceType() != DeviceType::TV) { in StopFocusAnimation() 159 if (SystemProperties::GetDeviceType() == DeviceType::PHONE) { in StartFocusAnimation() 161 } else if (SystemProperties::GetDeviceType() == DeviceType::TV) { in StartFocusAnimation()
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | hap_parser_test.cpp | 100 EXPECT_EQ(DEVICE_CAR, config->GetDeviceType()); 120 ASSERT_EQ(DEVICE_CAR, HapParser::GetDeviceType(DEVICE_CAR)); 121 ASSERT_EQ(DEVICE_PAD, HapParser::GetDeviceType(DEVICE_PAD)); 122 ASSERT_EQ(DEVICE_PHONE, HapParser::GetDeviceType(DEVICE_PHONE)); 123 ASSERT_EQ(DEVICE_TABLET, HapParser::GetDeviceType(DEVICE_TABLET)); 124 ASSERT_EQ(DEVICE_TV, HapParser::GetDeviceType(DEVICE_TV)); 125 ASSERT_EQ(DEVICE_WEARABLE, HapParser::GetDeviceType(DEVICE_WEARABLE)); 126 ASSERT_EQ(DEVICE_NOT_SET, HapParser::GetDeviceType(1000000));
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | hap_parser_test.cpp | 106 EXPECT_EQ(DEVICE_CAR, config->GetDeviceType()); 124 ASSERT_EQ(DEVICE_CAR, HapParser::GetDeviceType(DEVICE_CAR)); 125 ASSERT_EQ(DEVICE_PAD, HapParser::GetDeviceType(DEVICE_PAD)); 126 ASSERT_EQ(DEVICE_PHONE, HapParser::GetDeviceType(DEVICE_PHONE)); 127 ASSERT_EQ(DEVICE_TABLET, HapParser::GetDeviceType(DEVICE_TABLET)); 128 ASSERT_EQ(DEVICE_TV, HapParser::GetDeviceType(DEVICE_TV)); 129 ASSERT_EQ(DEVICE_WEARABLE, HapParser::GetDeviceType(DEVICE_WEARABLE)); 130 ASSERT_EQ(DEVICE_NOT_SET, HapParser::GetDeviceType(1000000));
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/accessibility/ |
H A D | js_inspector_test.cpp | 90 DeviceType deviceType = SystemProperties::GetDeviceType(); in CheckToggleAttrAndStyle() 576 DeviceType deviceType = SystemProperties::GetDeviceType(); 596 DeviceType deviceType = SystemProperties::GetDeviceType(); 616 DeviceType deviceType = SystemProperties::GetDeviceType(); 636 DeviceType deviceType = SystemProperties::GetDeviceType(); 656 DeviceType deviceType = SystemProperties::GetDeviceType(); 676 DeviceType deviceType = SystemProperties::GetDeviceType(); 916 DeviceType deviceType = SystemProperties::GetDeviceType(); 936 DeviceType deviceType = SystemProperties::GetDeviceType(); 956 DeviceType deviceType = SystemProperties::GetDeviceType(); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/shadow/ |
H A D | render_shadow.cpp | 27 if (SystemProperties::GetDeviceType() != DeviceType::TV) { in SetShadowProperties() 38 if (SystemProperties::GetDeviceType() != DeviceType::TV) { in SetShadowProperties() 51 if (SystemProperties::GetDeviceType() != DeviceType::TV) { in CancelShadow()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
H A D | render_calendar.cpp | 118 if (SystemProperties::GetDeviceType() == DeviceType::TV && !cardCalendar_) { in PerformLayout() 136 if (SystemProperties::GetDeviceType() == DeviceType::TV && IsValid(focusIndex_) && in OnDataChanged() 190 } else if (SystemProperties::GetDeviceType() == DeviceType::TV) { in OnSelectedDay() 227 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in OnStatusChanged() 248 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in OnDateSelected() 251 if (SystemProperties::GetDeviceType() == DeviceType::WATCH && in OnDateSelected() 300 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in FocusChanged() 322 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in HandleClick() 418 if ((SystemProperties::GetDeviceType() != DeviceType::WATCH && type_ != CalendarType::SIMPLE) || in UpdateBreakInformation()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/media_query/ |
H A D | media_query_info.cpp | 23 std::string MediaQueryInfo::GetDeviceType() in GetDeviceType() function in OHOS::Ace::Framework::MediaQueryInfo 31 switch (SystemProperties::GetDeviceType()) { in GetDeviceType() 97 json->Put("device-type", GetDeviceType().c_str()); in GetMediaQueryJsonInfo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_column_component.cpp | 55 if (SystemProperties::GetDeviceType() == DeviceType::PHONE && in Initialize() 65 option->SetDisappear((SystemProperties::GetDeviceType() != DeviceType::WATCH && in Initialize() 66 … SystemProperties::GetDeviceType() != DeviceType::UNKNOWN && showCount >= 5 && in Initialize()
|
H A D | render_picker_option.cpp | 35 if (SystemProperties::GetDeviceType() == DeviceType::WATCH || in RenderPickerOption() 36 SystemProperties::GetDeviceType() == DeviceType::UNKNOWN) { in RenderPickerOption() 315 if (SystemProperties::GetDeviceType() != DeviceType::PHONE) { in UpdatePhoneFocus() 346 if (SystemProperties::GetDeviceType() != DeviceType::TV) { in UpdateFocus() 384 if (SystemProperties::GetDeviceType() != DeviceType::TV) { in RefreshFocus() 411 if (SystemProperties::GetDeviceType() != DeviceType::WATCH && in LayoutBox() 412 SystemProperties::GetDeviceType() != DeviceType::UNKNOWN && selected_ && !autoLayout_) { in LayoutBox()
|
H A D | render_picker_value.cpp | 94 if (SystemProperties::GetDeviceType() != DeviceType::TV) { in HandleTextFocus() 97 if (SystemProperties::GetDeviceType() != DeviceType::PHONE) { in HandleTextFocus()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | system_info.cpp | 42 deviceType_ = ProductAdapter::GetDeviceType(); in Initialize() 60 const char *SystemInfo::GetDeviceType() const in GetDeviceType() function in OHOS::ACELite::SystemInfo
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | res_config_impl.cpp | 113 DeviceType ResConfigImpl::GetDeviceType() const in GetDeviceType() function in OHOS::Global::Resource::ResConfigImpl 170 if (this->GetDeviceType() != other.GetDeviceType()) { in Copy() 171 this->SetDeviceType(other.GetDeviceType()); in Copy()
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/init/ |
H A D | device_type_manager.cpp | 43 bool DeviceTypeManager::GetDeviceType() const in GetDeviceType() function in OHOS::Security::Verify::DeviceTypeManager 54 bool currentDeviceType = GetDeviceType(); in GetDeviceTypeInfo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | render_checkable.h | 81 return SystemProperties::GetDeviceType() == DeviceType::PHONE; in IsPhone() 85 return SystemProperties::GetDeviceType() == DeviceType::TABLET || in IsTablet() 86 SystemProperties::GetDeviceType() == DeviceType::TWO_IN_ONE; in IsTablet()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/option/ |
H A D | option_component.cpp | 68 icon_->SetAlignment((SystemProperties::GetDeviceType() == DeviceType::TV ? in Initialize() 114 double minFontSize = (SystemProperties::GetDeviceType() == DeviceType::TV ? in Initialize() 117 if (SystemProperties::GetDeviceType() == DeviceType::TV) { in Initialize()
|
/ohos5.0/commonlibrary/utils_lite/js/builtin/deviceinfokit/src/ |
H A D | nativeapi_deviceinfo.cpp | 87 bool NativeapiDeviceInfo::GetDeviceType(JSIValue result) in GetDeviceType() function in OHOS::ACELite::NativeapiDeviceInfo 89 const char* deviceType = ::GetDeviceType(); in GetDeviceType() 124 if (!NativeapiDeviceInfo::GetDeviceType(result) || in GetProductInfo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/rating/ |
H A D | render_rating.h | 103 return SystemProperties::GetDeviceType() == DeviceType::TV; in IsTv() 107 return SystemProperties::GetDeviceType() == DeviceType::PHONE; in IsPhone() 111 return SystemProperties::GetDeviceType() == DeviceType::TABLET || in IsTablet() 112 SystemProperties::GetDeviceType() == DeviceType::TWO_IN_ONE; in IsTablet()
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/input/ |
H A D | _input_controller.md | 24 | int32_t(\* [GetDeviceType](#getdevicetype) )(uint32_t devIndex, uint32_t \*deviceType) | 获取devInd… 94 ### GetDeviceType subsection 97 int32_t(* InputController::GetDeviceType) (uint32_t devIndex, uint32_t *deviceType)
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/nnrt/ |
H A D | interface_i_nnrt_device_v10.md | 24 | [GetDeviceType](#getdevicetype) ([out] enum [DeviceType](_n_n_rt_v10.md#devicetype) deviceType) |… 114 ### GetDeviceType() 117 INnrtDevice::GetDeviceType ([out] enum DeviceType deviceType)
|
/ohos5.0/drivers/peripheral/input/udriver/src/ |
H A D | input_manager.cpp | 123 static int32_t GetDeviceType(uint32_t devIndex, uint32_t *deviceType) in GetDeviceType() function 129 return gInputDeviceManager_->GetDeviceType(devIndex, deviceType); in GetDeviceType() 234 controllerHdi->GetDeviceType = GetDeviceType; in InstanceControllerHdi()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/ |
H A D | meta_capability_info.cpp | 102 if (this->GetDeviceType() != metaCapInfo.GetDeviceType()) { in Compare() 156 cJSON_AddNumberToObject(jsonObject, DEV_TYPE.c_str(), (double)metaCapInfo.GetDeviceType()); in ToJson()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_subscribe_info.cpp | 35 deviceType_ = subscribeInfo.GetDeviceType(); in NotificationSubscribeInfo() 70 std::string NotificationSubscribeInfo::GetDeviceType() const in GetDeviceType() function in OHOS::Notification::NotificationSubscribeInfo
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | tool_bar_layout_algorithm.cpp | 43 if (SystemProperties::GetDeviceType() == DeviceType::PHONE && in GetToolbarContainerMaxWidth() 53 if (SystemProperties::GetDeviceType() == DeviceType::TABLET && in GetToolbarContainerMaxWidth() 63 if (SystemProperties::GetDeviceType() == DeviceType::TABLET && in GetToolbarContainerMaxWidth()
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbabilitymgr/src/continuation_manager/ |
H A D | continuation_result.cpp | 60 parcel.WriteString16(Str8ToStr16(GetDeviceType())); in Marshalling() 80 std::string ContinuationResult::GetDeviceType() const in GetDeviceType() function in OHOS::DistributedSchedule::ContinuationResult
|