/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_common.h | 43 void NotifyDeviceListChanged(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount); 44 void NotifyDeviceFound(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount);
|
/foundation/communication/dsoftbus/tests/core/discovery/dfinder/ |
H A D | nstackx_test.c | 46 static void OnDeviceFound(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount) in OnDeviceFound() argument 48 if (deviceCount == 0) { in OnDeviceFound() 52 for (uint32_t i = 0; i < deviceCount; i++) { in OnDeviceFound()
|
/foundation/distributedhardware/device_manager/services/implementation/src/dependency/softbus/ |
H A D | softbus_connector.cpp | 651 int32_t deviceCount = 0; in GetNetworkIdByDeviceId() local 653 if (GetAllNodeDeviceInfo(DM_PKG_NAME, &nodeInfo, &deviceCount) != DM_OK) { in GetNetworkIdByDeviceId() 657 for (int32_t i = 0; i < deviceCount; ++i) { in GetNetworkIdByDeviceId() 726 int32_t deviceCount = 0; in CheckIsOnline() local 728 if (GetAllNodeDeviceInfo(DM_PKG_NAME, &nodeInfo, &deviceCount) != DM_OK) { in CheckIsOnline() 732 for (int32_t i = 0; i < deviceCount; ++i) { in CheckIsOnline() 755 int32_t deviceCount = 0; in GetDeviceInfoByDeviceId() local 757 if (GetAllNodeDeviceInfo(DM_PKG_NAME, &nodeInfo, &deviceCount) != DM_OK) { in GetDeviceInfoByDeviceId() 767 for (int32_t i = 0; i < deviceCount; ++i) { in GetDeviceInfoByDeviceId()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/ |
H A D | distributeddb_cloud_table_without_primary_key_sync_test.cpp | 409 int64_t deviceCount = 10; // 10 is device delete in HWTEST_F() local 410 CloudDBSyncUtilsTest::DeleteUserTableRecord(db, 0, deviceCount); in HWTEST_F() 411 CloudDBSyncUtilsTest::DeleteUserTableRecord(db, deviceBegin, deviceCount); in HWTEST_F() 412 CloudDBSyncUtilsTest::UpdateCloudTableRecord(0, deviceCount, paddingSize, false, g_virtualCloudDb); in HWTEST_F()
|
/foundation/distributedhardware/device_manager/services/softbuscache/src/ |
H A D | dm_softbus_cache.cpp | 197 int32_t deviceCount = 0; in UpdateDeviceInfoCache() local 199 int32_t ret = GetAllNodeDeviceInfo(DM_PKG_NAME, &nodeInfo, &deviceCount); in UpdateDeviceInfoCache() 205 for (int32_t i = 0; i < deviceCount; ++i) { in UpdateDeviceInfoCache() 212 LOGI("UpdateDeviceInfoCache success, deviceCount: %{public}d.", deviceCount); in UpdateDeviceInfoCache()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/ |
H A D | btm_wl.c | 224 int deviceCount = ListGetSize(g_whiteList); in BtmGetDeviceCountInWhiteList() local 228 return deviceCount; in BtmGetDeviceCountInWhiteList()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/ |
H A D | rs_vulkan_context.cpp | 184 uint32_t deviceCount = 0;
in SelectPhysicalDevice() local 185 if (vkEnumeratePhysicalDevices(instance_, &deviceCount, nullptr) != VK_SUCCESS) {
in SelectPhysicalDevice() 191 physicalDevices.resize(deviceCount);
in SelectPhysicalDevice() 192 if (vkEnumeratePhysicalDevices(instance_, &deviceCount, physicalDevices.data()) != VK_SUCCESS) {
in SelectPhysicalDevice()
|
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/ |
H A D | disc_nstackx_adapter.c | 152 static void OnDeviceFound(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount)
in OnDeviceFound() argument 154 DISC_CHECK_AND_RETURN_LOGE(deviceList != NULL && deviceCount != 0, DISC_COAP, "invalid param.");
in OnDeviceFound() 155 DISC_LOGD(DISC_COAP, "Disc device found, count=%{public}u", deviceCount);
in OnDeviceFound() 160 for (uint32_t i = 0; i < deviceCount; i++) {
in OnDeviceFound()
|
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/nnrt/ |
H A D | nnrt_implementation.h | 80 OH_NN_ReturnCode (*OH_NNDevice_GetAllDevicesID)(const size_t** allDevicesID, uint32_t* deviceCount);
|
/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/ |
H A D | neural_network_core.h | 1082 * @param deviceCount Pointer of the uint32_t type, which is used to return the length of <b>*allDevicesID</b>. 1089 OH_NN_ReturnCode OH_NNDevice_GetAllDevicesID(const size_t **allDevicesID, uint32_t *deviceCount);
|
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 1993 uint32_t deviceCount = 1; in HWTEST_F() local 1994 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F() 2009 uint32_t deviceCount = 1; in HWTEST_F() local 2010 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F() 2017 * @tc.desc: Verify the deviceCount is nullptr of the OH_NNDevice_GetAllDevicesID function. 2038 uint32_t deviceCount = 1; in HWTEST_F() local 2039 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F() 2054 uint32_t deviceCount = 1; in HWTEST_F() local 2055 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F()
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/effect/ |
H A D | audio_effect_manager.cpp | 445 int32_t deviceCount = 0; in UpdateUnavailableEffectChainsRecord() local 452 deviceDelIdx.push_back(deviceCount); in UpdateUnavailableEffectChainsRecord() 454 deviceCount += 1; in UpdateUnavailableEffectChainsRecord()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/ |
H A D | neural_network_core.cpp | 35 NNRT_API OH_NN_ReturnCode OH_NNDevice_GetAllDevicesID(const size_t **allDevicesID, uint32_t *deviceCount) in OH_NNDevice_GetAllDevicesID() argument 47 if (deviceCount == nullptr) { in OH_NNDevice_GetAllDevicesID() 48 LOGE("OH_NNDevice_GetAllDevicesID failed, passed nullptr to deviceCount."); in OH_NNDevice_GetAllDevicesID() 58 *deviceCount = 0; in OH_NNDevice_GetAllDevicesID() 64 *deviceCount = static_cast<uint32_t>(allDevices.size()); in OH_NNDevice_GetAllDevicesID()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/interface/ |
H A D | nstackx.h | 190 typedef void (*NSTACKX_OnDeviceListChanged)(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount);
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 2538 uint32_t deviceCount = 1; in HWTEST_F() local 2539 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F() 2554 uint32_t deviceCount = 1; in HWTEST_F() local 2555 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F() 2562 * @tc.desc: Verify the deviceCount is nullptr of the OH_NNDevice_GetAllDevicesID function. 2583 uint32_t deviceCount = 1; in HWTEST_F() local 2584 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F() 2599 uint32_t deviceCount = 1; in HWTEST_F() local 2600 uint32_t* pDeviceCount = &deviceCount; in HWTEST_F()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_common.c | 1673 void NotifyDeviceListChanged(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount) in NotifyDeviceListChanged() argument 1677 g_parameter.onDeviceListChanged(deviceList, deviceCount); in NotifyDeviceListChanged() 1684 void NotifyDeviceFound(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount) in NotifyDeviceFound() argument 1688 g_parameter.onDeviceFound(deviceList, deviceCount); in NotifyDeviceFound()
|
/foundation/distributedhardware/device_manager/services/service/src/softbus/ |
H A D | softbus_listener.cpp | 661 size_t deviceCount = deviceInfoList.size(); in GetTrustedDeviceList() local 662 LOGI("Success from cache deviceInfoList size is %{public}zu.", deviceCount); in GetTrustedDeviceList()
|
/foundation/distributedhardware/device_manager/radar/src/ |
H A D | dm_radar_helper.cpp | 756 int32_t deviceCount = static_cast<int32_t>(deviceInfoList.size()); in ReportGetTrustDeviceList() local 758 if (deviceCount > 0 && TrustCallerName != hostName) { in ReportGetTrustDeviceList()
|
/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/manager_test/src/ |
H A D | audio_manager_unit_test.cpp | 121 auto deviceCount = audioDeviceDescriptors.size(); in HWTEST() local 122 EXPECT_GE(deviceCount, MIN_DEVICE_COUNT); in HWTEST()
|