Home
last modified time | relevance | path

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

123456789

/packages/apps/Dialer/java/com/android/dialer/rootcomponentgenerator/
DComponentGeneratingStep.java21 import static javax.lang.model.element.Modifier.ABSTRACT;
22 import static javax.lang.model.element.Modifier.PUBLIC;
23 import static javax.lang.model.element.Modifier.STATIC;
46 import javax.lang.model.element.AnnotationMirror;
47 import javax.lang.model.element.AnnotationValue;
48 import javax.lang.model.element.Element;
49 import javax.lang.model.element.ExecutableElement;
50 import javax.lang.model.element.TypeElement;
51 import javax.lang.model.element.VariableElement;
184 private void addElement(TypeSpec.Builder builder, Element element) { in addElement() argument
[all …]
DMetadataGeneratingStep.java34 import javax.lang.model.element.Element;
35 import javax.lang.model.element.TypeElement;
61 for (Element element : elementsByAnnotation.get(IncludeInDialerRoot.class)) { in process()
62 generateMetadataFor(IncludeInDialerRoot.class, MoreElements.asType(element)); in process()
64 for (Element element : elementsByAnnotation.get(InstallIn.class)) { in process()
65 if (element.getAnnotation(InstallIn.class).variants().length == 0) { in process()
69 ERROR, String.format("@InstallIn %s must have at least one variant", element)); in process()
72 generateMetadataFor(InstallIn.class, MoreElements.asType(element)); in process()
DRootComponentGeneratingStep.java48 import javax.lang.model.element.AnnotationMirror;
49 import javax.lang.model.element.Element;
50 import javax.lang.model.element.Modifier;
51 import javax.lang.model.element.PackageElement;
52 import javax.lang.model.element.TypeElement;
95 for (Element element : elementsByAnnotation.get(DialerRootComponent.class)) { in process()
102 generateRootComponent(MoreElements.asType(element)); in process()
183 for (Element element : cachePackage.getEnclosedElements()) { in extractInfoFromMetadata()
185 getAnnotationMirror(element, RootComponentGeneratorMetadata.class); in extractInfoFromMetadata()
186 if (isAnnotationPresent(element, RootComponentGeneratorMetadata.class) in extractInfoFromMetadata()
/packages/modules/Wifi/service/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, simImsi)); in matchDomainNameUsingIMSI()
114 RoamingConsortiumElement element = in matchRoamingConsortium() local
116 assertEquals(oi, ANQPMatcher.matchRoamingConsortium(element, new long[] {oi}, false)); in matchRoamingConsortium()
138 NAIRealmElement element = new NAIRealmElement(new ArrayList<NAIRealmData>()); in matchNAIRealmWithEmtpyRealmData() local
139 assertFalse(ANQPMatcher.matchNAIRealm(element, "test.com")); in matchNAIRealmWithEmtpyRealmData()
153 NAIRealmElement element = new NAIRealmElement( in matchNAIRealmWithRealmMatch() local
155 assertTrue(ANQPMatcher.matchNAIRealm(element, realm)); in matchNAIRealmWithRealmMatch()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueue.java72 final Element element = expandableArray.get(index); in remove() local
73 if (element == pointer) { in remove()
81 expandableArray.set(newIndex, element); in remove()
104 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan() local
105 if (element == pointer) { in releaseAllPointersOlderThan()
108 if (!element.isModifier()) { in releaseAllPointersOlderThan()
109 element.onPhantomUpEvent(eventTime); in releaseAllPointersOlderThan()
114 expandableArray.set(newIndex, element); in releaseAllPointersOlderThan()
121 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan() local
122 if (element == pointer) { in releaseAllPointersOlderThan()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/omadm/
DMoSerializerTest.java60 Element element = mMoSerializer.createMgmtTree(mDocument); in testShouldReturnValidElementForCreateMgmtTree() local
62 assertEquals(element.getTagName(), MoSerializer.TAG_MGMT_TREE); in testShouldReturnValidElementForCreateMgmtTree()
73 Element element = mMoSerializer.writeVersion(mDocument); in testShouldReturnValidElementForWriteVersion() local
75 assertEquals(element.getTagName(), MoSerializer.TAG_VERSION); in testShouldReturnValidElementForWriteVersion()
76 Node childNode = element.getFirstChild(); in testShouldReturnValidElementForWriteVersion()
88 Element element = mMoSerializer.createNodeForUrn(mDocument, TEST_URN); in testShouldReturnValidElementForCreateNodeForUrn() local
90 assertEquals(element.getTagName(), MoSerializer.TAG_RTPROPERTIES); in testShouldReturnValidElementForCreateNodeForUrn()
91 assertEquals(element.getChildNodes().getLength(), 1); in testShouldReturnValidElementForCreateNodeForUrn()
92 Node childNode = element.getFirstChild(); in testShouldReturnValidElementForCreateNodeForUrn()
111 Element element = mMoSerializer.createNode(mDocument, TEST_NODE); in testShouldReturnValidElementForCreateNode() local
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java48 public static boolean matchDomainName(DomainNameElement element, String fqdn, in matchDomainName() argument
50 if (element == null) { in matchDomainName()
54 for (String domain : element.getDomains()) { in matchDomainName()
84 public static long matchRoamingConsortium(RoamingConsortiumElement element, in matchRoamingConsortium() argument
86 if (element == null) return 0; in matchRoamingConsortium()
90 List<Long> rcOIs = element.getOIs(); in matchRoamingConsortium()
112 public static boolean matchNAIRealm(NAIRealmElement element, String realm) { in matchNAIRealm() argument
113 if (element == null || element.getRealmDataList().isEmpty()) { in matchNAIRealm()
117 for (NAIRealmData realmData : element.getRealmDataList()) { in matchNAIRealm()
134 public static boolean matchThreeGPPNetwork(ThreeGPPNetworkElement element, in matchThreeGPPNetwork() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java94 public boolean select(E element); in select() argument
118 public Pinnable(E element) { in Pinnable() argument
119 mElement = element; in Pinnable()
384 Pinnable<E> element = mElements.get(key); in release() local
386 if (element == null) { in release()
391 if (!element.isPinned()) { in release()
396 element.mPins--; in release()
398 if (!element.isPinned()) { in release()
400 mUnpinnedElements.put(key, element); in release()
509 for (Pinnable<E> element : mElements.values()) { in close()
[all …]
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DCueView.java80 .filter(element -> element.hasImage()) in setCue()
81 .map(element -> element.getImage()) in setCue()
103 for (CueElement element : cue.getElementsList()) { in update()
104 if (element.hasImage()) { in update()
105 Bitmap bitmap = bitmaps.get(element.getImage()); in update()
107 String imageText = element.getText().isEmpty() ? mImageSpanText : in update()
108 element.getText(); in update()
117 } else if (!element.getText().isEmpty()) { in update()
118 builder.append(element.getText()); in update()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DCueView.java87 .filter(element -> element.hasImage()) in setCue()
88 .map(element -> element.getImage()) in setCue()
110 for (CueElement element : cue.getElementsList()) { in update()
111 if (element.hasImage()) { in update()
112 Bitmap bitmap = bitmaps.get(element.getImage()); in update()
114 String imageText = element.getText().isEmpty() ? mImageSpanText : in update()
115 element.getText(); in update()
118 } else if (!element.getText().isEmpty()) { in update()
119 builder.append(element.getText()); in update()
/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/
DCredentialElementTest.java44 CredentialElement element = new CredentialElement(KEY, VALUE); in testBuilder() local
45 assertThat(element.getKey()).isEqualTo(KEY); in testBuilder()
46 assertThat(Arrays.equals(element.getValue(), VALUE)).isTrue(); in testBuilder()
52 CredentialElement element = new CredentialElement(KEY, VALUE); in testWriteParcel() local
55 element.writeToParcel(parcel, 0); in testWriteParcel()
57 CredentialElement elementFromParcel = element.CREATOR.createFromParcel( in testWriteParcel()
67 CredentialElement element = new CredentialElement(KEY, VALUE); in describeContents() local
68 assertThat(element.describeContents()).isEqualTo(0); in describeContents()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/selection/
DGrantsAwareSet.kt66 override fun contains(element: T): Boolean { in contains()
68 if (selection.contains(element)) { in contains()
73 if (element.isPreGranted && !deSelection.contains(element)) { in contains()
104 for (element in elements) { in containsAll() method
105 if (!contains(element)) { in containsAll()
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DArrayInitializerFormatter.java81 public void outElement(final String element) { in outElement() argument
82 if (!element.equals(mLastElement)) { in outElement()
86 final int nextLen = mBufferedLen + " ".length() + element.length(); in outElement()
90 mBuffer.append(element); in outElement()
98 mBuffer.append(element); in outElement()
99 mBufferedLen = element.length(); in outElement()
102 mLastElement = element; in outElement()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/element/
DCarSystemBarElementInitializer.java17 package com.android.systemui.car.systembar.element;
67 for (ElementViewControllerData element : elementData) { in initializeCarSystemBarElements()
68 if (element.getControllerClass() != null) { in initializeCarSystemBarElements()
70 mElementControllerFactories.get(element.getControllerClass()); in initializeCarSystemBarElements()
73 + element.getControllerClass()); in initializeCarSystemBarElements()
78 Log.d(TAG, "cannot find factory for class " + element.getControllerClass()); in initializeCarSystemBarElements()
81 CarSystemBarElementController controller = factory.create(element.getView()); in initializeCarSystemBarElements()
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp309 void RouteDataSet::importProtocolRoute(xmlNodePtr& element, in importProtocolRoute() argument
321 "%s: element=%s", "RouteDataSet::importProtocolRoute", element->name); in importProtocolRoute()
322 value = xmlGetProp(element, id); in importProtocolRoute()
338 value = xmlGetProp(element, secElem); in importProtocolRoute()
348 value = xmlGetProp(element, switchOn); in importProtocolRoute()
354 value = xmlGetProp(element, switchOff); in importProtocolRoute()
360 value = xmlGetProp(element, batteryOff); in importProtocolRoute()
379 void RouteDataSet::importTechnologyRoute(xmlNodePtr& element, in importTechnologyRoute() argument
391 "%s: element=%s", "RouteDataSet::importTechnologyRoute", element->name); in importTechnologyRoute()
392 value = xmlGetProp(element, id); in importTechnologyRoute()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DArrayUtils.java133 for (int element : array) { in contains()
134 if (element == value) { in contains()
150 for (long element : array) { in contains()
151 if (element == value) { in contains()
167 for (char element : array) { in contains()
168 if (element == value) { in contains()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/errorlogging/
DAbstractAdServicesErrorLogger.java82 StackTraceElement element = tr.getStackTrace()[0]; in populateExceptionInfo() local
83 populateClassInfo(element, builder); in populateExceptionInfo()
90 StackTraceElement element, AdServicesErrorStats.Builder builder) { in populateClassInfo() argument
92 String shortClassName = getLastElement(element.getClassName(), '.'); in populateClassInfo()
94 .setMethodName(element.getMethodName()) in populateClassInfo()
95 .setLineNumber(element.getLineNumber()); in populateClassInfo()
/packages/apps/Camera2/src/com/android/camera/async/
DCountableBufferQueue.java38 public void process(T element) { in process() argument
39 mProcessor.process(element); in process()
66 public void process(T element) { in CountableBufferQueue()
107 public void update(@Nonnull T element) { in update() argument
118 mBufferQueue.update(element); in update()
DConcurrentBufferQueue.java51 public void process(T element); in process() argument
104 public void process(T element) { in ConcurrentBufferQueue()
143 public void update(@Nonnull T element) { in update() argument
148 mQueue.add(makeEntry(element)); in update()
152 mUnusedElementProcessor.process(element); in update()
/packages/apps/TV/libs/m2/
Dauto-common-0.10.jar ... element.Element) javax.lang.model.element.Element element private static boolean isValidBaseElement (javax. ...
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/net/module/util/
DTrackRecord.kt80 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>()
85 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>()
86 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DSensorQcPanel.java108 private Optional<ApplicationInfo> getApplicationInfo(PrivacyDialog.PrivacyElement element) { in getApplicationInfo() argument
109 return getApplicationInfo(element.getPackageName(), element.getUserId()); in getApplicationInfo()
142 PrivacyDialog.PrivacyElement element = elements.get(i); in addPrivacyElementsToQcList() local
143 Optional<ApplicationInfo> applicationInfo = getApplicationInfo(element); in addPrivacyElementsToQcList()
146 String appName = element.getPhoneCall() in addPrivacyElementsToQcList()
151 if (element.getActive()) { in addPrivacyElementsToQcList()
172 if (!element.getActive()) return; in addPrivacyElementsToQcList()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapMessageListing.java47 public void add(BluetoothMapMessageListingElement element) { in add() argument
48 mList.add(element); in add()
50 if (!element.getReadBool()) { in add()
122 for (BluetoothMapMessageListingElement element : mList) { in encode()
123 element.encode(xmlMsgElement, includeThreadId); // Append the list element in encode()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DDataSubscriptionUnseenIconController.java25 import com.android.systemui.car.systembar.element.CarSystemBarElementController;
26 import com.android.systemui.car.systembar.element.CarSystemBarElementStateController;
27 import com.android.systemui.car.systembar.element.CarSystemBarElementStatusBarDisableController;
28 import com.android.systemui.car.systembar.element.layout.CarSystemBarImageView;
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/element/layout/
DCarSystemBarImageView.java17 package com.android.systemui.car.systembar.element.layout;
25 import com.android.systemui.car.systembar.element.CarSystemBarElement;
26 import com.android.systemui.car.systembar.element.CarSystemBarElementFlags;
27 import com.android.systemui.car.systembar.element.CarSystemBarElementResolver;

123456789