/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...] |
/external/v8/test/mjsunit/regress/ |
regress-544991.js | 7 var typedArray = new Int8Array(1); 17 typedArray.constructor = TypedArraySubclass 18 typedArray.map(function(){});
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyStyle.java | 19 import android.content.res.TypedArray; 27 public abstract @Nullable String[] getStringArray(TypedArray a, int index); 28 public abstract @Nullable String getString(TypedArray a, int index); 29 public abstract int getInt(TypedArray a, int index, int defaultValue); 30 public abstract int getFlags(TypedArray a, int index); 37 protected String parseString(final TypedArray a, final int index) { 45 protected String[] parseStringArray(final TypedArray a, final int index) {
|
KeyStylesSet.java | 19 import android.content.res.TypedArray; 62 public String[] getStringArray(final TypedArray a, final int index) { 68 public String getString(final TypedArray a, final int index) { 73 public int getInt(final TypedArray a, final int index, final int defaultValue) { 78 public int getFlags(final TypedArray a, final int index) { 98 public String[] getStringArray(final TypedArray a, final int index) { 113 public String getString(final TypedArray a, final int index) { 126 public int getInt(final TypedArray a, final int index, final int defaultValue) { 139 public int getFlags(final TypedArray a, final int index) { 147 public void readKeyAttributes(final TypedArray keyAttr) [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;
|
/external/v8/test/mjsunit/es6/ |
typedarray-proto.js | 5 // Test that the methods for different TypedArray types have the same 21 let TypedArray = Uint8Array.__proto__; 22 let TypedArrayPrototype = TypedArray.prototype; 24 assertEquals(TypedArray.__proto__, Function.prototype); 53 // Abstract %TypedArray% class can't be constructed directly 55 assertThrows(() => new TypedArray(), TypeError); 58 // both for %TypedArray% and for all subclasses 60 let desc = Object.getOwnPropertyDescriptor(TypedArray, "prototype");
|
built-in-accessor-names.js | 24 let TypedArray = Uint8Array.__proto__; 26 assertGetterName('get buffer', TypedArray.prototype, 'buffer'); 27 assertGetterName('get byteOffset', TypedArray.prototype, 'byteOffset'); 28 assertGetterName('get byteLength', TypedArray.prototype, 'byteLength'); 29 assertGetterName('get length', TypedArray.prototype, 'length'); 30 assertGetterName('get [Symbol.toStringTag]', TypedArray.prototype, Symbol.toStringTag);
|
typedarray-of.js | 22 // %TypedArray%.of basics. 56 // %TypedArray%.of can be called on subclasses of TypedArrays 81 // %TypedArray%.of does not trigger prototype setters. 90 // Note that %TypedArray%.of does not trigger "length" setter itself, as 115 // Check superficial features of %TypedArray%.of. 123 // %TypedArray%.of is not a constructor. 126 // For receivers which are not constructors %TypedArray%.of does not
|
species.js | 9 let TypedArray = Uint8Array.__proto__; 13 let classesWithSpecies = [RegExp, Array, TypedArray, ArrayBuffer, Map, Set, Promise];
|
/frameworks/support/core-utils/java/android/support/v4/content/res/ |
TypedArrayUtils.java | 19 import android.content.res.TypedArray; 29 * Compat methods for accessing TypedArray values. 35 public static boolean getBoolean(TypedArray a, @StyleableRes int index, 41 public static Drawable getDrawable(TypedArray a, @StyleableRes int index, 50 public static int getInt(TypedArray a, @StyleableRes int index, 56 public static @AnyRes int getResourceId(TypedArray a, @StyleableRes int index, 62 public static String getString(TypedArray a, @StyleableRes int index, 71 public static CharSequence[] getTextArray(TypedArray a, @StyleableRes int index,
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
TypedArrayUtils.java | 17 import android.content.res.TypedArray; 27 public static float getNamedFloat(TypedArray a, XmlPullParser parser, String attrName, 37 public static boolean getNamedBoolean(TypedArray a, XmlPullParser parser, String attrName, 47 public static int getNamedInt(TypedArray a, XmlPullParser parser, String attrName, 57 public static int getNamedColor(TypedArray a, XmlPullParser parser, String attrName,
|
/cts/tests/tests/media/src/android/media/cts/ |
ExifInterfaceTest.java | 19 import android.content.res.TypedArray; 116 private static String getString(TypedArray typedArray, int index) { 117 String stringValue = typedArray.getString(index); 124 public ExpectedValue(TypedArray typedArray) { 126 hasThumbnail = typedArray.getBoolean(0, false); 127 thumbnailWidth = typedArray.getInt(1, 0); 128 thumbnailHeight = typedArray.getInt(2, 0); 131 hasLatLong = typedArray.getBoolean(3, 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...] |
/external/v8/test/mjsunit/es7/ |
typed-array-includes.js | 6 // https://github.com/tc39/Array.prototype.includes/tree/master/test/built-ins/TypedArray/prototype/includes 30 // %TypedArray%.prototype.includes throws a TypeError when used on non-typed 57 // %TypedArray%.prototype.includes should terminate if ToNumber ends up being 70 // %TypedArray%.prototype.includes should terminate if an exception occurs 91 // %TypedArray%.prototype.includes should search the whole array, as the 103 // %TypedArray%.prototype.includes returns false if fromIndex is greater or 114 // %TypedArray%.prototype.includes searches the whole array if the computed 125 // %TypedArray%.prototype.includes should use a negative value as the offset 137 // %TypedArray%.prototype.includes converts its fromIndex parameter to an 161 // %TypedArray%.prototype.includes should have length [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
TypedArray_Delegate.java | 26 public static boolean getValueAt(TypedArray theTypedArray, int index, TypedValue outValue) { 32 /*package*/ static TypedArray obtain(Resources res, int len) {
|
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/ |
RecyclerItemAdapter.java | 19 import android.content.res.TypedArray; 78 final TypedArray typedArray = parent.getContext() 80 Drawable selectableItemBackground = typedArray.getDrawable( 83 selectableItemBackground = typedArray.getDrawable( 87 final Drawable background = typedArray.getDrawable( 99 typedArray.recycle();
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
InCallUIMaterialColorMapUtils.java | 4 import android.content.res.TypedArray; 12 private final TypedArray sPrimaryColors; 13 private final TypedArray sSecondaryColors;
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
DrawerArrowDrawable.java | 19 import android.content.res.TypedArray; 69 final TypedArray typedArray = context.getTheme() 74 mPaint.setColor(typedArray.getColor(R.styleable.DrawerArrowDrawable_carArrowColor, 0)); 75 mSize = typedArray.getDimensionPixelSize(R.styleable.DrawerArrowDrawable_carArrowDrawableSize, 0); 77 mBarSize = Math.round(typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowBarSize, 0)); 79 mTopBottomArrowSize = Math.round(typedArray.getDimension( 81 mBarThickness = typedArray.getDimension(R.styleable.DrawerArrowDrawable_carArrowThickness, 0); 83 mBarGap = Math.round(typedArray.getDimension( 85 mSpin = typedArray.getBoolean(R.styleable.DrawerArrowDrawable_carArrowSpinBars, true) [all...] |
/cts/tests/tests/preference2/src/android/preference2/cts/ |
CustomCheckBoxPreference.java | 21 import android.content.res.TypedArray; 48 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref);
|
CustomDialogPreference.java | 21 import android.content.res.TypedArray; 44 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref);
|
CustomEditTextPreference.java | 21 import android.content.res.TypedArray; 48 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref);
|
CustomPreferenceGroup.java | 21 import android.content.res.TypedArray; 45 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref);
|
CustomSwitchPreference.java | 22 import android.content.res.TypedArray; 49 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTypedArray.java | 4 import android.content.res.TypedArray; 10 @Implements(TypedArray.class)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
TunerSwitch.java | 4 import android.content.res.TypedArray; 21 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TunerSwitch);
|