/frameworks/base/libs/hwui/renderstate/ |
H A D | Scissor.cpp | 76 void Scissor::set(int viewportHeight, const Rect& clip) { argument 78 GLint x = std::max(0, (int)clip.left); 79 GLint y = std::max(0, viewportHeight - (int)clip.bottom); 80 GLint width = std::max(0, ((int)clip.right) - x); 81 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | gpclip.c | 50 Word16 clip = 0; local 52 clip = 1; 54 return (clip);
|
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/ |
H A D | RoundedRectHelperApi21.java | 41 public static void setClipToRoundedOutline(View view, boolean clip, int roundedCornerRadius) { argument 42 if (clip) { 57 view.setClipToOutline(clip);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | RoundedRectHelper.java | 42 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument 43 mImpl.setClipToRoundedOutline(view, clip, radius); 49 public void setClipToRoundedOutline(View view, boolean clip) { argument 50 mImpl.setClipToRoundedOutline(view, clip, view.getResources().getDimensionPixelSize( 55 public void setClipToRoundedOutline(View view, boolean clip, int radius); argument 66 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument 79 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument 80 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatProgressBarHelper.java | 71 private Drawable tileify(Drawable drawable, boolean clip) { argument 75 inner = tileify(inner, clip); 108 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT,
|
/frameworks/base/core/java/android/content/ |
H A D | ClipboardManager.java | 80 * Defines a listener callback that is invoked when the primary clip on the clipboard changes. 91 * clip changes. 113 * Sets the current primary clip on the clipboard. This is the clip that 116 * @param clip The clipped data item to set. 118 public void setPrimaryClip(ClipData clip) { argument 120 if (clip != null) { 121 clip.prepareToLeaveProcess(true); 123 getService().setPrimaryClip(clip, mContext.getOpPackageName()); 130 * Returns the current primary clip o [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | AudioPlaybackQueueItem.java | 100 final float vol = clip(volume, 0.0f, 1.0f); 101 final float panning = clip(pan, -1.0f, 1.0f); 112 private static final float clip(float value, float min, float max) { method in class:AudioPlaybackQueueItem
|
H A D | BlockingAudioTrack.java | 285 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS); 319 final float vol = clip(volume, 0.0f, 1.0f); 320 final float panning = clip(pan, -1.0f, 1.0f); 335 private static final long clip(long value, long min, long max) { method in class:BlockingAudioTrack 339 private static final float clip(float value, float min, float max) { method in class:BlockingAudioTrack
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpState.cpp | 24 static int computeClipSideFlags(const Rect& clip, const Rect& bounds) { argument 26 if (clip.left > bounds.left) clipSideFlags |= OpClipSideFlags::Left; 27 if (clip.top > bounds.top) clipSideFlags |= OpClipSideFlags::Top; 28 if (clip.right < bounds.right) clipSideFlags |= OpClipSideFlags::Right; 29 if (clip.bottom < bounds.bottom) clipSideFlags |= OpClipSideFlags::Bottom; 55 LOG_ALWAYS_FATAL_IF(!clipState, "must clip!"); 59 // Rejected based on either empty clip, or bounds not intersecting with clip 140 // NOTE: this won't succeed if a clip was allocated 151 // clip is 155 directConstruct(LinearAllocator& allocator, const ClipRect* clip, const Rect& dstRect, const RecordedOp& recordedOp) argument [all...] |
H A D | Outline.h | 99 void setShouldClip(bool clip) { argument 100 mShouldClip = clip;
|
H A D | BakedOpRenderer.cpp | 243 void BakedOpRenderer::setupStencilRectList(const ClipBase* clip) { argument 244 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList, "can't rectlist clip without rectlist"); 245 auto&& rectList = reinterpret_cast<const ClipRectList*>(clip)->rectList; 256 bounds.doIntersect(clip->rect); 277 void BakedOpRenderer::setupStencilRegion(const ClipBase* clip) { argument 278 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region"); 279 auto&& region = reinterpret_cast<const ClipRegion*>(clip)->region; 282 SkRegion::Cliperator it(region, clip 294 prepareRender(const Rect* dirtyBounds, const ClipBase* clip) argument 348 renderGlopImpl(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) argument 359 auto&& clip = state.computedState.clipRect(); local [all...] |
H A D | BakedOpRenderer.h | 87 void renderGlop(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) { argument 88 mGlopReceiver(*this, dirtyBounds, clip, glop); 107 const ClipBase* clip, const Glop& glop) { 108 renderer.renderGlopImpl(dirtyBounds, clip, glop); 110 void renderGlopImpl(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop); 113 void prepareRender(const Rect* dirtyBounds, const ClipBase* clip); 114 void setupStencilRectList(const ClipBase* clip); 115 void setupStencilRegion(const ClipBase* clip); 106 DefaultGlopReceiver(BakedOpRenderer& renderer, const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) argument
|
H A D | BakedOpState.h | 47 Rect clip; member in struct:android::uirenderer::MergedBakedOpList 51 * Holds the resolved clip, transform, and bounds of a recordedOp, when replayed with a snapshot 58 // Constructor for unbounded ops *with* transform/clip 62 // Constructor for unbounded ops without transform/clip (namely shadows) 65 // Constructor for primitive ops provided clip, and no transform 86 // returns the clip if it's needed to draw the operation, otherwise nullptr 126 const ClipRect* clip, const Rect& dstRect, const RecordedOp& recordedOp);
|
H A D | FontRenderer.h | 65 const ClipBase* clip, 74 , clip(clip) 89 const ClipBase* clip; member in class:android::uirenderer::TextDrawFunctor 114 bool renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, 118 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, 163 void initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor); 61 TextDrawFunctor( BakedOpRenderer* renderer, const BakedOpState* bakedState, const ClipBase* clip, float x, float y, bool pureTranslate, int alpha, SkXfermode::Mode mode, const SkPaint* paint) argument
|
H A D | Snapshot.cpp | 91 void Snapshot::clip(const Rect& localClip, SkRegion::Op op) { function in class:android::uirenderer::Snapshot 122 // we may have to modify the previous snapshot's clip rect and clip 123 // region if the previous restore() call did not restore the clip 192 // ignore, don't replace, already have a high priority clip 256 // Clip must be intersected with root, instead of current clip. 266 // current clip is being replaced, but must intersect with clip root 284 ALOGD(" ClipRect %.1f %.1f %.1f %.1f, clip simple %d",
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | BakedOpStateTests.cpp | 33 ClipRect clip(Rect(100, 200)); 34 RectOp recordedOp(Rect(30, 40, 100, 200), translate10x20, &clip, &paint); 53 // intersection of parent & transformed child clip 68 ClipRect clip(Rect(100, 200)); 69 RectOp recordedOp(Rect(1000, 1000), translate10x20, &clip, &paint); 75 << "Local clip rect should be 100x200, offset by -10,-20"; 82 << "Local clip rect should be 90x190, offset by -10,-20"; 165 ClipRect clip(Rect(200, 200)); 167 Matrix4::identity(), &clip, &strokedPaint); local 183 ClipRect clip(Rec 186 RectOp successOp(Rect(30, 40, 100, 200), Matrix4::identity(), &clip, &paint); local 234 RectOp rejectOp(Rect(100, 200), Matrix4::identity(), &clip, &paint); local 248 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local 263 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local [all...] |
H A D | ClipAreaTests.cpp | 82 SkRegion clip; local 83 clip.setRect(0, 0, 2000, 2000); 84 SkRegion rgn(list.convertToRegion(clip)); 126 // unset clip 129 // rect clip 138 << "Requery of clip on unmodified ClipArea must return same pointer."; 154 << "Requery of clip on unmodified ClipArea must return same pointer."; 171 << "Requery of clip on unmodified ClipArea must return same pointer."; 261 // no recorded clip case 266 // recorded clip cas [all...] |
H A D | BakedOpDispatcherTests.cpp | 45 const ClipBase* clip, const Glop& glop) { 44 ValidatingGlopReceiver(BakedOpRenderer& renderer, const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) argument
|
/frameworks/base/core/java/android/app/assist/ |
H A D | AssistContent.java | 85 public void setClipData(ClipData clip) { argument 86 mClipData = clip; 119 * leave the null and only report the local intent and clip data.
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfRenderer.cpp | 198 FX_RECT clip; local 199 clip.left = destLeft; 200 clip.right = destRight; 201 clip.top = destTop; 202 clip.bottom = destBottom; 203 fxgeDevice->SetClip_Rect(&clip);
|
/frameworks/base/graphics/java/android/graphics/pdf/ |
H A D | PdfEditor.java | 116 * Sets a transformation and clip for a given page. The transformation matrix if 118 * the clip is null, then no clipping is performed. 122 * @param clip The clip to apply. 125 @Nullable Rect clip) { 132 if (clip == null) { 143 clip.left, clip.top, clip.right, clip 124 setTransformAndClip(int pageIndex, @Nullable Matrix transform, @Nullable Rect clip) argument [all...] |
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.h | 128 static std::unique_ptr<Snapshot> makeSnapshot(const Matrix4& transform, const Rect& clip) { argument 130 snapshot->clip(clip, SkRegion::kReplace_Op); // store clip first, so it isn't transformed
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
H A D | ClipboardService.java | 160 public void setPrimaryClip(ClipData clip, String callingPackage) { argument 162 if (clip != null && clip.getItemCount() <= 0) { 170 checkDataOwnerLocked(clip, callingUid); 174 setPrimaryClipInternal(clipboard, clip); 186 // Copy clip data to related users if allowed. If disallowed, then remove 187 // primary clip in related users to prevent pasting stale content. 189 clip = null; 191 // We want to fix the uris of the related user's clip without changing the 192 // uris of the current user's clip 226 setPrimaryClipInternal(PerUserClipboard clipboard, ClipData clip) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | vertex.cpp | 52 // Divides a vertex clip coordinates by W 56 // [x,y,z]window = vpt * ([x,y,z]clip / clip.w) 69 const int32_t rw = gglRecip28(v->clip.w); 72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28); 73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28); 77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28); 85 // ndc = clip / W 88 // clip to the view-volume 89 uint32_t clip local 118 uint32_t clip = 0; local [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 147 int weight = clip(this.weight, 178 int score = clip(weight, 199 int score = clip(weight, 209 return clip(value, lo, /*hi*/Integer.MAX_VALUE, rect, name); 212 private static int clip(int value, int lo, int hi, Rect rect, String name) { method in class:ParameterUtils.WeightedRectangle 215 + name + " too small, clip to " + lo); 219 + name + " too small, clip to " + hi); 995 + stringFromArea(area) + " has too small weight, clip to 0");
|