Home
last modified time | relevance | path

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

12345678

/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/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java44 public static <T> T[] append(T[] array, int currentSize, T element) { in append() argument
54 array[currentSize] = element; in append()
62 public static int[] append(int[] array, int currentSize, int element) { in append() argument
70 array[currentSize] = element; in append()
77 public static long[] append(long[] array, int currentSize, long element) { in append() argument
85 array[currentSize] = element; in append()
92 public static boolean[] append(boolean[] array, int currentSize, boolean element) { in append() argument
100 array[currentSize] = element; in append()
107 public static float[] append(float[] array, int currentSize, float element) { in append() argument
115 array[currentSize] = element; in append()
[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 …]
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 …]
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 …]
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.cpp345 std::unique_ptr<Element> Visit(xml::Element* element);
398 template<typename T> T* ElementCast(ManifestExtractor::Element* element);
530 void Extract(xml::Element* element) override { in Extract() argument
531 label = GetAttributeStringDefault(FindAttribute(element, LABEL_ATTR), ""); in Extract()
532 icon = GetAttributeStringDefault(FindAttribute(element, ICON_ATTR), ""); in Extract()
533 test_only = GetAttributeIntegerDefault(FindAttribute(element, TEST_ONLY_ATTR), 0); in Extract()
534 banner = GetAttributeStringDefault(FindAttribute(element, BANNER_ATTR), ""); in Extract()
535 is_game = GetAttributeIntegerDefault(FindAttribute(element, ISGAME_ATTR), 0); in Extract()
536 debuggable = GetAttributeIntegerDefault(FindAttribute(element, DEBUGGABLE_ATTR), 0); in Extract()
541 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/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DPrivacyDialogTest.kt142 val element = PrivacyDialog.PrivacyElement( in testUsingText() constant
154 val list = listOf(element) in testUsingText()
160 element.applicationName, in testUsingText()
161 element.type.getName(context) in testUsingText()
168 val element = PrivacyDialog.PrivacyElement( in testRecentText() constant
180 val list = listOf(element) in testRecentText()
186 element.applicationName, in testRecentText()
187 element.type.getName(context) in testRecentText()
194 val element = PrivacyDialog.PrivacyElement( in testEnterprise() constant
206 val list = listOf(element) in testEnterprise()
[all …]
/frameworks/minikin/include/minikin/
DSparseBitSet.h81 typedef uint32_t element; typedef
82 static const element kElAllOnes = ~((element)0);
83 static const element kElFirst = ((element)1) << kElMask;
87 static int CountLeadingZeros(element x);
93 const element* mBitmaps;
98 std::unique_ptr<element[]> mOwnedBitmaps;
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyDialog.kt105 private fun createView(element: PrivacyElement): View { in <lambda>()
109 val d = getDrawableForType(element.type) in <lambda>()
113 contentDescription = element.type.getName(context) in <lambda>()
115 val stringId = getStringIdForState(element.active) in <lambda>()
116 val app = if (element.phoneCall) phonecall else element.applicationName in <lambda>()
117 val appName = if (element.enterprise) { in <lambda>()
123 val finalText = element.attribution?.let { in <lambda>()
131 if (element.phoneCall) { in <lambda>()
135 setTag(element) in <lambda>()
136 if (!element.phoneCall) { in <lambda>()
[all …]
/frameworks/base/services/core/java/com/android/server/textclassifier/
DFixedSizeQueue.java59 public boolean add(@NonNull E element) { in add() argument
60 Objects.requireNonNull(element); in add()
67 mDelegate.add(element); in add()
82 public boolean remove(@NonNull E element) { in remove() argument
83 Objects.requireNonNull(element); in remove()
84 return mDelegate.remove(element); in remove()
101 void onEntryEvicted(@NonNull E element); in onEntryEvicted() argument
/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/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/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/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/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/jni/
Dcom_android_internal_content_om_OverlayConfig.cpp49 jstring element = (jstring) env->GetObjectArrayElement(overlayPath, i); in createIdmap() local
50 const char* overlayApkPath = env->GetStringUTFChars(element, NULL /* isCopy */); in createIdmap()
53 env->ReleaseStringUTFChars(element, overlayApkPath); in createIdmap()
58 jstring element = (jstring)env->GetObjectArrayElement(policies, i); in createIdmap() local
59 const char* policy = env->GetStringUTFChars(element, NULL /* isCopy */); in createIdmap()
62 env->ReleaseStringUTFChars(element, policy); in createIdmap()
/frameworks/native/services/inputflinger/reader/mapper/
DVibratorInputMapper.cpp103 const VibrationElement& element = mSequence.pattern[mIndex]; in nextStep() local
104 if (element.isOn()) { in nextStep()
106 std::string description = element.toString(); in nextStep()
110 getDeviceContext().vibrate(element); in nextStep()
119 std::chrono::duration_cast<std::chrono::nanoseconds>(element.duration); in nextStep()
123 ALOGD("nextStep: scheduled timeout in %lldms", element.duration.count()); in nextStep()
/frameworks/minikin/libs/minikin/
DSparseBitSet.cpp64 mOwnedBitmaps = std::make_unique<element[]>(mBitmapsCount); in initFromRanges()
113 static_assert(sizeof(element) == 4); in initFromBuffer()
114 std::tie(mBitmaps, mBitmapsCount) = reader->readArray<element>(); in initFromBuffer()
123 writer->writeArray<element>(mBitmaps, mBitmapsCount); in writeTo()
127 int SparseBitSet::CountLeadingZeros(element x) { in CountLeadingZeros()
129 return sizeof(element) <= sizeof(int) ? __builtin_clz(x) : __builtin_clzl(x); in CountLeadingZeros()
137 const element* bitmap = &mBitmaps[mIndices[fromPage]]; in nextSetBit()
139 element e = bitmap[offset] & (kElAllOnes >> (fromIndex & kElMask)); in nextSetBit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DSparseArrayUtils.kt100 override fun contains(element: Map.Entry<Int, T>): Boolean = in asMap()
101 sparseArray[element.key]?.let { it == element.value } == true in asMap()
117 override fun contains(element: Int): Boolean = containsKey(element) in asMap()
135 override fun contains(element: T): Boolean = containsValue(element) in asMap()
/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/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMediaCodecSurfaceEncoder.java270 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandleDecoder.getWork(); in doWork() local
271 if (element != null) { in doWork()
272 int bufferID = element.first; in doWork()
273 MediaCodec.BufferInfo info = element.second; in doWork()
294 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandleDecoder.getWork(); in queueEOS() local
295 if (element != null) { in queueEOS()
296 int bufferID = element.first; in queueEOS()
297 MediaCodec.BufferInfo info = element.second; in queueEOS()
301 enqueueDecoderEOS(element.first); in queueEOS()
318 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandleEncoder.getOutput(); in tryEncoderOutput() local
[all …]

12345678