/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/ |
H A D | bt_statistic.cpp | 97 cJSON *json, const std::vector<OHOS::Bluetooth::BluetoothRemoteDevice>& devices, uint32_t profileId) in AddDevicesToArray() 103 for (size_t i = 0; i < devices.size(); i++) { in AddDevicesToArray() 105 (void)AddStringToJsonObject(deviceJson, "Name", devices[i].GetDeviceName().c_str()); in AddDevicesToArray() 107 OHOS::SoftBus::WifiDirectAnonymizeMac(devices[i].GetDeviceAddr()).c_str()); in AddDevicesToArray() 111 std::to_string(A2dpSource::GetProfile()->GetPlayingState(devices[i])).c_str()); in AddDevicesToArray() 114 std::to_string(A2dpSink::GetProfile()->GetPlayingState(devices[i])).c_str()); in AddDevicesToArray() 117 std::to_string(HandsFreeUnit::GetProfile()->GetScoState(devices[i])).c_str()); in AddDevicesToArray() 120 std::to_string(HandsFreeAudioGateway::GetProfile()->GetScoState(devices[i])).c_str()); in AddDevicesToArray() 132 std::vector<BluetoothRemoteDevice> devices; in GetGattDeviceInfo() local 134 devices in GetGattDeviceInfo() 96 AddDevicesToArray( cJSON *json, const std::vector<OHOS::Bluetooth::BluetoothRemoteDevice>& devices, uint32_t profileId) AddDevicesToArray() argument 165 std::vector<BluetoothRemoteDevice> devices; GetA2dpSrcDeviceInfo() local 172 std::vector<BluetoothRemoteDevice> devices; GetA2dpSinkDeviceInfo() local 179 std::vector<BluetoothRemoteDevice> devices; GetAvrCTDeviceInfo() local 186 std::vector<BluetoothRemoteDevice> devices; GetAvrTGDeviceInfo() local 193 std::vector<BluetoothRemoteDevice> devices; GetHfpAGDeviceInfo() local 200 std::vector<BluetoothRemoteDevice> devices; GetHfpHFDeviceInfo() local 207 std::vector<BluetoothRemoteDevice> devices; GetMapMseDeviceInfo() local 214 std::vector<BluetoothRemoteDevice> devices; GetPbapPseDeviceInfo() local 221 std::vector<BluetoothRemoteDevice> devices; GetHidHostDeviceInfo() local 228 std::vector<BluetoothRemoteDevice> devices; GetOppDeviceInfo() local 235 std::vector<BluetoothRemoteDevice> devices; GetPanDeviceInfo() local [all...] |
/third_party/backends/testsuite/sanei/ |
H A D | sanei_usb_test.c | 94 /** count detected devices 95 * count all detected devices and check it against expected value 107 if (devices[i].missing == 0 && devices[i].devname != NULL) in count_detected() 114 printf ("ERROR: %d detected devices, expected %d!\n", num, expected); in count_detected() 117 printf ("%d devices still detected.\n", num); in count_detected() 166 /* give unused devices a name so strcmp() won't crash. */ in test_store_device() 168 devices[i].devname = ""; in test_store_device() 171 /* there should be no more devices */ in test_store_device() 180 if (devices[ in test_store_device() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_p2p_sync_check_test.cpp | 182 std::vector<std::string> devices; in HWTEST_F() local 183 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F() 184 devices.push_back(g_deviceC->GetDeviceId()); in HWTEST_F() 205 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in HWTEST_F() 208 ASSERT_TRUE(result.size() == devices.size()); in HWTEST_F() 230 std::vector<std::string> devices; in HWTEST_F() local 231 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F() 232 devices.push_back(g_deviceC->GetDeviceId()); in HWTEST_F() 254 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in HWTEST_F() 257 ASSERT_TRUE(result.size() == devices in HWTEST_F() 300 std::vector<std::string> devices; HWTEST_F() local 345 std::vector<std::string> devices; HWTEST_F() local 380 std::vector<std::string> devices; HWTEST_F() local 427 std::vector<std::string> devices; HWTEST_F() local 465 std::vector<std::string> devices; HWTEST_F() local 503 std::vector<std::string> devices; HWTEST_F() local 527 std::vector<std::string> devices; HWTEST_F() local 717 std::vector<std::string> devices; HWTEST_F() local 769 std::vector<std::string> devices; HWTEST_F() local 821 std::vector<std::string> devices; HWTEST_F() local 1013 std::vector<std::string> devices; HWTEST_F() local 1122 PrepareEnv(vector<std::string> &devices, Key &key, Query &query) PrepareEnv() argument 1137 Sync(KvStoreNbDelegate *kvDelegatePtr, vector<std::string> &devices, const DBStatus &targetStatus) Sync() argument 1147 Sync(vector<std::string> &devices, const DBStatus &targetStatus) Sync() argument 1152 SyncWithQuery(vector<std::string> &devices, const Query &query, const SyncMode &mode, const DBStatus &targetStatus) SyncWithQuery() argument 1163 SyncWithQuery(vector<std::string> &devices, const Query &query, const DBStatus &targetStatus) SyncWithQuery() argument 1168 SyncWithDeviceOffline(vector<std::string> &devices, Key &key, const Query &query) SyncWithDeviceOffline() argument 1186 PrepareWaterMarkError(std::vector<std::string> &devices, Query &query) PrepareWaterMarkError() argument 1253 std::vector<std::string> devices; HWTEST_F() local 1302 std::vector<std::string> devices; HWTEST_F() local 1353 std::vector<std::string> devices; HWTEST_F() local 1373 std::vector<std::string> devices; HWTEST_F() local 1404 std::vector<std::string> devices; TestDifferentSyncMode() local 1477 PrepareForSyncMergeTest(std::vector<std::string> &devices, int &sendRequestCount) PrepareForSyncMergeTest() argument 1521 std::vector<std::string> devices; HWTEST_F() local 1573 std::vector<std::string> devices; HWTEST_F() local 1625 std::vector<std::string> devices; HWTEST_F() local 1684 PrePareForQuerySyncMergeTest(bool isQuerySync, std::vector<std::string> &devices, Key &key, Value &value, int &sendRequestCount) PrePareForQuerySyncMergeTest() argument 1745 std::vector<std::string> devices; HWTEST_F() local 1784 std::vector<std::string> devices; HWTEST_F() local 1838 std::vector<std::string> devices; HWTEST_F() local 1885 std::vector<std::string> devices; HWTEST_F() local 1926 std::vector<std::string> devices; HWTEST_F() local 1986 std::vector<std::string> devices; HWTEST_F() local 2055 std::vector<std::string> devices; HWTEST_F() local 2095 std::vector<std::string> devices; HWTEST_F() local 2149 std::vector<std::string> devices; HWTEST_F() local 2186 std::vector<std::string> devices; HWTEST_F() local 2237 std::vector<std::string> devices; HWTEST_F() local 2269 std::vector<std::string> devices; HWTEST_F() local 2345 std::vector<std::string> devices; HWTEST_F() local 2428 std::vector<std::string> devices; HWTEST_F() local [all...] |
H A D | distributeddb_single_ver_p2p_simple_sync_test.cpp | 202 std::vector<std::string> devices; in HWTEST_F() local 203 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F() 204 devices.push_back(g_deviceC->GetDeviceId()); in HWTEST_F() 223 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in HWTEST_F() 231 ASSERT_TRUE(result.size() == devices.size()); in HWTEST_F() 253 std::vector<std::string> devices; in HWTEST_F() local 254 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F() 255 devices.push_back(g_deviceC->GetDeviceId()); in HWTEST_F() 278 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in HWTEST_F() 284 ASSERT_TRUE(result.size() == devices in HWTEST_F() 306 std::vector<std::string> devices; HWTEST_F() local 357 std::vector<std::string> devices; HWTEST_F() local 414 std::vector<std::string> devices; HWTEST_F() local 514 std::vector<std::string> devices; HWTEST_F() local 545 std::vector<std::string> devices; HWTEST_F() local 620 std::vector<std::string> devices; HWTEST_F() local 697 std::vector<std::string> devices; HWTEST_F() local 775 std::vector<std::string> devices; HWTEST_F() local 801 std::vector<std::string> devices; HWTEST_F() local 851 std::vector<std::string> devices; HWTEST_F() local 932 std::vector<std::string> devices; HWTEST_F() local 976 std::vector<std::string> devices; HWTEST_F() local 1020 std::vector<std::string> devices; HWTEST_F() local 1058 std::vector<std::string> devices; HWTEST_F() local 1096 std::vector<std::string> devices; HWTEST_F() local 1134 std::vector<std::string> devices; HWTEST_F() local 1193 std::vector<std::string> devices; HWTEST_F() local 1235 std::vector<std::string> devices; HWTEST_F() local 1362 std::vector<std::string> devices; HWTEST_F() local 1471 std::vector<std::string> devices; HWTEST_F() local 1513 std::vector<std::string> devices; HWTEST_F() local 1604 std::vector<std::string> devices; HWTEST_F() local 1634 std::vector<std::string> devices; HWTEST_F() local 1744 std::vector<std::string> devices; HWTEST_F() local [all...] |
H A D | distributeddb_single_ver_p2p_permission_sync_test.cpp | 174 std::vector<std::string> devices; in HWTEST_F() local 175 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F() 176 devices.push_back(g_deviceC->GetDeviceId()); in HWTEST_F() 191 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in HWTEST_F() 198 ASSERT_TRUE(result.size() == devices.size()); in HWTEST_F() 239 std::vector<std::string> devices; in HWTEST_F() local 240 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F() 241 devices.push_back(g_deviceC->GetDeviceId()); in HWTEST_F() 263 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PULL_ONLY, result); in HWTEST_F() 270 ASSERT_TRUE(result.size() == devices in HWTEST_F() 307 std::vector<std::string> devices; HWTEST_F() local 396 std::vector<std::string> devices; HWTEST_F() local 460 std::vector<std::string> devices; HWTEST_F() local 528 std::vector<std::string> devices; HWTEST_F() local 596 std::vector<std::string> devices; HWTEST_F() local 654 std::vector<std::string> devices; HWTEST_F() local 735 std::vector<std::string> devices = {g_deviceB->GetDeviceId()}; HWTEST_F() local 809 std::vector<std::string> devices; HWTEST_F() local [all...] |
H A D | distributeddb_single_ver_p2p_complex_sync_test.cpp | 77 std::vector<std::string> devices; in PullSyncTest() local 78 devices.push_back(g_deviceB->GetDeviceId()); in PullSyncTest() 87 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PULL_ONLY, result); in PullSyncTest() 90 ASSERT_TRUE(result.size() == devices.size()); in PullSyncTest() 293 std::vector<std::string> devices; in HWTEST_F() local 294 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F() 314 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in HWTEST_F() 316 ASSERT_TRUE(result.size() == devices.size()); in HWTEST_F() 330 status = g_tool.SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in HWTEST_F() 332 ASSERT_TRUE(result.size() == devices in HWTEST_F() 362 std::vector<std::string> devices; HWTEST_F() local 424 std::vector<std::string> devices; HWTEST_F() local 559 std::vector<std::string> devices; HWTEST_F() local 672 std::vector<std::string> devices; HWTEST_F() local 688 std::vector<std::string> devices; HWTEST_F() local 761 std::vector<std::string> devices; HWTEST_F() local 1109 std::vector<std::string> devices; HWTEST_F() local 1153 std::vector<std::string> devices; HWTEST_F() local 1207 std::vector<std::string> devices; HWTEST_F() local 1251 std::vector<std::string> devices; HWTEST_F() local 1316 std::vector<std::string> devices; HWTEST_F() local 1427 std::vector<std::string> devices; HWTEST_F() local 1557 std::vector<std::string> devices = {g_deviceB->GetDeviceId()}; HWTEST_F() local 1627 std::vector<std::string> devices; HWTEST_F() local 1725 std::vector<std::string> devices; HWTEST_F() local 1871 std::vector<std::string> devices = { g_deviceB->GetDeviceId() }; HWTEST_F() local 2001 std::vector<std::string> devices = { g_deviceB->GetDeviceId() }; HWTEST_F() local 2048 std::vector<std::string> devices = { g_deviceB->GetDeviceId() }; HWTEST_F() local 2100 std::vector<std::string> devices = { g_deviceB->GetDeviceId() }; HWTEST_F() local 2179 std::vector<std::string> devices = { g_deviceB->GetDeviceId() }; HWTEST_F() local [all...] |
/third_party/backends/sanei/ |
H A D | sanei_usb.c | 178 * total number of devices that can be found at the same time */ 183 static device_list_type devices[MAX_DEVICES]; variable 186 * total number of detected devices in devices array */ 366 as the end of controller devices */ in kernel_get_vendor_product() 377 break; /* Treat this as the end of devices for this controller */ in kernel_get_vendor_product() 409 /* if there are already some devices present, check against in store_device() 413 if (devices[i].method == device.method in store_device() 414 && !strcmp (devices[i].devname, device.devname) in store_device() 415 && devices[ in store_device() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_kv_syncer.cpp | 56 std::vector<std::string> devices; in EnableAutoSync() local 57 GetOnlineDevices(devices); in EnableAutoSync() 58 if (devices.empty()) { in EnableAutoSync() 59 LOGI("[Syncer] EnableAutoSync no online devices"); in EnableAutoSync() 62 int errCode = Sync(devices, SyncModeType::AUTO_PUSH, nullptr, nullptr, false); in EnableAutoSync() 86 std::vector<std::string> devices; in LocalDataChanged() local 87 GetOnlineDevices(devices); in LocalDataChanged() 88 if (devices.empty()) { in LocalDataChanged() 89 LOGI("[Syncer] LocalDataChanged no online standard devices, Label=%s", label_.c_str()); in LocalDataChanged() 100 int errCode = RuntimeContext::GetInstance()->ScheduleTask([this, devices, engin in LocalDataChanged() 225 TryFullSync(const std::vector<std::string> &devices) TryFullSync() argument 243 TriggerSubQuerySync(const std::vector<std::string> &devices) TriggerSubQuerySync() argument [all...] |
/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/include/ |
H A D | cpuhotplug_hotplug.sh | 72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 78 $TIME echo 1 > /sys/devices/system/cpu/cpu${CPU}/online 93 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 99 $TIME echo 0 > /sys/devices/system/cpu/cpu${CPU}/online 112 [ -d /sys/devices/system/cpu/cpu0 ] || return -1 113 NUM=`ls /sys/devices/system/cpu/ \ 128 [ -d /sys/devices/system/cpu ] || return 1 129 (cd /sys/devices/system/cpu; ls -d cpu[0-9]*) 139 local present_mask="/sys/devices/system/cpu/present" 157 if [ -e /sys/devices/syste [all...] |
/third_party/vk-gl-cts/scripts/android/ |
H A D | install_apk.py | 52 proc = subprocess.Popen([adbPath, 'devices', '-l'], stdout=subprocess.PIPE) 56 raise Exception("adb devices -l failed, got %d" % proc.returncode) 59 devices = [] 69 devices.append(Device(m.group(1), m.group(2), m.group(3), m.group(4))) 71 return devices 145 def installToDevices (devices, doParallel, adbPath, packageName, apkPath): 146 padLen = max([len(device.model) for device in devices])+1 148 parallelApply(installToDevice, [(device, adbPath, packageName, apkPath, ("(%s):%s" % (device.model, ' ' * (padLen - len(device.model))))) for device in devices]); 150 serialApply(installToDevice, [(device, adbPath, packageName, apkPath) for device in devices]); 153 devices 227 devices = getDevices(args.adbPath) global() variable 240 devices = getDevices(args.adbPath) global() variable 242 devices = [dev for dev in devices if dev.serial in args.serial] global() variable [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | CLProgram.cpp | 24 DevicePtrs devices; in build() local 25 devices.reserve(numDevices); in build() 28 devices.emplace_back(&(*deviceList++)->cast<Device>()); in build() 38 return mImpl->build(devices, options, notify); in build() 50 DevicePtrs devices; in compile() local 51 devices.reserve(numDevices); in compile() 54 devices.emplace_back(&(*deviceList++)->cast<Device>()); in compile() 70 return mImpl->compile(devices, options, programs, headerIncludeNames, notify); in compile() 75 std::vector<cl_device_id> devices; in getInfo() local 99 devices in getInfo() 223 Program(Context &context, DevicePtrs &&devices, const size_t *lengths, const unsigned char **binaries, cl_int *binaryStatus, cl_int &errorCode) Program() argument 237 Program(Context &context, DevicePtrs &&devices, const char *kernelNames, cl_int &errorCode) Program() argument 245 Program(Context &context, const DevicePtrs &devices, const char *options, const cl::ProgramPtrs &inputPrograms, ProgramCB pfnNotify, void *userData, cl_int &errorCode) Program() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_relational_sync_test.cpp | 225 std::vector<std::string> devices = {DEVICE_A}; in HWTEST_F() local 227 int errCode = delegate->Sync(devices, SyncMode::SYNC_MODE_PUSH_ONLY, query, in HWTEST_F() 228 [&devices](const std::map<std::string, std::vector<TableStatus>> &devicesMap) { in HWTEST_F() 229 EXPECT_EQ(devicesMap.size(), devices.size()); in HWTEST_F() 244 std::vector<std::string> devices = {DEVICE_A}; in HWTEST_F() local 246 int errCode = delegate->Sync(devices, SyncMode::SYNC_MODE_PUSH_ONLY, query, in HWTEST_F() 247 [&devices](const std::map<std::string, std::vector<TableStatus>> &devicesMap) { in HWTEST_F() 248 EXPECT_EQ(devicesMap.size(), devices.size()); in HWTEST_F() 263 std::vector<std::string> devices = {DEVICE_A}; in HWTEST_F() local 265 int errCode = delegate->Sync(devices, SyncMod in HWTEST_F() 282 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 304 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 323 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 348 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 378 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 430 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 463 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 620 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 646 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 672 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 698 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 724 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 784 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 823 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 872 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 918 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 1011 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local 1085 std::vector<std::string> devices = {DEVICE_A}; HWTEST_F() local 1117 std::vector<std::string> devices = {DEVICE_B}; HWTEST_F() local [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | pulse_audio_common.c | 54 AVDeviceInfoList *devices; member 158 if ((ret = av_dynarray_add_nofree(&info->devices->devices, in pulse_add_detected_device() 159 &info->devices->nb_devices, new_device)) < 0) { in pulse_add_detected_device() 197 int ff_pulse_audio_get_devices(AVDeviceInfoList *devices, const char *server, int output) in ff_pulse_audio_get_devices() argument 207 dev_list.devices = devices; in ff_pulse_audio_get_devices() 208 if (!devices) in ff_pulse_audio_get_devices() 210 devices->nb_devices = 0; in ff_pulse_audio_get_devices() 211 devices in ff_pulse_audio_get_devices() [all...] |
/base/startup/init/services/init/standard/ |
H A D | init_firststage.c | 57 char **devices = (char **)calloc(num, sizeof(char *));
in GetRequiredDevices() local 58 INIT_ERROR_CHECK(devices != NULL, return NULL, "Failed calloc err=%d", errno);
in GetRequiredDevices() 64 devices[i] = strdup(item->deviceName);
in GetRequiredDevices() 65 INIT_ERROR_CHECK(devices[i] != NULL, FreeStringVector(devices, num); return NULL,
in GetRequiredDevices() 80 return devices;
in GetRequiredDevices() 100 char **devices = (fstab != NULL) ? GetRequiredDevices(*fstab, &requiredNum) : NULL;
in MountRequiredPartitions() local 101 if (devices != NULL && requiredNum > 0) {
in MountRequiredPartitions() 102 int ret = StartUeventd(devices, requiredNum);
in MountRequiredPartitions() 106 FreeStringVector(devices, requiredNu in MountRequiredPartitions() [all...] |
/third_party/mesa3d/src/tool/pps/ |
H A D | pps_device.cc | 24 drmDevicePtr devices[MAX_DRM_DEVICES] = {}; in device_count() local 25 int num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in device_count() 26 drmFreeDevices(devices, num_devices); in device_count() 69 drmDevicePtr devices[MAX_DRM_DEVICES] = {}; in create_all() local 70 int num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in create_all() 76 drmDevicePtr device = devices[gpu_num]; in create_all() 87 drmFreeDevices(devices, num_devices); in create_all() 99 drmDevicePtr devices[MAX_DRM_DEVICES] = {}; in create() local 100 int num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in create() 103 drmDevicePtr device = devices[gpu_nu in create() [all...] |
/base/startup/init/ueventd/ |
H A D | ueventd.c | 175 static void HandleRequiredBlockDeviceNodes(const struct Uevent *uevent, char **devices, int num) in HandleRequiredBlockDeviceNodes() argument 179 if (strstr(devices[i], uevent->deviceName) != NULL) { in HandleRequiredBlockDeviceNodes() 180 INIT_LOGI("%s match with required partition %s success, now handle it", devices[i], uevent->deviceName); in HandleRequiredBlockDeviceNodes() 184 } else if (strstr(devices[i], uevent->partitionName) != NULL || in HandleRequiredBlockDeviceNodes() 200 static void HandleUeventRequired(const struct Uevent *uevent, char **devices, int num) in HandleUeventRequired() argument 202 INIT_ERROR_CHECK(devices != NULL && num > 0, return, "Fault parameters"); in HandleUeventRequired() 208 HandleRequiredBlockDeviceNodes(uevent, devices, num); in HandleUeventRequired() 290 void ProcessUevent(int sockFd, char **devices, int num) in ProcessUevent() argument 302 if (devices != NULL && num > 0) { in ProcessUevent() 303 HandleUeventRequired(&uevent, devices, nu in ProcessUevent() 310 DoTrigger(const char *ueventPath, int sockFd, char **devices, int num) DoTrigger() argument 337 Trigger(const char *path, int sockFd, char **devices, int num) Trigger() argument 377 RetriggerUevent(int sockFd, char **devices, int num) RetriggerUevent() argument [all...] |
/third_party/libdrm/tests/ |
H A D | drmdevice.c | 110 drmDevicePtr *devices; in main() local 118 printf("drmGetDevices2() has not found any devices (errno=%d)\n", in main() 125 devices = calloc(max_devices, sizeof(drmDevicePtr)); in main() 126 if (devices == NULL) { in main() 131 printf("--- Retrieving devices information (PCI device revision is ignored) ---\n"); in main() 132 ret = drmGetDevices2(0, devices, max_devices); in main() 135 free(devices); in main() 140 print_device_info(devices[i], i, false); in main() 143 if (devices[i]->available_nodes & 1 << j) { in main() 144 printf("--- Opening device node %s ---\n", devices[ in main() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/sync_fuzzer/ |
H A D | sync_fuzzer.cpp | 115 std::vector<std::string> devices; in NormalSyncPush() local 116 devices.push_back(g_deviceB->GetDeviceId()); in NormalSyncPush() 122 DistributedDBToolsTest::SyncTestWithQuery(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result, query); in NormalSyncPush() 124 DistributedDBToolsTest::SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PUSH_ONLY, result); in NormalSyncPush() 148 std::vector<std::string> devices; in NormalSyncPull() local 149 devices.push_back(g_deviceB->GetDeviceId()); in NormalSyncPull() 155 DistributedDBToolsTest::SyncTestWithQuery(g_kvDelegatePtr, devices, SYNC_MODE_PULL_ONLY, result, query); in NormalSyncPull() 157 DistributedDBToolsTest::SyncTest(g_kvDelegatePtr, devices, SYNC_MODE_PULL_ONLY, result); in NormalSyncPull() 171 std::vector<std::string> devices; in NormalSyncPushAndPull() local 172 devices in NormalSyncPushAndPull() 191 std::vector<std::string> devices; SubscribeOperation() local [all...] |
/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/ |
H A D | single_kvstore.h | 127 * Remove all the other devices data synced from remote if device is empty. 145 * @brief Sync store with other devices. 150 * @param devices Device list to sync. 152 * PUSH_PULL will firstly push all not-local store to listed devices, 157 virtual Status Sync(const std::vector<std::string> &devices, SyncMode mode, uint32_t delay) = 0; 160 * @brief Sync store with other devices only syncing the data which is satisfied with the condition. 165 * @param devices Device list to sync. 167 * PUSH_PULL will firstly push all not-local store to listed devices, 173 virtual Status Sync(const std::vector<std::string> &devices, SyncMode mode, const DataQuery &query, in Sync() argument 176 return Sync(devices, mod in Sync() 194 Sync(const std::vector<std::string> &devices, SyncMode mode, const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback, uint32_t delay) Sync() argument 203 Sync(const std::vector<std::string> &devices, SyncMode mode) Sync() argument 214 Sync(const std::vector<std::string> &devices, SyncMode mode, const DataQuery &query) Sync() argument [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuLibDrm.cpp | 94 "Failed to query number of DRM devices in system"); in getDevices() 105 TCU_FAIL("Failed to query list of DRM devices in system"); in getDevices() 111 const char* LibDrm::findDeviceNode (drmDevicePtr *devices, int count, deInt64 major, deInt64 minor) const in findDeviceNode() argument 117 if (!(devices[i]->available_nodes & (1 << j))) in findDeviceNode() 122 int res = stat(devices[i]->nodes[j], &statBuf); in findDeviceNode() 130 return devices[i]->nodes[j]; in findDeviceNode() 138 void LibDrm::freeDevices (drmDevicePtr *devices, int count) const in freeDevices() argument 140 pFreeDevices(devices, count); in freeDevices() 141 delete[] devices; in freeDevices() 190 int LibDrm::intGetDevices (drmDevicePtr devices[], in argument [all...] |
/third_party/mesa3d/src/vulkan/device-select-layer/ |
H A D | device_select_wayland.c | 99 int device_select_find_wayland_pci_default(struct device_pci_info *devices, uint32_t device_count) in device_select_find_wayland_pci_default() argument 126 if (devices[i].has_bus_info) { in device_select_find_wayland_pci_default() 127 if (info.dev_info->businfo.pci->domain == devices[i].bus_info.domain && in device_select_find_wayland_pci_default() 128 info.dev_info->businfo.pci->bus == devices[i].bus_info.bus && in device_select_find_wayland_pci_default() 129 info.dev_info->businfo.pci->dev == devices[i].bus_info.dev && in device_select_find_wayland_pci_default() 130 info.dev_info->businfo.pci->func == devices[i].bus_info.func) in device_select_find_wayland_pci_default() 133 if (info.dev_info->deviceinfo.pci->vendor_id == devices[i].dev_info.vendor_id && in device_select_find_wayland_pci_default() 134 info.dev_info->deviceinfo.pci->device_id == devices[i].dev_info.device_id) in device_select_find_wayland_pci_default()
|
H A D | device_select_x11.c | 63 int device_select_find_xcb_pci_default(struct device_pci_info *devices, uint32_t device_count) in device_select_find_xcb_pci_default() argument 103 if (devices[i].has_bus_info) { in device_select_find_xcb_pci_default() 104 if (xdev->businfo.pci->domain == devices[i].bus_info.domain && in device_select_find_xcb_pci_default() 105 xdev->businfo.pci->bus == devices[i].bus_info.bus && in device_select_find_xcb_pci_default() 106 xdev->businfo.pci->dev == devices[i].bus_info.dev && in device_select_find_xcb_pci_default() 107 xdev->businfo.pci->func == devices[i].bus_info.func) { in device_select_find_xcb_pci_default() 111 if (xdev->deviceinfo.pci->vendor_id == devices[i].dev_info.vendor_id && in device_select_find_xcb_pci_default() 112 xdev->deviceinfo.pci->device_id == devices[i].dev_info.device_id) in device_select_find_xcb_pci_default()
|
/third_party/libinput/tools/ |
H A D | libinput-list-kernel-devices.py | 41 devices = {} 49 devices[device.device_node] = name[1:-1] 54 for k in sorted(devices, key=versionsort): 55 print(f"{k}:\t{devices[k]}") 70 devices = [] 78 devices.append(HidDevice(name, driver, vendor, product, devpath)) 83 for hid in devices: 91 for hid in devices: 96 for d in devices: 106 parser = argparse.ArgumentParser(description="List kernel devices") [all...] |
/third_party/mesa3d/src/egl/main/ |
H A D | egldevice.c | 257 * software device, and physical devices are only exposed when libdrm is in _eglQueryDeviceStringEXT() 268 /* Physical devices are only exposed when libdrm is available. */ in _eglQueryDeviceStringEXT() 277 /* Do a fresh lookup for devices. 298 drmDevicePtr devices[64]; in _eglRefreshDeviceList() local 301 num_devs = drmGetDevices2(0, devices, ARRAY_SIZE(devices)); in _eglRefreshDeviceList() 303 if (!(devices[i]->available_nodes & (1 << DRM_NODE_RENDER))) in _eglRefreshDeviceList() 306 ret = _eglAddDRMDevice(devices[i], NULL); in _eglRefreshDeviceList() 310 drmFreeDevice(&devices[i]); in _eglRefreshDeviceList() 322 _EGLDevice **devices, in _eglQueryDevicesEXT() 321 _eglQueryDevicesEXT(EGLint max_devices, _EGLDevice **devices, EGLint *num_devices) _eglQueryDevicesEXT() argument [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | meta_data_manager_test.cpp | 74 * @tc.desc: devices is empty.
81 std::vector<std::string> devices;
in HWTEST_F() local 82 devices.emplace_back(EMPTY_DEVICE_ID);
in HWTEST_F() 84 auto result = MetaDataManager::GetInstance().Sync(devices, complete);
in HWTEST_F() 90 * @tc.desc: devices is invalid.
97 std::vector<std::string> devices;
in HWTEST_F() local 98 devices.emplace_back(INVALID_DEVICE_ID);
in HWTEST_F() 100 auto result = MetaDataManager::GetInstance().Sync(devices, complete);
in HWTEST_F()
|