Home | History | Annotate | Download | only in main

Lines Matching full:record

103         tBTA_DI_RECORD record;
104 record.vendor = config_get_int(config, section_name, "vendorId", LMP_COMPID_BROADCOM);
105 record.vendor_id_source = config_get_int(config, section_name, "vendorIdSource", DI_VENDOR_ID_SOURCE_BTSIG);
106 record.product = config_get_int(config, section_name, "productId", 0);
107 record.version = config_get_int(config, section_name, "version", 0);
108 record.primary_record = config_get_bool(config, section_name, "primaryRecord", false);
109 strlcpy(record.client_executable_url, config_get_string(config, section_name, "clientExecutableURL", ""), sizeof(record.client_executable_url));
110 strlcpy(record.service_description, config_get_string(config, section_name, "serviceDescription", ""), sizeof(record.service_description));
111 strlcpy(record.documentation_url, config_get_string(config, section_name, "documentationURL", ""), sizeof(record.documentation_url));
113 if (record.vendor_id_source != DI_VENDOR_ID_SOURCE_BTSIG &&
114 record.vendor_id_source != DI_VENDOR_ID_SOURCE_USBIF) {
115 ALOGE("%s invalid vendor id source %d; ignoring DID record %d.", __func__, record.vendor_id_source, i);
119 ALOGD("Device ID record %d : %s", i, (record.primary_record ? "primary" : "not primary"));
120 ALOGD(" vendorId = %04x", record.vendor);
121 ALOGD(" vendorIdSource = %04x", record.vendor_id_source);
122 ALOGD(" product = %04x", record.product);
123 ALOGD(" version = %04x", record.version);
124 ALOGD(" clientExecutableURL = %s", record.client_executable_url);
125 ALOGD(" serviceDescription = %s", record.service_description);
126 ALOGD(" documentationURL = %s", record.documentation_url);
129 tBTA_STATUS status = BTA_DmSetLocalDiRecord(&record, &record_handle);
131 ALOGE("%s unable to set device ID record %d: error %d.", __func__, i, status);