Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/rs/driver/runtime/
Drs_element.c9 Element_t *element = (Element_t *)e.p; in rsElementGetSubElementCount() local
10 if (element == NULL) { in rsElementGetSubElementCount()
13 return element->mHal.state.fieldsCount; in rsElementGetSubElementCount()
18 Element_t *element = (Element_t *)e.p; in rsElementGetSubElement() local
19 if (element == NULL || index >= element->mHal.state.fieldsCount) { in rsElementGetSubElement()
24 element->mHal.state.fields[index] in rsElementGetSubElement()
36 Element_t *element = (Element_t *)e.p; in rsElementGetSubElementNameLength() local
37 if (element == NULL || index >= element->mHal.state.fieldsCount) { in rsElementGetSubElementNameLength()
40 return element->mHal.state.fieldNameLengths[index]; in rsElementGetSubElementNameLength()
45 Element_t *element = (Element_t *)e.p; in rsElementGetSubElementName() local
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/omadm/
DMoSerializerTest.java58 Element element = mMoSerializer.createMgmtTree(mDocument); in testShouldReturnValidElementForCreateMgmtTree() local
60 assertEquals(element.getTagName(), MoSerializer.TAG_MGMT_TREE); in testShouldReturnValidElementForCreateMgmtTree()
71 Element element = mMoSerializer.writeVersion(mDocument); in testShouldReturnValidElementForWriteVersion() local
73 assertEquals(element.getTagName(), MoSerializer.TAG_VERSION); in testShouldReturnValidElementForWriteVersion()
74 Node childNode = element.getFirstChild(); in testShouldReturnValidElementForWriteVersion()
86 Element element = mMoSerializer.createNodeForUrn(mDocument, TEST_URN); in testShouldReturnValidElementForCreateNodeForUrn() local
88 assertEquals(element.getTagName(), MoSerializer.TAG_RTPROPERTIES); in testShouldReturnValidElementForCreateNodeForUrn()
89 assertEquals(element.getChildNodes().getLength(), 1); in testShouldReturnValidElementForCreateNodeForUrn()
90 Node childNode = element.getFirstChild(); in testShouldReturnValidElementForCreateNodeForUrn()
109 Element element = mMoSerializer.createNode(mDocument, TEST_NODE); in testShouldReturnValidElementForCreateNode() local
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java43 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument
53 array[currentSize] = element; in append()
61 public static int[] append(int[] array, int currentSize, int element) { in append() argument
69 array[currentSize] = element; in append()
76 public static long[] append(long[] array, int currentSize, long element) { in append() argument
84 array[currentSize] = element; in append()
91 public static boolean[] append(boolean[] array, int currentSize, boolean element) { in append() argument
99 array[currentSize] = element; in append()
106 public static float[] append(float[] array, int currentSize, float element) { in append() argument
114 array[currentSize] = element; in append()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPMatcherTest.java76 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingFQDN() local
77 assertTrue(ANQPMatcher.matchDomainName(element, fqdn, null, null)); in matchDomainNameUsingFQDN()
92 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingIMSI() local
93 assertTrue(ANQPMatcher.matchDomainName(element, null, imsiParam, simImsiList)); in matchDomainNameUsingIMSI()
116 RoamingConsortiumElement element = in matchRoamingConsortium() local
118 assertTrue(ANQPMatcher.matchRoamingConsortium(element, new long[] {oi}, false)); in matchRoamingConsortium()
140 NAIRealmElement element = new NAIRealmElement(new ArrayList<NAIRealmData>()); in matchNAIRealmWithEmtpyRealmData() local
141 assertFalse(ANQPMatcher.matchNAIRealm(element, "test.com")); in matchNAIRealmWithEmtpyRealmData()
155 NAIRealmElement element = new NAIRealmElement( in matchNAIRealmWithRealmMatch() local
157 assertTrue(ANQPMatcher.matchNAIRealm(element, realm)); in matchNAIRealmWithRealmMatch()
[all …]
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
DAnnotationUtils.java29 import javax.lang.model.element.AnnotationMirror;
30 import javax.lang.model.element.AnnotationValue;
31 import javax.lang.model.element.Element;
32 import javax.lang.model.element.ExecutableElement;
33 import javax.lang.model.element.TypeElement;
59 AnnotationMirror exactlyOneMirror(@NonNull String qualifiedName, @NonNull Element element) { in exactlyOneMirror() argument
64 for (AnnotationMirror annotation : element.getAnnotationMirrors()) { in exactlyOneMirror()
74 throw new ProcessingException(message, element, annotation); in exactlyOneMirror()
82 throw new ProcessingException(message, element); in exactlyOneMirror()
95 boolean hasAnnotation(@NonNull Element element, @NonNull String annotationQualifiedName) { in hasAnnotation() argument
[all …]
DInspectablePropertyProcessor.java33 import javax.lang.model.element.AnnotationMirror;
34 import javax.lang.model.element.AnnotationValue;
35 import javax.lang.model.element.Element;
36 import javax.lang.model.element.ElementKind;
37 import javax.lang.model.element.ExecutableElement;
38 import javax.lang.model.element.Modifier;
39 import javax.lang.model.element.TypeElement;
142 public void process(@NonNull Element element, @NonNull InspectableClassModel model) { in process() argument
145 mAnnotationUtils.exactlyOneMirror(mQualifiedName, element); in process()
146 final Property property = buildProperty(element, annotation); in process()
[all …]
DPlatformInspectableProcessor.java35 import javax.lang.model.element.Element;
36 import javax.lang.model.element.ElementKind;
37 import javax.lang.model.element.Modifier;
38 import javax.lang.model.element.TypeElement;
103 for (Element element : elements) { in processProperties()
104 final Optional<TypeElement> classElement = enclosingClassElement(element); in processProperties()
107 fail("Element not contained in a class", element); in processProperties()
114 fail("Enclosing class cannot be private", element); in processProperties()
125 element); in processProperties()
130 processor.process(element, model); in processProperties()
[all …]
DProcessingException.java25 import javax.lang.model.element.AnnotationMirror;
26 import javax.lang.model.element.AnnotationValue;
27 import javax.lang.model.element.Element;
41 ProcessingException(@NonNull String message, @NonNull Element element) { in ProcessingException() argument
42 this(message, element, null, null); in ProcessingException()
47 @NonNull Element element, in ProcessingException() argument
49 this(message, element, annotationMirror, null); in ProcessingException()
54 @Nullable Element element, in ProcessingException() argument
58 mElement = element; in ProcessingException()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp336 std::unique_ptr<Element> Visit(xml::Element* element);
389 template<typename T> T* ElementCast(ManifestExtractor::Element* element);
511 void Extract(xml::Element* element) override { in Extract() argument
512 label = GetAttributeStringDefault(FindAttribute(element, LABEL_ATTR), ""); in Extract()
513 icon = GetAttributeStringDefault(FindAttribute(element, ICON_ATTR), ""); in Extract()
514 test_only = GetAttributeIntegerDefault(FindAttribute(element, TEST_ONLY_ATTR), 0); in Extract()
515 banner = GetAttributeStringDefault(FindAttribute(element, BANNER_ATTR), ""); in Extract()
516 is_game = GetAttributeIntegerDefault(FindAttribute(element, ISGAME_ATTR), 0); in Extract()
517 debuggable = GetAttributeIntegerDefault(FindAttribute(element, DEBUGGABLE_ATTR), 0); in Extract()
522 FindAttribute(element, kAndroidNamespace, "multiArch"), 0) != 0); in Extract()
[all …]
/frameworks/base/core/java/android/provider/
DSettingsStringUtil.java90 public static String add(String delimitedElements, String element) { in add() argument
93 if (set.contains(element)) { in add()
96 set.add(element); in add()
100 public static String remove(String delimitedElements, String element) { in remove() argument
103 if (!set.contains(element)) { in remove()
106 set.remove(element); in remove()
110 public static boolean contains(String delimitedElements, String element) { in contains() argument
112 return ArrayUtils.indexOf(elements, element) != -1; in contains()
132 public static String add(String delimitedElements, ComponentName element) { in add() argument
134 if (set.contains(element)) { in add()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java52 public static boolean matchDomainName(DomainNameElement element, String fqdn, in matchDomainName() argument
54 if (element == null) { in matchDomainName()
58 for (String domain : element.getDomains()) { in matchDomainName()
81 public static boolean matchRoamingConsortium(RoamingConsortiumElement element, in matchRoamingConsortium() argument
83 if (element == null) { in matchRoamingConsortium()
89 List<Long> rcOIs = element.getOIs(); in matchRoamingConsortium()
110 public static boolean matchNAIRealm(NAIRealmElement element, String realm) { in matchNAIRealm() argument
111 if (element == null || element.getRealmDataList().isEmpty()) { in matchNAIRealm()
115 for (NAIRealmData realmData : element.getRealmDataList()) { in matchNAIRealm()
131 NAIRealmElement element) { in getCarrierEapMethodFromMatchingNAIRealm() argument
[all …]
/frameworks/base/services/core/java/com/android/server/
DWatchdogDiagnostics.java57 for (AnnotatedStackTraceElement element : stack) { in printAnnotatedStack()
58 out.println(" at " + element.getStackTraceElement()); in printAnnotatedStack()
59 if (element.getBlockedOn() != null) { in printAnnotatedStack()
60 out.println(" " + getBlockedOnString(element.getBlockedOn())); in printAnnotatedStack()
62 if (element.getHeldLocks() != null) { in printAnnotatedStack()
63 for (Object held : element.getHeldLocks()) { in printAnnotatedStack()
83 for (StackTraceElement element : stackTrace) { in diagnoseCheckers()
84 Slog.w(Watchdog.TAG, " at " + element); in diagnoseCheckers()
/frameworks/minikin/include/minikin/
DSparseBitSet.h75 typedef uint32_t element; typedef
76 static const element kElAllOnes = ~((element)0);
77 static const element kElFirst = ((element)1) << kElMask;
81 static int CountLeadingZeros(element x);
86 std::unique_ptr<element[]> mBitmaps;
/frameworks/base/telephony/common/com/android/internal/telephony/util/
DArrayUtils.java40 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) { in appendElement() argument
41 return appendElement(kind, array, element, false); in appendElement()
55 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element, in appendElement() argument
60 if (!allowDuplicates && contains(array, element)) return array; in appendElement()
68 result[end] = element; in appendElement()
135 for (char element : array) { in contains()
136 if (element == value) { in contains()
155 for (int element : array) { in contains()
156 if (element == value) { in contains()
168 for (long element : array) { in contains()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dsingle_source_ref_count.rscript28 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
29 if (!rsIsObject(element)) {
30 rsDebug("element is null.", element.p);
34 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
51 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
52 if (!rsIsObject(element)) {
53 rsDebug("element is null.", element.p);
57 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dsingle_source_ref_count.rscript26 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
27 if (!rsIsObject(element)) {
28 rsDebug("element is null.", element.p);
32 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
49 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
50 if (!rsIsObject(element)) {
51 rsDebug("element is null.", element.p);
55 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
/frameworks/base/tools/bit/
Daapt.cpp193 Element* element = new Element(); in inspect_apk() local
198 element->name = str; in inspect_apk()
200 element->ns = scope->namespaces[string(str, 0, colon)]; in inspect_apk()
201 element->name.assign(str, colon+1, string::npos); in inspect_apk()
203 element->lineno = atoi(match[3].str().c_str()); in inspect_apk()
204 element->depth = match[1].length() / 2; in inspect_apk()
207 current = element; in inspect_apk()
208 root = element; in inspect_apk()
210 while (element->depth <= current->depth && current->parent != NULL) { in inspect_apk()
213 element->parent = current; in inspect_apk()
[all …]
/frameworks/base/tools/preload/
Dsorttable.js374 function dean_addEvent(element, type, handler) { argument
375 if (element.addEventListener) {
376 element.addEventListener(type, handler, false);
381 if (!element.events) element.events = {};
383 var handlers = element.events[type];
385 handlers = element.events[type] = {};
387 if (element["on" + type]) {
388 handlers[0] = element["on" + type];
394 element["on" + type] = handleEvent;
400 function removeEvent(element, type, handler) { argument
[all …]
/frameworks/base/tools/aapt2/compile/
DXmlIdCollector.cpp44 void Visit(xml::Element* element) override { in Visit()
45 for (xml::Attribute& attr : element->attributes) { in Visit()
51 source_diag_->Error(DiagMessage(element->line_number) in Visit()
58 element->line_number}); in Visit()
65 xml::Visitor::Visit(element); in Visit()
/frameworks/base/core/java/com/android/internal/widget/
DAccountItemView.java67 public void setViewItem(AccountElements element) { in setViewItem() argument
68 Drawable drawable = element.getDrawable(); in setViewItem()
72 setAccountIcon(element.getIcon()); in setViewItem()
74 setAccountName(element.getName()); in setViewItem()
75 setAccountNumber(element.getNumber()); in setViewItem()
/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
DIndexableProcessor.java40 import javax.lang.model.element.Element;
41 import javax.lang.model.element.Modifier;
42 import javax.lang.model.element.Name;
43 import javax.lang.model.element.TypeElement;
104 for (Element element : roundEnvironment.getElementsAnnotatedWith(SearchIndexable.class)) { in process()
105 if (element.getKind().isClass()) { in process()
106 Name className = element.accept(new SimpleElementVisitor8<Name, Void>() { in process()
113 SearchIndexable searchIndexable = element.getAnnotation(SearchIndexable.class); in process()
130 throw new IllegalStateException("Null classname from " + element); in process()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.internal.h222 bool ArtifactTagHandler(configuration::PostProcessingConfiguration* config, xml::Element* element,
227 xml::Element* element, IDiagnostics* diag);
230 bool AbiGroupTagHandler(configuration::PostProcessingConfiguration* config, xml::Element* element,
235 xml::Element* element, IDiagnostics* diag);
239 xml::Element* element, IDiagnostics* diag);
242 bool AndroidSdkTagHandler(configuration::PostProcessingConfiguration* config, xml::Element* element,
247 xml::Element* element, IDiagnostics* diag);
251 xml::Element* element, IDiagnostics* diag);
/frameworks/libs/net/common/hostdevice/com/android/net/module/util/
DTrackRecord.kt79 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>()
84 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>()
85 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>()
/frameworks/rs/script_api/include/
Drs_object_info.rsh40 * The term "element" is used a bit ambiguously in RenderScript, as both type information
43 * - In functions like rsGetElementAt(), "element" means the instantiation of the type,
242 * rsElementGetSubElement: Sub-element of a complex Element
244 * For Elements that represents a structure, this function returns the sub-element at the
252 * index: Index of the sub-element to return.
254 * Returns: Sub-element at the given index.
262 * rsElementGetSubElementArraySize: Array size of a sub-element of a complex Element
265 * returns the array size of the sub-element at the index. This sub-element repetition
270 * index: Index of the sub-element.
272 * Returns: Array size of the sub-element.
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DTimeLimitedMotionEventBuffer.java61 public void add(int index, MotionEvent element) { in add() argument
111 public boolean add(MotionEvent element) { in add() argument
112 boolean result = mMotionEvents.add(element); in add()
170 public MotionEvent set(int index, MotionEvent element) { in set() argument
238 public void add(MotionEvent element) { in add() argument

1234567