/base/sensors/miscdevice/test/fuzztest/vibrator/preprocess_fuzzer/ |
H A D | preprocess_fuzzer.cpp | 77 size_t startPos = 0; in PreProcessFuzzTest() local 78 startPos += GetObject<int32_t>(data + startPos, size - startPos, fileDescription.fd); in PreProcessFuzzTest() 79 startPos += GetObject<int64_t>(data + startPos, size - startPos, fileDescription.offset); in PreProcessFuzzTest() 80 startPos += GetObject<int64_t>(data + startPos, size - startPos, fileDescriptio in PreProcessFuzzTest() [all...] |
/base/sensors/miscdevice/test/fuzztest/light/startlight_fuzzer/ |
H A D | startlight_fuzzer.cpp | 38 size_t startPos = 0; in StartLightFuzzTest() local 40 startPos += GetObject<int32_t>(lightId, data + startPos, size - startPos); in StartLightFuzzTest() 42 startPos += GetObject<LightColor>(color, data + startPos, size - startPos); in StartLightFuzzTest() 44 GetObject<LightAnimation>(animation, data + startPos, size - startPos); in StartLightFuzzTest()
|
/base/sensors/miscdevice/test/fuzztest/vibrator/playvibratorcustom_fuzzer/ |
H A D | playvibratorcustom_fuzzer.cpp | 47 size_t startPos = 0; in PlayVibratorCustomFuzzTest() local 49 startPos += GetObject<int32_t>(data + startPos, size - startPos, fd); in PlayVibratorCustomFuzzTest() 51 startPos += GetObject<int64_t>(data + startPos, size - startPos, offset); in PlayVibratorCustomFuzzTest() 53 GetObject<int64_t>(data + startPos, size - startPos, length); in PlayVibratorCustomFuzzTest()
|
/base/sensors/sensor/test/fuzztest/services/service/reportsensorsysevent_fuzzer/ |
H A D | reportsensorsysevent_fuzzer.cpp | 80 size_t startPos = 0; in ReportSensorSysEventFuzzTest() local 82 startPos += GetObject<int32_t>(sensorId, data + startPos, size - startPos); in ReportSensorSysEventFuzzTest() 84 startPos += GetObject<bool>(enable, data + startPos, size - startPos); in ReportSensorSysEventFuzzTest() 86 startPos += GetObject<int32_t>(pid, data + startPos, size - startPos); in ReportSensorSysEventFuzzTest() [all...] |
/base/sensors/sensor/test/fuzztest/services/sensorenablestub_fuzzer/ |
H A D | sensorenablestub_fuzzer.cpp | 83 size_t startPos = 0; in OnRemoteRequestFuzzTest() local 85 startPos += GetObject<int32_t>(sensorId, data + startPos, size - startPos); in OnRemoteRequestFuzzTest() 88 startPos += GetObject<int64_t>(samplingPeriod, data + startPos, size - startPos); in OnRemoteRequestFuzzTest() 91 GetObject<int64_t>(maxReportDelay, data + startPos, size - startPos); in OnRemoteRequestFuzzTest()
|
/base/sensors/miscdevice/test/fuzztest/vibrator/setparameters_fuzzer/ |
H A D | setparameters_fuzzer.cpp | 81 size_t startPos = 0; in SetParametersFuzzTest() local 82 startPos += GetObject<int32_t>(data + startPos, size - startPos, parameter.intensity); in SetParametersFuzzTest() 83 startPos += GetObject<int32_t>(data + startPos, size - startPos, parameter.frequency); in SetParametersFuzzTest() 84 GetObject<int32_t>(data + startPos, size - startPos, parameter.reserved); in SetParametersFuzzTest()
|
/base/sensors/miscdevice/test/fuzztest/vibrator/playpattern_fuzzer/ |
H A D | playpattern_fuzzer.cpp | 74 size_t startPos = 0; in PlayPatternFuzzTest() local 75 startPos += GetObject<int32_t>(data + startPos, size - startPos, vibratorPattern.time); in PlayPatternFuzzTest() 76 startPos += GetObject<int32_t>(data + startPos, size - startPos, vibratorPattern.eventNum); in PlayPatternFuzzTest() 77 GetObject<int32_t>(data + startPos, size - startPos, vibratorPattern.patternDuration); in PlayPatternFuzzTest()
|
/base/sensors/miscdevice/test/fuzztest/vibrator/freevibratorpackage_fuzzer/ |
H A D | freevibratorpackage_fuzzer.cpp | 76 size_t startPos = 0;
in FreeVibratorPackageFuzzTest() local 77 startPos += GetObject<int32_t>(data + startPos, size - startPos, package.patternNum);
in FreeVibratorPackageFuzzTest() 78 GetObject<int32_t>(data + startPos, size - startPos, package.packageDuration);
in FreeVibratorPackageFuzzTest()
|
/base/sensors/sensor/test/fuzztest/services/service/reportactiveinfo_fuzzer/ |
H A D | reportactiveinfo_fuzzer.cpp | 80 size_t startPos = 0; in ReportActiveInfoFuzzTest() local 82 startPos += GetObject<int32_t>(sensorId, data + startPos, size - startPos); in ReportActiveInfoFuzzTest() 84 startPos += GetObject<int32_t>(pid, data + startPos, size - startPos); in ReportActiveInfoFuzzTest()
|
/base/sensors/miscdevice/test/fuzztest/vibrator/issupporteffect_fuzzer/ |
H A D | issupporteffect_fuzzer.cpp | 49 size_t startPos = 0; in IsSupportEffectFuzzTest() local 53 startPos += GetObject<char>(data + startPos, size - startPos, effectId[i]); in IsSupportEffectFuzzTest()
|
/base/update/updater/services/ui/view/ |
H A D | view_api.cpp | 72 std::size_t startPos = 1uL; in StrToColor() local 73 auto getNextField = [&startPos, &hexColor] () { in StrToColor() 76 int reset = Utils::String2Int<int>(hexColor.substr(startPos, width)); in StrToColor() 81 uint8_t ret = (startPos > hexColor.size()) ? 0 : static_cast<uint8_t>(reset); in StrToColor() 82 startPos += width; in StrToColor()
|
/base/sensors/miscdevice/test/fuzztest/light/stoplight_fuzzer/ |
H A D | stoplight_fuzzer.cpp | 38 size_t startPos = 0; in StopLightuzzTest() local 40 GetObject<int32_t>(lightId, data + startPos, size - startPos); in StopLightuzzTest()
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | common_util.cpp | 85 auto startPos = fileName.find(UNDERLINE);
in GetFileNameNum() local 86 if (startPos == std::string::npos) {
in GetFileNameNum() 93 if (endPos <= startPos + 1) {
in GetFileNameNum() 96 return StringUtil::StrToInt(fileName.substr(startPos + 1, endPos - startPos - 1));
in GetFileNameNum() 121 auto startPos = files.back().find(timeFormat);
in CreateExportFile() local 122 if (startPos != std::string::npos) {
in CreateExportFile() 123 int fileNameNum = GetFileNameNum(files.back().substr(startPos), ext); // yyyymmddHHMMSS_1.txt
in CreateExportFile()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
H A D | distributed_preferences_test.cpp | 136 int32_t startPos = 0; in HWTEST_F() local 139 EXPECT_EQ(distributedPreferences_->ResolveDistributedBundleEnable(key, startPos, value), false); in HWTEST_F() 149 int32_t startPos = 1; in HWTEST_F() local 152 EXPECT_EQ(distributedPreferences_->ResolveDistributedBundleEnable(key, startPos, value), false); in HWTEST_F() 162 int32_t startPos = 1; in HWTEST_F() local 165 EXPECT_EQ(distributedPreferences_->ResolveDistributedBundleEnable(key, startPos, value), true); in HWTEST_F() 175 int32_t startPos = 1; in HWTEST_F() local 178 EXPECT_EQ(distributedPreferences_->ResolveSyncWithoutAppEnable(key, startPos, value), true); in HWTEST_F()
|
/base/sensors/miscdevice/test/fuzztest/vibrator/playprimitiveeffect_fuzzer/ |
H A D | playprimitiveeffect_fuzzer.cpp | 79 size_t startPos = 0;
in PlayPrimitiveEffectFuzzTest() local 83 startPos += GetObject<char>(data + startPos, size - startPos, effectId[i]);
in PlayPrimitiveEffectFuzzTest()
|
/base/telephony/core_service/utils/codec/src/ |
H A D | request_apdu_build.cpp | 57 int32_t startPos = 0; in BuildStoreData() local 66 std::string data = cmdHex.substr(startPos, cmdLen); in BuildStoreData() 70 startPos += cmdLen; in BuildStoreData() 73 std::string lastData = cmdHex.substr(startPos); in BuildStoreData()
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | hiview_db_util.cpp | 64 size_t startPos = dbFileName.find("_");
in GetDateFromDbFile() local 65 if (startPos == std::string::npos) {
in GetDateFromDbFile() 72 return startPos < endPos ? dbFileName.substr(startPos + 1, endPos - startPos - 1) : "";
in GetDateFromDbFile()
|
/base/hiviewdfx/hiview/plugins/unified_collector/task/ |
H A D | cpu_perf_dump.cpp | 135 auto startPos = fileName.find_last_of('-'); in GetTimestamp() local 136 if (startPos == std::string::npos) { in GetTimestamp() 143 if (endPos <= startPos + 1) { in GetTimestamp() 146 return fileName.substr(startPos + 1, endPos - startPos - 1); in GetTimestamp()
|
/base/sensors/sensor/test/fuzztest/interfaces/sensoragent_fuzzer/ |
H A D | sensoragent_fuzzer.cpp | 102 size_t startPos = 0; in SensorAgentFuzzTest() local 104 GetObject<int32_t>(sensorTypeId, data + startPos, size - startPos); in SensorAgentFuzzTest()
|
/base/update/updater/interfaces/kits/updaterkits/ |
H A D | updaterkits.cpp | 85 std::string::size_type startPos = pathInfo.find("update_package=");
in ParsePkgPath() local 87 if (startPos != pathInfo.npos && endPos != pathInfo.npos) {
in ParsePkgPath() 88 startPos += strlen("update_package=");
in ParsePkgPath() 90 if (endPos > startPos) {
in ParsePkgPath() 91 pkgPath = pathInfo.substr(startPos, endPos - startPos);
in ParsePkgPath()
|
/base/notification/distributed_notification_service/services/distributed/include/ |
H A D | distributed_preferences.h | 100 bool ResolveDistributedBundleEnable(const std::string &key, const int32_t startPos, const std::string &value); 101 bool ResolveSyncWithoutAppEnable(const std::string &key, const int32_t startPos, const std::string &value);
|
/base/global/i18n/frameworks/intl/src/ |
H A D | taboo.cpp | 202 size_t startPos = 0; in SplitValue() local 203 while (startPos < value.length()) { in SplitValue() 204 size_t endPos = value.find(tabooDataSplitor, startPos); in SplitValue() 206 collation.insert(value.substr(startPos)); in SplitValue() 209 collation.insert(value.substr(startPos, endPos - startPos)); in SplitValue() 211 startPos = endPos + 1; in SplitValue()
|
/base/powermgr/battery_manager/charger/src/ |
H A D | charger_animation.cpp | 59 std::size_t startPos = 1uL; in StrToColor() local 60 auto getNextField = [&startPos, &hexColor]() { in StrToColor() 62 uint8_t ret = (startPos > hexColor.size()) ? 0 : String2Int<uint8_t>(hexColor.substr(startPos, width)); in StrToColor() 63 startPos += width; in StrToColor()
|
/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_utils.cpp | 99 std::size_t startPos = file.find_last_of('/') + 1; in GetFileName() local 101 return file.substr(startPos, endPos - startPos); in GetFileName() 113 std::size_t startPos = 0; in GetHmpName() local 116 startPos = strlen(iter) + 1; in GetHmpName() 120 if (startPos == 0 || startPos >= endPos) { in GetHmpName() 124 return filePath.substr(startPos, endPos - startPos); in GetHmpName()
|
/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/ |
H A D | peak_finder.cpp | 319 int32_t PeakFinder::DeletePeaks(const std::vector<double> &envelope, int32_t startPos, int32_t endPos,
in DeletePeaks() argument 326 if (DetectValley(envelope, startPos, endPos, mountainPosition, valleyPoint) != Sensors::SUCCESS) {
in DeletePeaks() 334 for (int32_t peakIndex = startPos; peakIndex < (endPos + 1); peakIndex++) {
in DeletePeaks() 345 if (endPos <= startPos) {
in DeletePeaks() 381 int32_t PeakFinder::DetectValley(const std::vector<double> &envelope, int32_t startPos, int32_t endPos,
in DetectValley() argument 388 if (startPos < 0 || endPos < 0) {
in DetectValley() 389 SEN_HILOGE("startPos or endPos is wrong");
in DetectValley() 395 if ((startPos >= mountainPosition.firstPos.size()) || (endPos >= mountainPosition.lastPos.size())) {
in DetectValley() 399 int32_t valleyPos = mountainPosition.firstPos[startPos];
in DetectValley() 400 if (startPos > in DetectValley() [all...] |