/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorMatrixSample.java | 56 float scale = contrast + 1.f; in setContrast() local 57 float translate = (-.5f * scale + .5f) * 255.f; in setContrast() 59 scale, 0, 0, 0, translate, in setContrast() 60 0, scale, 0, 0, translate, in setContrast() 61 0, 0, scale, 0, translate, in setContrast() 66 float scale = contrast + 1.f; in setContrastTranslateOnly() local 67 float translate = (-.5f * scale + .5f) * 255.f; in setContrastTranslateOnly() 76 float scale = contrast + 1.f; in setContrastScaleOnly() local 77 float translate = (-.5f * scale + .5f) * 255.f; in setContrastScaleOnly() 79 scale, 0, 0, 0, 0, in setContrastScaleOnly() [all …]
|
D | DensityActivity.java | 134 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { in addBitmapDrawable() argument 136 bitmap = loadAndPrintDpi(resource, scale); in addBitmapDrawable() 141 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable() 160 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { in addCanvasBitmap() argument 162 bitmap = loadAndPrintDpi(resource, scale); in addCanvasBitmap() 184 private Bitmap loadAndPrintDpi(int id, boolean scale) { in loadAndPrintDpi() argument 186 if (scale) { in loadAndPrintDpi()
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
D | OverlayDisplayWindow.java | 317 float scale = mWindowScale * mLiveScale; in updateWindowParams() local 318 scale = Math.min(scale, (float)mDefaultDisplayMetrics.widthPixels / mWidth); in updateWindowParams() 319 scale = Math.min(scale, (float)mDefaultDisplayMetrics.heightPixels / mHeight); in updateWindowParams() 320 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale)); in updateWindowParams() 322 float offsetScale = (scale / mWindowScale - 1.0f) * 0.5f; in updateWindowParams() 323 int width = (int)(mWidth * scale); in updateWindowParams() 324 int height = (int)(mHeight * scale); in updateWindowParams() 331 Log.d(TAG, "updateWindowParams: scale=" + scale in updateWindowParams() 337 mTextureView.setScaleX(scale); in updateWindowParams() 338 mTextureView.setScaleY(scale); in updateWindowParams() [all …]
|
/development/samples/wearable/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
D | WearableListItemLayout.java | 73 public void setScalingAnimatorValue(float scale) { in setScalingAnimatorValue() argument 74 mScale = scale; in setScalingAnimatorValue() 75 mCircle.setScaleX(scale); in setScalingAnimatorValue() 76 mCircle.setScaleY(scale); in setScalingAnimatorValue()
|
/development/samples/wearable/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
D | WearableListItemLayout.java | 74 public void setScalingAnimatorValue(float scale) { in setScalingAnimatorValue() argument 75 mScale = scale; in setScalingAnimatorValue() 76 mCircle.setScaleX(scale); in setScalingAnimatorValue() 77 mCircle.setScaleY(scale); in setScalingAnimatorValue()
|
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | OverlayDisplayWindow.java | 330 float scale = mWindowScale * mLiveScale; in updateWindowParams() local 331 scale = Math.min(scale, (float)mDefaultDisplayMetrics.widthPixels / mWidth); in updateWindowParams() 332 scale = Math.min(scale, (float)mDefaultDisplayMetrics.heightPixels / mHeight); in updateWindowParams() 333 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale)); in updateWindowParams() 335 float offsetScale = (scale / mWindowScale - 1.0f) * 0.5f; in updateWindowParams() 336 int width = (int)(mWidth * scale); in updateWindowParams() 337 int height = (int)(mHeight * scale); in updateWindowParams() 344 Log.d(TAG, "updateWindowParams: scale=" + scale in updateWindowParams() 350 mTextureView.setScaleX(scale); in updateWindowParams() 351 mTextureView.setScaleY(scale); in updateWindowParams() [all …]
|
/development/perftests/panorama/feature_stab/db_vlvm/ |
D | db_image_homography.h | 82 double scale,t[3]; in db_StitchCameraRotation_2Points() local 88 db_StitchSimilarity3DRaw(&scale,R,t,xp,x,2,1,0,1,0); in db_StitchCameraRotation_2Points() 155 DB_API void db_StitchSimilarity2DRaw(double *scale,double R[4],double t[2],
|
D | db_framestitching.h | 87 DB_API void db_StitchSimilarity3DRaw(double *scale,double R[9],double t[3],
|
/development/samples/browseable/CustomChoiceList/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/TextLinkify/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/BasicTransition/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/DrawableTinting/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/RevealEffectBasic/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/CustomTransition/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/BasicMediaRouter/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/StorageClient/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/BorderlessButtons/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/MediaRouter/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/FloatingActionButtonBasic/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/CardEmulation/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/NetworkConnect/src/com.example.android.common.logger/ |
D | LogFragment.java | 73 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 74 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|