Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/core/java/android/widget/
DTextViewOnReceiveContentListener.java90 final ClipData clip = payload.getClip(); in onReceiveContent() local
95 for (int i = 0; i < clip.getItemCount(); i++) { in onReceiveContent()
98 itemText = clip.getItemAt(i).coerceToText(context); in onReceiveContent()
101 itemText = clip.getItemAt(i).coerceToStyledText(context); in onReceiveContent()
127 ClipData clip = payload.getClip(); in onReceiveForAutofill() local
129 clip = handleNonTextViaImeCommitContent(clip); in onReceiveForAutofill()
130 if (clip == null) { in onReceiveForAutofill()
137 final CharSequence text = coerceToText(clip, view.getContext(), payload.getFlags()); in onReceiveForAutofill()
145 private static @NonNull CharSequence coerceToText(@NonNull ClipData clip, in coerceToText() argument
148 for (int i = 0; i < clip.getItemCount(); i++) { in coerceToText()
[all …]
/frameworks/base/core/java/android/content/
DClipboardManager.java128 public void setPrimaryClip(@NonNull ClipData clip) { in setPrimaryClip() argument
130 Objects.requireNonNull(clip); in setPrimaryClip()
131 clip.prepareToLeaveProcess(true); in setPrimaryClip()
133 clip, in setPrimaryClip()
155 public void setPrimaryClipAsPackage(@NonNull ClipData clip, @NonNull String sourcePackage) { in setPrimaryClipAsPackage() argument
157 Objects.requireNonNull(clip); in setPrimaryClipAsPackage()
159 clip.prepareToLeaveProcess(true); in setPrimaryClipAsPackage()
161 clip, in setPrimaryClipAsPackage()
283 ClipData clip = getPrimaryClip(); in getText() local
284 if (clip != null && clip.getItemCount() > 0) { in getText()
[all …]
/frameworks/base/libs/hwui/canvas/
DCanvasFrontend.cpp36 clip().bounds = mInitialBounds; in resetState()
44 if (saveEntry.clip) { in internalSave()
70 clip().apply(op, transform(), rect, /*aa=*/false, /*fillsBounds=*/true); in internalClipRect()
79 clip().apply(op, transform(), bounds, /*aa=*/true, /*fillsBounds=*/false); in internalClipPath()
82 CanvasStateHelper::ConservativeClip& CanvasStateHelper::clip() { in clip() function in android::uirenderer::CanvasStateHelper
102 if (entry.clip) { in internalRestore()
110 SkIRect bounds = clip().bounds; in getClipBounds()
129 return clip().quickReject(transform(), SkRect::MakeLTRB(left, top, right, bottom)); in quickRejectRect()
139 return !path.isInverseFillType() && clip().quickReject(transform(), path.getBounds()); in quickRejectPath()
DCanvasFrontend.h37 bool clip : 1 = false; member
64 .clip = true, in saveEntryForLayer()
72 .clip = static_cast<bool>(flags & SaveFlags::Clip), in flagsToSaveEntry()
82 .clip = true, in internalSaveLayer()
104 const ConservativeClip& clip() const { return mClipStack.back().entry; } in clip() function
106 ConservativeClip& clip();
143 bool isClipAA() const { return clip().aa; } in isClipAA()
144 bool isClipEmpty() const { return clip().bounds.isEmpty(); } in isClipEmpty()
145 bool isClipRect() const { return clip().rect; } in isClipRect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DEditTextActivity.java61 ClipData clip = mClipboardManager.getPrimaryClip(); in onStart() local
62 if (clip == null) { in onStart()
75 mEditText.setText(clip.getItemAt(0).getText()); in onStart()
78 mSensitive = clip.getDescription().getExtras() != null in onStart()
79 && clip.getDescription().getExtras() in onStart()
100 ClipData clip = ClipData.newPlainText("text", editedText); in saveToClipboard() local
103 clip.getDescription().setExtras(extras); in saveToClipboard()
104 mClipboardManager.setPrimaryClip(clip); in saveToClipboard()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java175 mEmulatorClipboardMonitor = new EmulatorClipboardMonitor((clip) -> { in ClipboardService()
177 setPrimaryClipInternalLocked(getClipboardLocked(0), clip, in ClipboardService()
182 mEmulatorClipboardMonitor = (clip) -> {}; in ClipboardService()
364 ClipData clip, in setPrimaryClip() argument
368 checkAndSetPrimaryClip(clip, callingPackage, attributionTag, userId, callingPackage); in setPrimaryClip()
373 ClipData clip, in setPrimaryClipAsPackage() argument
380 checkAndSetPrimaryClip(clip, callingPackage, attributionTag, userId, sourcePackage); in setPrimaryClipAsPackage()
384 ClipData clip, in checkAndSetPrimaryClip() argument
389 if (clip == null || clip.getItemCount() <= 0) { in checkAndSetPrimaryClip()
402 checkDataOwner(clip, intendingUid); in checkAndSetPrimaryClip()
[all …]
DEmulatorClipboardMonitor.java141 final ClipData clip = new ClipData("host clipboard", in EmulatorClipboardMonitor()
146 clip.getDescription().setExtras(bundle); in EmulatorClipboardMonitor()
151 setAndroidClipboard.accept(clip); in EmulatorClipboardMonitor()
171 public void accept(final @Nullable ClipData clip) { in accept() argument
174 setHostClipboard(fd, getClipString(clip)); in accept()
178 private String getClipString(final @Nullable ClipData clip) { in getClipString() argument
179 if (clip == null) { in getClipString()
183 if (clip.getItemCount() == 0) { in getClipString()
187 final CharSequence text = clip.getItemAt(0).getText(); in getClipString()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DGrantedUriPermissions.java80 ClipData clip = intent.getClipData(); in createFromIntent() local
81 if (clip != null) { in createFromIntent()
82 perms = grantClip(clip, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
89 public static GrantedUriPermissions createFromClip(ClipData clip, in createFromClip() argument
95 if (clip != null) { in createFromClip()
96 perms = grantClip(clip, sourceUid, targetPackage, targetUserId, grantFlags, in createFromClip()
102 private static GrantedUriPermissions grantClip(ClipData clip, in grantClip() argument
105 final int N = clip.getItemCount(); in grantClip()
107 curPerms = grantItem(clip.getItemAt(i), sourceUid, targetPackage, targetUserId, in grantClip()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java150 Rect clip = new Rect(); in renderPage() local
151 clip.left = (int) (paddingLeftPts * displayScale); in renderPage()
152 clip.top = (int) (paddingTopPts * displayScale); in renderPage()
153 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); in renderPage()
154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage()
161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); in renderPage()
341 Rect clip = new Rect(mediaBox); in applyPrintAttributes() local
342 clip.left += paddingLeftPts; in applyPrintAttributes()
343 clip.top += paddingTopPts; in applyPrintAttributes()
344 clip.right -= paddingRightPts; in applyPrintAttributes()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewReceiveContentTest.java136 ClipData clip = new ClipData(description, new ClipData.Item(SAMPLE_CONTENT_URI)); in testOnReceive_fallbackToCommitContent() local
138 new ContentInfo.Builder(clip, SOURCE_AUTOFILL).build(); in testOnReceive_fallbackToCommitContent()
158 ClipData clip = new ClipData(description, new ClipData.Item(SAMPLE_CONTENT_URI)); in testOnReceive_fallbackToCommitContent_noMimeTypesInEditorInfo() local
160 new ContentInfo.Builder(clip, SOURCE_AUTOFILL).build(); in testOnReceive_fallbackToCommitContent_noMimeTypesInEditorInfo()
179 ClipData clip = new ClipData(description, new ClipData.Item(SAMPLE_CONTENT_URI)); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill() local
181 new ContentInfo.Builder(clip, SOURCE_CLIPBOARD).build(); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill()
185 payload = new ContentInfo.Builder(clip, SOURCE_INPUT_METHOD).build(); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill()
189 payload = new ContentInfo.Builder(clip, SOURCE_DRAG_AND_DROP).build(); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill()
193 payload = new ContentInfo.Builder(clip, SOURCE_PROCESS_TEXT).build(); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill()
/frameworks/av/media/libstagefright/renderfright/include/renderengine/
DDisplaySettings.h41 Rect clip = Rect::INVALID_RECT; member
66 return lhs.physicalDisplay == rhs.physicalDisplay && lhs.clip == rhs.clip &&
78 PrintTo(settings.clip, os); in PrintTo()
/frameworks/base/libs/hwui/pipeline/skia/
DGLFunctorDrawable.cpp33 static void setScissor(int viewportHeight, const SkIRect& clip) { in setScissor() argument
34 SkASSERT(!clip.isEmpty()); in setScissor()
36 GLint y = viewportHeight - clip.fBottom; in setScissor()
37 GLint height = (viewportHeight - clip.fTop) - y; in setScissor()
38 glScissor(clip.fLeft, y, clip.width(), height); in setScissor()
DVkFunctorDrawable.cpp39 const SkMatrix& matrix, const SkIRect& clip, in VkFunctorDrawHandler() argument
44 , mClip(clip) in VkFunctorDrawHandler()
119 GrBackendApi backendApi, const SkMatrix& matrix, const SkIRect& clip, in onSnapGpuDrawHandler() argument
125 return std::make_unique<VkFunctorDrawHandler>(mWebViewHandle, matrix, clip, image_info); in onSnapGpuDrawHandler()
DVkFunctorDrawable.h35 const SkIRect& clip, const SkImageInfo& image_info);
64 GrBackendApi backendApi, const SkMatrix& matrix, const SkIRect& clip,
DSkiaPipeline.h57 void renderFrame(const LayerUpdateQueue& layers, const SkRect& clip,
86 void renderFrameImpl(const SkRect& clip,
95 void renderOverdraw(const SkRect& clip,
/frameworks/av/media/codecs/amrwb/enc/src/
Dgpclip.c50 Word16 clip = 0; in Gp_clip() local
52 clip = 1; in Gp_clip()
54 return (clip); in Gp_clip()
/frameworks/native/libs/renderengine/include/renderengine/
DDisplaySettings.h44 Rect clip = Rect::INVALID_RECT; member
85 return lhs.physicalDisplay == rhs.physicalDisplay && lhs.clip == rhs.clip &&
123 PrintTo(settings.clip, os); in PrintTo()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java130 @Nullable Rect clip) { in setTransformAndClip() argument
137 if (clip == null) { in setTransformAndClip()
148 clip.left, clip.top, clip.right, clip.bottom); in setTransformAndClip()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillUriGrantsManager.java78 @NonNull ClipData clip) { in grantUriPermissions() argument
84 + " clip=" + clip in grantUriPermissions()
89 for (int i = 0; i < clip.getItemCount(); i++) { in grantUriPermissions()
90 ClipData.Item item = clip.getItemAt(i); in grantUriPermissions()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFE.h109 const Region& clip; member
183 return lhs.clip.hasSameRects(rhs.clip) && lhs.needsFiltering == rhs.needsFiltering &&
203 PrintTo(settings.clip, os); in PrintTo()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java285 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS); in blockUntilCompletion()
319 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume()
320 final float panning = clip(pan, -1.0f, 1.0f); in setupVolume()
335 private static final long clip(long value, long min, long max) { in clip() method in BlockingAudioTrack
339 private static final float clip(float value, float min, float max) { in clip() method in BlockingAudioTrack
DAudioPlaybackQueueItem.java100 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume()
101 final float panning = clip(pan, -1.0f, 1.0f); in setupVolume()
112 private static final float clip(float value, float min, float max) { in clip() method in AudioPlaybackQueueItem
/frameworks/base/libs/hwui/tests/common/scenes/
DPathClippingAnimation.cpp28 PathClippingAnimation(int spacing, int size, bool clip, bool animateClip, int maxCards) in PathClippingAnimation() argument
31 , mClip(clip) in PathClippingAnimation()
35 PathClippingAnimation(int spacing, int size, bool clip, bool animateClip) in PathClippingAnimation() argument
36 : PathClippingAnimation(spacing, size, clip, animateClip, INT_MAX) {} in PathClippingAnimation()
/frameworks/base/core/java/android/view/
DContentInfo.java326 public Builder(@NonNull ClipData clip, @Source int source) { in Builder() argument
327 mClip = clip; in Builder()
337 public Builder setClip(@NonNull ClipData clip) { in setClip() argument
338 mClip = clip; in setClip()
469 ClipData clip = ClipData.CREATOR.createFromParcel(parcel);
482 return new ContentInfo.Builder(clip, source)
/frameworks/base/core/java/android/transition/
DChangeClipBounds.java60 Rect clip = view.getClipBounds(); in captureValues() local
61 values.values.put(PROPNAME_CLIP, clip); in captureValues()
62 if (clip == null) { in captureValues()

1234