Home
last modified time | relevance | path

Searched refs:StateSet (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/util/
DStateSetTest.java36 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches()
39 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches()
42 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches()
45 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches()
48 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches()
60 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp()
63 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp()
67 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp()
70 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp()
80 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetNegativeMatches()
[all …]
/frameworks/native/services/surfaceflinger/
DLayerVector.cpp22 LayerVector::LayerVector(const StateSet stateSet) : mStateSet(stateSet) {} in LayerVector()
24 LayerVector::LayerVector(const LayerVector& rhs, const StateSet stateSet) in LayerVector()
42 (mStateSet == StateSet::Current) ? l->getCurrentState() : l->getDrawingState(); in do_compare()
44 (mStateSet == StateSet::Current) ? r->getCurrentState() : r->getDrawingState(); in do_compare()
62 void LayerVector::traverseInZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInZOrder()
65 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInZOrder()
74 void LayerVector::traverseInReverseZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInReverseZOrder()
77 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInReverseZOrder()
DLayerVector.h35 enum class StateSet { enum
41 explicit LayerVector(const StateSet stateSet);
42 LayerVector(const LayerVector& rhs, const StateSet stateSet);
51 void traverseInReverseZOrder(StateSet stateSet, const Visitor& visitor) const;
52 void traverseInZOrder(StateSet stateSet, const Visitor& visitor) const;
55 const StateSet mStateSet;
DLayer.h453 void writeToProtoCommonState(LayerProto* layerInfo, LayerVector::StateSet stateSet,
666 void traverseInReverseZOrder(LayerVector::StateSet stateSet,
668 void traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor);
674 void traverseChildrenInZOrder(LayerVector::StateSet stateSet,
750 LayerVector makeTraversalList(LayerVector::StateSet stateSet, bool* outSkipRelativeZUsers);
836 bool usingRelativeZ(LayerVector::StateSet stateSet) const;
900 LayerVector mCurrentChildren{LayerVector::StateSet::Current};
902 LayerVector mDrawingChildren{LayerVector::StateSet::Drawing};
923 std::vector<Layer*> getLayersInTree(LayerVector::StateSet stateSet);
929 LayerVector::StateSet stateSet,
[all …]
DLayer.cpp202 auto layersInTree = getLayersInTree(LayerVector::StateSet::Current); in onRemovedFromCurrentState()
978 if (mCurrentState.z == z && !usingRelativeZ(LayerVector::StateSet::Current)) return false; in setLayer()
1026 if (mCurrentState.z == relativeZ && usingRelativeZ(LayerVector::StateSet::Current) && in setRelativeLayer()
1234 if (usingRelativeZ(LayerVector::StateSet::Drawing)) { in isHiddenByPolicy()
1623 bool Layer::usingRelativeZ(LayerVector::StateSet stateSet) const { in usingRelativeZ()
1624 const bool useDrawing = stateSet == LayerVector::StateSet::Drawing; in usingRelativeZ()
1630 LayerVector::StateSet stateSet, bool* outSkipRelativeZUsers) { in makeTraversalList()
1631 LOG_ALWAYS_FATAL_IF(stateSet == LayerVector::StateSet::Invalid, in makeTraversalList()
1633 const bool useDrawing = stateSet == LayerVector::StateSet::Drawing; in makeTraversalList()
1664 void Layer::traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor) { in traverseInZOrder()
[all …]
DSurfaceFlinger.h365 explicit State(LayerVector::StateSet set) : stateSet(set), layersSortedByZ(set) {} in State()
378 const LayerVector::StateSet stateSet = LayerVector::StateSet::Invalid;
940 State mCurrentState{LayerVector::StateSet::Current};
979 State mDrawingState{LayerVector::StateSet::Drawing};
DSurfaceInterceptor.cpp88 l->traverseInZOrder(LayerVector::StateSet::Drawing, [this](Layer* layer) { in saveExistingSurfacesLocked()
DSurfaceFlinger.cpp3135 offscreenLayer->traverseInZOrder(LayerVector::StateSet::Drawing, [](Layer* layer) { in commitOffscreenLayers()
4920 layer->writeToProtoCommonState(layerProto, LayerVector::StateSet::Drawing, traceFlags); in dumpDrawingStateProto()
5900 parent->traverseChildrenInZOrder(LayerVector::StateSet::Drawing, [&](Layer* layer) { in captureLayers()
6164 layer->traverseInZOrder(LayerVector::StateSet::Drawing, [&](Layer* layer) { in traverseLayersInDisplay()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DStateListDrawableTest.java22 import android.util.StateSet;
47 slDrawable.addState(StateSet.WILD_CARD, in broken_testFocusScenarioSetStringWildcardFirst()
61 slDrawable.addState(StateSet.WILD_CARD, in broken_testFocusScenarioStateSetWildcardLast()
/frameworks/base/graphics/java/android/graphics/drawable/
DStateListDrawable.java26 import android.util.StateSet;
111 idx = mStateListState.indexOfStateSet(StateSet.WILD_CARD); in onStateChange()
232 states = StateSet.trimStateSet(states, j); in extractStateSet()
347 if (StateSet.stateSetMatches(stateSets[i], stateSet)) { in indexOfStateSet()
355 return StateSet.containsAttribute(mStateSets, R.attr.state_focused); in hasFocusStateSpecified()
DAnimatedStateListDrawable.java32 import android.util.StateSet;
618 return super.indexOfStateSet(StateSet.WILD_CARD); in indexOfKeyframe()
DDrawable.java53 import android.util.StateSet;
189 private int[] mStateSet = StateSet.WILD_CARD;
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java40 import android.util.StateSet;
323 StateSet.get(StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_ACTIVATED), 0); in setDaySelectorColor()
332 StateSet.get(StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_PRESSED), 0); in setDayHighlightColor()
686 stateMask |= StateSet.VIEW_STATE_ENABLED; in drawDays()
692 stateMask |= StateSet.VIEW_STATE_ACTIVATED; in drawDays()
699 stateMask |= StateSet.VIEW_STATE_PRESSED; in drawDays()
713 final int[] stateSet = StateSet.get(stateMask); in drawDays()
DDatePickerCalendarDelegate.java30 import android.util.StateSet;
202 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
203 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_SELECTED), 0); in applyLegacyColorFixes()
204 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
205 StateSet.VIEW_STATE_ENABLED), 0); in applyLegacyColorFixes()
DRadialTimePickerView.java38 import android.util.StateSet;
425 final int[] stateSetEnabledActivated = StateSet.get( in applyAttributes()
426 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_ACTIVATED); in applyAttributes()
435 final int[] stateSetActivated = StateSet.get( in applyAttributes()
436 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_ACTIVATED); in applyAttributes()
911 final int stateMask = StateSet.VIEW_STATE_ENABLED in drawTextElements()
912 | (showActivated && activated ? StateSet.VIEW_STATE_ACTIVATED : 0); in drawTextElements()
913 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
DTimePickerClockDelegate.java34 import android.util.StateSet;
366 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
367 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_SELECTED), 0); in applyLegacyColorFixes()
368 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
369 StateSet.VIEW_STATE_ENABLED), 0); in applyLegacyColorFixes()
DAbsListView.java49 import android.util.StateSet;
2653 selector.setState(StateSet.NOTHING); in positionSelector()
2930 selector.setState(StateSet.NOTHING); in updateSelectorState()
/frameworks/base/core/java/android/view/
DView.java102 import android.util.StateSet;
2173 EMPTY_STATE_SET = StateSet.get(0);
2175 WINDOW_FOCUSED_STATE_SET = StateSet.get(StateSet.VIEW_STATE_WINDOW_FOCUSED);
2177 SELECTED_STATE_SET = StateSet.get(StateSet.VIEW_STATE_SELECTED);
2178 SELECTED_WINDOW_FOCUSED_STATE_SET = StateSet.get(
2179 StateSet.VIEW_STATE_WINDOW_FOCUSED | StateSet.VIEW_STATE_SELECTED);
2181 FOCUSED_STATE_SET = StateSet.get(StateSet.VIEW_STATE_FOCUSED);
2182 FOCUSED_WINDOW_FOCUSED_STATE_SET = StateSet.get(
2183 StateSet.VIEW_STATE_WINDOW_FOCUSED | StateSet.VIEW_STATE_FOCUSED);
2184 FOCUSED_SELECTED_STATE_SET = StateSet.get(
[all …]
/frameworks/base/core/tests/coretests/src/android/animation/
DStateListAnimatorTest.java24 import android.util.StateSet;
106 StateSet.stateSetMatches(tuple2.getSpecs(), in testStateListLoading()
/frameworks/base/core/java/android/util/
DStateSet.java38 public class StateSet { class
120 public StateSet() {} in StateSet() method in StateSet
/frameworks/base/core/java/android/content/res/
DColorStateList.java32 import android.util.StateSet;
355 stateSpec = StateSet.trimStateSet(stateSpec, j); in inflate()
536 return StateSet.containsAttribute(mStateSpecs, R.attr.state_focused); in hasFocusStateSpecified()
565 if (StateSet.stateSetMatches(stateSpec, stateSet)) { in getColorForState()
/frameworks/base/core/java/android/animation/
DStateListAnimator.java21 import android.util.StateSet;
168 if (StateSet.stateSetMatches(tuple.mSpecs, state)) { in setState()
DAnimatorInflater.java34 import android.util.StateSet;
246 .addState(StateSet.trimStateSet(states, stateIndex), animator); in createStateListAnimatorFromXml()
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java23 import android.util.StateSet;
62 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java55 import android.util.StateSet;
993 StateSet.get(StateSet.VIEW_STATE_PRESSED), in testColorStateList()
997 StateSet.get(StateSet.VIEW_STATE_FOCUSED), in testColorStateList()
1015 StateSet.get(StateSet.VIEW_STATE_PRESSED), in testColorStateList()
1019 StateSet.get(StateSet.VIEW_STATE_FOCUSED), in testColorStateList()

12