/frameworks/base/core/tests/coretests/src/android/util/ |
D | StateSetTest.java | 45 int[] stateSet = new int[3]; in testStateSetPositiveMatches() local 48 stateSet[0] = 1; in testStateSetPositiveMatches() 49 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 51 stateSet[0] = 2; in testStateSetPositiveMatches() 52 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 55 assertFalse(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 57 stateSet[1] = 1; in testStateSetPositiveMatches() 58 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() 60 stateSet[2] = 12345; in testStateSetPositiveMatches() 61 assertTrue(StateSet.stateSetMatches(stateSpec, stateSet)); in testStateSetPositiveMatches() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | LayerVector.cpp | 26 LayerVector::LayerVector(const StateSet stateSet) : mStateSet(stateSet) {} in LayerVector() argument 28 LayerVector::LayerVector(const LayerVector& rhs, const StateSet stateSet) in LayerVector() argument 29 : SortedVector<sp<Layer>>(rhs), mStateSet(stateSet) {} in LayerVector() 64 void LayerVector::traverseInZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInZOrder() argument 71 layer->traverseInZOrder(stateSet, visitor); in traverseInZOrder() 75 void LayerVector::traverseInReverseZOrder(StateSet stateSet, const Visitor& visitor) const { in traverseInReverseZOrder() argument 82 layer->traverseInReverseZOrder(stateSet, visitor); in traverseInReverseZOrder()
|
D | LayerVector.h | 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;
|
D | Layer.cpp | 1837 bool Layer::usingRelativeZ(LayerVector::StateSet stateSet) const { in usingRelativeZ() 1838 const bool useDrawing = stateSet == LayerVector::StateSet::Drawing; in usingRelativeZ() 1844 LayerVector::StateSet stateSet, bool* outSkipRelativeZUsers) { in makeTraversalList() argument 1845 LOG_ALWAYS_FATAL_IF(stateSet == LayerVector::StateSet::Invalid, in makeTraversalList() 1847 const bool useDrawing = stateSet == LayerVector::StateSet::Drawing; in makeTraversalList() 1856 LayerVector traverse(stateSet); in makeTraversalList() 1865 if (child->usingRelativeZ(stateSet)) { in makeTraversalList() 1877 void Layer::traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor) { in traverseInZOrder() argument 1885 const LayerVector list = makeTraversalList(stateSet, &skipRelativeZUsers); in traverseInZOrder() 1890 if (skipRelativeZUsers && relative->usingRelativeZ(stateSet)) { in traverseInZOrder() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | StateListDrawable.java | 85 public void addState(int[] stateSet, Drawable drawable) { in addState() argument 87 mStateListState.addStateSet(stateSet, drawable); in addState() 104 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument 105 final boolean changed = super.onStateChange(stateSet); in onStateChange() 107 int idx = mStateListState.indexOfStateSet(stateSet); in onStateChange() 109 + Arrays.toString(stateSet) + " found " + idx); in onStateChange() 283 public int findStateDrawableIndex(@NonNull int[] stateSet) { in findStateDrawableIndex() argument 284 return mStateListState.indexOfStateSet(stateSet); in findStateDrawableIndex() 337 int addStateSet(int[] stateSet, Drawable drawable) { in addStateSet() argument 339 mStateSets[pos] = stateSet; in addStateSet() [all …]
|
D | AnimatedStateListDrawable.java | 112 public void addState(@NonNull int[] stateSet, @NonNull Drawable drawable, int id) { in addState() argument 117 mState.addStateSet(stateSet, drawable, id); in addState() 144 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument 147 final int targetIndex = mState.indexOfKeyframe(stateSet); in onStateChange() 156 changed |= current.setState(stateSet); in onStateChange() 606 int addStateSet(@NonNull int[] stateSet, @NonNull Drawable drawable, int id) { in addStateSet() argument 607 final int index = super.addStateSet(stateSet, drawable); in addStateSet() 612 int indexOfKeyframe(@NonNull int[] stateSet) { in indexOfKeyframe() argument 613 final int index = super.indexOfStateSet(stateSet); in indexOfKeyframe()
|
D | VectorDrawable.java | 516 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument 525 if (state.onStateChange(stateSet)) { in onStateChange() 1136 public boolean onStateChange(int[] stateSet) { in onStateChange() argument 1137 return mRootGroup.onStateChange(stateSet); in onStateChange() 1428 public boolean onStateChange(int[] stateSet) { in onStateChange() argument 1435 changed |= child.onStateChange(stateSet); in onStateChange() 1701 public boolean onStateChange(int[] stateSet) { in onStateChange() argument 1927 public boolean onStateChange(int[] stateSet) { in onStateChange() argument 1933 ((ColorStateList) mStrokeColors).getColorForState(stateSet, oldStrokeColor); in onStateChange() 1942 … final int newFillColor = ((ColorStateList) mFillColors).getColorForState(stateSet, oldFillColor); in onStateChange()
|
D | Drawable.java | 833 public boolean setState(@NonNull final int[] stateSet) { in setState() argument 834 if (!Arrays.equals(mStateSet, stateSet)) { in setState() 835 mStateSet = stateSet; in setState() 836 return onStateChange(stateSet); in setState()
|
D | GradientDrawable.java | 399 final int[] stateSet = getState(); in setStroke() local 400 color = colorStateList.getColorForState(stateSet, 0); in setStroke() 1107 final int[] stateSet = getState(); 1108 final int color = colorStateList.getColorForState(stateSet, 0); 1130 protected boolean onStateChange(int[] stateSet) { 1136 final int newColor = solidColors.getColorForState(stateSet, 0); 1148 final int newColor = strokeColors.getColorForState(stateSet, 0);
|
D | ColorDrawable.java | 227 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument
|
D | RippleDrawable.java | 318 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument 319 final boolean changed = super.onStateChange(stateSet); in onStateChange() 327 for (int state : stateSet) { in onStateChange()
|
D | ShapeDrawable.java | 354 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument
|
D | NinePatchDrawable.java | 568 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument
|
D | BitmapDrawable.java | 755 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument
|
/frameworks/base/core/java/android/util/ |
D | StateSet.java | 147 public static boolean stateSetMatches(int[] stateSpec, int[] stateSet) { in stateSetMatches() argument 148 if (stateSet == null) { in stateSetMatches() 152 int stateSetSize = stateSet.length; in stateSetMatches() 169 final int state = stateSet[j]; in stateSetMatches()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/ |
D | UserIconDrawableTest.java | 60 int[][] stateSet = new int[][] { {} }; in setTintList_shouldBeApplied() local 62 drawable.setTintList(new ColorStateList(stateSet, colors)); in setTintList_shouldBeApplied()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/drawable/ |
D | LightSourceDrawable.kt | 273 override fun onStateChange(stateSet: IntArray): Boolean { in onStateChange() 274 val changed = super.onStateChange(stateSet) in onStateChange() 282 for (state in stateSet) { in onStateChange()
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/ |
D | NavigationBarButton.java | 155 public boolean setState(@NonNull int[] stateSet) { in setState() argument 156 boolean needsInvalidate = super.setState(stateSet); in setState()
|
/frameworks/base/core/java/com/android/internal/graphics/drawable/ |
D | AnimationScaleListDrawable.java | 69 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument 70 final boolean changed = super.onStateChange(stateSet); in onStateChange()
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 610 public int getColorForState(@Nullable int[] stateSet, int defaultColor) { in getColorForState() argument 614 if (StateSet.stateSetMatches(stateSpec, stateSet)) { in getColorForState()
|
/frameworks/base/core/java/android/widget/ |
D | DatePickerCalendarDelegate.java | 221 final int[][] stateSet = new int[][] {{ R.attr.state_activated }, {}}; in applyLegacyColorFixes() local 223 return new ColorStateList(stateSet, colors); in applyLegacyColorFixes()
|
D | ExpandableListView.java | 510 final int stateSet[] = pos.position.flatListPos == pos.groupMetadata.lastChildFlPos in getIndicator() local 513 indicator.setState(stateSet); in getIndicator()
|
D | SearchView.java | 986 final int[] stateSet = focused ? FOCUSED_STATE_SET : EMPTY_STATE_SET; in updateFocusedState() local 989 searchPlateBg.setState(stateSet); in updateFocusedState() 993 submitAreaBg.setState(stateSet); in updateFocusedState()
|
D | TimePickerClockDelegate.java | 385 final int[][] stateSet = new int[][] {{ R.attr.state_activated }, {}}; in applyLegacyColorFixes() local 387 return new ColorStateList(stateSet, colors); in applyLegacyColorFixes()
|
D | SimpleMonthView.java | 724 final int[] stateSet = StateSet.get(stateMask); in drawDays() local 725 dayTextColor = mDayTextColor.getColorForState(stateSet, 0); in drawDays()
|