Searched defs:annotation (Results 1 - 12 of 12) sorted by relevance

/art/test/004-JniTest/src/dalvik/annotation/optimization/
H A DCriticalNative.java17 package dalvik.annotation.optimization;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * Placeholder for the real FastNative annotation in the Android platform.
H A DFastNative.java17 package dalvik.annotation.optimization;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * Placeholder for the real FastNative annotation in the Android platform.
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DAnnotationItem.java23 public EncodedAnnotation annotation; field in class:AnnotationItem
29 (annotation = new EncodedAnnotation()).read(file);
36 annotation.write(file);
41 annotation.incrementIndex(kind, insertedIdx);
/art/test/715-clinit-implicit-parameter-annotations/src/
H A DMain.java17 import java.lang.annotation.Annotation;
18 import java.lang.annotation.Retention;
19 import java.lang.annotation.RetentionPolicy;
24 // A simple parameter annotation
28 // A parameter annotation with additional state
102 private static String annotationToNormalizedString(Annotation annotation) { argument
104 return annotation.toString().replace("\"", "");
117 for (Annotation annotation : parameters[i].getAnnotations()) {
118 System.out.println(" Indexed : " + annotationToNormalizedString(annotation));
120 for (Annotation annotation
[all...]
/art/runtime/native/
H A Djava_lang_reflect_Executable.cc139 ObjPtr<mirror::Object> annotation = annotations->GetWithoutChecks(i); local
140 resized_annotations->SetWithoutChecks<kTransactionActive>(i + offset, annotation);
147 ObjPtr<mirror::Object> annotation = annotations->GetWithoutChecks(i - offset); local
148 resized_annotations->SetWithoutChecks<kTransactionActive>(i, annotation);
165 // Find the MethodParameters system annotation.
173 // Validate the MethodParameters system annotation data.
396 "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;"),
398 "()[Ljava/lang/annotation/Annotation;"),
400 "()[[Ljava/lang/annotation/Annotation;"),
/art/dexlayout/
H A Ddex_writer.cc198 void DexWriter::WriteEncodedAnnotation(Stream* stream, dex_ir::EncodedAnnotation* annotation) { argument
199 stream->WriteUleb128(annotation->GetType()->GetIndex());
200 stream->WriteUleb128(annotation->GetAnnotationElements()->size());
202 *annotation->GetAnnotationElements()) {
370 for (std::unique_ptr<dex_ir::AnnotationItem>& annotation :
373 visibility[0] = annotation->GetVisibility();
374 ProcessOffset(stream, annotation.get());
376 WriteEncodedAnnotation(stream, annotation->GetAnnotation());
393 for (dex_ir::AnnotationItem* annotation : *annotation_set->GetItems()) {
394 annotation_off[0] = annotation
[all...]
H A Ddex_ir.cc433 const DexFile::AnnotationItem* annotation = dex_file.GetAnnotationItemAtOffset(current_offset); local
434 AnnotationItem* annotation_item = CreateAnnotationItem(dex_file, annotation);
441 const DexFile::AnnotationItem* annotation) {
442 const uint8_t* const start_data = reinterpret_cast<const uint8_t*>(annotation);
446 uint8_t visibility = annotation->visibility_;
447 const uint8_t* annotation_data = annotation->annotation_;
467 const DexFile::AnnotationItem* annotation = local
469 if (annotation == nullptr) {
472 AnnotationItem* annotation_item = CreateAnnotationItem(dex_file, annotation);
440 CreateAnnotationItem(const DexFile& dex_file, const DexFile::AnnotationItem* annotation) argument
H A Ddexlayout.cc503 * Dumps encoded annotation.
505 void DexLayout::DumpEncodedAnnotation(dex_ir::EncodedAnnotation* annotation) { argument
506 fputs(annotation->GetType()->GetStringId()->Data(), out_file_);
508 for (auto& subannotation : *annotation->GetAnnotationElements()) {
695 * Dumps an annotation set item.
699 fputs(" empty-annotation-set\n", out_file_);
702 for (dex_ir::AnnotationItem* annotation : *set_item->GetItems()) {
703 if (annotation == nullptr) {
707 switch (annotation->GetVisibility()) {
713 DumpEncodedAnnotation(annotation
[all...]
H A Ddex_ir.h254 const DexFile::AnnotationItem* annotation);
1128 AnnotationItem(uint8_t visibility, EncodedAnnotation* annotation) argument
1129 : visibility_(visibility), annotation_(annotation) { }
/art/runtime/dex/
H A Ddex_file_annotations.cc47 // A helper class that contains all the data needed to do annotation lookup.
121 const uint8_t** annotation)
174 const uint8_t* annotation = annotation_item->annotation_; local
175 uint32_t type_index = DecodeUnsignedLeb128(&annotation);
187 const uint8_t* annotation = *annotation_ptr; local
188 uint8_t header_byte = *(annotation++);
209 uint32_t size = DecodeUnsignedLeb128(&annotation);
211 if (!SkipAnnotationValue(dex_file, &annotation)) {
220 DecodeUnsignedLeb128(&annotation); // unused type_index
221 uint32_t size = DecodeUnsignedLeb128(&annotation);
409 const uint8_t* annotation = *annotation_ptr; local
696 CreateAnnotationMember(const ClassData& klass, Handle<mirror::Class> annotation_class, const uint8_t** annotation) argument
777 const uint8_t* annotation = annotation_item->annotation_; local
813 const uint8_t* annotation = annotation_item->annotation_; local
824 const uint8_t* annotation = local
932 const uint8_t* annotation = annotation_item->annotation_; local
1058 const uint8_t* annotation = local
1272 const uint8_t* annotation = annotation_item->annotation_; local
1396 const uint8_t* annotation = local
1455 const uint8_t* annotation = local
1488 const uint8_t* annotation = local
1541 const uint8_t* annotation = local
[all...]
/art/dexdump/
H A Ddexdump.cc631 * Dumps an annotation set item.
635 fputs(" empty-annotation-set\n", gOutFile);
639 const DexFile::AnnotationItem* annotation = pDexFile->GetAnnotationItem(set_item, i); local
640 if (annotation == nullptr) {
644 switch (annotation->visibility_) {
650 // Decode raw bytes in annotation.
651 const u1* rData = annotation->annotation_;
/art/libdexfile/dex/
H A Ddex_file_verifier.cc854 ErrorStringPrintf("Bad encoded_value annotation value_arg %x", value_arg);
1525 if (!CheckListSize(ptr_, 1, sizeof(uint8_t), "annotation visibility")) {
1536 ErrorStringPrintf("Bad annotation visibility: %x", *ptr_);
1565 ErrorStringPrintf("Out-of-order field_idx for annotation: %x then %x", last_idx, field_item->field_idx_);
1583 ErrorStringPrintf("Out-of-order method_idx for annotation: %x then %x",
1603 ErrorStringPrintf("Out-of-order method_idx for annotation: %x then %x",
2550 // Get the annotation from the offset and the type index for the annotation.
2551 const DexFile::AnnotationItem* annotation = local
2553 const uint8_t* data = annotation
[all...]

Completed in 442 milliseconds