HomeSort by relevance Sort by last modified time
    Searched refs:typedArray (Results 1 - 25 of 53) sorted by null

1 2 3

  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
TypedArrayTest.java 18 private android.content.res.TypedArray typedArray;
22 typedArray = Robolectric.newInstanceOf(android.content.res.TypedArray.class);
32 assertThat(typedArray.getBoolean(0, true), equalTo(true));
33 assertThat(typedArray.getBoolean(0, false), equalTo(false));
38 assertThat(typedArray.getInt(0, 15), equalTo(15));
39 assertThat(typedArray.getInteger(0, 24), equalTo(24));
44 assertThat(typedArray.getFloat(0, 0.5f), equalTo(0.5f));
49 assertThat(typedArray.getDimension(0, 0.5f), equalTo(0.5f))
    [all...]
  /frameworks/support/compat/jellybean/android/support/v4/app/
BundleUtil.java 19 Bundle[] typedArray = Arrays.copyOf(array, array.length,
21 bundle.putParcelableArray(key, typedArray);
22 return typedArray;
  /packages/services/Car/car-support-lib/src/android/support/car/ui/
DrawerArrowDrawable.java 19 import android.content.res.TypedArray;
70 final TypedArray typedArray = context.getTheme()
75 mPaint.setColor(typedArray.getColor(R.styleable.DrawerArrowDrawable_carArrowColor, 0));
76 mSize = typedArray.getDimensionPixelSize(R.styleable.DrawerArrowDrawable_carArrowDrawableSize, 0);
78 mBarSize = Math.round(typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowBarSize, 0));
80 mTopBottomArrowSize = Math.round(typedArray.getDimension(
82 mBarThickness = typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowThickness, 0);
84 mBarGap = Math.round(typedArray.getDimension(
86 mSpin = typedArray.getBoolean(R.styleable.DrawerArrowDrawable_carArrowSpinBars, true)
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
ExifInterfaceTest.java 19 import android.content.res.TypedArray;
129 private static String getString(TypedArray typedArray, int index) {
130 String stringValue = typedArray.getString(index);
137 public ExpectedValue(TypedArray typedArray) {
141 hasThumbnail = typedArray.getBoolean(index++, false);
142 thumbnailWidth = typedArray.getInt(index++, 0);
143 thumbnailHeight = typedArray.getInt(index++, 0);
144 isThumbnailCompressed = typedArray.getBoolean(index++, false)
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
ExifInterfaceTest.java 21 import android.content.res.TypedArray;
120 private static String getString(TypedArray typedArray, int index) {
121 String stringValue = typedArray.getString(index);
128 public ExpectedValue(TypedArray typedArray) {
130 hasThumbnail = typedArray.getBoolean(0, false);
131 thumbnailWidth = typedArray.getInt(1, 0);
132 thumbnailHeight = typedArray.getInt(2, 0);
135 hasLatLong = typedArray.getBoolean(3, false)
    [all...]
  /frameworks/support/exifinterface/tests/src/android/support/media/
ExifInterfaceTest.java 26 import android.content.res.TypedArray;
140 private static String getString(TypedArray typedArray, int index) {
141 String stringValue = typedArray.getString(index);
148 public ExpectedValue(TypedArray typedArray) {
150 hasThumbnail = typedArray.getBoolean(0, false);
151 thumbnailWidth = typedArray.getInt(1, 0);
152 thumbnailHeight = typedArray.getInt(2, 0);
155 hasLatLong = typedArray.getBoolean(3, false)
    [all...]
  /frameworks/support/wear/src/android/support/wear/widget/drawer/
WearableDrawerView.java 21 import android.content.res.TypedArray;
172 Context context, TypedArray typedArray, @StyleableRes int index) {
175 typedArray.getResourceId(index, 0);
177 background = typedArray.getDrawable(index);
466 TypedArray typedArray =
472 getDrawable(context, typedArray, R.styleable.WearableDrawerView_android_background);
473 int elevation = typedArray
478 mContentResId = typedArray.getResourceId(R.styleable.WearableDrawerView_drawerContent, 0)
    [all...]
WearableNavigationDrawerView.java 21 import android.content.res.TypedArray;
142 TypedArray typedArray = context.obtainStyledAttributes(
149 navStyle = typedArray.getInt(
151 typedArray.recycle();
WearableActionDrawerView.java 22 import android.content.res.TypedArray;
120 TypedArray typedArray = context.obtainStyledAttributes(
124 mTitle = typedArray.getString(R.styleable.WearableActionDrawerView_drawerTitle);
125 showOverflowInPeek = typedArray.getBoolean(
127 menuRes = typedArray
130 typedArray.recycle();
  /frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
RecyclerItemAdapter.java 19 import android.content.res.TypedArray;
89 final TypedArray typedArray = parent.getContext()
91 Drawable selectableItemBackground = typedArray.getDrawable(
94 selectableItemBackground = typedArray.getDrawable(
98 final Drawable background = typedArray.getDrawable(
110 typedArray.recycle();
  /packages/apps/Dialer/java/com/android/incallui/video/impl/
CheckableImageButton.java 20 import android.content.res.TypedArray;
59 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.CheckableImageButton);
60 setChecked(typedArray.getBoolean(R.styleable.CheckableImageButton_android_checked, false));
62 typedArray.getText(R.styleable.CheckableImageButton_contentDescriptionChecked);
64 typedArray.getText(R.styleable.CheckableImageButton_contentDescriptionUnchecked);
65 typedArray.recycle();
  /frameworks/base/core/java/android/text/style/
SuggestionSpan.java 23 import android.content.res.TypedArray;
185 TypedArray typedArray = context.obtainStyledAttributes(
187 mMisspelledUnderlineThickness = typedArray.getDimension(
189 mMisspelledUnderlineColor = typedArray.getColor(
193 typedArray = context.obtainStyledAttributes(
195 mEasyCorrectUnderlineThickness = typedArray.getDimension(
197 mEasyCorrectUnderlineColor = typedArray.getColor(
201 typedArray = context.obtainStyledAttributes(
203 mAutoCorrectionUnderlineThickness = typedArray.getDimension
    [all...]
  /external/mockito/src/main/java/org/mockito/internal/util/collections/
HashCodeAndEqualsSafeSet.java 110 public <T> T[] toArray(T[] typedArray) {
111 T[] array = typedArray.length >= size() ? typedArray : (T[]) newInstance(typedArray.getClass().getComponentType(), size());
  /frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
PipControlButtonView.java 22 import android.content.res.TypedArray;
87 TypedArray typedArray =
90 setImageResource(typedArray.getResourceId(0, 0));
91 setText(typedArray.getResourceId(1, 0));
93 typedArray.recycle();
  /packages/apps/Contacts/src/com/android/contacts/util/
LocalizedNameResolver.java 26 import android.content.res.TypedArray;
104 final TypedArray typedArray = context.obtainStyledAttributes(attrs,
108 final String nonResourceString = typedArray.getNonResourceString(
116 int id = typedArray.getResourceId(
134 typedArray.recycle();
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
PagingIndicator.java 27 import android.content.res.TypedArray;
143 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.PagingIndicator,
145 mDotRadius = getDimensionFromTypedArray(typedArray, R.styleable.PagingIndicator_lbDotRadius,
148 mArrowRadius = getDimensionFromTypedArray(typedArray,
151 mDotGap = getDimensionFromTypedArray(typedArray, R.styleable.PagingIndicator_dotToDotGap,
153 mArrowGap = getDimensionFromTypedArray(typedArray,
156 int dotBgColor = getColorFromTypedArray(typedArray, R.styleable.PagingIndicator_dotBgColor,
160 mDotFgSelectColor = getColorFromTypedArray(typedArray,
163 if (mArrowPaint == null && typedArray.hasValue(R.styleable.PagingIndicator_arrowColor))
    [all...]
  /frameworks/base/core/java/android/content/res/
FontResourcesParser.java 146 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamily);
158 TypedArray typedArray = resources.obtainTypedArray(certsId);
159 if (typedArray.length() > 0) {
161 boolean isArrayOfArrays = typedArray.getResourceId(0, 0) != 0;
163 for (int i = 0; i < typedArray.length(); i++) {
164 int certId = typedArray.getResourceId(i, 0);
201 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamilyFont);
  /frameworks/support/compat/java/android/support/v4/content/res/
FontResourcesParserCompat.java 22 import android.content.res.TypedArray;
172 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamily);
214 TypedArray typedArray = resources.obtainTypedArray(certsId);
215 if (typedArray.length() > 0) {
217 boolean isArrayOfArrays = typedArray.getResourceId(0, 0) != 0;
219 for (int i = 0; i < typedArray.length(); i++) {
220 int certId = typedArray.getResourceId(i, 0);
246 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamilyFont);
  /packages/apps/Dialer/java/com/android/incallui/autoresizetext/
AutoResizeTextView.java 20 import android.content.res.TypedArray;
82 TypedArray typedArray = context.getTheme().obtainStyledAttributes(
84 readAttrs(typedArray);
192 private void readAttrs(TypedArray typedArray) {
193 resizeStepUnit = typedArray.getInt(
195 minTextSize = (int) typedArray.getDimension(
  /packages/apps/Dialer/java/com/android/incallui/incall/impl/
CheckableLabeledButton.java 21 import android.content.res.TypedArray;
70 TypedArray typedArray =
72 icon = typedArray.getDrawable(R.styleable.CheckableLabeledButton_incall_icon);
73 labelText = typedArray.getString(R.styleable.CheckableLabeledButton_incall_labelText);
74 enabled = typedArray.getBoolean(R.styleable.CheckableLabeledButton_android_enabled, true);
75 typedArray.recycle();
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
PrintOptionsLayout.java 20 import android.content.res.TypedArray;
39 TypedArray typedArray = context.obtainStyledAttributes(attrs,
41 mColumnCount = typedArray.getInteger(R.styleable.PrintOptionsLayout_columnCount, 0);
42 typedArray.recycle();
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/
SmsBottomSheetFragment.java 22 import android.content.res.TypedArray;
89 TypedArray typedArray = context.obtainStyledAttributes(attrs);
90 Drawable background = typedArray.getDrawable(0);
92 typedArray.recycle();
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
SystemBarHelper.java 23 import android.content.res.TypedArray;
131 final TypedArray typedArray = context.obtainStyledAttributes(new int[]{
133 final int statusBarColor = typedArray.getColor(0, 0);
134 final int navigationBarColor = typedArray.getColor(1, 0);
137 typedArray.recycle();
  /packages/apps/Dialer/java/com/android/dialer/calllogutils/
CallTypeIconsView.java 20 import android.content.res.TypedArray;
60 TypedArray typedArray =
62 useLargeIcons = typedArray.getBoolean(R.styleable.CallTypeIconsView_useLargeIcons, false);
63 typedArray.recycle();
  /external/v8/src/js/
typedarray.js 14 // array.js has to come before typedarray.js for this to work
95 function TypedArrayDefaultConstructor(typedArray) {
96 switch (%_ClassOf(typedArray)) {
239 // ES#sec-typedarray-typedarray TypedArray ( typedArray )
240 function NAMEConstructByTypedArray(obj, typedArray) {
241 // TODO(littledan): Throw on detached typedArray
242 var srcData = %TypedArrayGetBuffer(typedArray);
    [all...]

Completed in 5940 milliseconds

1 2 3