Home
last modified time | relevance | path

Searched refs:tagCount (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/camera/tests/
DVendorTagDescriptorTests.cpp104 int tagCount = vDesc->getTagCount(); in TEST() local
105 EXPECT_EQ(tagCount, vOps->get_tag_count(vOps)); in TEST()
107 uint32_t descTagArray[tagCount]; in TEST()
108 uint32_t opsTagArray[tagCount]; in TEST()
118 for (int i = 0; i < tagCount; ++i) { in TEST()
149 int tagCount = vDescOriginal->getTagCount(); in TEST() local
150 ASSERT_EQ(tagCount, vDescParceled->getTagCount()); in TEST()
152 uint32_t descTagArray[tagCount]; in TEST()
153 uint32_t desc2TagArray[tagCount]; in TEST()
163 for (int i = 0; i < tagCount; ++i) { in TEST()
/frameworks/av/camera/
DVendorTagDescriptor.cpp118 int32_t tagCount = 0; in readFromParcel() local
119 if ((res = parcel->readInt32(&tagCount)) != OK) { in readFromParcel()
124 if (tagCount < 0 || tagCount > INT32_MAX) { in readFromParcel()
125 ALOGE("%s: tag count %d from vendor ops is invalid.", __FUNCTION__, tagCount); in readFromParcel()
129 mTagCount = tagCount; in readFromParcel()
135 for (int32_t i = 0; i < tagCount; ++i) { in readFromParcel()
179 if (tagCount > 0) { in readFromParcel()
202 LOG_ALWAYS_FATAL_IF(static_cast<size_t>(tagCount) != allTags.size(), in readFromParcel()
205 for (size_t i = 0; i < static_cast<size_t>(tagCount); ++i) { in readFromParcel()
525 int tagCount = vOps->get_tag_count(vOps); in createDescriptorFromOps() local
[all …]
DCameraMetadata.cpp413 uint32_t tagCount = 0; in removePermissionEntries() local
430 tagCount = vTags->getTagCount(); in removePermissionEntries()
431 uint32_t *vendorTags = new uint32_t[tagCount]; in removePermissionEntries()
437 tagsToRemove.reserve(tagCount); in removePermissionEntries()
438 tagsToRemove.insert(tagsToRemove.begin(), vendorTags, vendorTags + tagCount); in removePermissionEntries()
441 tagCount = 0; in removePermissionEntries()
444 auto tagsNeedingPermission = get_camera_metadata_permission_needed(&tagCount); in removePermissionEntries()
445 if (tagCount > 0) { in removePermissionEntries()
446 tagsToRemove.reserve(tagsToRemove.capacity() + tagCount); in removePermissionEntries()
448 tagsNeedingPermission + tagCount); in removePermissionEntries()
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraManager.cpp70 int tagCount = 0; in createDescriptorFromHidl() local
73 tagCount += vts[s].tags.size(); in createDescriptorFromHidl()
76 if (tagCount < 0 || tagCount > INT32_MAX) { in createDescriptorFromHidl()
77 ALOGE("%s: tag count %d from vendor tag sections is invalid.", __FUNCTION__, tagCount); in createDescriptorFromHidl()
82 LOG_ALWAYS_FATAL_IF(tagArray.resize(tagCount) != tagCount, in createDescriptorFromHidl()
83 "%s: too many (%u) vendor tags defined.", __FUNCTION__, tagCount); in createDescriptorFromHidl()
86 desc->mTagCount = tagCount; in createDescriptorFromHidl()
/frameworks/av/services/camera/libcameraservice/hidl/
DHidlCameraService.cpp242 int tagCount = desc->getTagCount(); in getCameraVendorTagSections() local
243 std::vector<uint32_t> tags(tagCount); in getCameraVendorTagSections()
245 for (int i = 0; i < tagCount; i++) { in getCameraVendorTagSections()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp2399 int tagCount = 0; in createDescriptorFromHidl() local
2402 tagCount += vts[s].tags.size(); in createDescriptorFromHidl()
2405 if (tagCount < 0 || tagCount > INT32_MAX) { in createDescriptorFromHidl()
2406 ALOGE("%s: tag count %d from vendor tag sections is invalid.", __FUNCTION__, tagCount); in createDescriptorFromHidl()
2411 LOG_ALWAYS_FATAL_IF(tagArray.resize(tagCount) != tagCount, in createDescriptorFromHidl()
2412 "%s: too many (%u) vendor tags defined.", __FUNCTION__, tagCount); in createDescriptorFromHidl()
2416 desc->mTagCount = tagCount; in createDescriptorFromHidl()