Home | History | Annotate | Download | only in tests

Lines Matching refs:VendorTagDescriptor

21 #include <camera/VendorTagDescriptor.h>
93 * Test if values from VendorTagDescriptor methods match corresponding values
97 sp<VendorTagDescriptor> vDesc;
99 EXPECT_EQ(OK, VendorTagDescriptor::createDescriptorFromOps(vOps, /*out*/vDesc));
129 * Test if values from VendorTagDescriptor methods stay consistent after being
133 sp<VendorTagDescriptor> vDescOriginal, vDescParceled;
135 EXPECT_EQ(OK, VendorTagDescriptor::createDescriptorFromOps(vOps, /*out*/vDescOriginal));
145 vDescParceled = new VendorTagDescriptor();
178 sp<VendorTagDescriptor> vDesc;
186 EXPECT_EQ(BAD_VALUE, VendorTagDescriptor::createDescriptorFromOps(/*vOps*/NULL, vDesc));
189 ASSERT_EQ(OK, VendorTagDescriptor::createDescriptorFromOps(&vOps, vDesc));
202 sp<VendorTagDescriptor> prevGlobal = VendorTagDescriptor::getGlobalVendorTagDescriptor();
203 VendorTagDescriptor::clearGlobalVendorTagDescriptor();
205 EXPECT_TRUE(VendorTagDescriptor::getGlobalVendorTagDescriptor() == NULL);
206 EXPECT_EQ(OK, VendorTagDescriptor::setAsGlobalVendorTagDescriptor(vDesc));
207 EXPECT_TRUE(VendorTagDescriptor::getGlobalVendorTagDescriptor() != NULL);
209 EXPECT_EQ(OK, VendorTagDescriptor::setAsGlobalVendorTagDescriptor(prevGlobal));
210 EXPECT_EQ(prevGlobal, VendorTagDescriptor::getGlobalVendorTagDescriptor());