Home
last modified time | relevance | path

Searched refs:deviceTypes (Results 1 - 25 of 48) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/common/manifest/
H A Dmanifest_parser.cpp58 auto deviceTypes = rootJson->GetValue("deviceType"); in Parse() local
59 if (deviceTypes && deviceTypes->IsArray()) { in Parse()
60 for (int32_t index = 0; index < deviceTypes->GetArraySize(); ++index) { in Parse()
61 auto device = deviceTypes->GetArrayItem(index); in Parse()
/foundation/bundlemanager/bundle_framework/test/benchmarktest/hap_module_info_test/
H A Dhap_module_info_test.cpp38 info.deviceTypes = {"smartVision"}; in BenchmarkTestForReadFromParcel()
63 info.deviceTypes = {"smartVision"}; in BenchmarkTestForMarshalling()
87 info.deviceTypes = {"smartVision"}; in BenchmarkTestForUnmarshalling()
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/server/
H A Daudio_server_unit_test.cpp64 std::vector<DeviceType> deviceTypes; in HWTEST() local
66 deviceTypes.push_back(deviceType); in HWTEST()
68 bool ret = audioServer->SetIORoutes(type, flag, deviceTypes, a2dpOffloadFlag); in HWTEST()
/foundation/bundlemanager/bundle_framework/test/benchmarktest/ability_info_test/
H A Dability_info_test.cpp41 info.deviceTypes = {"smartVision"}; in BenchmarkTestForReadFromParcel()
79 info.deviceTypes = {"smartVision"}; in BenchmarkTestForMarshalling()
116 info.deviceTypes = {"smartVision"}; in BenchmarkTestForUnmarshalling()
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/delegates/nnrt_delegate/
H A Dnnrt_utils.cpp119 std::vector<OH_NN_DeviceType> deviceTypes; in GetTargetDevice() local
124 deviceTypes.emplace_back(tempDeviceType); in GetTargetDevice()
128 std::vector<OH_NN_DeviceType>::iterator pos = std::find(deviceTypes.begin(), deviceTypes.end(), deviceType); in GetTargetDevice()
129 if (pos != deviceTypes.end()) { in GetTargetDevice()
130 int index = distance(deviceTypes.begin(), pos); in GetTargetDevice()
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/audio_server_unit_test/src/
H A Daudio_server_unit_test.cpp336 std::vector<DeviceType> deviceTypes; in HWTEST_F() local
343 ret = audioServer->SetIORoutes(DEVICE_TYPE_USB_ARM_HEADSET, DeviceFlag::ALL_DEVICES_FLAG, deviceTypes, in HWTEST_F()
351 ret = audioServer->SetIORoutes(DEVICE_TYPE_USB_ARM_HEADSET, DeviceFlag::ALL_DEVICES_FLAG, deviceTypes, in HWTEST_F()
355 deviceTypes.push_back(DEVICE_TYPE_BLUETOOTH_A2DP); in HWTEST_F()
356 ret = audioServer->SetIORoutes(DEVICE_TYPE_BLUETOOTH_A2DP, DeviceFlag::OUTPUT_DEVICES_FLAG, deviceTypes, in HWTEST_F()
360 deviceTypes.clear(); in HWTEST_F()
361 deviceTypes.push_back(DEVICE_TYPE_WIRED_HEADPHONES); in HWTEST_F()
362 ret = audioServer->SetIORoutes(DEVICE_TYPE_BLUETOOTH_A2DP, DeviceFlag::OUTPUT_DEVICES_FLAG, deviceTypes, in HWTEST_F()
/foundation/ability/ability_base/interfaces/kits/native/configuration/src/
H A Dconfiguration_convertor.cpp149 static const std::unordered_map<std::string, Global::Resource::DeviceType> deviceTypes = { in ConvertDeviceType() local
160 if (deviceTypes.find(deviceType) != deviceTypes.end()) { in ConvertDeviceType()
161 return deviceTypes.at(deviceType); in ConvertDeviceType()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/
H A Dbms_bundle_install_device_type_test.cpp44 const std::vector<std::string> &deviceTypes);
80 const std::vector<std::string> &deviceTypes) in SetDeviceTypes()
85 innerModuleInfo.deviceTypes = deviceTypes; in SetDeviceTypes()
79 SetDeviceTypes(std::unordered_map<std::string, InnerBundleInfo> &infos, const std::vector<std::string> &deviceTypes) SetDeviceTypes() argument
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dcompatible_ability_info.cpp95 deviceTypes.emplace_back(deviceType); in ReadFromParcel()
184 const auto deviceTypeSize = static_cast<int32_t>(deviceTypes.size()); in Marshalling()
187 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(deviceTypes[i])); in Marshalling()
247 abilityInfo.deviceTypes = deviceTypes; in ConvertToAbilityInfo()
H A Dhap_module_info.cpp42 const char* HAP_MODULE_INFO_DEVICE_TYPES = "deviceTypes";
513 CONTAINER_SECURITY_VERIFY(parcel, deviceTypesSize, &deviceTypes); in ReadFromParcel()
515 deviceTypes.emplace_back(Str16ToStr8(parcel.ReadString16())); in ReadFromParcel()
698 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, deviceTypes.size()); in Marshalling()
699 for (auto &deviceType : deviceTypes) { in Marshalling()
796 {HAP_MODULE_INFO_DEVICE_TYPES, hapModuleInfo.deviceTypes}, in to_json()
953 hapModuleInfo.deviceTypes, in from_json()
H A Dability_info.cpp50 const char* JSON_KEY_DEVICE_TYPES = "deviceTypes";
147 CONTAINER_SECURITY_VERIFY(parcel, deviceTypesSize, &deviceTypes); in ReadFromParcel()
149 deviceTypes.emplace_back(Str16ToStr8(parcel.ReadString16())); in ReadFromParcel()
369 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, deviceTypes.size()); in Marshalling()
370 for (auto &deviceType : deviceTypes) { in Marshalling()
580 {JSON_KEY_DEVICE_TYPES, abilityInfo.deviceTypes}, in to_json()
849 abilityInfo.deviceTypes, in from_json()
1292 compatibleAbilityInfo.deviceTypes = deviceTypes; in ConvertToCompatiableAbilityInfo()
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Dbundle_manager_utils.h154 CArrString deviceTypes; member
249 CArrString deviceTypes; member
H A Dbundle_manager_convert.cpp338 abInfo.deviceTypes = ConvertArrString(cAbilityInfos.deviceTypes); in ConvertAbilityInfo()
504 hapInfo.deviceTypes = ConvertArrString(hapModuleInfo.deviceTypes); in ConvertHapModuleInfo()
/foundation/ability/ability_runtime/frameworks/simulator/common/include/
H A Dhap_module_info.h101 std::vector<std::string> deviceTypes; member
H A Dability_info.h103 std::vector<std::string> deviceTypes; member
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dability_info.h146 std::vector<std::string> deviceTypes; member
205 std::vector<std::string> deviceTypes; member
H A Dhap_module_info.h147 std::vector<std::string> deviceTypes; member
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dpatch_profile.cpp36 constexpr const char* BUNDLE_PATCH_PROFILE_MODULE_KEY_DEVICE_TYPES = "deviceTypes";
56 std::vector<std::string> deviceTypes; member
122 module.deviceTypes, in from_json()
/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Daudio_server.cpp1153 std::vector<DeviceType> deviceTypes; in SetIORoutes() local
1156 deviceTypes.push_back(activeDevice.first); in SetIORoutes()
1160 int32_t ret = SetIORoutes(type, flag, deviceTypes, a2dpOffloadFlag, deviceName); in SetIORoutes()
1164 int32_t AudioServer::SetIORoutes(DeviceType type, DeviceFlag flag, std::vector<DeviceType> deviceTypes, in SetIORoutes() argument
1179 deviceTypes.size() == 1 && deviceTypes[0] == DEVICE_TYPE_BLUETOOTH_A2DP) { in SetIORoutes()
1180 deviceTypes[0] = DEVICE_TYPE_NONE; in SetIORoutes()
1195 audioRendererSinkInstance->SetAudioScene(audioScene_, deviceTypes); in SetIORoutes()
1197 audioRendererSinkInstance->SetOutputRoutes(deviceTypes); in SetIORoutes()
1203 audioRendererSinkInstance->SetAudioScene(audioScene_, deviceTypes); in SetIORoutes()
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_policy_service_unit_test/src/
H A Daudio_policy_service_first_unit_test.cpp129 static const std::vector<DeviceType> deviceTypes = { member
305 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
374 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
395 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
442 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
1839 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
1847 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
2046 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
2450 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
2493 for (const auto& deviceType : deviceTypes) { in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/bundle_parser/
H A Dinner_bundle_info.h74 std::vector<std::string> deviceTypes; member
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/
H A Dinner_bundle_info.cpp80 const std::string MODULE_DEVICE_TYPES = "deviceTypes";
221 {MODULE_DEVICE_TYPES, info.deviceTypes}, in to_json()
499 info.deviceTypes, in from_json()
959 hapInfo.deviceTypes = ability.second.deviceTypes; in FindHapModuleInfo()
H A Dmodule_profile.cpp262 std::vector<std::string> deviceTypes; member
1170 module.deviceTypes, in from_json()
1591 for (const std::string &deviceType : moduleJson.module.deviceTypes) { in ToAbilityInfo()
1592 abilityInfo.deviceTypes.emplace_back(deviceType); in ToAbilityInfo()
1685 for (const std::string &deviceType : moduleJson.module.deviceTypes) { in ToInnerModuleInfo()
1686 innerModuleInfo.deviceTypes.emplace_back(deviceType); in ToInnerModuleInfo()
H A Dhap_module_info.cpp41 const std::string HAP_MODULE_INFO_DEVICE_TYPES = "deviceTypes";
171 {HAP_MODULE_INFO_DEVICE_TYPES, hapModuleInfo.deviceTypes}, in to_json()
339 hapModuleInfo.deviceTypes, in from_json()
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Dcommon_func.cpp470 for (size_t idx = 0; idx < abilityInfo.deviceTypes.size(); ++idx) { in ConvertAbilityInfo()
473 env, napi_create_string_utf8(env, abilityInfo.deviceTypes[idx].c_str(), NAPI_AUTO_LENGTH, &nDeviceType)); in ConvertAbilityInfo()
476 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, objAbilityInfo, "deviceTypes", nDeviceTypes)); in ConvertAbilityInfo()
725 for (size_t idx = 0; idx < hapModuleInfo.deviceTypes.size(); idx++) { in ConvertHapModuleInfo()
728 env, napi_create_string_utf8(env, hapModuleInfo.deviceTypes[idx].c_str(), NAPI_AUTO_LENGTH, &nDeviceType)); in ConvertHapModuleInfo()
731 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, objHapModuleInfo, "deviceTypes", nDeviceTypes)); in ConvertHapModuleInfo()

Completed in 46 milliseconds

12