// ------------------------------------------------------------------- void coplanar::show_results() { setProperty ("Z0", Z0, UNIT_RES, RES_OHM); setProperty ("Ang_l", ang_l, UNIT_ANG, ANG_RAD); setResult (0, er_eff, ""); setResult (1, atten_cond, "dB"); setResult (2, atten_dielectric, "dB"); double val = convertProperty ("T", skindepth, UNIT_LENGTH, LENGTH_M); setResult (3, val, getUnit ("T")); }
void BluetoothHALInterface::SetAdapterProperty( const BluetoothNamedValue& aProperty, BluetoothResultHandler* aRes) { int status; ConvertNamedValue convertProperty(aProperty); bt_property_t property; if (NS_SUCCEEDED(Convert(convertProperty, property))) { status = mInterface->set_adapter_property(&property); } else { status = BT_STATUS_PARM_INVALID; } if (aRes) { DispatchBluetoothHALResult(aRes, &BluetoothResultHandler::SetAdapterProperty, ConvertDefault(status, STATUS_FAIL)); } }