Lines Matching refs:std

55   FuzzerLogRAII(const std::string& nnapiLogPath) {  in FuzzerLogRAII()
65 std::ofstream os; in FuzzerLogRAII()
91 std::vector<test_helper::TestOperationType> getOperationsInModel( in getOperationsInModel()
93 std::vector<test_helper::TestOperationType> result; in getOperationsInModel()
107 std::string deviceNameStr(deviceName); in findDeviceByName()
144 const std::string& deviceName, in RandomGraphGenerator()
145 const std::string& testName, uint32_t numOperations, in RandomGraphGenerator()
146 uint32_t dimensionRange, std::string nnapiLogPath, in RandomGraphGenerator()
147 std::string failedModelDumpPath) in RandomGraphGenerator()
183 std::optional<test_helper::TestModel> testModel = in runRandomModel()
205 std::unique_ptr<bool[]> opsSupportedFlags = in runRandomModel()
206 std::make_unique<bool[]>(mNumOperations); in runRandomModel()
207 std::fill(opsSupportedFlags.get(), in runRandomModel()
222 bool supported = std::any_of(opsSupportedFlags.get(), in runRandomModel()
229 fullySupportedModel = std::all_of( in runRandomModel()
234 std::vector<const ANeuralNetworksDevice*> devices; in runRandomModel()
267 std::vector<test_helper::TestBuffer> outputs; in runRandomModel()
284 const std::string mTestName;
288 std::random_device mSeedGenerator;
291 const std::string mDeviceName;
297 const std::string mFailedModelDumpPath;
299 std::optional<test_helper::TestModel> createRandomModel( in createRandomModel()
305 return std::nullopt; in createRandomModel()
312 std::vector<test_helper::TestHalVersion>* result) { in HalVersionsSupportedByDevice()
333 std::vector<test_helper::TestOperandType>* result) { in OperandTypesSupportedByDevice()
362 if (mDeviceName.find("dsp") != std::string::npos) { in OperandTypesSupportedByDevice()
386 std::vector<test_helper::TestOperationType>* result) { in OperationsSupportedByDevice()
392 std::set<test_helper::TestOperationType> supportedOps; in OperationsSupportedByDevice()
394 std::optional<test_helper::TestModel> testModel = in OperationsSupportedByDevice()
417 std::unique_ptr<bool[]> opsSupportedFlags = in OperationsSupportedByDevice()
418 std::make_unique<bool[]>(mNumOperations); in OperationsSupportedByDevice()
419 std::fill(opsSupportedFlags.get(), in OperationsSupportedByDevice()
430 std::vector<test_helper::TestOperationType> opsInModel = in OperationsSupportedByDevice()
439 std::copy(supportedOps.begin(), supportedOps.end(), in OperationsSupportedByDevice()
440 std::back_inserter(*result)); in OperationsSupportedByDevice()
461 std::ofstream os(mFailedModelDumpPath); in dumpModel()
468 std::pair<android::nn::wrapper::Result,
471 const std::vector<const ANeuralNetworksDevice*>& devices) { in CreateCompilation()
487 std::time_t startTime = std::time(nullptr); in Java_com_android_nn_crashtest_core_test_RandomGraphTest_runRandomModel()
491 while (std::difftime(std::time(nullptr), startTime) < in Java_com_android_nn_crashtest_core_test_RandomGraphTest_runRandomModel()
526 std::string nnApiDeviceNameStr{nnApiDeviceName ? nnApiDeviceName : ""}; in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
538 std::string testName{"no-test-name"}; in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
545 std::string nnapiLogPath; in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
553 std::string failedModelDumpPath; in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()