/ohos5.0/foundation/arkui/ace_engine/adapter/preview/osal/ |
H A D | resource_convertor.cpp | 20 Global::Resource::DeviceType ConvertDeviceTypeToGlobal(DeviceType type) in ConvertDeviceTypeToGlobal() 23 case DeviceType::PHONE: in ConvertDeviceTypeToGlobal() 25 case DeviceType::TV: in ConvertDeviceTypeToGlobal() 27 case DeviceType::WATCH: in ConvertDeviceTypeToGlobal() 29 case DeviceType::CAR: in ConvertDeviceTypeToGlobal() 31 case DeviceType::TABLET: in ConvertDeviceTypeToGlobal() 33 case DeviceType::TWO_IN_ONE: in ConvertDeviceTypeToGlobal() 35 case DeviceType::WEARABLE: in ConvertDeviceTypeToGlobal() 88 DeviceType ConvertDeviceTypeToAce(Global::Resource::DeviceType type) in ConvertDeviceTypeToAce() 94 return DeviceType::TV; in ConvertDeviceTypeToAce() [all …]
|
H A D | system_properties.cpp | 60 DeviceType SystemProperties::deviceType_ { DeviceType::PHONE }; 117 if (type == DeviceType::TV) { in InitDeviceType() 118 deviceType_ = DeviceType::TV; in InitDeviceType() 120 } else if (type == DeviceType::WATCH) { in InitDeviceType() 121 deviceType_ = DeviceType::WATCH; in InitDeviceType() 123 } else if (type == DeviceType::CAR) { in InitDeviceType() 124 deviceType_ = DeviceType::CAR; in InitDeviceType() 126 } else if (type == DeviceType::TABLET) { in InitDeviceType() 127 deviceType_ = DeviceType::TABLET; in InitDeviceType() 133 deviceType_ = DeviceType::PHONE; in InitDeviceType() [all …]
|
H A D | resource_convertor.h | 29 Global::Resource::DeviceType ConvertDeviceTypeToGlobal(DeviceType type); 35 DeviceType ConvertDeviceTypeToAce(Global::Resource::DeviceType type);
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_convertor.cpp | 20 Global::Resource::DeviceType ConvertDeviceTypeToGlobal(DeviceType type) in ConvertDeviceTypeToGlobal() 23 case DeviceType::PHONE: in ConvertDeviceTypeToGlobal() 25 case DeviceType::TV: in ConvertDeviceTypeToGlobal() 27 case DeviceType::WATCH: in ConvertDeviceTypeToGlobal() 29 case DeviceType::CAR: in ConvertDeviceTypeToGlobal() 31 case DeviceType::TABLET: in ConvertDeviceTypeToGlobal() 33 case DeviceType::TWO_IN_ONE: in ConvertDeviceTypeToGlobal() 35 case DeviceType::WEARABLE: in ConvertDeviceTypeToGlobal() 111 DeviceType ConvertDeviceTypeToAce(Global::Resource::DeviceType type) in ConvertDeviceTypeToAce() 117 return DeviceType::TV; in ConvertDeviceTypeToAce() [all …]
|
H A D | resource_convertor.h | 29 Global::Resource::DeviceType ConvertDeviceTypeToGlobal(DeviceType type); 35 DeviceType ConvertDeviceTypeToAce(Global::Resource::DeviceType type);
|
/ohos5.0/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/ |
H A D | audio_device_info.h | 99 enum DeviceType { enum 181 DeviceType::DEVICE_TYPE_MIC, 182 DeviceType::DEVICE_TYPE_WAKEUP, 183 DeviceType::DEVICE_TYPE_USB_HEADSET, 185 DeviceType::DEVICE_TYPE_FILE_SOURCE, 204 DeviceType::DEVICE_TYPE_EARPIECE, 205 DeviceType::DEVICE_TYPE_SPEAKER, 210 DeviceType::DEVICE_TYPE_USB_HEADSET, 211 DeviceType::DEVICE_TYPE_DP, 213 DeviceType::DEVICE_TYPE_FILE_SINK, [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/manager/ |
H A D | volume_data_maintainer.h | 63 bool SaveVolume(DeviceType type, AudioStreamType streamType, int32_t volumeLevel); 64 bool GetVolume(DeviceType deviceType, AudioStreamType streamType); 69 bool SaveMuteStatus(DeviceType deviceType, AudioStreamType streamType, 71 bool GetMuteStatus(DeviceType deviceType, AudioStreamType streamType); 82 bool SaveSafeStatus(DeviceType deviceType, SafeStatus safeStatus); 83 bool GetSafeStatus(DeviceType deviceType, SafeStatus &safeStatus); 84 bool SaveSafeVolumeTime(DeviceType deviceType, int64_t time); 85 bool GetSafeVolumeTime(DeviceType deviceType, int64_t &time); 96 static std::string GetDeviceTypeName(DeviceType deviceType); 97 bool GetVolumeInternal(DeviceType deviceType, AudioStreamType streamType); [all …]
|
H A D | audio_adapter_manager.h | 133 DeviceVolumeType GetDeviceCategory(DeviceType deviceType); 135 void SetActiveDevice(DeviceType deviceType); 137 DeviceType GetActiveDevice(); 168 SafeStatus GetCurrentDeviceSafeStatus(DeviceType deviceType); 170 int64_t GetCurentDeviceSafeTime(DeviceType deviceType); 172 int32_t SetDeviceSafeStatus(DeviceType deviceType, SafeStatus status); 174 int32_t SetDeviceSafeTime(DeviceType deviceType, int64_t time); 188 void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLevel); 236 std::string GetVolumeKeyForKvStore(DeviceType deviceType, AudioStreamType streamType); 240 std::string GetMuteKeyForKvStore(DeviceType deviceType, AudioStreamType streamType); [all …]
|
/ohos5.0/base/web/webview/ohos_adapter/audio_adapter/src/ |
H A D | audio_system_manager_adapter_impl.cpp | 74 { DeviceType::DEVICE_TYPE_NONE, DEVICE_TYPE_NONE_ZH_CN}, 82 { DeviceType::DEVICE_TYPE_MIC, DEVICE_TYPE_MIC_ZH_CN}, 86 { DeviceType::DEVICE_TYPE_MAX, DEVICE_TYPE_MAX_ZH_CN}, 90 { DeviceType::DEVICE_TYPE_NONE, DEVICE_TYPE_NONE }, 91 { DeviceType::DEVICE_TYPE_INVALID, DEVICE_TYPE_INVALID }, 92 { DeviceType::DEVICE_TYPE_EARPIECE, DEVICE_TYPE_EARPIECE }, 93 { DeviceType::DEVICE_TYPE_SPEAKER, DEVICE_TYPE_SPEAKER }, 98 { DeviceType::DEVICE_TYPE_MIC, DEVICE_TYPE_MIC }, 102 { DeviceType::DEVICE_TYPE_MAX, DEVICE_TYPE_MAX }, 153 …if (outputDeviceType == DeviceType::DEVICE_TYPE_NONE || outputDeviceType == DeviceType::DEVICE_TYP… in HasAudioOutputDevices() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/accessibility/ |
H A D | js_inspector_test.cpp | 94 if (deviceType == DeviceType::PHONE) { in CheckToggleAttrAndStyle() 138 if (deviceType == DeviceType::PHONE) { in CheckTextAreaAttrAndStyle() 163 if (deviceType == DeviceType::PHONE) { in CheckTextAttrAndStyle() 196 if (deviceType == DeviceType::PHONE) { in CheckTabBarAttrAndStyle() 226 if (deviceType == DeviceType::PHONE) { in CheckSwiperAttrAndStyle() 229 } else if (deviceType == DeviceType::TV || deviceType == DeviceType::WATCH) { in CheckSwiperAttrAndStyle() 254 if (deviceType == DeviceType::PHONE) { in CheckSliderAttrAndStyle() 281 if (deviceType == DeviceType::PHONE) { in CheckRefreshAttrAndStyle() 290 if (deviceType == DeviceType::PHONE) { in CheckRefreshAttrAndStyle() 318 if (deviceType == DeviceType::PHONE) { in CheckRatingAttrAndStyle() [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/ |
H A D | audio_policy_service.h | 161 DeviceType GetActiveOutputDevice(); 165 DeviceType GetActiveInputDevice(); 323 DeviceType GetDeviceTypeFromPin(AudioPin pin); 732 DeviceType FindConnectedHeadset(); 787 void ResetToSpeaker(DeviceType devType); 877 DeviceType deviceType, int32_t flags); 966 DeviceType GetCurrentInputDeviceType(); 976 DeviceType GetCurrentOutputDeviceType(); 1057 DeviceType deviceType = DEVICE_TYPE_NONE); 1065 DeviceType deviceType = DEVICE_TYPE_NONE); [all …]
|
H A D | audio_device_manager.h | 46 int32_t GetDeviceUsageFromType(const DeviceType devType) const; 73 vector<unique_ptr<AudioDeviceDescriptor>> GetAvailableBluetoothDevice(DeviceType devType, 87 int32_t SetDefaultOutputDevice(const DeviceType deviceType, const uint32_t sessionID, 94 void SaveRemoteInfo(const std::string &networkId, DeviceType deviceType); 137 const std::string &remoteInfoNetworkId, DeviceType remoteInfoDeviceType); 174 unordered_map<uint32_t, std::pair<DeviceType, StreamUsage>> selectedDefaultOutputDeviceInfo_; 175 vector<std::pair<uint32_t, DeviceType>> mediaDefaultOutputDevices_; 176 vector<std::pair<uint32_t, DeviceType>> callDefaultOutputDevices_; 177 DeviceType selectedMediaDefaultOutputDevice_ = DEVICE_TYPE_DEFAULT; 178 DeviceType selectedCallDefaultOutputDevice_ = DEVICE_TYPE_DEFAULT; [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/interface/ |
H A D | idevice_status_observer.h | 26 virtual void OnDeviceStatusUpdated(DeviceType devType, bool isConnected, 29 virtual void OnPnpDeviceStatusUpdated(DeviceType devType, bool isConnected) = 0; 30 virtual void OnPnpDeviceStatusUpdated(DeviceType devType, bool isConnected, 32 virtual void OnMicrophoneBlockedUpdate(DeviceType devType, DeviceBlockStatus status) = 0; 33 virtual void OnDeviceConfigurationChanged(DeviceType deviceType, 39 virtual void OnForcedDeviceSelected(DeviceType devType, const std::string &macAddress) = 0;
|
H A D | iaudio_policy_interface.h | 124 …virtual float GetSystemVolumeInDb(AudioVolumeType volumeType, int32_t volumeLevel, DeviceType devi… 126 virtual void SetActiveDevice(DeviceType deviceType) = 0; 128 virtual DeviceType GetActiveDevice() = 0; 136 virtual SafeStatus GetCurrentDeviceSafeStatus(DeviceType deviceType) = 0; 138 virtual int64_t GetCurentDeviceSafeTime(DeviceType deviceType) = 0; 140 virtual int32_t SetDeviceSafeStatus(DeviceType deviceType, SafeStatus status) = 0; 142 virtual int32_t SetDeviceSafeTime(DeviceType deviceType, int64_t time) = 0; 160 …virtual void HandleSaveVolume(DeviceType deviceType, AudioStreamType streamType, int32_t volumeLev…
|
/ohos5.0/foundation/multimodalinput/input/service/touch_event_normalize/src/ |
H A D | touch_event_normalize.cpp | 38 …<PointerEvent> TouchEventNormalize::OnLibInput(struct libinput_event *event, DeviceType deviceType) in OnLibInput() 59 DeviceType deviceType) const in MakeTransformProcessor() 64 case DeviceType::TOUCH: { in MakeTransformProcessor() 68 case DeviceType::TABLET_TOOL: { in MakeTransformProcessor() 74 case DeviceType::TOUCH_PAD: { in MakeTransformProcessor() 78 case DeviceType::GESTURE: { in MakeTransformProcessor() 84 case DeviceType::JOYSTICK: { in MakeTransformProcessor()
|
/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/foundation/ability/ability_base/interfaces/kits/native/configuration/src/ |
H A D | configuration_convertor.cpp | 147 Global::Resource::DeviceType ConvertDeviceType(std::string deviceType) in ConvertDeviceType() 149 static const std::unordered_map<std::string, Global::Resource::DeviceType> deviceTypes = { in ConvertDeviceType() 150 {"default", Global::Resource::DeviceType::DEVICE_PHONE}, in ConvertDeviceType() 151 {"phone", Global::Resource::DeviceType::DEVICE_PHONE}, in ConvertDeviceType() 152 {"tablet", Global::Resource::DeviceType::DEVICE_TABLET}, in ConvertDeviceType() 153 {"car", Global::Resource::DeviceType::DEVICE_CAR}, in ConvertDeviceType() 154 {"tv", Global::Resource::DeviceType::DEVICE_TV}, in ConvertDeviceType() 155 {"watch", Global::Resource::DeviceType::DEVICE_WEARABLE}, in ConvertDeviceType() 156 {"2in1", Global::Resource::DeviceType::DEVICE_TWOINONE}, in ConvertDeviceType() 157 {"wearable", Global::Resource::DeviceType::DEVICE_WEARABLE} in ConvertDeviceType() [all …]
|
/ohos5.0/drivers/interface/display/composer/cache_manager/ |
H A D | device_cache.h | 34 enum DeviceType { enum 41 static DeviceCache* Create(uint32_t id, DeviceType type); 52 DeviceType CacheType() const; 55 DeviceCache(uint32_t id, DeviceType type); 58 DeviceType cacheType_;
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | res_desc_test.cpp | 141 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PHONE, PHONE_STR); 142 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TABLET, TABLET_STR); 143 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_CAR, CAR_STR); 144 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PAD, PAD_STR); 145 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TV, TV_STR); 146 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_WEARABLE, WEARABLE_STR); 147 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_NOT_SET, "not_device_type");
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/manager_test/src/ |
H A D | audio_manager_unit_test.cpp | 663 DeviceType deviceType = DeviceType::DEVICE_TYPE_NONE; 677 DeviceType deviceType = DeviceType::DEVICE_TYPE_INVALID; 691 DeviceType deviceType = DeviceType::DEVICE_TYPE_DEFAULT; 705 DeviceType deviceType = DeviceType::DEVICE_TYPE_DEFAULT; 719 DeviceType deviceType = DeviceType::DEVICE_TYPE_SPEAKER; 733 DeviceType deviceType = DeviceType::DEVICE_TYPE_MIC; 775 DeviceType deviceType = DeviceType::DEVICE_TYPE_USB_HEADSET; 789 DeviceType deviceType = DeviceType::DEVICE_TYPE_FILE_SINK; 803 DeviceType deviceType = DeviceType::DEVICE_TYPE_FILE_SOURCE; 845 DeviceType deviceType = DeviceType::DEVICE_TYPE_MAX; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/media_query/ |
H A D | media_query_info.cpp | 32 case DeviceType::TV: in GetDeviceType() 34 case DeviceType::CAR: in GetDeviceType() 36 case DeviceType::WATCH: in GetDeviceType() 38 case DeviceType::TABLET: in GetDeviceType() 40 case DeviceType::TWO_IN_ONE: in GetDeviceType()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | res_desc_test.cpp | 141 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PHONE, PHONE_STR); 142 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TABLET, TABLET_STR); 143 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_CAR, CAR_STR); 144 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PAD, PAD_STR); 145 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TV, TV_STR); 146 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_WEARABLE, WEARABLE_STR); 147 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_NOT_SET, "not_device_type");
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/accessibility/js_inspector/ |
H A D | inspect_progress.cpp | 32 DeviceType deviceType = SystemProperties::GetDeviceType(); in PackAttrAndStyle() 33 if (deviceType == DeviceType::PHONE) { in PackAttrAndStyle() 35 } else if (deviceType == DeviceType::TV) { in PackAttrAndStyle() 37 } else if (deviceType == DeviceType::WATCH) { in PackAttrAndStyle()
|
H A D | inspect_marquee.cpp | 32 DeviceType deviceType = SystemProperties::GetDeviceType(); in PackAttrAndStyle() 33 if (deviceType == DeviceType::PHONE) { in PackAttrAndStyle() 35 } else if (deviceType == DeviceType::TV) { in PackAttrAndStyle() 37 } else if (deviceType == DeviceType::WATCH) { in PackAttrAndStyle()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/ |
H A D | volume_data_maintainer.cpp | 44 static const std::vector<DeviceType> DEVICE_TYPE_LIST = { 147 bool VolumeDataMaintainer::GetVolume(DeviceType deviceType, AudioStreamType streamType) in GetVolume() 153 bool VolumeDataMaintainer::GetVolumeInternal(DeviceType deviceType, AudioStreamType streamType) in GetVolumeInternal() 211 bool VolumeDataMaintainer::SaveMuteStatus(DeviceType deviceType, AudioStreamType streamType, in SaveMuteStatus() 260 bool VolumeDataMaintainer::GetMuteStatus(DeviceType deviceType, AudioStreamType streamType) in GetMuteStatus() 266 bool VolumeDataMaintainer::GetMuteStatusInternal(DeviceType deviceType, AudioStreamType streamType) in GetMuteStatusInternal() 381 bool VolumeDataMaintainer::SaveSafeStatus(DeviceType deviceType, SafeStatus safeStatus) in SaveSafeStatus() 407 bool VolumeDataMaintainer::GetSafeStatus(DeviceType deviceType, SafeStatus &safeStatus) in GetSafeStatus() 439 bool VolumeDataMaintainer::SaveSafeVolumeTime(DeviceType deviceType, int64_t time) in SaveSafeVolumeTime() 466 bool VolumeDataMaintainer::GetSafeVolumeTime(DeviceType deviceType, int64_t &time) in GetSafeVolumeTime() [all …]
|