/frameworks/base/core/tests/coretests/src/android/util/ |
D | StateSetTest.java | 35 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 38 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 41 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 44 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 47 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 59 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp() 62 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp() 66 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp() 69 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStatesSetMatchMixEmUp() 79 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetNegativeMatches() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | LayerVector.cpp | 48 void LayerVector::traverseInZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInZOrder() 51 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInZOrder() 60 void LayerVector::traverseInReverseZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInReverseZOrder() 63 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInReverseZOrder()
|
D | LayerVector.h | 39 enum class StateSet { enum 49 void traverseInReverseZOrder(StateSet stateSet, const Visitor& visitor) const; 50 void traverseInZOrder(StateSet stateSet, const Visitor& visitor) const;
|
D | SurfaceFlinger.h | 241 explicit State(LayerVector::StateSet set) : stateSet(set) {} in State() 250 const LayerVector::StateSet stateSet = LayerVector::StateSet::Invalid; 591 State mCurrentState{LayerVector::StateSet::Current}; 631 State mDrawingState{LayerVector::StateSet::Drawing};
|
D | Layer.h | 518 void traverseInReverseZOrder(LayerVector::StateSet stateSet, 520 void traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor); 601 LayerVector makeTraversalList(LayerVector::StateSet stateSet);
|
D | Layer.cpp | 2571 traverseInZOrder(LayerVector::StateSet::Drawing, [this](Layer* child) { 2605 LayerVector Layer::makeTraversalList(LayerVector::StateSet stateSet) { 2606 LOG_ALWAYS_FATAL_IF(stateSet == LayerVector::StateSet::Invalid, 2608 const bool useDrawing = stateSet == LayerVector::StateSet::Drawing; 2634 void Layer::traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor) { 2655 void Layer::traverseInReverseZOrder(LayerVector::StateSet stateSet,
|
/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 | 33 import android.util.StateSet; 107 idx = mStateListState.indexOfStateSet(StateSet.WILD_CARD); in onStateChange() 226 states = StateSet.trimStateSet(states, j); in extractStateSet() 344 if (StateSet.stateSetMatches(stateSets[i], stateSet)) { in indexOfStateSet() 352 return StateSet.containsAttribute(mStateSets, R.attr.state_focused); in hasFocusStateSpecified()
|
D | AnimatedStateListDrawable.java | 30 import android.util.StateSet; 613 return super.indexOfStateSet(StateSet.WILD_CARD); in indexOfKeyframe()
|
D | Drawable.java | 53 import android.util.StateSet; 182 private int[] mStateSet = StateSet.WILD_CARD;
|
/frameworks/support/design/base/android/support/design/widget/ |
D | StateListAnimator.java | 22 import android.util.StateSet; 64 if (StateSet.stateSetMatches(tuple.mSpecs, state)) { in setState()
|
/frameworks/base/core/java/android/view/ |
D | View.java | 85 import android.util.StateSet; 1935 EMPTY_STATE_SET = StateSet.get(0); 1937 WINDOW_FOCUSED_STATE_SET = StateSet.get(StateSet.VIEW_STATE_WINDOW_FOCUSED); 1939 SELECTED_STATE_SET = StateSet.get(StateSet.VIEW_STATE_SELECTED); 1940 SELECTED_WINDOW_FOCUSED_STATE_SET = StateSet.get( 1941 StateSet.VIEW_STATE_WINDOW_FOCUSED | StateSet.VIEW_STATE_SELECTED); 1943 FOCUSED_STATE_SET = StateSet.get(StateSet.VIEW_STATE_FOCUSED); 1944 FOCUSED_WINDOW_FOCUSED_STATE_SET = StateSet.get( 1945 StateSet.VIEW_STATE_WINDOW_FOCUSED | StateSet.VIEW_STATE_FOCUSED); 1946 FOCUSED_SELECTED_STATE_SET = StateSet.get( [all …]
|
/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() 682 stateMask |= StateSet.VIEW_STATE_ENABLED; in drawDays() 688 stateMask |= StateSet.VIEW_STATE_ACTIVATED; in drawDays() 695 stateMask |= StateSet.VIEW_STATE_PRESSED; in drawDays() 709 final int[] stateSet = StateSet.get(stateMask); in drawDays()
|
D | DatePickerCalendarDelegate.java | 31 import android.util.StateSet; 203 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 204 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_SELECTED), 0); in applyLegacyColorFixes() 205 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 206 StateSet.VIEW_STATE_ENABLED), 0); in applyLegacyColorFixes()
|
D | RadialTimePickerView.java | 38 import android.util.StateSet; 423 final int[] stateSetEnabledActivated = StateSet.get( in applyAttributes() 424 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_ACTIVATED); in applyAttributes() 433 final int[] stateSetActivated = StateSet.get( in applyAttributes() 434 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_ACTIVATED); in applyAttributes() 909 final int stateMask = StateSet.VIEW_STATE_ENABLED in drawTextElements() 910 | (showActivated && activated ? StateSet.VIEW_STATE_ACTIVATED : 0); in drawTextElements() 911 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
|
D | TimePickerClockDelegate.java | 33 import android.util.StateSet; 355 activatedColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 356 StateSet.VIEW_STATE_ENABLED | StateSet.VIEW_STATE_SELECTED), 0); in applyLegacyColorFixes() 357 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 358 StateSet.VIEW_STATE_ENABLED), 0); in applyLegacyColorFixes()
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | StateListAnimatorTest.java | 22 import android.util.StateSet; 98 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/content/res/ |
D | ColorStateList.java | 37 import android.util.StateSet; 350 stateSpec = StateSet.trimStateSet(stateSpec, j); in inflate() 529 return StateSet.containsAttribute(mStateSpecs, R.attr.state_focused); in hasFocusStateSpecified() 558 if (StateSet.stateSetMatches(stateSpec, stateSet)) { in getColorForState()
|
/frameworks/base/core/java/android/animation/ |
D | StateListAnimator.java | 21 import android.util.StateSet; 168 if (StateSet.stateSetMatches(tuple.mSpecs, state)) { in setState()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NumericTextView.java | 22 import android.util.StateSet; 60 final int textColorDisabled = getTextColors().getColorForState(StateSet.get(0), 0); in NumericTextView()
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | AppCompatColorStateListInflater.java | 31 import android.util.StateSet; 139 stateSpec = StateSet.trimStateSet(stateSpec, j); in inflate()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | LinearLayoutManagerTest.java | 39 import android.util.StateSet; 80 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in topUnfocusableViewsVisibility() 166 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in bottomUnfocusableViewsVisibility() 251 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in leftUnfocusableViewsVisibility() 337 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in rightUnfocusableViewsVisibility() 428 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in unfocusableScrollingWhenFocusCleared()
|
D | StaggeredGridLayoutManagerTest.java | 44 import android.util.StateSet; 282 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in focusSearchFailureFromSubChild() 333 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in focusSearchFailure() 426 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in topUnfocusableViewsVisibility() 540 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in bottomUnfocusableViewsVisibility() 655 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in leftUnfocusableViewsVisibility() 763 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in rightUnfocusableViewsVisibility()
|
D | GridLayoutManagerTest.java | 41 import android.util.StateSet; 136 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in focusSearchFailure() 195 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in topUnfocusableViewsVisibility() 285 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in bottomUnfocusableViewsVisibility() 375 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in leftUnfocusableViewsVisibility() 465 stl.addState(StateSet.WILD_CARD, new ColorDrawable(Color.BLUE)); in rightUnfocusableViewsVisibility()
|