Home
last modified time | relevance | path

Searched refs:typedArray (Results 1 – 20 of 20) sorted by relevance

/frameworks/support/v7/mediarouter/tests/src/android/support/v7/app/
DMediaRouteChooserDialogTest.java58 TypedArray typedArray; in testWindowNoTitle() local
62 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); in testWindowNoTitle()
63 assertTrue(typedArray.getBoolean(R.styleable.AppCompatTheme_windowNoTitle, false)); in testWindowNoTitle()
64 typedArray.recycle(); in testWindowNoTitle()
68 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); in testWindowNoTitle()
69 assertFalse(typedArray.getBoolean(R.styleable.AppCompatTheme_windowNoTitle, false)); in testWindowNoTitle()
70 typedArray.recycle(); in testWindowNoTitle()
75 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); in testWindowNoTitle()
76 assertTrue(typedArray.getBoolean(R.styleable.AppCompatTheme_windowNoTitle, false)); in testWindowNoTitle()
77 typedArray.recycle(); in testWindowNoTitle()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DExifInterfaceTest.java120 private static String getString(TypedArray typedArray, int index) { in getString() argument
121 String stringValue = typedArray.getString(index); in getString()
128 public ExpectedValue(TypedArray typedArray) { in ExpectedValue() argument
130 hasThumbnail = typedArray.getBoolean(0, false); in ExpectedValue()
131 thumbnailWidth = typedArray.getInt(1, 0); in ExpectedValue()
132 thumbnailHeight = typedArray.getInt(2, 0); in ExpectedValue()
135 hasLatLong = typedArray.getBoolean(3, false); in ExpectedValue()
136 latitude = typedArray.getFloat(4, 0f); in ExpectedValue()
137 longitude = typedArray.getFloat(5, 0f); in ExpectedValue()
138 altitude = typedArray.getFloat(6, 0f); in ExpectedValue()
[all …]
/frameworks/support/wear/src/android/support/wear/widget/drawer/
DWearableDrawerView.java173 Context context, TypedArray typedArray, @StyleableRes int index) { in getDrawable() argument
176 typedArray.getResourceId(index, 0); in getDrawable()
178 background = typedArray.getDrawable(index); in getDrawable()
467 TypedArray typedArray = in parseAttributes() local
473 getDrawable(context, typedArray, R.styleable.WearableDrawerView_android_background); in parseAttributes()
474 int elevation = typedArray in parseAttributes()
479 mContentResId = typedArray.getResourceId(R.styleable.WearableDrawerView_drawerContent, 0); in parseAttributes()
480 mPeekResId = typedArray.getResourceId(R.styleable.WearableDrawerView_peekView, 0); in parseAttributes()
482 typedArray.getBoolean(R.styleable.WearableDrawerView_enableAutoPeek, mCanAutoPeek); in parseAttributes()
483 typedArray.recycle(); in parseAttributes()
DWearableNavigationDrawerView.java142 TypedArray typedArray = context.obtainStyledAttributes( in WearableNavigationDrawerView() local
149 navStyle = typedArray.getInt( in WearableNavigationDrawerView()
151 typedArray.recycle(); in WearableNavigationDrawerView()
DWearableActionDrawerView.java120 TypedArray typedArray = context.obtainStyledAttributes( in WearableActionDrawerView() local
124 mTitle = typedArray.getString(R.styleable.WearableActionDrawerView_drawerTitle); in WearableActionDrawerView()
125 showOverflowInPeek = typedArray.getBoolean( in WearableActionDrawerView()
127 menuRes = typedArray in WearableActionDrawerView()
130 typedArray.recycle(); in WearableActionDrawerView()
/frameworks/support/exifinterface/tests/src/android/support/media/
DExifInterfaceTest.java255 private static String getString(TypedArray typedArray, int index) { in getString() argument
256 String stringValue = typedArray.getString(index); in getString()
263 public ExpectedValue(TypedArray typedArray) { in ExpectedValue() argument
265 hasThumbnail = typedArray.getBoolean(0, false); in ExpectedValue()
266 thumbnailWidth = typedArray.getInt(1, 0); in ExpectedValue()
267 thumbnailHeight = typedArray.getInt(2, 0); in ExpectedValue()
270 hasLatLong = typedArray.getBoolean(3, false); in ExpectedValue()
271 latitude = typedArray.getFloat(4, 0f); in ExpectedValue()
272 longitude = typedArray.getFloat(5, 0f); in ExpectedValue()
273 altitude = typedArray.getFloat(6, 0f); in ExpectedValue()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DPagingIndicator.java143 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.PagingIndicator, in PagingIndicator() local
145 mDotRadius = getDimensionFromTypedArray(typedArray, R.styleable.PagingIndicator_lbDotRadius, in PagingIndicator()
148 mArrowRadius = getDimensionFromTypedArray(typedArray, in PagingIndicator()
151 mDotGap = getDimensionFromTypedArray(typedArray, R.styleable.PagingIndicator_dotToDotGap, in PagingIndicator()
153 mArrowGap = getDimensionFromTypedArray(typedArray, in PagingIndicator()
156 int dotBgColor = getColorFromTypedArray(typedArray, R.styleable.PagingIndicator_dotBgColor, in PagingIndicator()
160 mDotFgSelectColor = getColorFromTypedArray(typedArray, in PagingIndicator()
163 if (mArrowPaint == null && typedArray.hasValue(R.styleable.PagingIndicator_arrowColor)) { in PagingIndicator()
164 setArrowColor(typedArray.getColor(R.styleable.PagingIndicator_arrowColor, 0)); in PagingIndicator()
166 typedArray.recycle(); in PagingIndicator()
[all …]
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java185 TypedArray typedArray = context.obtainStyledAttributes( in initStyle() local
187 mMisspelledUnderlineThickness = typedArray.getDimension( in initStyle()
189 mMisspelledUnderlineColor = typedArray.getColor( in initStyle()
193 typedArray = context.obtainStyledAttributes( in initStyle()
195 mEasyCorrectUnderlineThickness = typedArray.getDimension( in initStyle()
197 mEasyCorrectUnderlineColor = typedArray.getColor( in initStyle()
201 typedArray = context.obtainStyledAttributes( in initStyle()
203 mAutoCorrectionUnderlineThickness = typedArray.getDimension( in initStyle()
205 mAutoCorrectionUnderlineColor = typedArray.getColor( in initStyle()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java103 final TypedArray typedArray = parent.getContext() in onCreateViewHolder() local
105 Drawable selectableItemBackground = typedArray.getDrawable( in onCreateViewHolder()
108 selectableItemBackground = typedArray.getDrawable( in onCreateViewHolder()
114 background = typedArray.getDrawable( in onCreateViewHolder()
127 typedArray.recycle(); in onCreateViewHolder()
/frameworks/support/compat/java/android/support/v4/content/res/
DFontResourcesParserCompat.java221 TypedArray typedArray = resources.obtainTypedArray(certsId); in readCerts() local
222 if (typedArray.length() > 0) { in readCerts()
224 boolean isArrayOfArrays = typedArray.getResourceId(0, 0) != 0; in readCerts()
226 for (int i = 0; i < typedArray.length(); i++) { in readCerts()
227 int certId = typedArray.getResourceId(i, 0); in readCerts()
238 typedArray.recycle(); in readCerts()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipControlButtonView.java87 TypedArray typedArray = in PipControlButtonView() local
90 setImageResource(typedArray.getResourceId(0, 0)); in PipControlButtonView()
91 setText(typedArray.getResourceId(1, 0)); in PipControlButtonView()
93 typedArray.recycle(); in PipControlButtonView()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java158 TypedArray typedArray = resources.obtainTypedArray(certsId); in readFamily() local
159 if (typedArray.length() > 0) { in readFamily()
161 boolean isArrayOfArrays = typedArray.getResourceId(0, 0) != 0; in readFamily()
163 for (int i = 0; i < typedArray.length(); i++) { in readFamily()
164 int certId = typedArray.getResourceId(i, 0); in readFamily()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java39 TypedArray typedArray = context.obtainStyledAttributes(attrs, in PrintOptionsLayout() local
41 mColumnCount = typedArray.getInteger(R.styleable.PrintOptionsLayout_columnCount, 0); in PrintOptionsLayout()
42 typedArray.recycle(); in PrintOptionsLayout()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DSystemBarHelper.java131 final TypedArray typedArray = context.obtainStyledAttributes(new int[]{ in showSystemBars() local
133 final int statusBarColor = typedArray.getColor(0, 0); in showSystemBars()
134 final int navigationBarColor = typedArray.getColor(1, 0); in showSystemBars()
137 typedArray.recycle(); in showSystemBars()
/frameworks/support/compat/java/android/support/v4/app/
DNotificationCompatJellybean.java328 Bundle[] typedArray = Arrays.copyOf(array, array.length, in getBundleArrayFromBundle() local
330 bundle.putParcelableArray(key, typedArray); in getBundleArrayFromBundle()
331 return typedArray; in getBundleArrayFromBundle()
DNotificationCompat.java4521 Notification[] typedArray = new Notification[array.length]; in getNotificationArrayFromBundle() local
4523 typedArray[i] = (Notification) array[i]; in getNotificationArrayFromBundle()
4525 bundle.putParcelableArray(key, typedArray); in getNotificationArrayFromBundle()
4526 return typedArray; in getNotificationArrayFromBundle()
/frameworks/data-binding/compilerCommon/
DBindingExpression.g4509 | 'typedArray'
/frameworks/base/core/java/android/app/
DFragment.java2815 private static Transition loadTransition(Context context, TypedArray typedArray,
2820 int transitionId = typedArray.getResourceId(id, 0);
DNotification.java8455 Notification[] typedArray = Arrays.copyOf(array, array.length, in getNotificationArrayFromBundle() local
8457 bundle.putParcelableArray(key, typedArray); in getNotificationArrayFromBundle()
8458 return typedArray; in getNotificationArrayFromBundle()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java2893 final TypedArray typedArray = overrideContext.obtainStyledAttributes( in addSplashScreen() local
2895 final int resId = typedArray.getResourceId(R.styleable.Window_windowBackground, 0); in addSplashScreen()
2904 typedArray.recycle(); in addSplashScreen()