Home
last modified time | relevance | path

Searched refs:to_string (Results 1 – 25 of 234) sorted by relevance

12345678910

/hardware/interfaces/tests/foo/1.0/default/lib/include/hidl-test/
DFooHelper.h9 using std::to_string;
20 std::string to_string(const IFoo::StringMatrix5x3 &M);
21 std::string to_string(const IFoo::StringMatrix3x5 &M);
23 std::string to_string(const hidl_string &s);
26 std::string to_string(const T *elems, size_t n) { in to_string() function
33 out += to_string(elems[i]); in to_string()
41 std::string to_string(const hidl_array<T, SIZE> &array) { in to_string() function
42 return to_string(&array[0], SIZE); in to_string()
46 std::string to_string(const hidl_array<T, SIZE1, SIZE2> &array) { in to_string() function
60 out += to_string(array[i][j]); in to_string()
[all …]
/hardware/interfaces/gnss/1.0/default/
DGnssConfiguration.cpp39 std::string config = "SUPL_ES=" + std::to_string(enabled ? 1 : 0) + "\n"; in setSuplEs()
50 std::string config = "SUPL_VER=" + std::to_string(version) + "\n"; in setSuplVersion()
62 std::string config = "SUPL_MODE=" + std::to_string(mode) + "\n"; in setSuplMode()
73 std::string config = "LPP_PROFILE=" + std::to_string(lppProfile) + "\n"; in setLppProfile()
85 std::to_string(protocol) + "\n"; in setGlonassPositioningProtocol()
96 std::string config = "GPS_LOCK=" + std::to_string(lock) + "\n"; in setGpsLock()
107 std::string config = "USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=" + std::to_string(enabled ? 1 : 0) in setEmergencySuplPdn()
/hardware/interfaces/tests/foo/1.0/default/lib/
DFooHelper.cpp5 std::string to_string(const IFoo::StringMatrix5x3 &M) { in to_string() function
6 return to_string(M.s); in to_string()
9 std::string to_string(const IFoo::StringMatrix3x5 &M) { in to_string() function
10 return to_string(M.s); in to_string()
13 std::string to_string(const hidl_string &s) { in to_string() function
/hardware/google/pixel/vibrator/drv2624/tests/
Dtest-hwcal.cpp85 EXPECT_TRUE(SetProperty(prefix + "closeloop.threshold", std::to_string(expect))); in TEST_F()
150 EXPECT_TRUE(SetProperty(prefix + "long.frequency.shift", std::to_string(expect))); in TEST_F()
176 EXPECT_TRUE(SetProperty(prefix + "short.voltage", std::to_string(expect))); in TEST_F()
202 EXPECT_TRUE(SetProperty(prefix + "long.voltage", std::to_string(expect))); in TEST_F()
228 EXPECT_TRUE(SetProperty(prefix + "click.duration", std::to_string(expect))); in TEST_F()
254 EXPECT_TRUE(SetProperty(prefix + "tick.duration", std::to_string(expect))); in TEST_F()
291 EXPECT_TRUE(SetProperty(prefix + "heavyclick.duration", std::to_string(expect))); in TEST_F()
313 std::string expect = std::to_string(std::rand()) + " " + std::to_string(std::rand()) + " " + in TEST_F()
314 std::to_string(std::rand()); in TEST_F()
356 std::string autocalExpect = std::to_string(std::rand()) + " " + std::to_string(std::rand()) + in TEST_F()
[all …]
/hardware/google/pixel/vibrator/cs40l26/tests/
Dtest-hwcal.cpp75 std::string expect = std::to_string(randInput); in TEST_F()
76 std::string actual = std::to_string(~randInput); in TEST_F()
96 std::string expect = std::to_string(randInput); in TEST_F()
97 std::string actual = std::to_string(~randInput); in TEST_F()
117 std::string expect = std::to_string(randInput); in TEST_F()
118 std::string actual = std::to_string(~randInput); in TEST_F()
285 std::string f0Expect = std::to_string(randInput); in TEST_F()
286 std::string f0Actual = std::to_string(~randInput); in TEST_F()
288 std::string redcExpect = std::to_string(randInput); in TEST_F()
289 std::string redcActual = std::to_string(~randInput); in TEST_F()
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/
DMessageDefinition.cpp26 if (count(std::nullopt) == 0) return {std::to_string(nla_type)}; in operator []()
29 definition.name += std::to_string(nla_type); in operator []()
59 if (it == mMessageDetails.end()) return {std::to_string(msgtype), MessageGenre::Unknown}; in getMessageDetails()
67 return {std::to_string(msgtype), protocols::MessageGenre::Unknown}; in getMessageDetails()
/hardware/interfaces/neuralnetworks/1.0/vts/functional/
DValidateModel.cpp269 std::to_string(operation) + " is a reader"; in mutateExecutionOrderTest()
286 std::to_string(operation) + " is a writer"; in mutateExecutionOrderTest()
311 std::to_string(operand) + " set to value " + in mutateOperandTypeTest()
312 std::to_string(invalidOperandType); in mutateOperandTypeTest()
340 const std::string message = "mutateOperandRankTest: operand " + std::to_string(operand) + in mutateOperandRankTest()
341 " has rank of " + std::to_string(invalidRank); in mutateOperandRankTest()
369 const std::string message = "mutateOperandScaleTest: operand " + std::to_string(operand) + in mutateOperandScaleTest()
370 " has scale of " + std::to_string(invalidScale); in mutateOperandScaleTest()
400 std::to_string(operand) + " has zero point of " + in mutateOperandZeroPointTest()
401 std::to_string(invalidZeroPoint); in mutateOperandZeroPointTest()
[all …]
/hardware/interfaces/neuralnetworks/1.1/vts/functional/
DValidateModel.cpp289 std::to_string(operation) + " is a reader"; in mutateExecutionOrderTest()
306 std::to_string(operation) + " is a writer"; in mutateExecutionOrderTest()
331 std::to_string(operand) + " set to value " + in mutateOperandTypeTest()
332 std::to_string(invalidOperandType); in mutateOperandTypeTest()
362 const std::string message = "mutateOperandRankTest: operand " + std::to_string(operand) + in mutateOperandRankTest()
363 " has rank of " + std::to_string(invalidRank); in mutateOperandRankTest()
392 const std::string message = "mutateOperandScaleTest: operand " + std::to_string(operand) + in mutateOperandScaleTest()
393 " has scale of " + std::to_string(invalidScale); in mutateOperandScaleTest()
424 std::to_string(operand) + " has zero point of " + in mutateOperandZeroPointTest()
425 std::to_string(invalidZeroPoint); in mutateOperandZeroPointTest()
[all …]
/hardware/google/pixel/vibrator/cs40l25/bench/
Dbenchmark.cpp56 {"duration", std::to_string((uint32_t)std::rand() ?: 1)}, in SetUp()
57 {"device/asp_enable", std::to_string(0)}, in SetUp()
58 {"device/cp_trigger_duration", std::to_string(0)}, in SetUp()
59 {"device/num_waves", std::to_string(10)}, in SetUp()
60 {"device/vibe_state", std::to_string(0)}, in SetUp()
/hardware/google/pixel/health/
DBatteryMetricsLogger.cpp98 LOG(INFO) << "Uploading metrics at time " << std::to_string(time) << " w/ " in uploadMetrics()
99 << std::to_string(num_samples_) << " samples"; in uploadMetrics()
111 std::string log_min = "min-" + std::to_string(metric) + " "; in uploadMetrics()
112 std::string log_max = "max-" + std::to_string(metric) + " "; in uploadMetrics()
114 log_min += std::to_string(min_[metric][j]) + " "; in uploadMetrics()
115 log_max += std::to_string(max_[metric][j]) + " "; in uploadMetrics()
140 LOG(INFO) << "Recording a sample at time " << std::to_string(time); in recordSample()
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DValidateModel.cpp328 std::to_string(operation) + " is a reader"; in mutateExecutionOrderTest()
345 std::to_string(operation) + " is a writer"; in mutateExecutionOrderTest()
370 std::to_string(operand) + " set to value " + in mutateOperandTypeTest()
371 std::to_string(invalidOperandType); in mutateOperandTypeTest()
412 const std::string message = "mutateOperandRankTest: operand " + std::to_string(operand) + in mutateOperandRankTest()
413 " has rank of " + std::to_string(invalidRank); in mutateOperandRankTest()
450 const std::string message = "mutateOperandScaleTest: operand " + std::to_string(operand) + in mutateOperandScaleTest()
451 " has scale of " + std::to_string(invalidScale); in mutateOperandScaleTest()
493 std::to_string(operand) + " has zero point of " + in mutateOperandZeroPointTest()
494 std::to_string(invalidZeroPoint); in mutateOperandZeroPointTest()
[all …]
/hardware/google/pixel/health/test/
DTestBatteryDefender.cpp213 .WillByDefault(DoAll(SetArgPointee<1>(std::to_string(1000)), Return(true))); in initTo1000sConnectedCapacityReached()
219 DoAll(SetArgPointee<1>(std::to_string(DEFAULT_TIME_TO_ACTIVATE_SECONDS + 1)), in initToActive()
263 .WillOnce(DoAll(SetArgPointee<1>(std::to_string(DEFAULT_TIME_TO_ACTIVATE_SECONDS + 1)), in TEST_F()
278 .WillOnce(DoAll(SetArgPointee<1>(std::to_string(time_expected)), Return(true))); in TEST_F()
284 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(time_expected), in TEST_F()
298 .WillOnce(DoAll(SetArgPointee<1>(std::to_string(0)), Return(true))); in TEST_F()
330 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(DEFAULT_TIME_TO_ACTIVATE_SECONDS), in TEST_F()
336 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(DEFAULT_TIME_TO_ACTIVATE_SECONDS + in TEST_F()
357 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(70), kPathStartLevel, _)); in TEST_F()
358 EXPECT_CALL(*mock, WriteStringToFile(std::to_string(80), kPathStopLevel, _)); in TEST_F()
[all …]
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DValidateModel.cpp345 std::to_string(operation) + " is a reader"; in mutateExecutionOrderTest()
363 std::to_string(operation) + " is a writer"; in mutateExecutionOrderTest()
389 std::to_string(operand) + " set to value " + in mutateOperandTypeTest()
390 std::to_string(invalidOperandType); in mutateOperandTypeTest()
431 const std::string message = "mutateOperandRankTest: operand " + std::to_string(operand) + in mutateOperandRankTest()
432 " has rank of " + std::to_string(invalidRank); in mutateOperandRankTest()
471 const std::string message = "mutateOperandScaleTest: operand " + std::to_string(operand) + in mutateOperandScaleTest()
472 " has scale of " + std::to_string(invalidScale); in mutateOperandScaleTest()
515 std::to_string(operand) + " has zero point of " + in mutateOperandZeroPointTest()
516 std::to_string(invalidZeroPoint); in mutateOperandZeroPointTest()
[all …]
/hardware/libhardware_legacy/
Dpower_test.cpp52 std::string id = std::to_string(rand()); in TEST()
80 std::string id = std::to_string(i) + "/" + std::to_string(j); in TEST()
121 auto name = std::to_string(rand()); in TEST_F()
/hardware/interfaces/keymaster/4.0/vts/performance/
DBenchmark.cpp102 string to_string() const { return string(reinterpret_cast<const char*>(data()), size()); } in to_string() function in android::hardware::keymaster::V4_0::test::HidlBuf
282 output.append(hidl_output.to_string()); in ProcessMessage()
301 output.append(hidl_output.to_string()); in ProcessMessage()
488 ("Key generation error, " + std::to_string(keymaster->getError())).c_str()); in sign()
499 ("Error beginning sign, " + std::to_string(keymaster->getError())).c_str()); in sign()
504 state.SkipWithError(("Sign error, " + std::to_string(keymaster->getError())).c_str()); in sign()
514 ("Key generation error, " + std::to_string(keymaster->getError())).c_str()); in verify()
523 ("Error beginning sign, " + std::to_string(keymaster->getError())).c_str()); in verify()
529 state.SkipWithError(("Sign error, " + std::to_string(keymaster->getError())).c_str()); in verify()
538 ("Verify begin error, " + std::to_string(keymaster->getError())).c_str()); in verify()
[all …]
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DValidateModel.cpp382 std::to_string(operation) + " is a reader"; in mutateExecutionOrderTest()
400 std::to_string(operation) + " is a writer"; in mutateExecutionOrderTest()
424 std::to_string(operand) + " set to value " + in mutateOperandTypeTest()
425 std::to_string(invalidOperandType); in mutateOperandTypeTest()
466 const std::string message = "mutateOperandRankTest: operand " + std::to_string(operand) + in mutateOperandRankTest()
467 " has rank of " + std::to_string(invalidRank); in mutateOperandRankTest()
506 const std::string message = "mutateOperandScaleTest: operand " + std::to_string(operand) + in mutateOperandScaleTest()
507 " has scale of " + std::to_string(invalidScale); in mutateOperandScaleTest()
550 std::to_string(operand) + " has zero point of " + in mutateOperandZeroPointTest()
551 std::to_string(invalidZeroPoint); in mutateOperandZeroPointTest()
[all …]
/hardware/interfaces/boot/aidl/default/
DBootControl.cpp99 INVALID_SLOT, (std::string("Invalid slot ") + std::to_string(in_slot)).c_str()); in isSlotBootable()
108 INVALID_SLOT, (std::string("Invalid slot ") + std::to_string(in_slot)).c_str()); in isSlotMarkedSuccessful()
125 INVALID_SLOT, (std::string("Invalid slot ") + std::to_string(in_slot)).c_str()); in setActiveBootSlot()
137 INVALID_SLOT, (std::string("Invalid slot ") + std::to_string(in_slot)).c_str()); in setSlotAsUnbootable()
/hardware/interfaces/security/keymint/aidl/vts/performance/
DKeyMintBenchmark.cpp592 state.SkipWithError(("Skipped for STRONGBOX: Keysize: " + std::to_string(keySize) + in keygen()
602 ("Key generation error, " + std::to_string(keymintTest->getError())).c_str()); in keygen()
637 state.SkipWithError(("Skipped for STRONGBOX: Keysize: " + std::to_string(keySize) + in sign()
654 ("Key generation error, " + std::to_string(keymintTest->getError())).c_str()); in sign()
667 ("Error beginning sign, " + std::to_string(keymintTest->getError())).c_str()); in sign()
673 state.SkipWithError(("Sign error, " + std::to_string(keymintTest->getError())).c_str()); in sign()
683 state.SkipWithError(("Skipped for STRONGBOX: Keysize: " + std::to_string(keySize) + in verify()
700 ("Key generation error, " + std::to_string(keymintTest->getError())).c_str()); in verify()
709 ("Error beginning sign, " + std::to_string(keymintTest->getError())).c_str()); in verify()
714 state.SkipWithError(("Sign error, " + std::to_string(keymintTest->getError())).c_str()); in verify()
[all …]
/hardware/google/camera/common/hal/aidl_service/
Daidl_service.cc67 std::to_string(++start_count).c_str()); in main()
69 std::to_string(kHalManifestBuildNumber).c_str()); in main()
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/src/
DPrefixParser.cpp167 mLastErr = "Failed to populate IPv4 Mask(" + std::to_string(mask) in add()
171 mLastErr = "Failed to populate IPv6 Mask(" + std::to_string(mask) in add()
369 mLastErr = "Failed parse subnet mask(" + std::to_string(mask) + ")"; in isMaskValid()
372 mLastErr = "Subnet mask cannot be 0(" + std::to_string(mask) + ")"; in isMaskValid()
376 + std::to_string(mask) + ")"; in isMaskValid()
380 + std::to_string(mask) + ")"; in isMaskValid()
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/src/
DPrefixParser.cpp173 mLastErr = "Failed to populate IPv4 Mask(" + std::to_string(mask) in add()
177 mLastErr = "Failed to populate IPv6 Mask(" + std::to_string(mask) in add()
375 mLastErr = "Failed parse subnet mask(" + std::to_string(mask) + ")"; in isMaskValid()
378 mLastErr = "Subnet mask cannot be 0(" + std::to_string(mask) + ")"; in isMaskValid()
382 + std::to_string(mask) + ")"; in isMaskValid()
386 + std::to_string(mask) + ")"; in isMaskValid()
/hardware/interfaces/health/storage/test_common/include/health-storage-test/
Dcommon.h34 std::string to_string(std::chrono::duration<R, std::milli> time) { in to_string() function
35 return std::to_string(time.count()) + "ms"; in to_string()
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/generic/
DUnknown.cpp22 : GenericMessageBase(msgtype, "Unknown(" + std::to_string(msgtype) + ")") {} in Unknown()
/hardware/qcom/sm7250/display/sdm/libs/utils/
Dfence.cpp95 std::string name = "merged[" + to_string(fd1) + ", " + to_string(fd2) + "]"; in Merge()
142 return std::to_string(Fence::Get(fence)); in GetStr()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DInvalidDevice.cpp148 "Invalid deadline " + std::to_string(deadline)); in prepareModel()
153 "Invalid modelCache, size = " + std::to_string(modelCache.size())); in prepareModel()
158 "Invalid modelCache, size = " + std::to_string(dataCache.size())); in prepareModel()
164 "Invalid cache token, size = " + std::to_string(IDevice::BYTE_SIZE_OF_CACHE_TOKEN)); in prepareModel()
188 "Invalid token for compilation hints: " + std::to_string(hint.token)); in prepareModelWithConfig()

12345678910