/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/ |
H A D | custom_vibration_matcher.cpp | 66 MISC_HILOGI("waveId:%{public}d, intensity:%{public}f, frequency:%{public}f, duration:%{public}d",
in CustomVibrationMatcher() 67 it->waveId, it->intensity, it->frequency, it->duration);
in CustomVibrationMatcher() 78 float minFrequency = firstIt->frequency;
in NormalizedWaveInfo() 79 float maxFrequency = firstIt->frequency;
in NormalizedWaveInfo() 82 minFrequency = (minFrequency < it->frequency) ? minFrequency : it->frequency;
in NormalizedWaveInfo() 83 maxFrequency = (maxFrequency > it->frequency) ? maxFrequency : it->frequency;
in NormalizedWaveInfo() 89 MISC_HILOGE("The equal value of intensity or frequency is zero");
in NormalizedWaveInfo() 95 normalizedValue.push_back(static_cast<int32_t>((it->frequency in NormalizedWaveInfo() 280 int32_t frequency = Interpolation(curveRight[j - 1].time, curveRight[j].time, MergeCurve() local 289 int32_t frequency = Interpolation(curveLeft[i - 1].time, curveLeft[i].time, MergeCurve() local [all...] |
/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/ |
H A D | vibrator_pattern_js.cpp | 109 status = napi_has_named_property(env, element, "frequency", &exist); in ParsePoints() 112 CHKCF((napi_get_named_property(env, element, "frequency", &frequencyValue) == napi_ok), in ParsePoints() 113 "napi get frequency fail"); in ParsePoints() 115 "The points frequency parameter type is incorrect. napi_number expected"); in ParsePoints() 116 CHKCF(GetInt32Value(env, frequencyValue, point.frequency), "Get int number fail"); in ParsePoints() 118 point.frequency = 0; in ParsePoints() 140 status = napi_has_named_property(env, value, "frequency", &exist); in ParseOptions() 142 napi_value frequency = nullptr; in ParseOptions() local 143 CHKCF((napi_get_named_property(env, value, "frequency", &frequency) in ParseOptions() [all...] |
H A D | vibrator_js.cpp | 224 CHKCF(GetPropertyInt32(env, pointsElement, "frequency", point.frequency), "Get points frequency fail"); in ParseVibratorCurvePoint() 265 CHKCF(GetPropertyInt32(env, element, "frequency", event.frequency), "Get frequency fail"); in ParseVibrateEvent() 333 intensity:%{public}d, frequency:%{public}d, index:%{public}d, pointNum:%{public}d", in PrintVibratorPattern() 336 vibratorPattern.events[i].frequency, vibratorPattern.events[i].index, vibratorPattern.events[i].pointNum); in PrintVibratorPattern() 340 MISC_HILOGD("PrintVibratorPattern, time:%{public}d, intensity:%{public}d, frequency:%{public}d", in PrintVibratorPattern() 341 point[j].time, point[j].intensity, point[j].frequency); in PrintVibratorPattern() [all...] |
/base/sensors/sensor/vibration_convert/core/native/test/unittest/ |
H A D | generate_json_test.cpp | 60 .frequency = 100 in HWTEST_F() 67 .frequency = 100 in HWTEST_F() 74 .frequency = 80 in HWTEST_F() 81 .frequency = 55 in HWTEST_F()
|
/base/sensors/miscdevice/interfaces/inner_api/vibrator/ |
H A D | vibrator_agent_type.h | 155 int32_t frequency = -1;
member 168 int32_t frequency = -1;
member 204 int32_t frequency = 0; // from -100 to 100
member
|
/base/sensors/miscdevice/utils/common/src/ |
H A D | vibrator_infos.cpp | 38 "intensity:%{public}d, frequency:%{public}d, index:%{public}d, curve pointSize:%{public}d", in Dump() 40 events[i].frequency, events[i].index, pointSize); in Dump() 42 MISC_HILOGD("Curve point time:%{public}d, intensity:%{public}d, frequency:%{public}d", in Dump() 43 events[i].points[j].time, events[i].points[j].intensity, events[i].points[j].frequency); in Dump() 147 if (!parcel.WriteInt32(events[i].frequency)) { in Marshalling() 148 MISC_HILOGE("Write frequency failed"); in Marshalling() 168 if (!parcel.WriteInt32(events[i].points[j].frequency)) { in Marshalling() 169 MISC_HILOGE("Write points's frequency failed"); in Marshalling() 217 if (!data.ReadInt32(event.frequency)) { in Unmarshalling() 218 MISC_HILOGE("Read frequency faile in Unmarshalling() [all...] |
/base/sensors/miscdevice/utils/common/include/ |
H A D | vibrator_infos.h | 67 int32_t frequency = 0;
member 80 int32_t frequency = 0;
member 118 int32_t frequency = 0;
member 137 int32_t frequency = 0; // from -100 to 100
member
|
/base/sensors/sensor/vibration_convert/core/native/include/ |
H A D | vibration_convert_core.h | 63 int32_t frequency { 0 }; 65 ContinuousEvent(double time, double duration, int32_t intensity, int32_t frequency) : time(time), duration(duration), in ContinuousEvent() 66 intensity(intensity), frequency(frequency) {} in ContinuousEvent() 72 int32_t frequency { 0 }; 74 TransientEvent(double time, int32_t intensity, int32_t frequency) : time(time), intensity(intensity), in TransientEvent() 75 frequency(frequency) {} in TransientEvent()
|
H A D | vibration_convert_type.h | 40 * The parameters include the haptic basic event enumeration, start time, duration, intensity and frequency. 54 int32_t frequency { 0 }; 61 * frequency treshold and frequency range. 72 /**< Max frequency(Hz). */ 74 /**< Min frequency(Hz). */ 81 * Parameters include data sampling frequency, data sampling duration, raw data number. 86 /** sampling frequency. */
|
/base/sensors/miscdevice/utils/haptic_decoder/he_json/src/ |
H A D | he_vibrator_decoder.cpp | 186 event.frequency = cJSON_IsNumber(frequencyJSON) ? frequencyJSON->valueint : -1; in ParseEvent() 236 point.frequency = cJSON_IsNumber(frequencyJSON) ? frequencyJSON->valueint : -1; in ParseCurve() 237 if (point.frequency < CURVE_FREQUENCY_MIN || point.frequency > CURVE_FREQUENCY_MAX) { in ParseCurve() 238 MISC_HILOGE("The freq of curve point is invalid, freq:%{public}d", point.frequency); in ParseCurve() 281 if (event.frequency < TRANSIENT_FREQUENCY_MIN || event.frequency > TRANSIENT_FREQUENCY_MAX) { in CheckTransientParameters() 282 MISC_HILOGE("The event frequency is out of range, frequency:%{public}d", event.frequency); in CheckTransientParameters() [all...] |
/base/sensors/miscdevice/frameworks/js/napi/vibrator/include/ |
H A D | vibrator_pattern_js.h | 35 int32_t frequency = 0; member 43 int32_t frequency = 0; member
|
/base/sensors/miscdevice/frameworks/native/vibrator/ |
H A D | vibrator_agent.cpp | 128 g_vibratorParameter.frequency = 0; in PlayVibratorCustom() 225 g_vibratorParameter.frequency = 0; in PlayPattern() 247 (parameter.frequency < FREQUENCY_ADJUST_MIN) || (parameter.frequency > FREQUENCY_ADJUST_MAX)) { in SetParameters() 248 MISC_HILOGE("Input invalid, intensity parameter is %{public}d, frequency parameter is %{public}d", in SetParameters() 249 parameter.intensity, parameter.frequency); in SetParameters()
|
/base/sensors/miscdevice/frameworks/native/vibrator/src/ |
H A D | vibrator_service_client.cpp | 200 .frequency = parameter.frequency in PlayVibratorCustom() 405 event.frequency = pattern.events[i].frequency; in InitPlayPattern() 415 point.frequency = pattern.events[i].points[j].frequency; in InitPlayPattern() 423 .frequency = parameter.frequency in InitPlayPattern() 477 events[j].frequency = vibrateEvents[j].frequency; in ConvertVibratePackage() [all...] |
/base/location/interfaces/inner_api/include/ |
H A D | wifi_scan_info.h | 81 inline void SetFrequency(int frequency) in SetFrequency() argument 83 frequency_ = frequency; in SetFrequency()
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
H A D | miscdevice_service.cpp | 726 (parameter.frequency < FREQUENCY_ADJUST_MIN) || (parameter.frequency > FREQUENCY_ADJUST_MAX)) { in CheckVibratorParmeters() 727 MISC_HILOGE("Input invalid, intensity parameter is %{public}d, frequency parameter is %{public}d", in CheckVibratorParmeters() 728 parameter.intensity, parameter.frequency); in CheckVibratorParmeters() 736 if ((parameter.intensity == INTENSITY_ADJUST_MAX) && (parameter.frequency == 0)) { in MergeVibratorParmeters() 747 event.frequency = event.frequency + parameter.frequency; in MergeVibratorParmeters() 748 event.frequency = std::max(std::min(event.frequency, FREQUENCY_MA in MergeVibratorParmeters() [all...] |
/base/sensors/miscdevice/utils/haptic_decoder/oh_json/src/ |
H A D | default_vibrator_decoder.cpp | 194 event.frequency = parser.GetIntValue(frequencyItem);
in ParseEvent() 226 if (event.frequency < FREQUENCY_MIN || event.frequency > FREQUENCY_MAX) {
in CheckEventParameters() 227 MISC_HILOGE("The event frequency is out of range, frequency:%{public}d", event.frequency);
in CheckEventParameters() 264 point.frequency = parser.GetIntValue(frequencyItem);
in ParseCurve() 265 if ((point.frequency < CURVE_FREQUENCY_MIN) || (point.frequency > CURVE_FREQUENCY_MAX)) {
in ParseCurve() 266 MISC_HILOGE("The frequency o in ParseCurve() [all...] |
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/ |
H A D | perf_decorator.cpp | 45 void PerfDecorator::SetFrequency(int frequency)
in SetFrequency() argument 47 perfCollector_->SetFrequency(frequency);
in SetFrequency()
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/ |
H A D | hdi_connection.cpp | 205 hapticEvent.frequency = pattern.events[i].frequency; in PlayPattern() 213 hapticPoint.frequency = pattern.events[i].points[j].frequency; in PlayPattern()
|
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/include/ |
H A D | perf_decorator.h | 33 void SetFrequency(int frequency) override;
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/ |
H A D | perf_collector_impl.h | 34 void SetFrequency(int frequency) override;
|
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/utility/ |
H A D | perf_collector.h | 34 virtual void SetFrequency(int frequency) = 0;
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | perf_collector_impl.cpp | 62 void PerfCollectorImpl::SetFrequency(int frequency) in SetFrequency() argument 64 opt_.SetFrequency(frequency); in SetFrequency()
|
/base/sensors/miscdevice/test/fuzztest/vibrator/setparameters_fuzzer/ |
H A D | setparameters_fuzzer.cpp | 83 startPos += GetObject<int32_t>(data + startPos, size - startPos, parameter.frequency); in SetParametersFuzzTest()
|
/base/sensors/sensor/vibration_convert/core/native/src/ |
H A D | generate_vibration_json_file.cpp | 48 eventValue["Parameters"]["Frequency"] = event.frequency; in GenerateJsonFile()
|
H A D | vibration_convert_core.cpp | 443 eventData.frequency = transientEvents_[i].frequency; in StoreEventSequence() 458 eventData.frequency = transientEvents_[j].frequency; in StoreEventSequence() 466 eventData.frequency = continuousEvents_[i].frequency; in StoreEventSequence() 488 eventData.frequency = transientEvents_[i].frequency; in StoreEventBlock() 496 eventData.frequency = continuousEvents_[i].frequency; in StoreEventBlock() [all...] |