Home
last modified time | relevance | path

Searched refs:enabled (Results 1 – 25 of 662) sorted by relevance

12345678910>>...27

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DWifiTile.java101 MetricsLogger.action(mContext, getMetricsCategory(), !mState.enabled); in handleClick()
102 mController.setWifiEnabled(!mState.enabled); in handleClick()
111 if (!mState.enabled) { in handleSecondaryClick()
113 mState.enabled = true; in handleSecondaryClick()
127 boolean wifiConnected = cb.enabled && (cb.wifiSignalIconId > 0) && (cb.enabledDesc != null); in handleUpdateState()
129 boolean enabledChanging = state.enabled != cb.enabled; in handleUpdateState()
131 mDetailAdapter.setItemsVisible(cb.enabled); in handleUpdateState()
132 fireToggleStateChanged(cb.enabled); in handleUpdateState()
134 state.enabled = cb.enabled; in handleUpdateState()
136 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState()
[all …]
DCellularTile.java102 : !cb.enabled || cb.airplaneModeEnabled ? R.drawable.ic_qs_signal_disabled in handleUpdateState()
108 state.overlayIconId = cb.enabled && (cb.dataTypeIconId > 0) ? cb.dataTypeIconId : 0; in handleUpdateState()
110 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState()
111 state.activityOut = cb.enabled && cb.activityOut; in handleUpdateState()
113 state.label = cb.enabled in handleUpdateState()
117 final String signalContentDesc = cb.enabled && (cb.mobileSignalIconId > 0) in handleUpdateState()
120 final String dataContentDesc = cb.enabled && (cb.dataTypeIconId > 0) && !cb.wifiEnabled in handleUpdateState()
145 boolean enabled; field in CellularTile.CallbackInfo
162 public void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon, in setWifiIndicators() argument
164 mInfo.wifiEnabled = enabled; in setWifiIndicators()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DFlashlightController.java76 public void setFlashlight(boolean enabled) { in setFlashlight() argument
79 if (mFlashlightEnabled != enabled) { in setFlashlight()
80 mFlashlightEnabled = enabled; in setFlashlight()
82 mCameraManager.setTorchMode(mCameraId, enabled); in setFlashlight()
139 private void dispatchModeChanged(boolean enabled) { in dispatchModeChanged() argument
140 dispatchListeners(DISPATCH_CHANGED, enabled); in dispatchModeChanged()
195 public void onTorchModeChanged(String cameraId, boolean enabled) {
198 setTorchMode(enabled);
214 private void setTorchMode(boolean enabled) {
217 changed = mFlashlightEnabled != enabled;
[all …]
DSignalController.java125 } else if (mCurrentState.enabled) { in getQsCurrentIconId()
138 } else if (mCurrentState.enabled) { in getCurrentIconId()
252 boolean enabled; field in SignalController.State
265 enabled = state.enabled; in copyFrom()
288 .append("enabled=").append(enabled).append(',') in toString()
305 && other.enabled == enabled in equals()
DAccessibilityController.java75 public void onAccessibilityStateChanged(boolean enabled) { in onAccessibilityStateChanged() argument
76 mAccessibilityEnabled = enabled; in onAccessibilityStateChanged()
81 public void onTouchExplorationStateChanged(boolean enabled) { in onTouchExplorationStateChanged() argument
82 mTouchExplorationEnabled = enabled; in onTouchExplorationStateChanged()
DNetworkController.java32 void setWifiEnabled(boolean enabled); in setWifiEnabled() argument
38 void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon, in setWifiIndicators() argument
51 void setMobileDataEnabled(boolean enabled); in setMobileDataEnabled() argument
95 void setMobileDataEnabled(boolean enabled); in setMobileDataEnabled() argument
/frameworks/support/v4/java/android/support/v4/view/
DScaleGestureDetectorCompat.java28 public void setQuickScaleEnabled(Object o, boolean enabled); in setQuickScaleEnabled() argument
35 public void setQuickScaleEnabled(Object o, boolean enabled) { in setQuickScaleEnabled() argument
47 public void setQuickScaleEnabled(Object o, boolean enabled) { in setQuickScaleEnabled() argument
48 ScaleGestureDetectorCompatKitKat.setQuickScaleEnabled(o, enabled); in setQuickScaleEnabled()
74 public static void setQuickScaleEnabled(Object scaleGestureDetector, boolean enabled) { in setQuickScaleEnabled() argument
75 IMPL.setQuickScaleEnabled(scaleGestureDetector, enabled); in setQuickScaleEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DDemoModeFragment.java115 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), in updateDemoModeEnabled()
117 mEnabledSwitch.setChecked(enabled); in updateDemoModeEnabled()
118 mOnSwitch.setEnabled(enabled); in updateDemoModeEnabled()
122 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), in updateDemoModeOn()
124 mOnSwitch.setChecked(enabled); in updateDemoModeOn()
129 boolean enabled = newValue == Boolean.TRUE; in onPreferenceChange()
131 if (!enabled) { in onPreferenceChange()
136 MetricsLogger.action(getContext(), MetricsLogger.TUNER_DEMO_MODE_ENABLED, enabled); in onPreferenceChange() local
137 setGlobal(DemoMode.DEMO_MODE_ALLOWED, enabled ? 1 : 0); in onPreferenceChange()
139 MetricsLogger.action(getContext(), MetricsLogger.TUNER_DEMO_MODE_ON, enabled); in onPreferenceChange() local
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pWfdInfo.java70 public void setWfdEnabled(boolean enabled) { in setWfdEnabled() argument
71 mWfdEnabled = enabled; in setWfdEnabled()
91 public void setCoupledSinkSupportAtSource(boolean enabled) { in setCoupledSinkSupportAtSource() argument
92 if (enabled ) { in setCoupledSinkSupportAtSource()
103 public void setCoupledSinkSupportAtSink(boolean enabled) { in setCoupledSinkSupportAtSink() argument
104 if (enabled ) { in setCoupledSinkSupportAtSink()
115 public void setSessionAvailable(boolean enabled) { in setSessionAvailable() argument
116 if (enabled) { in setSessionAvailable()
/frameworks/base/core/java/android/content/pm/
DComponentInfo.java56 public boolean enabled = true; field in ComponentInfo
74 enabled = orig.enabled; in ComponentInfo()
106 return enabled && applicationInfo.enabled; in isEnabled()
144 pw.println(prefix + "enabled=" + enabled + " exported=" + exported in dumpFront()
166 dest.writeInt(enabled ? 1 : 0); in writeToParcel()
175 enabled = (source.readInt() != 0); in ComponentInfo()
DPackageUserState.java32 public int enabled; field in PackageUserState
46 enabled = COMPONENT_ENABLED_STATE_DEFAULT; in PackageUserState()
55 enabled = o.enabled; in PackageUserState()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java143 assertFalse(info2.activityInfo.enabled); in testResolveDisabledActivity()
156 assertTrue(info.activityInfo.enabled); in testResolveEnabledActivity()
176 assertFalse(info.activityInfo.enabled); in testQueryDisabledActivity()
191 assertTrue(info.activityInfo.enabled); in testQueryEnabledActivity()
211 assertFalse(activityInfo.enabled); in testGetDisabledActivityInfo()
223 assertTrue(activityInfo.enabled); in testGetEnabledActivityInfo()
242 assertFalse(info2.activityInfo.enabled); in testEnableActivity()
270 assertTrue(info3.activityInfo.enabled); in testDisableActivity()
290 assertFalse(info2.serviceInfo.enabled); in testResolveDisabledService()
303 assertTrue(info.serviceInfo.enabled); in testResolveEnabledService()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DSetArcTransmissionStateAction.java45 boolean enabled) { in SetArcTransmissionStateAction() argument
50 mEnabled = enabled; in SetArcTransmissionStateAction()
103 private void setArcStatus(boolean enabled) { in setArcStatus() argument
104 boolean wasEnabled = tv().setArcStatus(enabled); in setArcStatus()
105 Slog.i(TAG, "Change arc status [old:" + wasEnabled + ", new:" + enabled + "]"); in setArcStatus()
109 if (!enabled && wasEnabled) { in setArcStatus()
/frameworks/base/core/java/com/android/internal/os/
DSamplingProfilerIntegration.java47 private static final boolean enabled; field in SamplingProfilerIntegration
71 enabled = true;
76 enabled = true;
81 enabled = false;
93 return enabled; in isEnabled()
100 if (!enabled) { in start()
119 if (!enabled) { in writeSnapshot()
150 if (!enabled) { in writeZygoteSnapshot()
163 if (!enabled) { in writeSnapshotFile()
/frameworks/base/location/java/android/location/
DSettingInjectorService.java154 boolean enabled; in onHandleIntent()
156 enabled = onGetEnabled(); in onHandleIntent()
164 sendStatus(intent, enabled); in onHandleIntent()
171 private void sendStatus(Intent intent, boolean enabled) { in sendStatus() argument
174 bundle.putBoolean(ENABLED_KEY, enabled); in sendStatus()
179 + ", enabled=" + enabled + ", sending message: " + message); in sendStatus()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DEffectDescriptor.cpp107 status_t EffectDescriptorCollection::setEffectEnabled(int id, bool enabled) in setEffectEnabled() argument
115 return setEffectEnabled(valueAt(index), enabled); in setEffectEnabled()
120 bool enabled) in setEffectEnabled() argument
122 if (enabled == effectDesc->mEnabled) { in setEffectEnabled()
124 enabled?"true":"false", enabled?"enabled":"disabled"); in setEffectEnabled()
128 if (enabled) { in setEffectEnabled()
145 effectDesc->mEnabled = enabled; in setEffectEnabled()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataProfile.java53 public final boolean enabled; field in DataProfile
58 int waitTime, boolean enabled) { in DataProfile() argument
70 this.enabled = enabled; in DataProfile()
98 pc.writeInt(dps[i].enabled ? 1 : 0); in toParcel()
107 + "/" + maxConns + "/" + waitTime + "/" + enabled; in toString()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java99 public boolean enabled; field in MediaRouterClientState.RouteInfo
110 enabled = true; in RouteInfo()
123 enabled = other.enabled; in RouteInfo()
138 enabled = in.readInt() != 0; in RouteInfo()
159 dest.writeInt(enabled ? 1 : 0); in writeToParcel()
175 + ", enabled=" + enabled in toString()
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java110 public static void setRotationLock(Context context, final boolean enabled) { in setRotationLock() argument
116 setRotationLock(enabled, rotation); in setRotationLock()
124 public static void setRotationLockForAccessibility(Context context, final boolean enabled) { in setRotationLockForAccessibility() argument
126 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, enabled ? 1 : 0, in setRotationLockForAccessibility()
129 setRotationLock(enabled, NATURAL_ROTATION); in setRotationLockForAccessibility()
136 private static void setRotationLock(final boolean enabled, final int rotation) { in setRotationLock() argument
142 if (enabled) { in setRotationLock()
/frameworks/base/libs/hwui/renderstate/
DScissor.cpp31 bool Scissor::setEnabled(bool enabled) { in setEnabled() argument
32 if (mEnabled != enabled) { in setEnabled()
33 if (enabled) { in setEnabled()
38 mEnabled = enabled; in setEnabled()
/frameworks/wilhelm/tests/examples/
DslesTestBassBoostPath.cpp214 SLboolean enabled; in TestBassBoostPathFromFD() local
215 result = (*bbItf)->IsEnabled(bbItf, &enabled); in TestBassBoostPathFromFD()
217 enabled = alwaysOn || !enabled; in TestBassBoostPathFromFD()
218 if (enabled != previousEnabled) { in TestBassBoostPathFromFD()
219 result = (*bbItf)->SetEnabled(bbItf, enabled); in TestBassBoostPathFromFD()
221 previousEnabled = enabled; in TestBassBoostPathFromFD()
222 if (SL_BOOLEAN_TRUE == enabled) { in TestBassBoostPathFromFD()
DslesTestVirtualizerPath.cpp216 SLboolean enabled; in TestVirtualizerPathFromFD() local
217 result = (*virtItf)->IsEnabled(virtItf, &enabled); in TestVirtualizerPathFromFD()
219 enabled = alwaysOn || !enabled; in TestVirtualizerPathFromFD()
220 if (enabled != previousEnabled) { in TestVirtualizerPathFromFD()
221 result = (*virtItf)->SetEnabled(virtItf, enabled); in TestVirtualizerPathFromFD()
223 previousEnabled = enabled; in TestVirtualizerPathFromFD()
224 if (SL_BOOLEAN_TRUE == enabled) { in TestVirtualizerPathFromFD()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidedAction.java192 public Builder enabled(boolean enabled) { in enabled() argument
193 mEnabled = enabled; in enabled()
285 public void setEnabled(boolean enabled) { in setEnabled() argument
286 mEnabled = enabled; in setEnabled()
/frameworks/native/services/sensorservice/
DSensorFusion.cpp88 status_t SensorFusion::activate(void* ident, bool enabled) { in activate() argument
92 ident, enabled); in activate()
95 if (enabled) { in activate()
105 mSensorDevice.activate(ident, mAcc.getHandle(), enabled); in activate()
106 mSensorDevice.activate(ident, mMag.getHandle(), enabled); in activate()
107 mSensorDevice.activate(ident, mGyro.getHandle(), enabled); in activate()
/frameworks/base/services/core/java/com/android/server/am/
DBaseErrorDialog.java61 private void setEnabled(boolean enabled) { in setEnabled() argument
64 b.setEnabled(enabled); in setEnabled()
68 b.setEnabled(enabled); in setEnabled()
72 b.setEnabled(enabled); in setEnabled()

12345678910>>...27