/frameworks/base/core/tests/coretests/src/android/util/ |
D | StateSetTest.java | 36 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/ |
D | LayerVector.h | 35 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;
|
D | LayerVector.cpp | 22 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()
|
D | Layer.h | 441 void writeToProto(LayerProto* layerInfo, LayerVector::StateSet stateSet, 657 void traverseInReverseZOrder(LayerVector::StateSet stateSet, 659 void traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor); 665 void traverseChildrenInZOrder(LayerVector::StateSet stateSet, 741 LayerVector makeTraversalList(LayerVector::StateSet stateSet, bool* outSkipRelativeZUsers); 827 bool usingRelativeZ(LayerVector::StateSet stateSet) const; 889 LayerVector mCurrentChildren{LayerVector::StateSet::Current}; 891 LayerVector mDrawingChildren{LayerVector::StateSet::Drawing}; 912 std::vector<Layer*> getLayersInTree(LayerVector::StateSet stateSet); 918 LayerVector::StateSet stateSet, [all …]
|
D | Layer.cpp | 203 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 …]
|
D | SurfaceFlinger.h | 352 explicit State(LayerVector::StateSet set) : stateSet(set), layersSortedByZ(set) {} in State() 365 const LayerVector::StateSet stateSet = LayerVector::StateSet::Invalid; 886 LayersProto dumpProtoInfo(LayerVector::StateSet stateSet, 921 State mCurrentState{LayerVector::StateSet::Current}; 960 State mDrawingState{LayerVector::StateSet::Drawing};
|
D | SurfaceTracing.cpp | 165 LayersProto layers(mFlinger.dumpProtoInfo(LayerVector::StateSet::Drawing, mTraceFlags)); in traceLayersLocked()
|
D | SurfaceFlinger.cpp | 3070 offscreenLayer->traverseInZOrder(LayerVector::StateSet::Drawing, [](Layer* layer) { in commitOffscreenLayers() 4564 LayersProto layersProto = dumpProtoInfo(LayerVector::StateSet::Current); in doDump() 4806 LayersProto SurfaceFlinger::dumpProtoInfo(LayerVector::StateSet stateSet, in dumpProtoInfo() 4809 const bool useDrawing = stateSet == LayerVector::StateSet::Drawing; in dumpProtoInfo() 4904 LayersProto layersProto = dumpProtoInfo(LayerVector::StateSet::Current); in dumpAllLocked() 5786 parent->traverseChildrenInZOrder(LayerVector::StateSet::Drawing, [&](Layer* layer) { in captureLayers() 6050 layer->traverseInZOrder(LayerVector::StateSet::Drawing, [&](Layer* layer) { in traverseLayersInDisplay()
|
D | SurfaceInterceptor.cpp | 88 l->traverseInZOrder(LayerVector::StateSet::Drawing, [this](Layer* layer) { in saveExistingSurfacesLocked()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | StateListDrawableTest.java | 22 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/ |
D | StateListDrawable.java | 26 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()
|
D | AnimatedStateListDrawable.java | 32 import android.util.StateSet; 618 return super.indexOfStateSet(StateSet.WILD_CARD); in indexOfKeyframe()
|
D | Drawable.java | 53 import android.util.StateSet; 189 private int[] mStateSet = StateSet.WILD_CARD;
|
/frameworks/base/core/java/android/widget/ |
D | SimpleMonthView.java | 39 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()
|
D | DatePickerCalendarDelegate.java | 30 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()
|
D | RadialTimePickerView.java | 38 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()
|
D | TimePickerClockDelegate.java | 34 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()
|
D | AbsListView.java | 49 import android.util.StateSet; 2653 selector.setState(StateSet.NOTHING); in positionSelector() 2930 selector.setState(StateSet.NOTHING); in updateSelectorState()
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | StateListAnimatorTest.java | 24 import android.util.StateSet; 106 StateSet.stateSetMatches(tuple2.getSpecs(), in testStateListLoading()
|
/frameworks/base/core/java/android/util/ |
D | StateSet.java | 38 public class StateSet { class 120 public StateSet() {} in StateSet() method in StateSet
|
/frameworks/base/core/java/android/animation/ |
D | StateListAnimator.java | 21 import android.util.StateSet; 168 if (StateSet.stateSetMatches(tuple.mSpecs, state)) { in setState()
|
D | AnimatorInflater.java | 34 import android.util.StateSet; 246 .addState(StateSet.trimStateSet(states, stateIndex), animator); in createStateListAnimatorFromXml()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NumericTextView.java | 23 import android.util.StateSet; 62 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 38 import android.util.StateSet; 356 stateSpec = StateSet.trimStateSet(stateSpec, j); in inflate() 537 return StateSet.containsAttribute(mStateSpecs, R.attr.state_focused); in hasFocusStateSpecified() 566 if (StateSet.stateSetMatches(stateSpec, stateSet)) { in getColorForState()
|
/frameworks/base/config/ |
D | preloaded-classes | 3686 android.util.StateSet
|