Home
last modified time | relevance | path

Searched refs:anchor (Results 1 – 25 of 29) 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 …]
DAutofillManager.java622 boolean autofillClientRequestShowFillUi(@NonNull View anchor, int width, int height, in autofillClientRequestShowFillUi() argument
630 void autofillClientDispatchUnhandledKey(@NonNull View anchor, @NonNull KeyEvent keyEvent); in autofillClientDispatchUnhandledKey() argument
2185 final View anchor = findView(id); in requestShowFillUi() local
2186 if (anchor == null) { in requestShowFillUi()
2196 if (client.autofillClientRequestShowFillUi(anchor, width, height, in requestShowFillUi()
2207 callback.onAutofillEvent(anchor, id.getVirtualChildIntId(), in requestShowFillUi()
2210 callback.onAutofillEvent(anchor, AutofillCallback.EVENT_INPUT_SHOWN); in requestShowFillUi()
2232 final View anchor = findView(id); in dispatchUnhandledKey() local
2233 if (anchor == null) { in dispatchUnhandledKey()
2242 client.autofillClientDispatchUnhandledKey(anchor, keyEvent); in dispatchUnhandledKey()
[all …]
/frameworks/base/core/java/com/android/internal/view/inline/
DInlineTooltipUi.java119 public void update(View anchor) { in update() argument
127 ? -anchor.getHeight() << 1 : -anchor.getHeight() - achoredHeight; in update()
131 showAsDropDown(anchor, 0 , offsetY, Gravity.TOP | Gravity.CENTER_HORIZONTAL); in update()
133 update(anchor, 0 , offsetY, WindowManager.LayoutParams.WRAP_CONTENT, in update()
139 protected void update(View anchor, WindowManager.LayoutParams params) { in update() argument
141 if (anchor.isVisibleToUser()) { in update()
149 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
156 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
158 anchor.getWindowToken()); in showAsDropDown()
159 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
[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.java290 for (TrustAnchor anchor : preNAnchors) { in testUserAddedCaOptIn()
291 preNCerts.add(anchor.certificate); in testUserAddedCaOptIn()
294 for (TrustAnchor anchor : nAnchors) { in testUserAddedCaOptIn()
295 nCerts.add(anchor.certificate); in testUserAddedCaOptIn()
298 for (TrustAnchor anchor : privAnchors) { in testUserAddedCaOptIn()
299 privCerts.add(anchor.certificate); in testUserAddedCaOptIn()
DXmlConfigTests.java332 for (TrustAnchor anchor : anchors) { in testBasicDebugOverrides()
333 assertTrue(anchor.overridesPins); in testBasicDebugOverrides()
348 for (TrustAnchor anchor : anchors) { in testDebugOverridesWithDomain()
349 if (anchor.certificate.getSubjectDN().toString().equals(DEBUG_CA_SUBJ)) { in testDebugOverridesWithDomain()
351 assertTrue(anchor.overridesPins); in testDebugOverridesWithDomain()
368 for (TrustAnchor anchor : anchors) { in testDebugInherit()
369 if (anchor.certificate.getSubjectDN().toString().equals(DEBUG_CA_SUBJ)) { in testDebugInherit()
371 assertTrue(anchor.overridesPins); in testDebugInherit()
453 for (TrustAnchor anchor : config.getTrustAnchors()) { in testDebugDedup()
454 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.java85 for (TrustAnchor anchor : anchors) { in getTrustAnchors()
86 X509Certificate cert = anchor.certificate; in getTrustAnchors()
88 anchorMap.put(cert, anchor); in getTrustAnchors()
123 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); in findTrustAnchorBySubjectAndPublicKey() local
124 if (anchor != null) { in findTrustAnchorBySubjectAndPublicKey()
125 return anchor; in findTrustAnchorBySubjectAndPublicKey()
134 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); in findTrustAnchorByIssuerAndSignature() local
135 if (anchor != null) { in findTrustAnchorByIssuerAndSignature()
136 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.java1357 public void showAsDropDown(View anchor) { in showAsDropDown() argument
1358 showAsDropDown(anchor, 0, 0); in showAsDropDown()
1378 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown() argument
1379 showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY); in showAsDropDown()
1402 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
1409 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
1415 createPopupLayoutParams(anchor.getApplicationWindowToken()); in showAsDropDown()
1418 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
1421 p.accessibilityIdOfAnchor = (anchor != null) ? anchor.getAccessibilityViewId() : -1; in showAsDropDown()
1585 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()
DActionMenuPresenter.java502 View anchor = findViewForItem(topSubMenu.getItem()); in onSubMenuSelected() local
503 if (anchor == null) { in onSubMenuSelected()
523 mActionButtonPopup = new ActionButtonSubmenu(mContext, subMenu, anchor); in onSubMenuSelected()
/frameworks/base/core/java/com/android/internal/view/
DRecyclerViewCaptureHelper.java77 View anchor = findChildNearestTarget(recyclerView, requestedContainerBounds); in onScrollRequested() local
78 if (anchor == null) { in onScrollRequested()
84 recyclerView.offsetRectIntoDescendantCoords(anchor, requestedContentBounds); in onScrollRequested()
86 int prevAnchorTop = anchor.getTop(); in onScrollRequested()
96 if (recyclerView.requestChildRectangleOnScreen(anchor, input, true)) { in onScrollRequested()
97 int scrolled = prevAnchorTop - anchor.getTop(); // inverse of movement in onScrollRequested()
103 recyclerView.offsetDescendantRectToMyCoords(anchor, requestedContainerBounds); in onScrollRequested()
/frameworks/base/core/java/com/android/internal/view/menu/
DStandardMenuPopup.java67 final View anchor = mShownAnchorView;
68 if (anchor == null || !anchor.isShown()) {
162 final View anchor = mShownAnchorView; in tryShow() local
164 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest in tryShow()
168 anchor.addOnAttachStateChangeListener(mAttachStateChangeListener); in tryShow()
169 mPopup.setAnchorView(anchor); in tryShow()
323 public void setAnchorView(View anchor) { in setAnchorView() argument
324 mAnchorView = anchor; in setAnchorView()
DCascadingMenuPopup.java89 final View anchor = mShownAnchorView;
90 if (anchor == null || !anchor.isShown()) {
203 public CascadingMenuPopup(@NonNull Context context, @NonNull View anchor, in CascadingMenuPopup() argument
206 mAnchorView = Preconditions.checkNotNull(anchor); in CascadingMenuPopup()
694 public void setAnchorView(@NonNull View anchor) { in setAnchorView() argument
695 if (mAnchorView != anchor) { in setAnchorView()
696 mAnchorView = anchor; in setAnchorView()
DMenuPopupHelper.java98 public void setAnchorView(@NonNull View anchor) { in setAnchorView() argument
99 mAnchorView = anchor; in setAnchorView()
DMenuPopup.java58 public abstract void setAnchorView(View anchor); in setAnchorView() argument
/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.java203 final ZonedDateTime anchor = (end != null) ? end in RecurringIterator() local
205 if (LOGD) Log.d(TAG, "Resolving using anchor " + anchor); in RecurringIterator()
210 while (anchor.toEpochSecond() > cycleEnd.toEpochSecond()) { in RecurringIterator()
216 while (anchor.toEpochSecond() <= cycleStart.toEpochSecond()) { in RecurringIterator()
/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.kt295 val anchor = parent.requireViewById<ImageView>(R.id.controls_more) in <lambda>() constant
296 anchor.setOnClickListener(object : View.OnClickListener { in <lambda>()
302 setAnchorView(anchor) in <lambda>()
352 val anchor = parent.requireViewById<ViewGroup>(R.id.controls_header) in <lambda>() constant
353 anchor.setOnClickListener(object : View.OnClickListener { in <lambda>()
359 setAnchorView(anchor) in <lambda>()
/frameworks/multidex/
Dbuild.gradle61 // upload anchor for subprojects to upload their artifacts

12