/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | NightDisplayTile.java | 56 final boolean activated = !mState.value; 57 mController.setActivated(activated); 115 public void onActivated(boolean activated) { argument
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | NightDisplayController.java | 54 * Auto mode value to prevent Night display from being automatically activated. It can still 55 * be activated manually via {@link #setActivated(boolean)}. 104 * Returns {@code true} when Night display is activated (the display is tinted red). 112 * Sets whether Night display should be activated. This also sets the last activated time. 114 * @param activated {@code true} if Night display should be activated 115 * @return {@code true} if the activated value was set successfully 117 public boolean setActivated(boolean activated) { argument 118 if (isActivated() != activated) { 486 onActivated(boolean activated) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | NightDisplayService.java | 253 // Force the initialization current activated state. 284 public void onActivated(boolean activated) { argument 285 if (mIsActivated == null || mIsActivated != activated) { 286 Slog.i(TAG, activated ? "Turning on night display" : "Turning off night display"); 288 mIsActivated = activated; 291 mAutoMode.onActivated(activated); 475 // Maintain the existing activated state if within the current period. 489 private void updateNextAlarm(@Nullable Boolean activated, @NonNull Calendar now) { argument 490 if (activated != null) { 491 final Calendar next = activated 521 onActivated(boolean activated) argument 595 onActivated(boolean activated) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NightDisplayServiceTest.java | 107 setActivated(false /* activated */, -30 /* lastActivatedTimeOffset */); 110 assertActivated(false /* activated */); 116 setActivated(false /* activated */, -180 /* lastActivatedTimeOffset */); 119 assertActivated(false /* activated */); 125 setActivated(false /* activated */, -90 /* lastActivatedTimeOffset */); 128 assertActivated(false /* activated */); 134 setActivated(false /* activated */, 30 /* lastActivatedTimeOffset */); 137 assertActivated(false /* activated */); 143 setActivated(true /* activated */, -30 /* lastActivatedTimeOffset */); 146 assertActivated(true /* activated */); 927 setActivated(boolean activated, int lastActivatedTimeOffset) argument 957 assertActivated(boolean activated) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseCardView.java | 47 * display based on the activated or selected state of the View. The card states 103 * Indicates that a card region is visible when the card is activated. 339 * @param activated True if the card is ACTIVE, or false if INACTIVE. 343 public void setActivated(boolean activated) { argument 344 if (activated != isActivated()) { 345 super.setActivated(activated);
|
H A D | RowPresenter.java | 42 * animation is started. Selected status may control activated status of the row (see 50 * Row title is shown when row is expanded. Expanded status may control activated status 57 * The activated status of a row is applied to the row view and its children via 59 * The activated status is typically used to control {@link BaseCardView} info region visibility. 60 * The row's activated status can be controlled by selected status and/or expanded status. 68 * or expanded status, application can control activated status by its own. 70 * activated status of row view. 100 * Don't synchronize row view activated status with selected status or expanded status, 106 * Synchronizes row view's activated status to expand status of the row view holder. 111 * Synchronizes row view's activated statu 226 setActivated(boolean activated) argument [all...] |
H A D | GuidedActionsStylist.java | 356 void setActivated(boolean activated) { argument 357 mActivatorView.setActivated(activated); 359 ((GuidedActionItemContainer) itemView).setFocusOutAllowed(!activated);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/ |
H A D | Picker.java | 49 * three items only on currently activated column. If the Picker has focus, it will intercept DPAD 50 * directions and select activated column. 201 // activated. Rebinding is necessary to update the alphas when the columns are expanded 202 // as a result of the picker getting activated, otherwise the cached views with the 495 final boolean activated = isActivated(); 500 view.setFocusable(activated); 505 * Returns number of visible items showing in a column when it's activated. The default value 507 * @return Number of visible items showing in a column when it's activated. 514 * Changes number of visible items showing in a column when it's activated. The default value 516 * @param visiblePickerItems Number of visible items showing in a column when it's activated 557 setActivated(boolean activated) argument [all...] |
/frameworks/support/compat/java/android/support/v4/view/ |
H A D | ViewCompat.java | 2913 * Changes the activated state of this view. A view can be activated or not. 2919 * @param activated true if the view must be activated, false otherwise 2924 public static void setActivated(View view, boolean activated) { argument 2925 view.setActivated(activated);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 4312 public void dispatchSetActivated(boolean activated) { argument 4316 children[i].setActivated(activated);
|
H A D | View.java | 21159 * Changes the activated state of this view. A view can be activated or not. 21165 * set are activated. (Um, yeah, we are deeply sorry about the terminology 21166 * here.) The activated state is propagated down to children of the view it 21169 * @param activated true if the view must be activated, false otherwise 21171 public void setActivated(boolean activated) { argument 21173 if (((mPrivateFlags & PFLAG_ACTIVATED) != 0) != activated) { 21174 mPrivateFlags = (mPrivateFlags & ~PFLAG_ACTIVATED) | (activated ? PFLAG_ACTIVATED : 0); 21177 dispatchSetActivated(activated); 21188 dispatchSetActivated(boolean activated) argument [all...] |