Lines Matching defs:on
11 * distributed under the License is distributed on an "AS IS" BASIS,
81 * may show depending on whether the keyguard is showing, and whether the device
231 void onToggle(boolean on) {
241 changeAirplaneModeSystemSetting(on);
754 // note: the scheme below made more sense when we were planning on having
869 * A toggle action knows whether it is on or off, and displays an icon
901 * @param enabledIconResId The icon for when this action is on.
904 * @param enabledStatusMessageResId The on status message, e.g 'sound disabled'
949 boolean on = ((mState == State.On) || (mState == State.TurningOn));
952 (on ? mEnabledIconResId : mDisabledIconResid)));
957 statusView.setText(on ? mEnabledStatusMessageResId : mDisabledStatusMessageResId);
982 * Implementations may override this if their state can be in on of the intermediate
985 * @param buttonOn Whether the button was turned on or off
991 abstract void onToggle(boolean on);
1007 void onToggle(boolean on) {
1008 if (on) {
1183 private void changeAirplaneModeSystemSetting(boolean on) {
1187 on ? 1 : 0);
1190 intent.putExtra("state", on);
1193 mAirplaneState = on ? ToggleAction.State.On : ToggleAction.State.Off;