Home
last modified time | relevance | path

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

123456

/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/data-binding/compiler/src/main/java/android/databinding/annotationprocessor/
DProcessMethodAdapters.java38 import javax.lang.model.element.Element;
39 import javax.lang.model.element.ElementKind;
40 import javax.lang.model.element.ExecutableElement;
41 import javax.lang.model.element.Modifier;
42 import javax.lang.model.element.TypeElement;
43 import javax.lang.model.element.VariableElement;
89 for (Element element : AnnotationUtil in addBindingAdapters()
91 if (element.getKind() != ElementKind.METHOD || in addBindingAdapters()
92 !element.getModifiers().contains(Modifier.PUBLIC)) { in addBindingAdapters()
93 L.e(element, "@BindingAdapter on invalid element: %s", element); in addBindingAdapters()
[all …]
DProcessBindable.java36 import javax.lang.model.element.Element;
37 import javax.lang.model.element.ElementKind;
38 import javax.lang.model.element.ExecutableElement;
39 import javax.lang.model.element.Name;
40 import javax.lang.model.element.TypeElement;
41 import javax.lang.model.element.VariableElement;
60 for (Element element : AnnotationUtil in onHandleStep()
62 Element enclosingElement = element.getEnclosingElement(); in onHandleStep()
73 String name = getPropertyName(element); in onHandleStep()
130 private String getPropertyName(Element element) { in getPropertyName() argument
[all …]
DAnnotationUtil.java23 import javax.lang.model.element.Element;
34 for (Element element : roundEnv.getElementsAnnotatedWith(annotationClass)) { in getElementsAnnotatedWith()
35 if (element.getAnnotation(annotationClass) != null) { in getElementsAnnotatedWith()
36 elements.add(element); in getElementsAnnotatedWith()
DBuildInfoUtil.java27 import javax.lang.model.element.Element;
45 for (Element element : roundEnv.getElementsAnnotatedWith(annotationClass)) { in extractNotNull()
46 final T info = element.getAnnotation(annotationClass); in extractNotNull()
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/
DGrowingArrayUtils.java40 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument
49 array[currentSize] = element; in append()
56 public static int[] append(int[] array, int currentSize, int element) { in append() argument
64 array[currentSize] = element; in append()
71 public static long[] append(long[] array, int currentSize, long element) { in append() argument
79 array[currentSize] = element; in append()
86 public static boolean[] append(boolean[] array, int currentSize, boolean element) { in append() argument
94 array[currentSize] = element; in append()
109 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert() argument
114 array[index] = element; in insert()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java40 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument
50 array[currentSize] = element; in append()
57 public static int[] append(int[] array, int currentSize, int element) { in append() argument
65 array[currentSize] = element; in append()
72 public static long[] append(long[] array, int currentSize, long element) { in append() argument
80 array[currentSize] = element; in append()
87 public static boolean[] append(boolean[] array, int currentSize, boolean element) { in append() argument
95 array[currentSize] = element; in append()
102 public static float[] append(float[] array, int currentSize, float element) { in append() argument
110 array[currentSize] = element; in append()
[all …]
DArrayUtils.java228 for (int element : array) { in contains()
229 if (element == value) { in contains()
238 for (long element : array) { in contains()
239 if (element == value) { in contains()
248 for (char element : array) { in contains()
249 if (element == value) { in contains()
292 public static @NonNull <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) { in appendElement() argument
293 return appendElement(kind, array, element, false); in appendElement()
300 public static @NonNull <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element, in appendElement() argument
305 if (!allowDuplicates && contains(array, element)) return array; in appendElement()
[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/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPMatcherTest.java73 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingFQDN() local
74 assertTrue(ANQPMatcher.matchDomainName(element, fqdn, null, null)); in matchDomainNameUsingFQDN()
89 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingIMSI() local
90 assertTrue(ANQPMatcher.matchDomainName(element, null, imsiParam, simImsiList)); in matchDomainNameUsingIMSI()
113 RoamingConsortiumElement element = in matchRoamingConsortium() local
115 assertTrue(ANQPMatcher.matchRoamingConsortium(element, new long[] {oi})); in matchRoamingConsortium()
138 NAIRealmElement element = new NAIRealmElement(new ArrayList<NAIRealmData>()); in matchNAIRealmWithEmtpyRealmData() local
139 assertEquals(AuthMatch.INDETERMINATE, ANQPMatcher.matchNAIRealm(element, "test.com", in matchNAIRealmWithEmtpyRealmData()
154 NAIRealmElement element = new NAIRealmElement( in matchNAIRealmWithRealmMatch() local
156 assertEquals(AuthMatch.REALM, ANQPMatcher.matchNAIRealm(element, realm, in matchNAIRealmWithRealmMatch()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java50 public static boolean matchDomainName(DomainNameElement element, String fqdn, in matchDomainName() argument
52 if (element == null) { in matchDomainName()
56 for (String domain : element.getDomains()) { in matchDomainName()
78 public static boolean matchRoamingConsortium(RoamingConsortiumElement element, in matchRoamingConsortium() argument
80 if (element == null) { in matchRoamingConsortium()
86 List<Long> rcOIs = element.getOIs(); in matchRoamingConsortium()
105 public static int matchNAIRealm(NAIRealmElement element, String realm, int eapMethodID, in matchNAIRealm() argument
107 if (element == null || element.getRealmDataList().isEmpty()) { in matchNAIRealm()
112 for (NAIRealmData realmData : element.getRealmDataList()) { in matchNAIRealm()
133 public static boolean matchThreeGPPNetwork(ThreeGPPNetworkElement element, in matchThreeGPPNetwork() argument
[all …]
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
Dsingle_source_ref_count.rs10 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
11 if (!rsIsObject(element)) {
12 rsDebug("element is null.", element.p);
16 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
33 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
34 if (!rsIsObject(element)) {
35 rsDebug("element is null.", element.p);
39 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
Dsingle_source_ref_count.rs10 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
11 if (!rsIsObject(element)) {
12 rsDebug("element is null.", element.p);
16 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
33 rs_element element = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4);
34 if (!rsIsObject(element)) {
35 rsDebug("element is null.", element.p);
39 rs_type type = rsCreateType(element, dimX, dimY, dimZ);
/frameworks/minikin/include/minikin/
DSparseBitSet.h78 typedef uint32_t element; typedef
79 static const element kElAllOnes = ~((element)0);
80 static const element kElFirst = ((element)1) << kElMask;
84 static int CountLeadingZeros(element x);
89 std::unique_ptr<element[]> mBitmaps;
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
DL.java26 import javax.lang.model.element.Element;
34 public void printMessage(Kind kind, String message, Element element) {
59 public static void d(Element element, String msg, Object... args) { in d() argument
61 printMessage(element, Diagnostic.Kind.NOTE, String.format(msg, args)); in d()
76 public static void w(Element element, String msg, Object... args) { in w() argument
77 printMessage(element, Kind.WARNING, String.format(msg, args)); in w()
104 public static void e(Element element, String msg, Object... args) { in e() argument
107 printMessage(element, Diagnostic.Kind.ERROR, fullMsg); in e()
117 private static void printMessage(Element element, Diagnostic.Kind kind, String message) { in printMessage() argument
122 sClient.printMessage(kind, ex.createHumanReadableMessage(), element); in printMessage()
[all …]
/frameworks/base/tools/bit/
Daapt.cpp192 Element* element = new Element(); in inspect_apk() local
197 element->name = str; in inspect_apk()
199 element->ns = scope->namespaces[string(str, 0, colon)]; in inspect_apk()
200 element->name.assign(str, colon+1, string::npos); in inspect_apk()
202 element->lineno = atoi(match[3].str().c_str()); in inspect_apk()
203 element->depth = match[1].length() / 2; in inspect_apk()
206 current = element; in inspect_apk()
207 root = element; in inspect_apk()
209 while (element->depth <= current->depth && current->parent != NULL) { in inspect_apk()
212 element->parent = current; in inspect_apk()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DSerializer.h55 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
81 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
102 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
126 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
148 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
172 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
209 static status_t deserialize(_xmlDoc *doc, const _xmlNode *root, PtrElement &element,
/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/data-binding/compiler/src/main/java/android/databinding/tool/reflection/annotation/
DAnnotationMethod.java26 import javax.lang.model.element.Element;
27 import javax.lang.model.element.ElementKind;
28 import javax.lang.model.element.ExecutableElement;
29 import javax.lang.model.element.Modifier;
30 import javax.lang.model.element.TypeElement;
84 for (Element element : typeElement.getEnclosedElements()) { in hasExecutableMethod()
85 if (element.getKind() == ElementKind.METHOD) { in hasExecutableMethod()
86 ExecutableElement executableElement = (ExecutableElement) element; in hasExecutableMethod()
/frameworks/base/tools/aapt2/compile/
DXmlIdCollector.cpp41 void Visit(xml::Element* element) override { in Visit()
42 for (xml::Attribute& attr : element->attributes) { in Visit()
52 element->line_number}); in Visit()
58 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/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp108 for (auto element : mDisplays) { in ~Device() local
109 auto display = element.second.lock(); in ~Device()
112 " destroyed", element.first); in ~Device()
448 for (uint32_t element = 0; element < numElements; ++element) { in getChangedCompositionTypes() local
449 auto layer = getLayerById(layerIds[element]); in getChangedCompositionTypes()
451 auto type = static_cast<Composition>(types[element]); in getChangedCompositionTypes()
457 " on display %" PRIu64, layerIds[element], mId); in getChangedCompositionTypes()
484 for (const auto& element : mConfigs) { in getConfigs() local
485 configs.emplace_back(element.second); in getConfigs()
514 for (uint32_t element = 0; element < numElements; ++element) { in getRequests() local
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.cpp133 Element<Key> *element = getFromCollection<Key>(key); in getPropertyForKey() local
134 if (element == NULL) { in getPropertyForKey()
138 return element->template get<Property>(); in getPropertyForKey()
193 Element<Key> *element = getFromCollection<Key>(key); in setPropertyForKey() local
194 if (element == NULL) { in setPropertyForKey()
198 return element->template set<Property>(property) == NO_ERROR; in setPropertyForKey()
/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/minikin/libs/minikin/
DSparseBitSet.cpp65 mBitmaps.reset(new element[nPages << (kLogValuesPerPage - kLogBitsPerEl)]()); in initFromRanges()
107 int SparseBitSet::CountLeadingZeros(element x) { in CountLeadingZeros()
109 return sizeof(element) <= sizeof(int) ? __builtin_clz(x) : __builtin_clzl(x); in CountLeadingZeros()
117 const element* bitmap = &mBitmaps[mIndices[fromPage]]; in nextSetBit()
119 element e = bitmap[offset] & (kElAllOnes >> (fromIndex & kElMask)); in nextSetBit()

123456