Lines Matching refs:desc
687 AHardwareBuffer_Desc desc{ in TEST_F() local
696 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
718 AHardwareBuffer_Desc desc{ in TEST_F() local
727 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
1808 AHardwareBuffer_Desc desc{ in TEST_F() local
1817 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
1854 AHardwareBuffer_Desc desc{ in TEST_F() local
1864 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
2003 AHardwareBuffer_Desc desc{ in TEST_F() local
2012 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
2050 AHardwareBuffer_Desc desc{ in TEST_F() local
2060 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST_F()
2147 ANeuralNetworksMemoryDesc* desc; in TEST_F() local
2148 ASSERT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2149 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, mCompilation, 0, 1.0f), in TEST_F()
2153 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mInitCompilation, 0, 1.0f), in TEST_F()
2155 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mDeinitCompilation, 0, 1.0f), in TEST_F()
2158 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2161 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2162 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
2213 ANeuralNetworksMemoryDesc* desc; in TEST_F() local
2214 ASSERT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2215 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mCompilation, 0, 1.0f), in TEST_F()
2217 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2220 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2221 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
2245 ANeuralNetworksMemoryDesc* desc; in TEST_F() local
2246 ASSERT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2247 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, mCompilationDynamic, 0, 1.0f), in TEST_F()
2249 EXPECT_EQ(ANeuralNetworksMemoryDesc_setDimensions(desc, 1, &dimension), in TEST_F()
2253 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mInitCompilation, 0, 1.0f), in TEST_F()
2256 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2259 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2260 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
2281 ANeuralNetworksMemoryDesc* desc; in TEST_F() local
2282 ASSERT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2283 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mCompilationDynamic, 0, 1.0f), in TEST_F()
2285 EXPECT_EQ(ANeuralNetworksMemoryDesc_setDimensions(desc, 1, &dimension), in TEST_F()
2287 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2290 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2291 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
3177 ANeuralNetworksMemoryDesc* desc = nullptr; in TEST_F() local
3178 ASSERT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3179 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, mInvalidCompilation, 0, 1.0f), in TEST_F()
3181 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mInvalidCompilation, 0, 1.0f), in TEST_F()
3183 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
3558 ANeuralNetworksMemoryDesc* desc = nullptr; in testIncompatibleOperands() local
3559 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in testIncompatibleOperands()
3560 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, compilation, 0, 1.0f), in testIncompatibleOperands()
3562 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, badCompilation, 0, 1.0f), in testIncompatibleOperands()
3564 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, badCompilation, 0, 1.0f), in testIncompatibleOperands()
3566 ANeuralNetworksMemoryDesc_free(desc); in testIncompatibleOperands()
3569 ANeuralNetworksMemoryDesc* desc = nullptr; in testIncompatibleOperands() local
3570 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in testIncompatibleOperands()
3571 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, compilation, 0, 1.0f), in testIncompatibleOperands()
3573 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, badCompilation, 0, 1.0f), in testIncompatibleOperands()
3575 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, badCompilation, 0, 1.0f), in testIncompatibleOperands()
3577 ANeuralNetworksMemoryDesc_free(desc); in testIncompatibleOperands()
3730 ANeuralNetworksMemoryDesc* desc = nullptr; in TEST_F() local
3731 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3732 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, compilation1, 1, 1.0f), in TEST_F()
3734 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, compilation2, 1, 1.0f), in TEST_F()
3736 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
3850 AHardwareBuffer_Desc desc{ in TEST() local
3858 ASSERT_EQ(AHardwareBuffer_allocate(&desc, &buffer), 0); in TEST()
3897 ANeuralNetworksMemoryDesc* desc = nullptr; in TEST_F() local
3899 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3900 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, goodCompilation, 0, 1.0f), in TEST_F()
3902 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3903 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &goodDeviceMemory1), in TEST_F()
3905 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &goodDeviceMemory2), in TEST_F()
3907 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
3910 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3911 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, badCompilation1, 0, 1.0f), in TEST_F()
3913 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3914 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &badDeviceMemory1), in TEST_F()
3916 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()
3919 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3920 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, badCompilation2, 0, 1.0f), in TEST_F()
3922 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3923 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &badDeviceMemory2), in TEST_F()
3925 ANeuralNetworksMemoryDesc_free(desc); in TEST_F()