/development/tools/winscope/src/mixins/ |
D | Timeline.js | 81 const overlapDistanceInTs = (this.scale[1] - this.scale[0]) * 113 const scale = [...this.scale]; variable 114 if (scale[0] >= scale[1]) { 118 return (cx - scale[0]) / (scale[1] - scale[0]); 122 const scale = [...this.scale]; variable 123 if (scale[0] >= scale[1]) { 127 return pos * (scale[1] - scale[0]) + scale[0];
|
/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/ApiDemos/src/com/example/android/apis/accessibility/ |
D | MagnificationService.java | 159 Region region, float scale, float centerX, float centerY) { in onServiceConnected() 160 Log.e(LOG_TAG, "Magnification scale is now " + scale); in onServiceConnected()
|
/development/samples/browseable/CardReader/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/BasicAccessibility/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/DragAndDropAcrossApps/DropTarget/src/com.example.android/common/logger/ |
D | LogFragment.java | 58 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 59 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/ImmersiveMode/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/SlidingTabsColors/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/BasicAndroidKeyStore/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/ElevationDrag/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/ElevationBasic/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/SwipeRefreshLayoutBasic/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/NfcProvisioning/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/SwipeRefreshListFragment/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/BeamLargeFiles/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/JobScheduler/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/BasicGestureDetect/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/DragAndDropAcrossApps/DragSource/src/com.example.android/common/logger/ |
D | LogFragment.java | 60 double scale = getResources().getDisplayMetrics().density; in inflateViews() local 61 int paddingPixels = (int) ((paddingDips * (scale)) + .5); in inflateViews()
|
/development/samples/browseable/TextSwitcher/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()
|