Home
last modified time | relevance | path

Searched refs:tag (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/hardware/libhardware/modules/usbcamera/
DMetadata.cpp64 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) { in addUInt8() argument
65 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL; in addUInt8()
66 return add(tag, count, data); in addUInt8()
69 int Metadata::add1UInt8(uint32_t tag, const uint8_t data) { in add1UInt8() argument
70 return addUInt8(tag, 1, &data); in add1UInt8()
73 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) { in addInt32() argument
74 if (!validate(tag, TYPE_INT32, count)) return -EINVAL; in addInt32()
75 return add(tag, count, data); in addInt32()
78 int Metadata::addFloat(uint32_t tag, int count, const float *data) { in addFloat() argument
79 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL; in addFloat()
[all …]
DMetadata.h34 int addUInt8(uint32_t tag, int count, const uint8_t *data);
35 int add1UInt8(uint32_t tag, const uint8_t data);
36 int addInt32(uint32_t tag, int count, const int32_t *data);
37 int addFloat(uint32_t tag, int count, const float *data);
38 int addInt64(uint32_t tag, int count, const int64_t *data);
39 int addDouble(uint32_t tag, int count, const double *data);
40 int addRational(uint32_t tag, int count,
53 bool validate(uint32_t tag, int tag_type, int count);
55 int add(uint32_t tag, int count, const void *tag_data);
/hardware/libhardware/modules/camera/3_0/
DMetadata.cpp68 int Metadata::addUInt8(uint32_t tag, int count, const uint8_t *data) in addUInt8() argument
70 if (!validate(tag, TYPE_BYTE, count)) return -EINVAL; in addUInt8()
71 return add(tag, count, data); in addUInt8()
74 int Metadata::add1UInt8(uint32_t tag, const uint8_t data) in add1UInt8() argument
76 return addUInt8(tag, 1, &data); in add1UInt8()
79 int Metadata::addInt32(uint32_t tag, int count, const int32_t *data) in addInt32() argument
81 if (!validate(tag, TYPE_INT32, count)) return -EINVAL; in addInt32()
82 return add(tag, count, data); in addInt32()
85 int Metadata::addFloat(uint32_t tag, int count, const float *data) in addFloat() argument
87 if (!validate(tag, TYPE_FLOAT, count)) return -EINVAL; in addFloat()
[all …]
DVendorTags.cpp93 const Section* getSection(uint32_t tag) in getSection() argument
95 uint32_t section = (tag - vendor_section_start) >> 16; in getSection()
97 if (tag < vendor_section_start) { in getSection()
98 ALOGE("%s: Tag 0x%x before vendor section", __func__, tag); in getSection()
103 ALOGE("%s: Tag 0x%x after vendor section", __func__, tag); in getSection()
111 const Entry* getEntry(uint32_t tag) in getEntry() argument
113 const Section* section = getSection(tag); in getEntry()
119 if (tag >= section->end) { in getEntry()
120 ALOGE("%s: Tag 0x%x outside section", __func__, tag); in getEntry()
124 index = tag - section->start; in getEntry()
[all …]
DMetadata.h34 int addUInt8(uint32_t tag, int count, const uint8_t *data);
35 int add1UInt8(uint32_t tag, const uint8_t data);
36 int addInt32(uint32_t tag, int count, const int32_t *data);
37 int addFloat(uint32_t tag, int count, const float *data);
38 int addInt64(uint32_t tag, int count, const int64_t *data);
39 int addDouble(uint32_t tag, int count, const double *data);
40 int addRational(uint32_t tag, int count,
53 bool validate(uint32_t tag, int tag_type, int count);
55 int add(uint32_t tag, int count, const void *tag_data);
/hardware/libhardware/modules/camera/3_4/metadata/
Dmetadata_common.h62 int32_t tag, in UpdateMetadata() argument
65 int res = metadata->update(tag, data, count); in UpdateMetadata()
67 HAL_LOGE("Failed to update metadata tag %d", tag); in UpdateMetadata()
76 int32_t tag, in UpdateMetadata() argument
78 return UpdateMetadata(metadata, tag, &val, 1); in UpdateMetadata()
84 int32_t tag, in UpdateMetadata() argument
86 return UpdateMetadata(metadata, tag, val.data(), val.size()); in UpdateMetadata()
92 int32_t tag, in UpdateMetadata() argument
94 return UpdateMetadata(metadata, tag, val.data(), N); in UpdateMetadata()
100 int32_t tag, in UpdateMetadata() argument
[all …]
Dtest_common.h34 int32_t tag, in ExpectMetadataEq() argument
37 camera_metadata_ro_entry_t entry = metadata.find(tag); in ExpectMetadataEq()
50 int32_t tag, in ExpectMetadataEq() argument
52 ExpectMetadataEq(metadata, tag, &expected, 1); in ExpectMetadataEq()
58 int32_t tag, in ExpectMetadataEq() argument
60 ExpectMetadataEq(metadata, tag, expected.data(), expected.size()); in ExpectMetadataEq()
66 int32_t tag, in ExpectMetadataEq() argument
68 ExpectMetadataEq(metadata, tag, expected.data(), N); in ExpectMetadataEq()
74 int32_t tag, in ExpectMetadataEq() argument
77 metadata, tag, expected.data(), expected.total_num_elements()); in ExpectMetadataEq()
[all …]
Dcontrol.h71 if (options_ && options_->tag() != DO_NOT_REPORT_OPTIONS) { in StaticTags()
72 result.push_back(options_->tag()); in StaticTags()
79 return {delegate_->tag()}; in ControlTags()
84 return {delegate_->tag()}; in DynamicTags()
91 delegate_->tag()); in PopulateStaticFields()
93 } else if (options_->tag() == DO_NOT_REPORT_OPTIONS) { in PopulateStaticFields()
97 delegate_->tag()); in PopulateStaticFields()
102 metadata, options_->tag(), options_->MetadataRepresentation()); in PopulateStaticFields()
113 return UpdateMetadata(metadata, delegate_->tag(), value); in PopulateDynamicFields()
133 return UpdateMetadata(metadata, delegate_->tag(), value); in PopulateTemplateRequest()
[all …]
/hardware/interfaces/camera/common/1.0/default/
DCameraMetadata.cpp173 status_t CameraMetadata::checkType(uint32_t tag, uint8_t expectedType) { in checkType() argument
174 int tagType = get_local_camera_metadata_tag_type(tag, mBuffer); in checkType()
176 ALOGE("Update metadata entry: Unknown tag %d", tag); in checkType()
182 get_local_camera_metadata_tag_name(tag, mBuffer), tag, in checkType()
189 status_t CameraMetadata::update(uint32_t tag, in update() argument
196 if ( (res = checkType(tag, TYPE_INT32)) != OK) { in update()
199 return updateImpl(tag, (const void*)data, data_count); in update()
202 status_t CameraMetadata::update(uint32_t tag, in update() argument
209 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update()
212 return updateImpl(tag, (const void*)data, data_count); in update()
[all …]
DVendorTagDescriptor.cpp98 const char* VendorTagDescriptor::getSectionName(uint32_t tag) const { in getSectionName()
99 ssize_t index = mTagToSectionMap.indexOfKey(tag); in getSectionName()
106 ssize_t VendorTagDescriptor::getSectionIndex(uint32_t tag) const { in getSectionIndex()
107 return mTagToSectionMap.valueFor(tag); in getSectionIndex()
110 const char* VendorTagDescriptor::getTagName(uint32_t tag) const { in getTagName()
111 ssize_t index = mTagToNameMap.indexOfKey(tag); in getTagName()
118 int VendorTagDescriptor::getTagType(uint32_t tag) const { in getTagType()
119 auto iter = mTagToTypeMap.find(tag); in getTagType()
130 …TagDescriptor::lookupTag(const String8& name, const String8& section, /*out*/uint32_t* tag) const { in lookupTag()
143 if (tag != NULL) { in lookupTag()
[all …]
/hardware/interfaces/camera/common/1.0/default/include/
DCameraMetadata.h133 status_t update(uint32_t tag,
135 status_t update(uint32_t tag,
137 status_t update(uint32_t tag,
139 status_t update(uint32_t tag,
141 status_t update(uint32_t tag,
143 status_t update(uint32_t tag,
145 status_t update(uint32_t tag,
151 status_t update(uint32_t tag, Vector<T> data) { in update() argument
152 return update(tag, data.array(), data.size()); in update()
159 bool exists(uint32_t tag) const;
[all …]
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeystore_tags_utils.cpp28 template <TagType tag_type, Tag tag>
29 static TypedTag<tag_type, tag> chooseString(TypedTag<tag_type, tag> ttag, Tag runtime_tag, in chooseString()
31 if (tag == runtime_tag) { in chooseString()
32 *result = Tag2String<tag>::value(); in chooseString()
36 static const char* stringify(Tag tag) { in stringify()
38 [](Tags&&...) {}(chooseString(Tags(), tag, &result)...); in stringify()
43 const char* stringifyTag(Tag tag) { in stringifyTag() argument
44 return TagStringifier<all_tags_t>::stringify(tag); in stringifyTag()
Dkeymaster_tags.h76 constexpr TagType typeFromTag(Tag tag) { in typeFromTag() argument
77 return static_cast<TagType>(static_cast<uint32_t>(tag) & static_cast<uint32_t>(0xf0000000)); in typeFromTag()
86 template <TagType tag_type, Tag tag> struct TypedTag {
91 static_assert(typeFromTag(tag) == tag_type, "mismatch between tag and tag_type"); in TypedTag()
93 constexpr operator Tag() { return tag; } in Tag()
95 return static_cast<long>(static_cast<uint32_t>(tag) & static_cast<uint32_t>(0x0fffffff)); in maskedTag()
99 template <Tag tag> struct Tag2TypedTag { typedef TypedTag<typeFromTag(tag), tag> type; };
101 template <Tag tag> struct Tag2String;
176 extern const char* stringifyTag(Tag tag);
181 template <Tag tag> struct TypedTag2ValueType<TypedTag<tag_type, tag>> { \
[all …]
Dauthorization_set.cpp35 if (a.tag != b.tag) return a.tag < b.tag; in keyParamLess()
37 switch (typeFromTag(a.tag)) { in keyParamLess()
69 if (a.tag != b.tag) return false; in keyParamEqual()
71 switch (typeFromTag(a.tag)) { in keyParamEqual()
106 if (prev->tag == Tag::INVALID) continue; in Deduplicate()
129 pos = find(i->tag, pos); in Subtract()
139 int AuthorizationSet::find(Tag tag, int begin) const { in find() argument
142 while (iter != data_.end() && iter->tag != tag) in find()
170 size_t AuthorizationSet::GetTagCount(Tag tag) const { in GetTagCount()
172 for (int pos = -1; (pos = find(tag, pos)) != -1;) in GetTagCount()
[all …]
/hardware/libhardware/include/hardware/
Dkeymaster_defs.h321 keymaster_tag_t tag; member
482 static inline keymaster_tag_type_t keymaster_tag_get_type(keymaster_tag_t tag) { in keymaster_tag_get_type() argument
483 return (keymaster_tag_type_t)(tag & (0xF << 28)); in keymaster_tag_get_type()
486 static inline uint32_t keymaster_tag_mask_type(keymaster_tag_t tag) { in keymaster_tag_mask_type() argument
487 return tag & 0x0FFFFFFF; in keymaster_tag_mask_type()
500 static inline bool keymaster_tag_repeatable(keymaster_tag_t tag) { in keymaster_tag_repeatable() argument
501 return keymaster_tag_type_repeatable(keymaster_tag_get_type(tag)); in keymaster_tag_repeatable()
506 inline keymaster_key_param_t keymaster_param_enum(keymaster_tag_t tag, uint32_t value) { in keymaster_param_enum() argument
510 param.tag = tag; in keymaster_param_enum()
515 inline keymaster_key_param_t keymaster_param_int(keymaster_tag_t tag, uint32_t value) { in keymaster_param_int() argument
[all …]
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dkeymaster_tags.h76 constexpr TagType typeFromTag(Tag tag) { in typeFromTag() argument
77 return static_cast<TagType>(static_cast<uint32_t>(tag) & static_cast<uint32_t>(0xf0000000)); in typeFromTag()
86 template <TagType tag_type, Tag tag>
92 static_assert(typeFromTag(tag) == tag_type, "mismatch between tag and tag_type"); in TypedTag()
94 operator Tag() const { return tag; } in Tag()
95 int32_t maskedTag() { return tag & 0x0FFFFFFF; } in maskedTag()
98 template <Tag tag>
100 typedef TypedTag<typeFromTag(tag), tag> type;
184 template <Tag tag> \
185 struct TypedTag2ValueType<TypedTag<tag_type, tag>> { \
[all …]
Dauthorization_set.h126 int find(Tag tag, int begin = -1) const;
166 bool Contains(Tag tag) const { return find(tag) != -1; } in Contains() argument
168 template <TagType tag_type, Tag tag, typename ValueT>
169 bool Contains(TypedTag<tag_type, tag> ttag, const ValueT& value) const { in Contains()
179 size_t GetTagCount(Tag tag) const;
182 inline NullOr<const typename TypedTag2ValueType<T>::type&> GetTagValue(T tag) const { in GetTagValue() argument
183 auto entry = GetEntry(tag); in GetTagValue()
184 if (entry.isOk()) return authorizationValue(tag, entry.value()); in GetTagValue()
205 void push_back(TypedTagT tag, Value&&... val) { in push_back() argument
206 push_back(Authorization(tag, std::forward<Value>(val)...)); in push_back()
[all …]
/hardware/qcom/display/msm8996/sdm/include/utils/
Ddebug.h38 #define DLOG(tag, method, format, ...) Debug::Get()->method(tag, __CLASS__ "::%s: " format, \ argument
41 #define DLOGE_IF(tag, format, ...) DLOG(tag, Error, format, ##__VA_ARGS__) argument
42 #define DLOGW_IF(tag, format, ...) DLOG(tag, Warning, format, ##__VA_ARGS__) argument
43 #define DLOGI_IF(tag, format, ...) DLOG(tag, Info, format, ##__VA_ARGS__) argument
44 #define DLOGD_IF(tag, format, ...) DLOG(tag, Debug, format, ##__VA_ARGS__) argument
45 #define DLOGV_IF(tag, format, ...) DLOG(tag, Verbose, format, ##__VA_ARGS__) argument
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/
Ddebug.h38 #define DLOG(tag, method, format, ...) Debug::Get()->method(tag, __CLASS__ "::%s: " format, \ argument
41 #define DLOGE_IF(tag, format, ...) DLOG(tag, Error, format, ##__VA_ARGS__) argument
42 #define DLOGW_IF(tag, format, ...) DLOG(tag, Warning, format, ##__VA_ARGS__) argument
43 #define DLOGI_IF(tag, format, ...) DLOG(tag, Info, format, ##__VA_ARGS__) argument
44 #define DLOGD_IF(tag, format, ...) DLOG(tag, Debug, format, ##__VA_ARGS__) argument
45 #define DLOGV_IF(tag, format, ...) DLOG(tag, Verbose, format, ##__VA_ARGS__) argument
/hardware/qcom/display/msm8998/sdm/include/utils/
Ddebug.h38 #define DLOG(tag, method, format, ...) Debug::Get()->method(tag, __CLASS__ "::%s: " format, \ argument
41 #define DLOGE_IF(tag, format, ...) DLOG(tag, Error, format, ##__VA_ARGS__) argument
42 #define DLOGW_IF(tag, format, ...) DLOG(tag, Warning, format, ##__VA_ARGS__) argument
43 #define DLOGI_IF(tag, format, ...) DLOG(tag, Info, format, ##__VA_ARGS__) argument
44 #define DLOGD_IF(tag, format, ...) DLOG(tag, Debug, format, ##__VA_ARGS__) argument
45 #define DLOGV_IF(tag, format, ...) DLOG(tag, Verbose, format, ##__VA_ARGS__) argument
/hardware/qcom/display/msm8909/sdm/include/utils/
Ddebug.h39 #define DLOG(tag, method, format, ...) Debug::Get()->method(tag, __CLASS__ "::%s: " format, \ argument
42 #define DLOGE_IF(tag, format, ...) DLOG(tag, Error, format, ##__VA_ARGS__) argument
43 #define DLOGW_IF(tag, format, ...) DLOG(tag, Warning, format, ##__VA_ARGS__) argument
44 #define DLOGI_IF(tag, format, ...) DLOG(tag, Info, format, ##__VA_ARGS__) argument
45 #define DLOGD_IF(tag, format, ...) DLOG(tag, Debug, format, ##__VA_ARGS__) argument
46 #define DLOGV_IF(tag, format, ...) DLOG(tag, Verbose, format, ##__VA_ARGS__) argument
/hardware/qcom/sm8150/display/libdebug/
Ddebug_handler.h38 #define DLOG_IF(tag, method, format, ...) \ argument
39 if (display::DebugHandler::GetLogMask()[tag]) { \
43 #define DLOGE_IF(tag, format, ...) DLOG_IF(tag, Error, format, ##__VA_ARGS__) argument
44 #define DLOGW_IF(tag, format, ...) DLOG_IF(tag, Warning, format, ##__VA_ARGS__) argument
45 #define DLOGI_IF(tag, format, ...) DLOG_IF(tag, Info, format, ##__VA_ARGS__) argument
46 #define DLOGD_IF(tag, format, ...) DLOG_IF(tag, Debug, format, ##__VA_ARGS__) argument
47 #define DLOGV_IF(tag, format, ...) DLOG_IF(tag, Verbose, format, ##__VA_ARGS__) argument
/hardware/qcom/sdm845/display/libdebug/
Ddebug_handler.h38 #define DLOG_IF(tag, method, format, ...) \ argument
39 if (display::DebugHandler::GetLogMask()[tag]) { \
43 #define DLOGE_IF(tag, format, ...) DLOG_IF(tag, Error, format, ##__VA_ARGS__) argument
44 #define DLOGW_IF(tag, format, ...) DLOG_IF(tag, Warning, format, ##__VA_ARGS__) argument
45 #define DLOGI_IF(tag, format, ...) DLOG_IF(tag, Info, format, ##__VA_ARGS__) argument
46 #define DLOGD_IF(tag, format, ...) DLOG_IF(tag, Debug, format, ##__VA_ARGS__) argument
47 #define DLOGV_IF(tag, format, ...) DLOG_IF(tag, Verbose, format, ##__VA_ARGS__) argument
/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/
Dlog.h285 #define MPL_LOG(priority, tag, fmt, ...) \ argument
286 MPL_LOG_PRI(priority, tag, fmt, ##__VA_ARGS__)
294 #define MPL_LOG_PRI(priority, tag, fmt, ...) \ argument
295 LOG(priority, tag, fmt, ##__VA_ARGS__)
297 #define MPL_LOG_PRI(priority, tag, fmt, ...) \
298 pr_debug(MPL_##priority tag fmt, ##__VA_ARGS__)
300 #define MPL_LOG_PRI(priority, tag, fmt, ...) \
301 _MLPrintLog(MPL_##priority, tag, fmt, ##__VA_ARGS__)
310 #define MPL_LOG_PRI_VA(priority, tag, fmt, args) \ argument
311 android_vprintLog(priority, NULL, tag, fmt, args)
[all …]
/hardware/libhardware/modules/camera/3_4/
Dformat_metadata_factory_test.cpp40 uint32_t tag, in ExpectMetadataTagCount() argument
42 camera_metadata_ro_entry_t entry = metadata.find(tag); in ExpectMetadataTagCount()
106 int32_t tag = component->StaticTags()[0]; in TEST_F() local
107 switch (tag) { in TEST_F()
113 ExpectMetadataTagCount(metadata, tag, (formats.size() + 1) * 3 * 4); in TEST_F()
117 ExpectMetadataEq(metadata, tag, 200000000); in TEST_F()
121 ExpectMetadataTagCount(metadata, tag, 4); in TEST_F()
172 int32_t tag = component->StaticTags()[0]; in TEST_F() local
173 switch (tag) { in TEST_F()
179 ExpectMetadataTagCount(metadata, tag, (formats.size() + 3) * 2 * 4); in TEST_F()
[all …]

12345678910>>...12