Home
last modified time | relevance | path

Searched refs:anchor (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java107 public void update(View anchor, int offsetX, int offsetY, int width, int height, in update() argument
130 final WindowManager windowManager = anchor.getContext() in update()
138 actualAnchor = anchor; in update()
141 actualAnchor = new View(anchor.getContext()) { in update()
150 return anchor.getAccessibilityViewId(); in update()
155 return anchor.getViewTreeObserver(); in update()
160 return anchor.getApplicationWindowToken(); in update()
165 return anchor.getRootView(); in update()
170 return anchor.getLayoutDirection(); in update()
175 anchor.getWindowDisplayFrame(outRect); in update()
[all …]
DAutofillClientController.java445 public boolean autofillClientRequestShowFillUi(@NonNull View anchor, int width, in autofillClientRequestShowFillUi() argument
455 mAutofillPopupWindow.update(anchor, 0, 0, width, height, anchorBounds); in autofillClientRequestShowFillUi()
461 public void autofillClientDispatchUnhandledKey(View anchor, KeyEvent keyEvent) { in autofillClientDispatchUnhandledKey() argument
462 ViewRootImpl rootImpl = anchor.getViewRootImpl(); in autofillClientDispatchUnhandledKey()
/frameworks/base/core/java/com/android/internal/view/inline/
DInlineTooltipUi.java152 public void update(View anchor) { in update() argument
153 if (anchor == null) { in update()
168 mDelayShowTooltip = new DelayShowRunnable(anchor); in update()
174 anchor.getContext().getContentResolver(), in update()
180 anchor.postDelayed(mDelayShowTooltip, delayTimeMs); in update()
184 updateInner(anchor); in update()
188 private void removeDelayShowTooltip(View anchor) { in removeDelayShowTooltip() argument
190 anchor.removeCallbacks(mDelayShowTooltip); in removeDelayShowTooltip()
195 private void updateInner(View anchor) { in updateInner() argument
202 final int offsetY = -anchor.getHeight() - getPreferHeight(anchor); in updateInner()
[all …]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestCertificateSource.java44 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() local
45 if (anchor == null) { in findBySubjectAndPublicKey()
48 return anchor.getTrustedCert(); in findBySubjectAndPublicKey()
53 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature() local
54 if (anchor == null) { in findByIssuerAndSignature()
57 return anchor.getTrustedCert(); in findByIssuerAndSignature()
63 for (java.security.cert.TrustAnchor anchor : mIndex.findAllByIssuerAndSignature(cert)) { in findAllByIssuerAndSignature()
64 certs.add(anchor.getTrustedCert()); in findAllByIssuerAndSignature()
DNetworkSecurityConfigTests.java284 for (TrustAnchor anchor : preNAnchors) { in testUserAddedCaOptIn()
285 preNCerts.add(anchor.certificate); in testUserAddedCaOptIn()
288 for (TrustAnchor anchor : nAnchors) { in testUserAddedCaOptIn()
289 nCerts.add(anchor.certificate); in testUserAddedCaOptIn()
292 for (TrustAnchor anchor : privAnchors) { in testUserAddedCaOptIn()
293 privCerts.add(anchor.certificate); in testUserAddedCaOptIn()
DXmlConfigTests.java324 for (TrustAnchor anchor : anchors) { in testBasicDebugOverrides()
325 assertTrue(anchor.overridesPins); in testBasicDebugOverrides()
340 for (TrustAnchor anchor : anchors) { in testDebugOverridesWithDomain()
341 if (anchor.certificate.getSubjectDN().toString().equals(DEBUG_CA_SUBJ)) { in testDebugOverridesWithDomain()
343 assertTrue(anchor.overridesPins); in testDebugOverridesWithDomain()
360 for (TrustAnchor anchor : anchors) { in testDebugInherit()
361 if (anchor.certificate.getSubjectDN().toString().equals(DEBUG_CA_SUBJ)) { in testDebugInherit()
363 assertTrue(anchor.overridesPins); in testDebugInherit()
445 for (TrustAnchor anchor : config.getTrustAnchors()) { in testDebugDedup()
446 assertTrue(anchor.overridesPins); in testDebugDedup()
/frameworks/base/core/java/android/security/net/config/
DTrustedCertificateStoreAdapter.java37 TrustAnchor anchor = mConfig.findTrustAnchorByIssuerAndSignature(cert); in findIssuer() local
38 if (anchor == null) { in findIssuer()
41 return anchor.certificate; in findIssuer()
51 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in getTrustAnchor() local
52 if (anchor == null) { in getTrustAnchor()
55 return anchor.certificate; in getTrustAnchor()
61 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in isUserAddedCertificate() local
62 if (anchor == null) { in isUserAddedCertificate()
65 return anchor.overridesPins; in isUserAddedCertificate()
DKeyStoreCertificateSource.java78 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() local
79 if (anchor == null) { in findBySubjectAndPublicKey()
82 return anchor.getTrustedCert(); in findBySubjectAndPublicKey()
88 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature() local
89 if (anchor == null) { in findByIssuerAndSignature()
92 return anchor.getTrustedCert(); in findByIssuerAndSignature()
103 for (java.security.cert.TrustAnchor anchor : anchors) { in findAllByIssuerAndSignature()
104 certs.add(anchor.getTrustedCert()); in findAllByIssuerAndSignature()
DResourceCertificateSource.java88 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() local
89 if (anchor == null) { in findBySubjectAndPublicKey()
92 return anchor.getTrustedCert(); in findBySubjectAndPublicKey()
98 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature() local
99 if (anchor == null) { in findByIssuerAndSignature()
102 return anchor.getTrustedCert(); in findByIssuerAndSignature()
113 for (java.security.cert.TrustAnchor anchor : anchors) { in findAllByIssuerAndSignature()
114 certs.add(anchor.getTrustedCert()); in findAllByIssuerAndSignature()
DNetworkSecurityConfig.java93 for (TrustAnchor anchor : anchors) { in getTrustAnchors()
94 X509Certificate cert = anchor.certificate; in getTrustAnchors()
96 anchorMap.put(cert, anchor); in getTrustAnchors()
136 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); in findTrustAnchorBySubjectAndPublicKey() local
137 if (anchor != null) { in findTrustAnchorBySubjectAndPublicKey()
138 return anchor; in findTrustAnchorBySubjectAndPublicKey()
147 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); in findTrustAnchorByIssuerAndSignature() local
148 if (anchor != null) { in findTrustAnchorByIssuerAndSignature()
149 return anchor; in findTrustAnchorByIssuerAndSignature()
DNetworkSecurityTrustManager.java173 for (TrustAnchor anchor : anchors) { in getAcceptedIssuers()
174 issuers[i++] = anchor.certificate; in getAcceptedIssuers()
/frameworks/base/core/java/android/widget/
DPopupWindow.java1361 public void showAsDropDown(View anchor) { in showAsDropDown() argument
1362 showAsDropDown(anchor, 0, 0); in showAsDropDown()
1382 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown() argument
1383 showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY); in showAsDropDown()
1406 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
1413 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
1419 createPopupLayoutParams(anchor.getApplicationWindowToken()); in showAsDropDown()
1422 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
1425 p.accessibilityIdOfAnchor = (anchor != null) ? anchor.getAccessibilityViewId() : -1; in showAsDropDown()
1589 View anchor = mAnchor.get(); in setLayoutDirectionFromAnchor() local
[all …]
DPopupMenu.java63 public PopupMenu(Context context, View anchor) { in PopupMenu() argument
64 this(context, anchor, Gravity.NO_GRAVITY); in PopupMenu()
78 public PopupMenu(Context context, View anchor, int gravity) { in PopupMenu() argument
79 this(context, anchor, gravity, R.attr.popupMenuStyle, 0); in PopupMenu()
99 public PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, in PopupMenu() argument
102 mAnchor = anchor; in PopupMenu()
119 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes); in PopupMenu()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/transformation/
DAnchoredTranslate.kt31 private val anchor: ElementKey, constant in com.android.compose.animation.scene.transformation.AnchoredTranslate
44 anchor = anchor, in transform()
49 val anchor = layoutImpl.elements[anchor] ?: throwException(scene = null) in transform() constant
51 return anchor.sceneStates[scene]?.targetOffset?.takeIf { it.isSpecified } in transform()
79 anchor: ElementKey, in throwMissingAnchorException()
DAnchoredSize.kt30 private val anchor: ElementKey, constant in com.android.compose.animation.scene.transformation.AnchoredSize
44 layoutImpl.elements[anchor]?.sceneStates?.get(scene)?.targetSize?.takeIf { in transform()
49 anchor = anchor, in transform()
/frameworks/base/core/java/com/android/internal/view/
DRecyclerViewCaptureHelper.java87 View anchor = findChildNearestTarget(recyclerView, requestedContainerBounds); in onScrollRequested() local
88 if (anchor == null) { in onScrollRequested()
95 recyclerView.offsetRectIntoDescendantCoords(anchor, requestedContentBounds); in onScrollRequested()
97 int prevAnchorTop = anchor.getTop(); in onScrollRequested()
107 if (recyclerView.requestChildRectangleOnScreen(anchor, input, true)) { in onScrollRequested()
108 if (anchor.getParent() == null) { in onScrollRequested()
110 Log.w(TAG, "Bug: anchor view " + anchor + " is detached after scrolling"); in onScrollRequested()
115 int scrolled = prevAnchorTop - anchor.getTop(); // inverse of movement in onScrollRequested()
121 recyclerView.offsetDescendantRectToMyCoords(anchor, requestedContainerBounds); in onScrollRequested()
/frameworks/base/core/java/com/android/internal/view/menu/
DStandardMenuPopup.java73 final View anchor = mShownAnchorView;
74 if (anchor == null || !anchor.isShown()) {
174 final View anchor = mShownAnchorView; in tryShow() local
176 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest in tryShow()
180 anchor.addOnAttachStateChangeListener(mAttachStateChangeListener); in tryShow()
181 mPopup.setAnchorView(anchor); in tryShow()
335 public void setAnchorView(View anchor) { in setAnchorView() argument
336 mAnchorView = anchor; in setAnchorView()
DCascadingMenuPopup.java88 final View anchor = mShownAnchorView;
89 if (anchor == null || !anchor.isShown()) {
203 public CascadingMenuPopup(@NonNull Context context, @NonNull View anchor, in CascadingMenuPopup() argument
206 mAnchorView = Preconditions.checkNotNull(anchor); in CascadingMenuPopup()
700 public void setAnchorView(@NonNull View anchor) { in setAnchorView() argument
701 if (mAnchorView != anchor) { in setAnchorView()
702 mAnchorView = anchor; in setAnchorView()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DContextMenuUtils.java133 public static void assertContextMenuAlignment(View anchor, int offsetX, int offsetY) { in assertContextMenuAlignment() argument
135 anchor.getLocationOnScreen(expectedLocation); in assertContextMenuAlignment()
139 final boolean rtl = anchor.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in assertContextMenuAlignment()
/frameworks/base/core/java/android/util/
DRecurrenceRule.java204 final ZonedDateTime anchor = (end != null) ? end in RecurringIterator() local
206 if (LOGD) Log.d(TAG, "Resolving using anchor " + anchor); in RecurringIterator()
211 while (anchor.toEpochSecond() > cycleEnd.toEpochSecond()) { in RecurringIterator()
217 while (anchor.toEpochSecond() <= cycleStart.toEpochSecond()) { in RecurringIterator()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DTransitionDslImpl.kt169 override fun anchoredTranslate(matcher: ElementMatcher, anchor: ElementKey) { in anchoredTranslate()
170 transformation(AnchoredTranslate(matcher, anchor)) in anchoredTranslate()
183 anchor: ElementKey, in anchoredSize()
187 transformation(AnchoredSize(matcher, anchor, anchorWidth, anchorHeight)) in anchoredSize()
DTransitionDsl.kt359 fun anchoredTranslate(matcher: ElementMatcher, anchor: ElementKey)
387 anchor: ElementKey,
/frameworks/rs/script_api/
DGenerateDocumentation.cpp109 string anchor = systemSpecification.getHtmlAnchor(s); in getHtmlStringForType() local
110 if (anchor.empty()) { in getHtmlStringForType()
114 stream << anchor; in getHtmlStringForType()
193 string anchor = systemSpecification.getHtmlAnchor(id); in convertDocumentationRefences() local
194 if (anchor.empty()) { in convertDocumentationRefences()
198 s->replace(start, end - start, anchor); in convertDocumentationRefences()
/frameworks/base/media/java/android/media/
DSubtitleController.java471 public void setAnchor(Anchor anchor) { in setAnchor() argument
472 if (mAnchor == anchor) { in setAnchor()
480 mAnchor = anchor; in setAnchor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsUiControllerImpl.kt544 val anchor = parent.requireViewById<ImageView>(R.id.controls_more) in <lambda>() constant
545 anchor.setOnClickListener(object : View.OnClickListener { in <lambda>()
549 anchorView = anchor in <lambda>()
611 val anchor = parent.requireViewById<View>(R.id.app_or_structure_spinner) in <lambda>() constant
614 anchor.setOnClickListener(null) in <lambda>()
615 anchor.isClickable = false in <lambda>()
622 anchor.setOnClickListener(object : View.OnClickListener { in <lambda>()
625 anchorView = anchor in <lambda>()

12