Searched refs:width (Results 151 - 175 of 1274) sorted by last modified time

1234567891011>>

/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingToolbarLayout.java1115 public LayoutParams(int width, int height) { argument
1116 super(width, height);
1119 public LayoutParams(int width, int height, int gravity) { argument
1120 super(width, height, gravity);
H A DCoordinatorLayout.java664 * @param parentWidthMeasureSpec the width requirements for this view
753 final int width = ViewCompat.resolveSizeAndState(widthUsed, widthMeasureSpec,
757 setMeasuredDimension(width, height);
925 left = anchorRect.left + anchorRect.width() / 2;
969 final int width = getWidth();
975 width - getPaddingRight() - childWidth - lp.rightMargin));
1019 final int width = getWidth();
1025 keyline = width - keyline;
1060 width - getPaddingRight() - childWidth - lp.rightMargin));
1895 * @param parentWidthMeasureSpec the width requirement
2272 LayoutParams(int width, int height) argument
[all...]
H A DFloatingActionButton.java424 final int width = ConfigurationHelper.getScreenWidthDp(res);
426 return Math.max(width, height) < AUTO_MINI_LARGEST_SCREEN_WIDTH
H A DTabLayout.java170 * quick pivots between tabs. The maximum number of tabs is limited by the view’s width.
171 * Fixed tabs have equal width, based on the widest tab label.
997 lp.width = 0;
1000 lp.width = LinearLayout.LayoutParams.WRAP_CONTENT;
1027 // If we don't have an unspecified width spec, use the given size to calculate
1028 // the max tab width
1038 // If we're in fixed mode then we need to make the tab strip is the same width as us
1056 // Re-measure the child with a widthSpec set to be exactly our measure width
1574 // If we have a max width and a given spec which is either unspecified or
1575 // larger than the max width, updat
[all...]
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DTestUtilsMatchers.java36 * Returns a matcher that matches Views that are not narrower than specified width in pixels.
52 "width " + viewWidth + " is less than minimum " + minWidth;
61 * Returns a matcher that matches Views that are not wider than specified width in pixels.
77 "width " + viewWidth + " is more than maximum " + maxWidth;
177 startDrawable, bounds.width(), bounds.height(), true,
243 final int rectWidthQuarter = area.width() / 4;
/frameworks/support/design/tests/src/android/support/design/widget/
H A DNavigationViewTest.java236 public TestDrawable(@ColorInt int color, int width, int height) { argument
238 mWidth = width;
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DAndroidResources.java22 android.R.attr.width, android.R.attr.alpha, android.R.attr.autoMirrored,
H A DVectorDrawableCompat.java157 if (mTmpBounds.width() <= 0 || mTmpBounds.height() <= 0) {
183 int scaledWidth = (int) (mTmpBounds.width() * canvasScaleX);
198 canvas.translate(mTmpBounds.width(), 0);
548 "<vector> tag requires width > 0");
826 public void updateCachedBitmap(int width, int height) { argument
829 mVPathRenderer.draw(tmpCanvas, width, height, null);
832 public void createCachedBitmapIfNeeded(int width, int height) { argument
833 if (mCachedBitmap == null || !canReuseBitmap(width, height)) {
834 mCachedBitmap = Bitmap.createBitmap(width, height,
841 public boolean canReuseBitmap(int width, in argument
[all...]
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
H A DVectorDrawableTest.java123 final int width = IMAGE_WIDTH;
126 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
/frameworks/support/percent/src/android/support/percent/
H A DPercentFrameLayout.java67 * You can also make one dimension be a fraction of the other by setting only width or height and
74 * This will make the aspect ratio 16:9 (1.78:1) with the width fixed at 300dp and height adjusted
126 public LayoutParams(int width, int height) { argument
127 super(width, height);
130 public LayoutParams(int width, int height, int gravity) { argument
131 super(width, height, gravity);
H A DPercentLayoutHelper.java95 params.width = array.getLayoutDimension(widthAttr, 0);
100 * Iterates over children and changes their width and height to one calculated from percentage
153 Log.v(TAG, "percent width: " + value);
286 * space, it will be remeasured with width set to {@code WRAP_CONTENT}.
305 params.width = ViewGroup.LayoutParams.WRAP_CONTENT;
323 info.mPreservedParams.width == ViewGroup.LayoutParams.WRAP_CONTENT;
333 // These two flags keep track of whether we're computing the LayoutParams width and height
337 // the same set of width / height.
341 public PercentMarginLayoutParams(int width, int height) { argument
342 super(width, heigh
[all...]
H A DPercentRelativeLayout.java67 * You can also make one dimension be a fraction of the other by setting only width or height and
74 * This will make the aspect ratio 16:9 (1.78:1) with the width fixed at 300dp and height adjusted
126 public LayoutParams(int width, int height) { argument
127 super(width, height);
/frameworks/support/v14/preference/src/android/support/v14/preference/
H A DPreferenceFragment.java783 final int width = parent.getWidth();
788 mDivider.setBounds(0, top, width, top + mDividerHeight);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DIconLoader.java241 int width = data[valueIndex++] & 0xFF;
243 int numOfPixels = width*height;
262 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
292 int width = data[valueIndex++] & 0xFF;
301 int numOfPixels = width * height;
324 return Bitmap.createBitmap(pixels, width, height,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java1033 private static String decodeCharset(byte[] data, int offset, int numFields, int width, argument
1036 if (numFields < 0 || (numFields * width + offset) > data.length) {
1038 int padding = offset % width;
1039 int maxNumFields = (data.length - offset - padding) / width;
1049 return new String(data, offset, numFields * width, charset);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java410 int width = data[valueIndex++] & 0xFF;
412 int numOfPixels = width*height;
431 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
453 int width = data[valueIndex++] & 0xFF;
468 (width * height), colorIndexArray, bits);
471 (width * height), colorIndexArray, bits);
474 return Bitmap.createBitmap(resultArray, width, height,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
H A DGEOLocationElement.java206 int width = Math.min(Byte.SIZE - sbit, remaining);
208 value = (value << width) | getBits(mOctets[octet], sbit, width);
210 mBitoffset += width;
211 remaining -= width;
217 private static int getBits(byte b, int b0, int width) { argument
218 int mask = (1 << width) - 1;
219 return (b >> (Byte.SIZE - b0 - width)) & mask;
232 private void append(long value, int width) { argument
233 System.out.printf("Appending %x:%d\n", value, width);
258 fixToFloat(long value, int fractionSize, int width) argument
268 floatToFix(double value, int fractionSize, int width) argument
[all...]
/frameworks/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_WifiNative.cpp1235 config.channel.width = (wifi_channel_width) helper.getIntField(param, "channelWidth");
1252 config.type,config.peer, config.channel.width, config.channel.center_freq);
1323 channel.width = (wifi_channel_width)helper.getIntField(channel_hint, "mChannelWidth");
1328 channel.width, channel.center_freq, channel.center_freq0);
1341 channel_used.width, channel_used.center_freq, channel_used.center_freq0);
1349 helper.setIntField(responderConfig, "channelWidth", channel_used.width);
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java72 /** The width & height of the bitmap returned by {@link #getCroppedPhoto()} */
296 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale;
299 if (mTranslateRect.width() <= widthBuffer * 2) {
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
H A DDividerItemDecoration.java106 final int width = parent.getWidth();
112 mDivider.setBounds(0, top, width, top + dividerHeight);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifPatternDrawable.java164 final int width = bounds.width();
167 float scaleX = width / VIEWBOX_WIDTH;
H A DTemplateLayout.java150 * Set the X translation as a fraction of the width of this view. Make sure this method is not
163 final int width = getWidth();
164 if (width != 0) {
165 setTranslationX(width * fraction);
186 * Return the X translation as a fraction of the width, as previously set in
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DIllustration.java39 * drawable to fit the width of the view and fills the rest with the background.
42 * Otherwise the the aspect ratio will be ignored, only increasing the width of the illustration.
104 * width and height defined and will be scaled to fit the width of the view.
117 * view according to the width of this view and the aspect ratio. Children views will start
120 * @param aspectRatio A float value specifying the aspect ratio (= width / height). 0 to not
189 canvas.translate(-mBackground.getBounds().width(), 0);
200 canvas.translate(-mIllustrationBounds.width(), 0);
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
H A DImsVideoCallProvider.java230 public void changePeerDimensions(int width, int height) { argument
233 mCallback.changePeerDimensions(width, height);
H A DImsVideoCallProviderWrapper.java88 public void changePeerDimensions(int width, int height) { argument
90 args.arg1 = width;
140 int width = (int) args.arg1;
142 changePeerDimensions(width, height);

Completed in 2881 milliseconds

1234567891011>>