Lines Matching defs:on
10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
79 * may show depending on whether the keyguard is showing, and whether the device
230 void onToggle(boolean on) {
240 changeAirplaneModeSystemSetting(on);
751 // note: the scheme below made more sense when we were planning on having
866 * A toggle action knows whether it is on or off, and displays an icon
898 * @param enabledIconResId The icon for when this action is on.
901 * @param enabledStatusMessageResId The on status message, e.g 'sound disabled'
946 boolean on = ((mState == State.On) || (mState == State.TurningOn));
949 (on ? mEnabledIconResId : mDisabledIconResid)));
954 statusView.setText(on ? mEnabledStatusMessageResId : mDisabledStatusMessageResId);
979 * Implementations may override this if their state can be in on of the intermediate
982 * @param buttonOn Whether the button was turned on or off
988 abstract void onToggle(boolean on);
1004 void onToggle(boolean on) {
1005 if (on) {
1180 private void changeAirplaneModeSystemSetting(boolean on) {
1184 on ? 1 : 0);
1187 intent.putExtra("state", on);
1190 mAirplaneState = on ? ToggleAction.State.On : ToggleAction.State.Off;