Home
last modified time | relevance | path

Searched refs:Annotation (Results 1 – 25 of 142) sorted by relevance

123456

/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/
DTestApplication.java21 import java.lang.annotation.Annotation;
26 public static Annotation annotation = getAnnotationWithEnum();
27 public static Annotation annotation2 = getSoleAnnotation(Annotated.class);
28 public static Annotation annotation3 = getSoleAnnotation(Annotated2.class);
31 public static Annotation getAnnotationWithEnum() { in getAnnotationWithEnum()
35 public static Annotation getSoleAnnotation(Class<?> annotated) { in getSoleAnnotation()
36 Annotation[] annot = annotated.getAnnotations(); in getSoleAnnotation()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DRichTextViewTest.java32 import android.text.Annotation;
51 Annotation link = new Annotation("link", "foobar"); in testLinkAnnotation()
63 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); in testLinkAnnotation()
76 Annotation link = new Annotation("link", "foobar"); in testOnLinkClickListener()
98 Annotation link = new Annotation("link", "foobar"); in testLegacyContextOnClickListener()
116 Annotation link = new Annotation("link", "foobar"); in onTouchEvent_clickOnLinks_shouldReturnTrue()
134 Annotation link = new Annotation("link", "foobar"); in onTouchEvent_clickOutsideLinks_shouldReturnFalse()
152 Annotation link = new Annotation("textAppearance", "foobar"); in testTextStyle()
162 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); in testTextStyle()
172 Annotation testLink = new Annotation("link", "value"); in testTextContainingLinksAreFocusable()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAnnotationValidations.java33 import java.lang.annotation.Annotation;
175 public static void validate(Class<? extends Annotation> annotation, in validate()
176 Annotation ignored, Object value, Object... params) {} in validate()
178 public static void validate(Class<? extends Annotation> annotation, in validate()
179 Annotation ignored, Object value) {} in validate()
181 public static void validate(Class<? extends Annotation> annotation, in validate()
182 Annotation ignored, int value, Object... params) {} in validate()
183 public static void validate(Class<? extends Annotation> annotation, in validate()
184 Annotation ignored, int value) { in validate()
193 public static void validate(Class<? extends Annotation> annotation, in validate()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSpanHelperTest.java22 import android.text.Annotation;
37 Annotation oldSpan = new Annotation("key", "value"); in testReplaceSpan()
38 Annotation newSpan = new Annotation("newkey", "newvalue"); in testReplaceSpan()
/frameworks/hardware/interfaces/stats/aidl/test_client/
DAidlStatsClient.cpp88 Annotation atomAnnotation{AnnotationId::TRUNCATE_TIMESTAMP, true}; in buildVendorAtomWithAnnotations()
89 std::vector<std::optional<Annotation>> atomAnnotations; in buildVendorAtomWithAnnotations()
90 atomAnnotations.push_back(std::make_optional<Annotation>(atomAnnotation)); in buildVendorAtomWithAnnotations()
97 valueAnnotationSet.annotations.push_back(Annotation{AnnotationId::PRIMARY_FIELD, true}); in buildVendorAtomWithAnnotations()
103 valueAnnotationSet.annotations.push_back(Annotation{AnnotationId::IS_UID, true}); in buildVendorAtomWithAnnotations()
109 valueAnnotationSet.annotations.push_back(Annotation{AnnotationId::EXCLUSIVE_STATE, true}); in buildVendorAtomWithAnnotations()
110 valueAnnotationSet.annotations.push_back(Annotation{AnnotationId::STATE_NESTED, true}); in buildVendorAtomWithAnnotations()
111 valueAnnotationSet.annotations.push_back(Annotation{AnnotationId::TRIGGER_STATE_RESET, 0}); in buildVendorAtomWithAnnotations()
117 std::make_optional<std::vector<std::optional<Annotation>>>(atomAnnotations); in buildVendorAtomWithAnnotations()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java23 import java.lang.annotation.Annotation;
41 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation()
47 private final Class<? extends Annotation> annotationClass;
49 private HasAnnotation(Class<? extends Annotation> annotationClass) { in HasAnnotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/model/
DFakeWifiEventModel.kt19 import android.telephony.Annotation
30 @Annotation.DataActivityType val activity: Int,
41 @Annotation.DataActivityType val activity: Int,
/frameworks/base/core/java/android/text/
DAnnotation.java26 public class Annotation implements ParcelableSpan { class
30 public Annotation(String key, String value) { in Annotation() method in Annotation
35 public Annotation(Parcel src) { in Annotation() method in Annotation
/frameworks/base/packages/SystemUI/src/com/android/systemui/telephony/data/repository/
DTelephonyRepository.kt20 import android.telephony.Annotation in <lambda>()
32 @Annotation.CallState val callState: Flow<Int> in <lambda>()
48 @Annotation.CallState
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneNotifier.java21 import android.telephony.Annotation;
22 import android.telephony.Annotation.RadioPowerState;
23 import android.telephony.Annotation.SrvccState;
87 @Annotation.ImsCallServiceType int[] imsCallServiceTypes, in notifyPreciseCallState()
88 @Annotation.ImsCallType int[] imsCallTypes); in notifyPreciseCallState()
/frameworks/base/telephony/java/android/telephony/data/
DThrottleStatus.java28 import android.telephony.Annotation;
84 private final @Annotation.ApnType int mApnType;
113 @Annotation.ApnType
157 @Annotation.ApnType int apnTypes, in ThrottleStatus()
260 private @Annotation.ApnType int mApnType;
309 public Builder setApnType(@Annotation.ApnType int apnType) { in setApnType()
/frameworks/hardware/interfaces/stats/aidl/android/frameworks/stats/
DAnnotationSet.aidl18 import android.frameworks.stats.Annotation;
33 Annotation[] annotations;
DVendorAtom.aidl18 import android.frameworks.stats.Annotation;
92 @nullable Annotation[] atomAnnotations;
/frameworks/proto_logging/stats/stats_log_api_gen/
DCollation.h122 struct Annotation { struct
128 inline Annotation(AnnotationId annotationId, int atomId, AnnotationType type, in Annotation() function
132 inline ~Annotation() { in ~Annotation() argument
135 inline bool operator<(const Annotation& that) const {
147 using AnnotationSet = set<shared_ptr<Annotation>, SharedComparator>;
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DNonSdkApiWrapper.java29 import android.text.Annotation;
73 Annotation[] annotations = spannableText.getSpans(0, spannableText.length(), in linkifyAnnotation()
74 Annotation.class); in linkifyAnnotation()
76 for (Annotation annotation : annotations) { in linkifyAnnotation()
/frameworks/opt/setupwizard/library/platform/src/com/android/setupwizardlib/view/
DRichTextView.java20 import android.text.Annotation;
67 final Annotation[] spans = spannable.getSpans(0, spannable.length(), Annotation.class); in getRichText()
68 for (Annotation span : spans) { in getRichText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/telephony/domain/interactor/
DTelephonyInteractor.kt20 import android.telephony.Annotation
33 @Annotation.CallState val callState: Flow<Int> = repository.callState
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAnnotationLinkSpan.java19 import android.text.Annotation;
55 final Annotation[] spans = in linkify()
56 msg.getSpans(/* queryStart= */ 0, msg.length(), Annotation.class); in linkify()
/frameworks/base/telecomm/java/android/telecom/
DCallDiagnostics.java23 import android.telephony.Annotation;
301 @Annotation.DisconnectCauses int disconnectCause, in onCallDisconnected()
302 @Annotation.PreciseDisconnectCauses int preciseDisconnectCause); in onCallDisconnected()
DDisconnectCause.java23 import android.telephony.Annotation;
184 int toneToPlay, @Annotation.DisconnectCauses int telephonyDisconnectCause, in DisconnectCause()
185 @Annotation.PreciseDisconnectCauses int telephonyPreciseDisconnectCause, in DisconnectCause()
248 public @Annotation.DisconnectCauses int getTelephonyDisconnectCause() { in getTelephonyDisconnectCause()
257 public @Annotation.PreciseDisconnectCauses int getTelephonyPreciseDisconnectCause() { in getTelephonyPreciseDisconnectCause()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DRichTextView.java25 import android.text.Annotation;
67 final Annotation[] spans = spannable.getSpans(0, spannable.length(), Annotation.class); in getRichText()
68 for (Annotation span : spans) { in getRichText()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DNonSdkApiWrapperTest.java29 import android.text.Annotation;
45 builder.append(testLink, new Annotation("key", annotationId), in testLinkifyAnnotation_annotation_returnTextWithClickableSpan()
64 builder.append(testLink, new Annotation("key", annotationId), in testLinkifyAnnotation_annotationWithEmptyUriString_returnOriginalText()
/frameworks/base/telephony/java/android/telephony/ims/
DImsCallSessionListener.java24 import android.telephony.Annotation;
562 public void onMayHandover(@Annotation.NetworkType int srcNetworkType, in onMayHandover()
563 @Annotation.NetworkType int targetNetworkType) { in onMayHandover()
598 public void onHandover(@Annotation.NetworkType int srcNetworkType, in onHandover()
599 @Annotation.NetworkType int targetNetworkType, @Nullable ImsReasonInfo reasonInfo) { in onHandover()
631 public void onHandoverFailed(@Annotation.NetworkType int srcNetworkType, in onHandoverFailed()
632 @Annotation.NetworkType int targetNetworkType, @NonNull ImsReasonInfo reasonInfo) { in onHandoverFailed()
/frameworks/base/telephony/java/android/telephony/
DCallState.java24 import android.telephony.Annotation.ImsCallServiceType;
25 import android.telephony.Annotation.ImsCallType;
26 import android.telephony.Annotation.NetworkType;
27 import android.telephony.Annotation.PreciseCallStates;
DPreciseCallState.java25 import android.telephony.Annotation.DisconnectCauses;
26 import android.telephony.Annotation.PreciseCallStates;
27 import android.telephony.Annotation.PreciseDisconnectCauses;

123456