/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
VerticalGridView.java | 21 import android.util.TypedValue; 65 TypedValue typedValue = array.peekValue(R.styleable.lbVerticalGridView_columnWidth); 66 if (typedValue != null) {
|
HorizontalGridView.java | 30 import android.util.TypedValue; 92 TypedValue typedValue = array.peekValue(R.styleable.lbHorizontalGridView_rowHeight); 93 if (typedValue != null) {
|
AbstractMediaItemPresenter.java | 23 import android.util.TypedValue; 203 TypedValue typedValue = new TypedValue(); 205 R.attr.playbackMediaItemNumberViewFlipperLayout, typedValue, true); 207 inflate(found ? typedValue.resourceId :
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
SwitchCompatUtils.java | 26 import android.util.TypedValue; 43 final TypedValue typedValue = new TypedValue(); 46 getSwitchThumbColorStateList(context, color, typedValue), 50 getSwitchTrackColorStateList(context, color, typedValue), PorterDuff.Mode.SRC_IN)); 67 final int color, final TypedValue typedValue) { 80 colors[i] = getThemeAttrColor(context, typedValue, 87 final int color, final TypedValue typedValue) [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/ |
Utils.java | 30 import android.util.TypedValue; 111 TypedValue typedValue = new TypedValue(); 112 theme.resolveAttribute(attr, typedValue, true); 114 icon.setTint(context.getColor(typedValue.resourceId));
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTypedValue.java | 4 import android.util.TypedValue; 9 import static android.util.TypedValue.*; 16 * http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/util/TypedValue.java 20 @Implements(TypedValue.class) 23 @RealObject TypedValue typedValue; 27 return Float.intBitsToFloat(typedValue.data); 31 1.0f / (1<<TypedValue.COMPLEX_MANTISSA_SHIFT); 40 return (complex&(TypedValue.COMPLEX_MANTISSA_MASK 41 <<TypedValue.COMPLEX_MANTISSA_SHIFT) [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ThemeUtils.java | 23 import android.util.TypedValue; 27 private static final ThreadLocal<TypedValue> TL_TYPED_VALUE = new ThreadLocal<>(); 89 final TypedValue tv = getTypedValue(); 98 private static TypedValue getTypedValue() { 99 TypedValue typedValue = TL_TYPED_VALUE.get(); 100 if (typedValue == null) { 101 typedValue = new TypedValue(); 102 TL_TYPED_VALUE.set(typedValue); [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
LayoutInflaterFactoryTestCase.java | 37 import android.util.TypedValue; 209 final TypedValue colorAccentValue = getColorAccentValue(viewContext.getTheme()); 210 assertTrue(colorAccentValue.type >= TypedValue.TYPE_FIRST_COLOR_INT 211 && colorAccentValue.type <= TypedValue.TYPE_LAST_COLOR_INT); 216 private static TypedValue getColorAccentValue(final Resources.Theme theme) { 217 final TypedValue typedValue = new TypedValue(); 218 theme.resolveAttribute(R.attr.colorAccent, typedValue, true); 219 return typedValue; [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
CustomViewAccessibilityActivity.java | 30 import android.util.TypedValue; 216 TypedValue typedValue = new TypedValue(); 217 context.getTheme().resolveAttribute(android.R.attr.textSize, typedValue, true); 218 final int textSize = (int) typedValue.getDimension( 222 context.getTheme().resolveAttribute(android.R.attr.textColorPrimary, typedValue, true); 223 final int textColor = context.getResources().getColor(typedValue.resourceId);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
FrameworkActionBar.java | 33 import android.util.TypedValue; 232 TypedValue typedValue = ResourceHelper.getValue(null, value, false /*requireUnit*/); 233 return (int) typedValue.getDimension(metrics); 247 TypedValue typedValue = ResourceHelper.getValue("actionBarSize", value.getValue(), 249 if (typedValue != null) { 251 return (int) typedValue.getDimension(metrics);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
BrandedFragment.java | 23 import android.util.TypedValue; 64 TypedValue typedValue = new TypedValue(); 66 R.attr.browseTitleViewLayout, typedValue, true); 67 return inflater.inflate(found ? typedValue.resourceId : R.layout.lb_browse_title,
|
BrandedSupportFragment.java | 25 import android.util.TypedValue; 66 TypedValue typedValue = new TypedValue(); 68 R.attr.browseTitleViewLayout, typedValue, true); 69 return inflater.inflate(found ? typedValue.resourceId : R.layout.lb_browse_title,
|
OnboardingFragment.java | 32 import android.util.TypedValue; 321 TypedValue typedValue = new TypedValue(); 322 boolean found = activity.getTheme().resolveAttribute(resId, typedValue, true); 325 mThemeWrapper = new ContextThemeWrapper(activity, typedValue.resourceId);
|
OnboardingSupportFragment.java | 34 import android.util.TypedValue; 323 TypedValue typedValue = new TypedValue(); 324 boolean found = activity.getTheme().resolveAttribute(resId, typedValue, true); 327 mThemeWrapper = new ContextThemeWrapper(activity, typedValue.resourceId);
|
GuidedStepFragment.java | 40 import android.util.TypedValue; [all...] |
GuidedStepSupportFragment.java | 42 import android.util.TypedValue; [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
CompactPhotoEditorView.java | 34 import android.util.TypedValue; 94 final TypedValue typedValue = new TypedValue(); 95 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true); 96 return typedValue.getFloat();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
StatusBarIconView.java | 34 import android.util.TypedValue; 222 TypedValue typedValue = new TypedValue(); 223 context.getResources().getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); 224 float scaleFactor = typedValue.getFloat();
|
SignalClusterView.java | 32 import android.util.TypedValue; 131 TypedValue typedValue = new TypedValue(); 132 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); 133 mIconScaleFactor = typedValue.getFloat();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/ |
EditableDialogCellEditor.java | 231 Object typedValue = value; 233 boolean newValidState = isCorrect(typedValue);
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactsListFragment.java | 43 import android.util.TypedValue; 540 final TypedValue typedValue = new TypedValue(); 542 // Resolve list item preferred height theme attribute into typedValue 544 android.R.attr.listPreferredItemHeight, typedValue, true); 553 return (int) typedValue.getDimension(metrics); [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
Layout.java | 41 import android.util.TypedValue; 191 width = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, width, metrics); 194 height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, height, metrics); 411 TypedValue typedValue = ResourceHelper.getValue(attr, value.getValue(), true); 412 if (typedValue != null) { 413 return (int) typedValue.getDimension(mContext.getMetrics());
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
ReviewPermissionsActivity.java | 40 import android.util.TypedValue; 266 TypedValue typedValue = new TypedValue(); 267 activity.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); 268 final int color = activity.getColor(typedValue.resourceId);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
StatusBarIconController.java | 33 import android.util.TypedValue; 156 TypedValue typedValue = new TypedValue(); 158 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); 159 float iconScaleFactor = typedValue.getFloat();
|
/frameworks/base/core/jni/ |
android_util_AssetManager.cpp | [all...] |