/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiDevice.java | 827 * Default scale of 1.0f (original size) and 90% quality is used 845 * @param scale scale the screenshot down if needed; 1.0f for original size 850 public boolean takeScreenshot(File storePath, float scale, int quality) { argument 851 Tracer.trace(storePath, scale, quality);
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsSeekBar.java | 556 void onVisualProgressChanged(int id, float scale) { argument 557 super.onVisualProgressChanged(id, scale); 562 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE); 624 * @param scale Current progress between 0 and 1 628 private void setThumbPos(int w, Drawable thumb, float scale, int offset) { argument 637 final int thumbPos = (int) (scale * available + 0.5f); 843 final float scale; 847 scale = 0.0f; 849 scale = 1.0f; 851 scale [all...] |
H A D | ProgressBar.java | 1284 final float scale = range > 0 ? (progress - mMin) / (float) range : 0; 1288 final ObjectAnimator animator = ObjectAnimator.ofFloat(this, VISUAL_PROGRESS, scale); 1294 setVisualProgress(id, scale); 1298 onProgressRefresh(scale, fromUser, progress); 1302 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument 1788 canvas.scale(-1.0f, 1.0f); 1796 final float scale = mTransformation.getAlpha(); 1799 d.setLevel((int) (scale * MAX_LEVEL));
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 164 // Scale the rectangle by given scale and set the reuslt to the dst. 165 static void scale_rect(SkIRect* dst, const SkIRect& src, float scale) { argument 166 dst->fLeft = (int)::roundf(src.fLeft * scale); 167 dst->fTop = (int)::roundf(src.fTop * scale); 168 dst->fRight = (int)::roundf(src.fRight * scale); 169 dst->fBottom = (int)::roundf(src.fBottom * scale); 172 // Scale the region by given scale and set the reuslt to the dst. 174 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { argument 180 scale_rect(&r, iter.rect(), scale); 186 static void Region_scale(JNIEnv* env, jobject region, jfloat scale, jobjec argument 189 scale_rgn(GetSkRegion(env, dst), *rgn, scale); local [all...] |
H A D | BitmapFactory.cpp | 98 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) { argument 100 divs[i] = int32_t(divs[i] * scale + 0.5f); 122 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, argument 124 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); 125 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); 126 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); 127 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); 129 scaleDivRange(chunk->getXDivs(), chunk->numXDivs, scale, scaledWidth); 130 scaleDivRange(chunk->getYDivs(), chunk->numYDivs, scale, scaledHeight); 146 ScaleCheckingAllocator(float scale, in argument 246 float scale = 1.0f; local [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | ColorFade.java | 249 mScaleLoc = GLES20.glGetUniformLocation(mProgram, "scale"); 398 float scale = (float) ((-Math.pow(one_minus_level, 2) + 1) * 0.1d + 0.9d); 400 drawFaded(opacity, 1.f / gamma, saturation, scale); 412 private void drawFaded(float opacity, float gamma, float saturation, float scale) { argument 415 ", saturation=" + saturation + ", scale=" + scale); 426 GLES20.glUniform1f(mScaleLoc, scale);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 448 public void scale(float sx, float sy) { method in class:GcSnapshot 451 layer.getGraphics().scale(sx, sy); 457 mTransform.scale(sx, sy);
|
/frameworks/native/libs/input/ |
H A D | Input.cpp | 131 void PointerCoords::scale(float scaleFactor) { function in class:android::PointerCoords 132 // No need to scale pressure or size since they are normalized. 133 // No need to scale orientation since it is meaningless to do so. 344 void MotionEvent::scale(float scaleFactor) { function in class:android::MotionEvent 352 mSamplePointerCoords.editItemAt(i).scale(scaleFactor);
|
H A D | VelocityTracker.cpp | 904 float scale = 1000000000.0f / duration; // one over time delta in seconds local 905 float vx = (position.x - oldestPosition.x) * scale; 906 float vy = (position.y - oldestPosition.y) * scale;
|
/frameworks/native/libs/math/include/math/ |
H A D | TMatHelpers.h | 471 static constexpr BASE<T> scale(const VEC& s) { function in class:android::details::TMatHelpers
|
/frameworks/native/services/surfaceflinger/ |
H A D | DispSync.cpp | 557 double scale = 2.0 * M_PI / double(mPeriod); local 562 double samplePhase = double(sample % mPeriod) * scale; 570 mPhase = nsecs_t(atan2(sampleAvgY, sampleAvgX) / scale);
|
/frameworks/av/include/media/ |
H A D | VolumeShaper.h | 240 * the valid range for log or linear scale. 275 static const T scale = 1.f / (MAX_CURVE_TIME - MIN_CURVE_TIME); // nominally 1.f local 277 it->second = it->second + offset * (MAX_CURVE_TIME - it->first) * scale; 280 const T scale = (volume - endVolume) / (startVolume - endVolume); local 282 it->second = scale * (it->second - endVolume) + endVolume; 532 void setScale(R scale) { argument 533 mScale = scale; 686 double scale = (mConfiguration->last().first - mConfiguration->first().first) local 689 scale = std::max(scale, minScal [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AVIExtractor.cpp | 614 uint32_t scale = U32LE_AT(&data[24]); local 656 track->mScale = scale;
|
H A D | MediaCodecList.cpp | 950 || !strcmp(attrs[i], "scale") 968 // quality: range + default + [scale] 997 AString range, scale = "linear", def, in_; local 1006 if (name != "quality" && msg->findString("scale", &scale)) { 1007 return limitFoundMissingAttr(name, "scale"); 1023 mCurrentInfo->addDetail("quality-scale", scale); 1049 } else if (msg->contains("scale")) { 1050 return limitFoundMissingAttr(name, "scale"); [all...] |
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | AccessibilityService.java | 378 float scale, float centerX, float centerY); 718 private void onMagnificationChanged(@NonNull Region region, float scale, argument 722 region, scale, centerX, centerY); 855 void dispatchMagnificationChanged(final @NonNull Region region, final float scale, argument 879 region, scale, centerX, centerY); 884 listener.onMagnificationChanged(this, region, scale, centerX, centerY); 890 * Returns the current magnification scale. 897 * @return the current magnification scale 907 Log.w(LOG_TAG, "Failed to obtain scale", re); 974 * magnification scale an 377 onMagnificationChanged(@onNull Region region, float scale, float centerX, float centerY) argument 1048 setScale(float scale, boolean animate) argument 1111 onMagnificationChanged(@onNull MagnificationController controller, @NonNull Region region, float scale, float centerX, float centerY) argument 1657 onMagnificationChanged(@onNull Region region, float scale, float centerX, float centerY) argument [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 486 * How much to scale the duration by. 488 * @param scale The amount to scale the duration. 490 public void scaleCurrentDuration(float scale) { argument 491 mDuration = (long) (mDuration * scale); 492 mStartOffset = (long) (mStartOffset * scale); 638 * The scale factor is set by the call to <code>getTransformation</code>. Overrides of 643 * @return float The scale factor that should be applied to pre-scaled values in 780 * a scale animation will.</p> 792 * whereas a 200% scale animatio 950 getTransformation(long currentTime, Transformation outTransformation, float scale) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 710 static void android_view_MotionEvent_nativeScale(jlong nativePtr, jfloat scale) { argument 712 event->scale(scale);
|
/frameworks/base/libs/hwui/ |
H A D | RecordingCanvas.cpp | 209 void RecordingCanvas::scale(float sx, float sy) { function in class:android::uirenderer::RecordingCanvas 212 mState.scale(sx, sy);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SignalDrawable.java | 216 canvas.scale(-1.0f, 1.0f); 414 scale(LEFT, width), 415 scale(TOP, height), 416 scale(RIGHT, width), 417 scale(BOTTOM, height)); 444 private float scale(float frac, int width) { method in class:SignalDrawable.SlashArtist
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 240 public void setPosition(int centerX, int centerY, float scale) { argument 242 && mScale == scale) { 247 mScale = scale; 273 // we use for display. So it can be faster when the scale moves to the 274 // next level. We choose the level closest to the current scale. 353 // If the bitmap is scaled by the given factor "scale", return the 360 int cX, int cY, int level, float scale, int rotation) { 373 int left = (int) Math.floor(cX - width / (2f * scale)); 374 int top = (int) Math.floor(cY - height / (2f * scale)); 375 int right = (int) Math.ceil(left + width / scale); 359 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | MagnificationController.java | 222 * @return {@code true} if magnification is active, e.g. the scale 226 return mCurrentMagnificationSpec.scale > 1.0f; 297 * Returns the magnification scale. If an animation is in progress, 300 * @return the scale 303 return mCurrentMagnificationSpec.scale; 354 * Returns the scale currently used by the window manager. If an 358 * @return the scale currently used by the window manager 361 return mSpecAnimationBridge.mSentMagnificationSpec.scale; 387 * Resets the magnification scale and center, optionally animating the 421 * @param scale th 430 setScale(float scale, float pivotX, float pivotY, boolean animate, int id) argument 494 setScaleAndCenter( float scale, float centerX, float centerY, boolean animate, int id) argument 504 setScaleAndCenterLocked(float scale, float centerX, float centerY, boolean animate, int id) argument 595 updateMagnificationSpecLocked(float scale, float centerX, float centerY) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 323 void matrixf_t::scale(GLfloat x, GLfloat y, GLfloat z) { function in class:android::matrixf_t 431 void matrix_stack_t::scale(GLfloat x, GLfloat y, GLfloat z) function in class:android::matrix_stack_t 433 stack[depth].scale(x,y,z); 1055 c->transforms.current->scale(x, y, z); 1062 c->transforms.current->scale(
|
H A D | primitives.cpp | 264 // Here we do some voodoo magic, to compute a suitable scale 310 const int scale = min(A, B - m_scale) - 2; local 311 if (scale >= 0) { 312 c0 <<= scale; local 313 dc01 <<= scale; local 314 dc02 <<= scale; local 316 c0 >>= -scale; 317 dc01 >>= -scale; 318 dc02 >>= -scale; 328 return scale; [all...] |
/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 347 const int scale = 4; local 387 FIXED(xm * scale + m); 389 FIXED(ym * scale + m);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | MaterialProgressDrawable.java | 169 * @param scale Set the scale of the arrowhead for the spinner. 171 public void setArrowScale(float scale) { argument 172 mRing.setArrowScale(scale); 335 // scale the interpolatedTime so that the full 382 // scale the interpolatedTime so that the full 396 // scale the interpolatedTime so that the full 566 // where concatenating a rotation matrix to a scale matrix 750 * @param scale Set the scale o 752 setArrowScale(float scale) argument [all...] |