Lines Matching refs:mCompilation
194 ASSERT_EQ(ANeuralNetworksCompilation_create(mModel, &mCompilation), in SetUp()
199 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
203 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anona1c03bcd0111::ValidationTestCompilation
211 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in SetUp()
213 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
228 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &mBurst), ANEURALNETWORKS_NO_ERROR); in SetUp()
272 ASSERT_EQ(ANeuralNetworksCompilation_create(mModel, &mCompilation), in SetUp()
274 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in SetUp()
275 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
300 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
383 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anona1c03bcd0111::ValidationTestExecutionDeviceMemory
1106 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, 40), ANEURALNETWORKS_BAD_DATA); in TEST_F()
1114 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, nullptr, token.data()), in TEST_F()
1116 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", nullptr), in TEST_F()
1133 EXPECT_EQ(ANeuralNetworksCompilation_setPriority(mCompilation, invalidPriority), in TEST_F()
1145 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
1154 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryAlignmentForInput(mCompilation, 0, in TEST_F()
1157 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryPaddingForInput(mCompilation, 0, in TEST_F()
1160 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryAlignmentForOutput(mCompilation, 0, in TEST_F()
1163 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryPaddingForOutput(mCompilation, 0, in TEST_F()
1167 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1173 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryAlignmentForInput(mCompilation, 0, in TEST_F()
1178 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryPaddingForInput(mCompilation, 0, in TEST_F()
1184 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryAlignmentForOutput(mCompilation, 0, in TEST_F()
1190 EXPECT_EQ(ANeuralNetworksCompilation_getPreferredMemoryPaddingForOutput(mCompilation, 0, in TEST_F()
1197 mCompilation, invalidIndex, &result), in TEST_F()
1200 mCompilation, invalidIndex, &result), in TEST_F()
1203 mCompilation, invalidIndex, &result), in TEST_F()
1206 mCompilation, invalidIndex, &result), in TEST_F()
1219 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, nullptr), in TEST_F()
1221 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_BAD_STATE); in TEST_F()
1227 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1228 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, in TEST_F()
1232 ANeuralNetworksCompilation_setPriority(mCompilation, ANEURALNETWORKS_PRIORITY_DEFAULT), in TEST_F()
1234 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
1237 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", token.data()), in TEST_F()
1239 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_BAD_STATE); in TEST_F()
1248 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1250 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1261 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1263 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1275 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1285 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
1371 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), in TEST_F()
1407 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), in TEST_F()
1542 testConcurrentExecution(/*reusable=*/true, mCompilation); in TEST_F()
1545 testConcurrentExecution(/*reusable=*/false, mCompilation); in TEST_F()
1847 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1916 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
2041 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
2050 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
2059 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
2068 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
2087 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, mCompilation, 0, 1.0f), in TEST_F()
2103 executeWithMemoryAsInput(mCompilation, memory, ANEURALNETWORKS_OP_FAILED); in TEST_F()
2112 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
2145 executeWithMemoryAsInput(mCompilation, memory, ANEURALNETWORKS_OP_FAILED); in TEST_F()
2153 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mCompilation, 0, 1.0f), in TEST_F()
2245 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2278 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2304 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution1), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2338 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution2), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2360 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2551 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &secondExecution), in TEST_F()
2617 EXPECT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2634 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2659 EXPECT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2675 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2832 &mCompilation), in SetUp()
2839 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
2844 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anona1c03bcd0111::ValidationTestCompilationForDevices_1
2851 if (!mCompilation) { in TEST_F()
2854 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, 40), ANEURALNETWORKS_BAD_DATA); in TEST_F()
2862 if (!mCompilation) { in TEST_F()
2865 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, nullptr, token.data()), in TEST_F()
2867 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", nullptr), in TEST_F()
2876 if (!mCompilation) { in TEST_F()
2879 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, nullptr), in TEST_F()
2881 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_BAD_STATE); in TEST_F()
2887 if (!mCompilation) { in TEST_F()
2890 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2891 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, in TEST_F()
2895 ANeuralNetworksCompilation_setPriority(mCompilation, ANEURALNETWORKS_PRIORITY_DEFAULT), in TEST_F()
2897 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
2900 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", token.data()), in TEST_F()
2902 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_BAD_STATE); in TEST_F()
2908 if (!mCompilation) { in TEST_F()
2912 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
2916 const int n = ANeuralNetworksCompilation_finish(mCompilation); in TEST_F()
2922 if (!mCompilation) { in TEST_F()
2927 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, duration), in TEST_F()
2929 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2951 &mCompilation), in SetUp()
2958 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
2963 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anona1c03bcd0111::ValidationTestCompilationForDevices_2
2971 if (!mCompilation) { in TEST_F()
2976 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
2986 if (!mCompilation) { in TEST_F()
2989 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2991 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3002 if (!mCompilation) { in TEST_F()
3005 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3007 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3116 if (!mCompilation) { in TEST_F()
3119 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3127 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
3194 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), in TEST_F()
3368 runExecutionSetTimeoutTest(mCompilation, TimeoutDurationType::SHORT); in TEST_F()
3372 runExecutionSetTimeoutTest(mCompilation, TimeoutDurationType::MAXIMUM); in TEST_F()
3380 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(nullptr, mCompilation, 0, 1.0f), in TEST_F()
3386 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3389 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3392 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 999, 1.0f), in TEST_F()
3396 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 10.0f), in TEST_F()
3398 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 0.0f), in TEST_F()
3400 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, -1.0f), in TEST_F()
3404 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3406 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3411 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3416 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(nullptr, mCompilation, 0, 1.0f), in TEST_F()
3422 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3425 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3428 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 999, 1.0f), in TEST_F()
3432 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 10.0f), in TEST_F()
3434 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 0.0f), in TEST_F()
3436 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, -1.0f), in TEST_F()
3440 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3442 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3447 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3691 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3692 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3708 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3709 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 2, 1.0f), in TEST_F()
3718 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3719 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 2, 1.0f), in TEST_F()
3735 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3736 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()