/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/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(); 123 getService().setPrimaryClip(clip, mContext.getOpPackageName()); 129 * Returns the current primary clip o [all...] |
H A D | IClipboard.aidl | 29 void setPrimaryClip(in ClipData clip, String callingPackage);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | gpclip.c | 50 Word16 clip = 0; local 52 clip = 1; 54 return (clip);
|
/frameworks/native/services/surfaceflinger/ |
H A D | LayerDim.h | 37 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
|
H A D | Layer.h | 192 virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip, 230 void draw(const sp<const DisplayDevice>& hw, const Region& clip) const; 294 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip) const; 350 void clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip, 352 void drawWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
|
/frameworks/base/libs/hwui/ |
H A D | Outline.h | 75 void setShouldClip(bool clip) { argument 76 mShouldClip = clip;
|
H A D | StatefulBaseRenderer.cpp | 155 mDirtyClip |= mSnapshot->clip(left, top, right, bottom, op); 172 SkRegion clip; local 174 clip.setRegion(*mSnapshot->previous->clipRegion); 177 clip.setRect(0, 0, getWidth(), getHeight()); 180 clip.setRect(bounds->left, bounds->top, bounds->right, bounds->bottom); 185 region.setPath(transformed, clip); 187 // region is the transformed input path, masked by the previous clip 204 // TODO: consider storing this rect separately, so that this can't be replaced with clip ops 226 * @param clipRequired if not null, will be set to true if element intersects clip 249 // clip i [all...] |
H A D | OpenGLRenderer.cpp | 277 const Rect* clip = &mTilingClip; local 279 clip = &(snapshot->layer->clipRect); 282 startTiling(*clip, getViewportHeight(), opaque, expand); 286 void OpenGLRenderer::startTiling(const Rect& clip, int windowHeight, bool opaque, bool expand) { argument 290 int leftNotZero = (clip.left > 0) ? 1 : 0; 291 int topNotZero = (windowHeight - clip.bottom > 0) ? 1 : 0; 294 clip.left - leftNotZero, 295 windowHeight - clip.bottom - topNotZero, 296 clip.right - clip 427 const Rect* clip = &mTilingClip; local 615 calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer) argument 650 updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip, bool fboLayer, int alpha) argument 671 Rect clip; local 745 Rect clip; local 806 createFboLayer(Layer* layer, Rect& bounds, Rect& clip) argument 2710 const Rect* clip = pureTranslate ? mSnapshot->clipRect : &mSnapshot->getLocalClip(); local 2807 const Rect* clip = !pureTranslate ? NULL : currentClipRect(); local 2855 const Rect* clip = &mSnapshot->getLocalClip(); local 3172 drawColorRects(const float* rects, int count, const SkPaint* paint, bool ignoreTransform, bool dirty, bool clip) argument [all...] |
H A D | FontRenderer.h | 104 bool renderPosText(const SkPaint* paint, const Rect* clip, const char *text, 109 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, 157 void initRender(const Rect* clip, Rect* bounds, Functor* functor);
|
H A D | Snapshot.h | 39 * Temporary structure holding information for a single outline clip. 85 * Indicates that the clip region was modified. When this 86 * snapshot is restored so must the clip. 111 * Modifies the current clip with the new clip rectangle and 115 bool clip(float left, float top, float right, float bottom, 119 * Modifies the current clip with the new clip rectangle and 126 * Modifies the current clip with the specified region and operation. 132 * Sets the current clip [all...] |
H A D | OpenGLRenderer.h | 152 // created, which will in turn clip to that mask when drawn back/restored. 210 * Store the current display state (most importantly, the current clip and transform), and 230 // simple rect clip 498 * This method will use the current layer space clip rect. 509 void startTiling(const Rect& clip, int windowHeight, bool opaque = false, bool expand = false); 520 * Sets the clipping rectangle using glScissor. The clip is defined by 526 * Sets the clipping region using the stencil buffer. The clip region 534 void calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer); 537 * Given the local bounds + clip of the layer, updates current snapshot's empty/invisible 539 void updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip, [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | AudioPlaybackQueueItem.java | 101 final float vol = clip(volume, 0.0f, 1.0f); 102 final float panning = clip(pan, -1.0f, 1.0f); 113 private static final float clip(float value, float min, float max) { method in class:AudioPlaybackQueueItem
|
H A D | BlockingAudioTrack.java | 286 final long sleepTimeMs = clip(estimatedTimeMs, MIN_SLEEP_TIME_MS, MAX_SLEEP_TIME_MS); 320 final float vol = clip(volume, 0.0f, 1.0f); 321 final float panning = clip(pan, -1.0f, 1.0f); 336 private static final long clip(long value, long min, long max) { method in class:BlockingAudioTrack 340 private static final float clip(float value, float min, float max) { method in class:BlockingAudioTrack
|
/frameworks/base/core/java/android/transition/ |
H A D | ChangeClipBounds.java | 35 private static final String PROPNAME_CLIP = "android:clipBounds:clip"; 59 Rect clip = view.getClipBounds(); 60 values.values.put(PROPNAME_CLIP, clip); 61 if (clip == null) { 88 return null; // No animation required since there is no clip.
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
H A D | PdfManipulationService.java | 151 Rect clip = new Rect(); 152 clip.left = (int) (paddingLeftPts * displayScale); 153 clip.top = (int) (paddingTopPts * displayScale); 154 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); 155 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); 162 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); 347 Rect clip = new Rect(mediaBox); 348 clip.left += paddingLeftPts; 349 clip.top += paddingTopPts; 350 clip [all...] |
/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 clip.fixUrisLight(userId); 196 setPrimaryClipInternal(getClipboard(id), clip); 218 setPrimaryClipInternal(PerUserClipboard clipboard, ClipData clip) argument [all...] |
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfRenderer.cpp | 197 FX_RECT clip; local 198 clip.left = destLeft; 199 clip.right = destRight; 200 clip.top = destTop; 201 clip.bottom = destBottom; 202 fxgeDevice->SetClip_Rect(&clip);
|
/frameworks/base/graphics/java/android/graphics/pdf/ |
H A D | PdfEditor.java | 109 * Sets a transformation and clip for a given page. The transformation matrix if 111 * the clip is null, then no clipping is performed. 115 * @param clip The clip to apply. 118 @Nullable Rect clip) { 125 if (clip == null) { 132 clip.left, clip.top, clip.right, clip 117 setTransformAndClip(int pageIndex, @Nullable Matrix transform, @Nullable Rect clip) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | TintRatingBar.java | 81 private Drawable tileify(Drawable drawable, boolean clip) { argument 85 inner = tileify(inner, clip); 116 return (clip) ? new ClipDrawable(shapeDrawable, Gravity.LEFT,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 50 * yet when setting transforms and clip information. 70 /** temp clip in case clipping is set before a Graphics2D exists */ 177 * Sets the clip for the graphics2D object associated with the layer. 180 * @param clipShape the shape to use a the clip shape. 184 // first reset the clip to max and then intersect the current (empty) 185 // clip with the shap. 187 mGraphics.clip(clipShape); 192 * clip shape and the given shape. 193 * @param shape the new clip shape. 195 public void clip(Shap method in class:GcSnapshot.Layer 483 public boolean clip(Shape shape, int regionOp) { method in class:GcSnapshot [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Region.java | 107 * Set the region to the area described by the path and clip. 112 public boolean setPath(Path path, Region clip) { argument 113 return nativeSetPath(mNativeRegion, path.ni(), clip.mNativeRegion);
|
/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); 992 + stringFromArea(area) + " has too small weight, clip to 0");
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 70 const SkRegion* clip = reinterpret_cast<SkRegion*>(clipHandle); local 71 SkASSERT(dst && path && clip); 72 bool result = dst->setPath(*path, *clip);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 74 * @param shape1 the firt shape to combine which can be null if there's no original clip. 320 Region_Delegate clip = sManager.getDelegate(native_clip); 321 if (clip != null) { 322 dstRegion.mArea.subtract(clip.getJavaArea());
|