/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | SwitchCompatUtils.java | 43 final TypedValue typedValue = new TypedValue(); in updateSwitchCompatColor() local 46 getSwitchThumbColorStateList(context, color, typedValue), in updateSwitchCompatColor() 67 final int color, final TypedValue typedValue) { in getSwitchThumbColorStateList() argument 80 colors[i] = getThemeAttrColor(context, typedValue, in getSwitchThumbColorStateList() 87 final int color, final TypedValue typedValue) { in getSwitchTrackColorStateList() argument 107 if (context.getTheme().resolveAttribute(attr, typedValue, true)) { in getThemeAttrColor() 108 if (typedValue.type >= TypedValue.TYPE_FIRST_INT in getThemeAttrColor() 109 && typedValue.type <= TypedValue.TYPE_LAST_INT) { in getThemeAttrColor() 110 return typedValue.data; in getThemeAttrColor() 111 } else if (typedValue.type == TypedValue.TYPE_STRING) { in getThemeAttrColor() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeToolTipView.java | 67 TypedValue typedValue = new TypedValue(); in drawArrow() local 68 getContext().getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); in drawArrow() 69 arrowPaint.setColor(ContextCompat.getColor(getContext(), typedValue.resourceId)); in drawArrow()
|
/aosp12/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
H A D | CustomScrollView.java | 75 final TypedValue typedValue = new TypedValue(); in calculateDimensions() 80 typedValue, true); in calculateDimensions() 83 final int maxHeight = (int) typedValue.getFraction(point.y, point.y); in calculateDimensions()
|
H A D | FillUi.java | 564 final TypedValue typedValue = sTempTypedValue; in resolveMaxWindowSize() local 566 typedValue, true); in resolveMaxWindowSize() 567 outPoint.x = (int) typedValue.getFraction(outPoint.x, outPoint.x); in resolveMaxWindowSize() 569 typedValue, true); in resolveMaxWindowSize() 570 outPoint.y = (int) typedValue.getFraction(outPoint.y, outPoint.y); in resolveMaxWindowSize()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | FrameworkActionBar.java | 231 TypedValue typedValue = ResourceHelper.getValue(null, value, false /*requireUnit*/); in getPixelValue() local 232 return (int) typedValue.getDimension(metrics); in getPixelValue() 247 TypedValue typedValue = ResourceHelper.getValue("actionBarSize", value.getValue(), in getActionBarHeight() local 249 if (typedValue != null) { in getActionBarHeight() 251 return (int) typedValue.getDimension(metrics); in getActionBarHeight()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ |
H A D | TooltipManager.kt | 81 val typedValue = TypedValue() regex 82 context.theme.resolveAttribute(android.R.attr.colorAccent, typedValue, true) 83 val toastColor = context.resources.getColor(typedValue.resourceId, context.theme)
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubbleOverflow.kt | 85 val typedValue = TypedValue() regex 87 typedValue, true) 88 val colorAccent = res.getColor(typedValue.resourceId, null)
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | PhotoEditorView.java | 80 final TypedValue typedValue = new TypedValue(); in getTypedFloat() local 81 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true); in getTypedFloat() 82 return typedValue.getFloat(); in getTypedFloat()
|
/aosp12/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener.cpp | 277 CHECK(xml_attr->compiled_value->Flatten(&flat_attr->typedValue)); in WriteAttributes() 289 flat_attr->typedValue.dataType = android::Res_value::TYPE_STRING; in WriteAttributes() 291 reinterpret_cast<ResStringPool_ref*>(&flat_attr->typedValue.data)); in WriteAttributes() 301 flat_attr->typedValue.size = util::HostToDevice16(sizeof(flat_attr->typedValue)); in WriteAttributes()
|
/aosp12/frameworks/av/media/codec2/vndk/include/util/ |
H A D | C2InterfaceHelper.h | 516 const T *typedValue = T::From(value); 517 if (typedValue == nullptr) { 520 if (*typedValue != *default_) { 549 const T *typedValue = T::From(value); 550 if (typedValue == nullptr) { 590 const T *typedValue = T::From(value); 591 if (typedValue == nullptr) {
|
/aosp12/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaMemoryTracer.cpp | 139 for (const auto& typedValue : namedItem.second) { in logOutput() local 140 TraceValue traceValue = convertUnits(typedValue.second); in logOutput() 142 log.appendFormat(" %s: %.2f %s (%d %s)\n", typedValue.first, traceValue.value, in logOutput()
|
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/bluetooth/ |
H A D | ConnectedDeviceSignalController.java | 113 TypedValue typedValue = new TypedValue(); in ConnectedDeviceSignalController() local 114 context.getResources().getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in ConnectedDeviceSignalController() 115 mIconScaleFactor = typedValue.getFloat(); in ConnectedDeviceSignalController()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/ |
H A D | ReviewPermissionsWearFragment.java | 284 TypedValue typedValue = new TypedValue(); in addTitlePreferenceToScreen() local 285 activity.getTheme().resolveAttribute(android.R.attr.colorAccent, typedValue, true); in addTitlePreferenceToScreen() 286 final int color = activity.getColor(typedValue.resourceId); in addTitlePreferenceToScreen()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/ |
H A D | BatteryMeterView.java | 333 TypedValue typedValue = new TypedValue(); in scaleBatteryMeterViews() local 335 res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true); in scaleBatteryMeterViews() 336 float iconScaleFactor = typedValue.getFloat(); in scaleBatteryMeterViews()
|
/aosp12/packages/apps/ThemePicker/src/com/android/customization/picker/theme/ |
H A D | ThemeOptionPreviewer.java | 389 final TypedValue typedValue = new TypedValue(); in getTopToolBarHeight() local 391 android.R.attr.actionBarSize, typedValue, true) in getTopToolBarHeight() 393 typedValue.data, mContext.getResources().getDisplayMetrics()) in getTopToolBarHeight()
|
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
H A D | NavStateController.java | 177 TypedValue typedValue = new TypedValue(); in getAlphaFromResource() local 178 mContext.getResources().getValue(alphaId, typedValue, true); in getAlphaFromResource() 179 return typedValue.getFloat(); in getAlphaFromResource()
|
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
H A D | NavStateController.java | 179 TypedValue typedValue = new TypedValue(); in getAlphaFromResource() local 180 mContext.getResources().getValue(alphaId, typedValue, true); in getAlphaFromResource() 181 return typedValue.getFloat(); in getAlphaFromResource()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | Layout.java | 550 TypedValue typedValue = ResourceHelper.getValue(attrRef.getName(), value.getValue(), in getDimension() local 552 if (typedValue != null) { in getDimension() 553 return (int) typedValue.getDimension(mContext.getMetrics()); in getDimension()
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 1580 attr.typedValue.size = htods(sizeof(attr.typedValue)); in flatten_node() 1583 attr.typedValue.res0 = 0; in flatten_node() 1584 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node() 1585 attr.typedValue.data = htodl(strings.offsetForString(ae.string)); in flatten_node() 1587 attr.typedValue.res0 = 0; in flatten_node() 1588 attr.typedValue.dataType = ae.value.dataType; in flatten_node() 1589 attr.typedValue.data = htodl(ae.value.data); in flatten_node()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 1525 jclass typedValue = FindClassOrDie(env, "android/util/TypedValue"); in register_android_content_AssetManager() local 1526 gTypedValueOffsets.mType = GetFieldIDOrDie(env, typedValue, "type", "I"); in register_android_content_AssetManager() 1527 gTypedValueOffsets.mData = GetFieldIDOrDie(env, typedValue, "data", "I"); in register_android_content_AssetManager() 1529 GetFieldIDOrDie(env, typedValue, "string", "Ljava/lang/CharSequence;"); in register_android_content_AssetManager() 1530 gTypedValueOffsets.mAssetCookie = GetFieldIDOrDie(env, typedValue, "assetCookie", "I"); in register_android_content_AssetManager() 1531 gTypedValueOffsets.mResourceId = GetFieldIDOrDie(env, typedValue, "resourceId", "I"); in register_android_content_AssetManager() 1533 GetFieldIDOrDie(env, typedValue, "changingConfigurations", "I"); in register_android_content_AssetManager() 1534 gTypedValueOffsets.mDensity = GetFieldIDOrDie(env, typedValue, "density", "I"); in register_android_content_AssetManager()
|
/aosp12/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
H A D | CompanionDeviceActivity.java | 319 TypedValue typedValue = new TypedValue(); in getColor() local 320 TypedArray a = obtainStyledAttributes(typedValue.data, new int[] { colorAttr }); in getColor()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | StatusBarIconView.java | 444 TypedValue typedValue = new TypedValue(); in getIcon() local 446 typedValue, true); in getIcon() 447 float scaleFactor = typedValue.getFloat(); in getIcon()
|
/aosp12/packages/apps/Settings/src/com/android/settings/password/ |
H A D | ChooseLockPattern.java | 751 TypedValue typedValue = new TypedValue(); in updateStage() local 753 theme.resolveAttribute(R.attr.colorError, typedValue, true); in updateStage() 754 mHeaderText.setTextColor(typedValue.data); in updateStage()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
H A D | Utils.java | 748 TypedValue typedValue = new TypedValue(); in applyTint() local 749 theme.resolveAttribute(attr, typedValue, true); in applyTint() 751 icon.setTint(context.getColor(typedValue.resourceId)); in applyTint()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactListItemView.java | 1346 final TypedValue typedValue = new TypedValue(); in getDeleteImageButton() local 1348 android.R.attr.selectableItemBackgroundBorderless, typedValue, true); in getDeleteImageButton() 1349 mDeleteImageButton.setBackgroundResource(typedValue.resourceId); in getDeleteImageButton()
|