/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A D | TestCertificateSource.java | 44 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); 45 if (anchor == null) { 48 return anchor.getTrustedCert(); 53 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); 54 if (anchor == null) { 57 return anchor.getTrustedCert(); 63 for (java.security.cert.TrustAnchor anchor : mIndex.findAllByIssuerAndSignature(cert)) { 64 certs.add(anchor.getTrustedCert());
|
H A D | XmlConfigTests.java | 313 for (TrustAnchor anchor : anchors) { 314 assertTrue(anchor.overridesPins); 327 for (TrustAnchor anchor : anchors) { 328 if (anchor.certificate.getSubjectDN().toString().equals(DEBUG_CA_SUBJ)) { 330 assertTrue(anchor.overridesPins); 345 for (TrustAnchor anchor : anchors) { 346 if (anchor.certificate.getSubjectDN().toString().equals(DEBUG_CA_SUBJ)) { 348 assertTrue(anchor.overridesPins); 426 for (TrustAnchor anchor : config.getTrustAnchors()) { 427 assertTrue(anchor [all...] |
H A D | NetworkSecurityConfigTests.java | 277 for (TrustAnchor anchor : preNAnchors) { 278 preNCerts.add(anchor.certificate); 281 for (TrustAnchor anchor : nAnchors) { 282 nCerts.add(anchor.certificate);
|
/frameworks/base/core/java/android/security/net/config/ |
H A D | TrustedCertificateStoreAdapter.java | 37 TrustAnchor anchor = mConfig.findTrustAnchorByIssuerAndSignature(cert); 38 if (anchor == null) { 41 return anchor.certificate; 51 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); 52 if (anchor == null) { 55 return anchor.certificate; 61 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); 62 if (anchor == null) { 65 return anchor.overridesPins;
|
H A D | KeyStoreCertificateSource.java | 78 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); 79 if (anchor == null) { 82 return anchor.getTrustedCert(); 88 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); 89 if (anchor == null) { 92 return anchor.getTrustedCert(); 103 for (java.security.cert.TrustAnchor anchor : anchors) { 104 certs.add(anchor.getTrustedCert());
|
H A D | ResourceCertificateSource.java | 88 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); 89 if (anchor == null) { 92 return anchor.getTrustedCert(); 98 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); 99 if (anchor == null) { 102 return anchor.getTrustedCert(); 113 for (java.security.cert.TrustAnchor anchor : anchors) { 114 certs.add(anchor.getTrustedCert());
|
H A D | NetworkSecurityConfig.java | 85 for (TrustAnchor anchor : anchors) { 86 X509Certificate cert = anchor.certificate; 88 anchorMap.put(cert, anchor); 123 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); 124 if (anchor != null) { 125 return anchor; 134 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); 135 if (anchor != null) { 136 return anchor;
|
H A D | NetworkSecurityTrustManager.java | 37 * {@link X509ExtendedTrustManager} that implements the trust anchor and pinning for a 173 for (TrustAnchor anchor : anchors) { 174 issuers[i++] = anchor.certificate;
|
/frameworks/base/core/java/android/view/autofill/ |
H A D | AutofillPopupWindow.java | 54 * the anchor view. 90 public void update(View anchor, int offsetX, int offsetY, int width, int height, argument 93 // delegates to the anchor but present itself with the same bounds as the 95 // symmetrically when the dropdown is below and above the anchor. 98 actualAnchor = new View(anchor.getContext()) { 107 return anchor.getAccessibilityViewId(); 112 return anchor.getViewTreeObserver(); 117 return anchor.getApplicationWindowToken(); 122 return anchor.getRootView(); 127 return anchor 182 update(View anchor, WindowManager.LayoutParams params) argument 190 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument [all...] |
H A D | AutofillManager.java | 215 * @param anchor The real view the UI needs to anchor to. 218 * @param virtualBounds The bounds of the virtual decendant of the anchor. 222 boolean autofillCallbackRequestShowFillUi(@NonNull View anchor, int width, int height, argument 955 final View anchor = findView(id); 956 if (anchor == null) { 966 if (client.autofillCallbackRequestShowFillUi(anchor, width, height, 976 callback.onAutofillEvent(anchor, id.getVirtualChildId(), 979 callback.onAutofillEvent(anchor, AutofillCallback.EVENT_INPUT_SHOWN); 1107 * @param fillableIds Views that might anchor FillU 1143 requestHideFillUi(AutofillId id, View anchor) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | PopupMenu.java | 36 * {@link View}. The popup will appear below the anchor view if there is room, 52 * Constructor to create a new popup menu with an anchor view. 56 * @param anchor Anchor view for this popup. The popup will appear below 57 * the anchor if there is room, or above it if there is not. 59 public PopupMenu(Context context, View anchor) { argument 60 this(context, anchor, Gravity.NO_GRAVITY); 64 * Constructor to create a new popup menu with an anchor view and alignment 69 * @param anchor Anchor view for this popup. The popup will appear below 70 * the anchor if there is room, or above it if there is not. 72 * anchor 74 PopupMenu(Context context, View anchor, int gravity) argument 95 PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, int popupStyleRes) argument [all...] |
H A D | PopupWindow.java | 226 // The anchor might become attached again. 458 * the direction of travel. For popup windows, the anchor view bounds are 464 * @param bounds the epicenter bounds relative to the anchor view, or 511 // used when the drop-down is placed above its anchor view, and the one to be 512 // used when the drop-down is placed below its anchor view. We extract 518 // at least one other drawable, intended for the 'below-anchor state'. 522 // Find the above-anchor view - this one's easy, it should be labeled as such. 525 // Now, for the below-anchor view, look for any other drawable specified in the 526 // StateListDrawable which is not for the above-anchor state and use that. 853 * Allow PopupWindow to scroll the anchor' 1218 showAsDropDown(View anchor) argument 1239 showAsDropDown(View anchor, int xoff, int yoff) argument 1263 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument 1581 findDropDownPosition(View anchor, WindowManager.LayoutParams outParams, int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) argument 1789 getMaxAvailableHeight(@onNull View anchor) argument 1804 getMaxAvailableHeight(@onNull View anchor, int yOffset) argument 1823 getMaxAvailableHeight( @onNull View anchor, int yOffset, boolean ignoreBottomDecorations) argument 2057 update(View anchor, WindowManager.LayoutParams params) argument 2209 update(View anchor, int width, int height) argument 2229 update(View anchor, int xoff, int yoff, int width, int height) argument 2233 update(View anchor, boolean updateLocation, int xoff, int yoff, int width, int height) argument 2315 attachToAnchor(View anchor, int xoff, int yoff, int gravity) argument 2349 getAppRootView(View anchor) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatPopupWindow.java | 88 public void showAsDropDown(View anchor, int xoff, int yoff) { 91 yoff -= anchor.getHeight(); 93 super.showAsDropDown(anchor, xoff, yoff); 97 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { 100 yoff -= anchor.getHeight(); 102 super.showAsDropDown(anchor, xoff, yoff, gravity); 106 public void update(View anchor, int xoff, int yoff, int width, int height) { 109 yoff -= anchor.getHeight(); 111 super.update(anchor, xoff, yoff, width, height); 127 // we have an anchor vie [all...] |
H A D | PopupMenu.java | 55 * Constructor to create a new popup menu with an anchor view. 59 * @param anchor Anchor view for this popup. The popup will appear below 60 * the anchor if there is room, or above it if there is not. 62 public PopupMenu(@NonNull Context context, @NonNull View anchor) { argument 63 this(context, anchor, Gravity.NO_GRAVITY); 67 * Constructor to create a new popup menu with an anchor view and alignment 72 * @param anchor Anchor view for this popup. The popup will appear below 73 * the anchor if there is room, or above it if there is not. 75 * anchor. 77 public PopupMenu(@NonNull Context context, @NonNull View anchor, in argument 98 PopupMenu(@onNull Context context, @NonNull View anchor, int gravity, @AttrRes int popupStyleAttr, @StyleRes int popupStyleRes) argument [all...] |
H A D | TooltipCompatHandler.java | 96 private TooltipCompatHandler(View anchor, CharSequence tooltipText) { argument 97 mAnchor = anchor;
|
/frameworks/support/compat/java/android/support/v4/widget/ |
H A D | PopupWindowCompat.java | 42 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument 45 ViewCompat.getLayoutDirection(anchor)) & Gravity.HORIZONTAL_GRAVITY_MASK; 48 // anchor instead of left. 49 xoff -= (popup.getWidth() - anchor.getWidth()); 51 popup.showAsDropDown(anchor, xoff, yoff); 112 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument 114 popup.showAsDropDown(anchor, xoff, yoff, gravity); 139 Log.i(TAG, "Could not set overlap anchor field in PopupWindow", e); 150 Log.i(TAG, "Could not get overlap anchor field in PopupWindow", e); 202 * corner of the anchor vie 216 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | StandardMenuPopup.java | 66 final View anchor = mShownAnchorView; 67 if (anchor == null || !anchor.isShown()) { 161 final View anchor = mShownAnchorView; 163 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest 167 anchor.addOnAttachStateChangeListener(mAttachStateChangeListener); 168 mPopup.setAnchorView(anchor); 207 throw new IllegalStateException("StandardMenuPopup cannot be used without an anchor"); 314 public void setAnchorView(View anchor) { argument 315 mAnchorView = anchor; [all...] |
H A D | CascadingMenuPopup.java | 88 final View anchor = mShownAnchorView; 89 if (anchor == null || !anchor.isShown()) { 200 * @param anchor A parent view to get the {@link android.view.View#getWindowToken()} token from. 202 public CascadingMenuPopup(@NonNull Context context, @NonNull View anchor, argument 205 mAnchorView = Preconditions.checkNotNull(anchor); 693 public void setAnchorView(@NonNull View anchor) { argument 694 if (mAnchorView != anchor) { 695 mAnchorView = anchor;
|
H A D | MenuPopupHelper.java | 93 * @param anchor the view to which the popup window should be anchored 95 public void setAnchorView(@NonNull View anchor) { argument 96 mAnchorView = anchor; 116 * Sets the alignment of the popup window relative to the anchor view. 120 * @param gravity alignment of the popup relative to the anchor 127 * @return alignment of the popup relative to the anchor 135 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 141 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor"); 173 * Shows the popup menu and makes a best-effort to anchor it to the 174 * specified (x,y) coordinate relative to the anchor vie [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
H A D | StandardMenuPopup.java | 64 final View anchor = mShownAnchorView; 65 if (anchor == null || !anchor.isShown()) { 158 final View anchor = mShownAnchorView; 160 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest 164 anchor.addOnAttachStateChangeListener(mAttachStateChangeListener); 165 mPopup.setAnchorView(anchor); 204 throw new IllegalStateException("StandardMenuPopup cannot be used without an anchor"); 311 public void setAnchorView(View anchor) { argument 312 mAnchorView = anchor; [all...] |
H A D | CascadingMenuPopup.java | 104 final View anchor = mShownAnchorView; 105 if (anchor == null || !anchor.isShown()) { 216 * @param anchor A parent view to get the {@link android.view.View#getWindowToken()} token from. 218 public CascadingMenuPopup(@NonNull Context context, @NonNull View anchor, argument 221 mAnchorView = anchor; 417 // same top-level anchor as the parent menu is using, with appropriate offsets. 421 // the framework will compute the new submenu position using the anchor's height, 736 public void setAnchorView(@NonNull View anchor) { argument 737 if (mAnchorView != anchor) { [all...] |
/frameworks/support/v13/tests/java/android/support/v13/view/ |
H A D | DragStartHelperTest.java | 99 int action, View anchor, int offsetX, int offsetY) { 101 final int[] xy = getViewCenter(anchor); 106 private void sendTouchEvent(int action, View anchor, int offsetX, int offsetY) { argument 107 mInstrumentation.sendPointerSync(obtainTouchEvent(action, anchor, offsetX, offsetY)); 111 int action, int buttonState, View anchor, int offsetX, int offsetY) { 114 final int[] xy = getViewCenter(anchor); 133 int action, int buttonState, View anchor, int offsetX, int offsetY) { 135 action, buttonState, anchor, offsetX, offsetY)); 146 TouchPositionMatcher(View anchor, int x, int y) { argument 147 this(anchor 98 obtainTouchEvent( int action, View anchor, int offsetX, int offsetY) argument 110 obtainMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument 132 sendMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | SubtitleController.java | 32 * media source. It allows specifying which tracks to display, on which anchor 147 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 264 /** @hide - should be called from anchor thread */ 302 /** @hide - must be called from anchor thread */ 345 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 362 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper} 439 * Subtitle anchor, an object that is able to display a subtitle renderer, 461 * @hide - called from anchor's looper (if any, both when unsetting and 464 public void setAnchor(Anchor anchor) { argument 465 if (mAnchor == anchor) { [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
H A D | ListPopupWindowTest.java | 138 assertEquals("Popup window anchor", mButton, mListPopupWindow.getAnchorView()); 317 // forwarding of events that cross the boundary between the anchor and the popup menu. 364 // Get the anchor view and configure it with ListPopupWindow's drag-to-open listener 365 final View anchor = mActivityTestRule.getActivity().findViewById(R.id.test_button); 366 View.OnTouchListener dragListener = mListPopupWindow.createDragToOpenListener(anchor); 367 anchor.setOnTouchListener(dragListener); 369 anchor.setOnClickListener(new View.OnClickListener() { 381 anchor.getLocationOnScreen(anchorOnScreenXY); 385 // center of the anchor should result in clicking the second row in the popup. 386 int emulatedX = anchorOnScreenXY[0] + anchor [all...] |
/frameworks/rs/script_api/ |
H A D | GenerateDocumentation.cpp | 106 string anchor = systemSpecification.getHtmlAnchor(s); local 107 if (anchor.empty()) { 111 stream << anchor; local 190 string anchor = systemSpecification.getHtmlAnchor(id); local 191 if (anchor.empty()) { 195 s->replace(start, end - start, anchor);
|