Home
last modified time | relevance | path

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

12345678910>>...39

/frameworks/base/core/java/android/app/
DAutomaticZenRule.java39 private boolean enabled = false; field in AutomaticZenRule
63 int interruptionFilter, boolean enabled) { in AutomaticZenRule() argument
64 this(name, owner, null, conditionId, null, interruptionFilter, enabled); in AutomaticZenRule()
94 @Nullable ZenPolicy policy, int interruptionFilter, boolean enabled) { in AutomaticZenRule() argument
100 this.enabled = enabled; in AutomaticZenRule()
108 Uri conditionId, ZenPolicy policy, int interruptionFilter, boolean enabled, in AutomaticZenRule() argument
110 this(name, owner, configurationActivity, conditionId, policy, interruptionFilter, enabled); in AutomaticZenRule()
115 enabled = source.readInt() == ENABLED; in AutomaticZenRule()
168 return enabled; in isEnabled()
218 public void setEnabled(boolean enabled) { in setEnabled() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledSettings.java194 public synchronized void setInternalDataEnabled(boolean enabled) { in setInternalDataEnabled() argument
195 localLog("InternalDataEnabled", enabled); in setInternalDataEnabled()
196 if (mInternalDataEnabled != enabled) { in setInternalDataEnabled()
197 mInternalDataEnabled = enabled; in setInternalDataEnabled()
205 public synchronized void setUserDataEnabled(boolean enabled) { in setUserDataEnabled() argument
207 if (isStandAloneOpportunistic(mPhone.getSubId(), mPhone.getContext()) && !enabled) return; in setUserDataEnabled()
209 localLog("UserDataEnabled", enabled); in setUserDataEnabled()
211 Settings.Global.MOBILE_DATA, mPhone.getSubId(), (enabled ? 1 : 0)); in setUserDataEnabled()
213 mPhone.notifyUserMobileDataStateChanged(enabled); in setUserDataEnabled()
216 enabled); in setUserDataEnabled() local
[all …]
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPBase.cpp30 void DPStage::init(bool inUse, bool enabled) { in init() argument
32 mEnabled = enabled; in init()
39 void DPBandStage::init(bool inUse, bool enabled, int bandCount) { in init() argument
40 DPStage::init(inUse, enabled); in init()
50 void DPBandBase::init(bool enabled, float cutoffFrequency){ in init() argument
51 mEnabled = enabled; in init()
62 void DPEqBand::init(bool enabled, float cutoffFrequency, float gain) { in init() argument
63 DPBandBase::init(enabled, cutoffFrequency); in init()
90 void DPMbcBand::init(bool enabled, float cutoffFrequency, float attackTime, float releaseTime, in init() argument
93 DPBandBase::init(enabled, cutoffFrequency); in init()
[all …]
DDPBase.h48 void init(bool inUse, bool enabled);
55 void setEnabled(bool enabled) { in setEnabled() argument
56 mEnabled = enabled; in setEnabled()
67 void init(bool inUse, bool enabled, int bandCount);
82 void init(bool enabled, float cutoffFrequency);
86 void setEnabled(bool enabled) { in setEnabled() argument
87 mEnabled = enabled; in setEnabled()
104 void init(bool enabled, float cutoffFrequency, float gain);
115 void init(bool enabled, float cutoffFrequency, float attackTime, float releaseTime,
188 void init(bool inUse, bool enabled, uint32_t bandCount);
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java67 boolean enabled; in onCommand()
70 enabled = true; in onCommand()
72 enabled = false; in onCommand()
79 mClientModeImpl.setIpReachabilityDisconnectEnabled(enabled); in onCommand()
111 boolean enabled; in onCommand()
114 enabled = true; in onCommand()
116 enabled = false; in onCommand()
123 if (!mWifiLockManager.forceHiPerfMode(enabled)) { in onCommand()
129 boolean enabled; in onCommand()
132 enabled = true; in onCommand()
[all …]
/frameworks/opt/car/setupwizard/library/utils/src/com/android/car/setupwizardlib/
DLockConfig.java47 public boolean enabled; field in LockConfig
63 public LockConfig(boolean enabled, int minLockLength) { in LockConfig() argument
64 this.enabled = enabled; in LockConfig()
75 dest.writeInt(enabled ? 1 : 0); in writeToParcel()
80 enabled = in.readInt() != 0; in readFromParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DFlashlightControllerImpl.java93 public void setFlashlight(boolean enabled) { in setFlashlight() argument
97 if (mFlashlightEnabled != enabled) { in setFlashlight()
98 mFlashlightEnabled = enabled; in setFlashlight()
100 mCameraManager.setTorchMode(mCameraId, enabled); in setFlashlight()
166 private void dispatchModeChanged(boolean enabled) { in dispatchModeChanged() argument
167 dispatchListeners(DISPATCH_CHANGED, enabled); in dispatchModeChanged()
225 public void onTorchModeChanged(String cameraId, boolean enabled) {
228 setTorchMode(enabled);
232 mContext.getContentResolver(), Secure.FLASHLIGHT_ENABLED, enabled ? 1 : 0);
249 private void setTorchMode(boolean enabled) {
[all …]
/frameworks/opt/gamesdk/src/swappy/
DSwappy_c.cpp73 void Swappy_setAutoSwapInterval(bool enabled) { in Swappy_setAutoSwapInterval() argument
74 Swappy::setAutoSwapInterval(enabled); in Swappy_setAutoSwapInterval()
77 void Swappy_setAutoPipelineMode(bool enabled) { in Swappy_setAutoPipelineMode() argument
78 Swappy::setAutoPipelineMode(enabled); in Swappy_setAutoPipelineMode()
81 void Swappy_enableStats(bool enabled) { in Swappy_enableStats() argument
82 Swappy::enableStats(enabled); in Swappy_enableStats()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
DCandidateInfo.java26 public final boolean enabled; field in CandidateInfo
28 public CandidateInfo(boolean enabled) { in CandidateInfo() argument
29 this.enabled = enabled; in CandidateInfo()
/frameworks/base/services/core/java/com/android/server/hdmi/
DSetArcTransmissionStateAction.java46 boolean enabled) { in SetArcTransmissionStateAction() argument
51 mEnabled = enabled; in SetArcTransmissionStateAction()
104 private void setArcStatus(boolean enabled) { in setArcStatus() argument
105 boolean wasEnabled = tv().setArcStatus(enabled); in setArcStatus()
106 Slog.i(TAG, "Change arc status [old:" + wasEnabled + ", new:" + enabled + "]"); in setArcStatus()
110 if (!enabled && wasEnabled) { in setArcStatus()
/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(), MetricsEvent.TUNER_DEMO_MODE_ENABLED, enabled); in onPreferenceChange() local
137 setGlobal(DemoMode.DEMO_MODE_ALLOWED, enabled ? 1 : 0); in onPreferenceChange()
139 MetricsLogger.action(getContext(), MetricsEvent.TUNER_DEMO_MODE_ON, enabled); in onPreferenceChange() local
[all …]
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java115 public static void setRotationLock(Context context, final boolean enabled) { in setRotationLock() argument
117 setRotationLockAtAngle(context, enabled, rotation); in setRotationLock()
123 public static void setRotationLockAtAngle(Context context, final boolean enabled, in setRotationLockAtAngle() argument
129 setRotationLock(enabled, rotation); in setRotationLockAtAngle()
137 public static void setRotationLockForAccessibility(Context context, final boolean enabled) { in setRotationLockForAccessibility() argument
139 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, enabled ? 1 : 0, in setRotationLockForAccessibility()
142 setRotationLock(enabled, NATURAL_ROTATION); in setRotationLockForAccessibility()
149 private static void setRotationLock(final boolean enabled, final int rotation) { in setRotationLock() argument
155 if (enabled) { in setRotationLock()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pWfdInfo.java76 public void setWfdEnabled(boolean enabled) { in setWfdEnabled() argument
77 mWfdEnabled = enabled; in setWfdEnabled()
99 public void setCoupledSinkSupportAtSource(boolean enabled) { in setCoupledSinkSupportAtSource() argument
100 if (enabled ) { in setCoupledSinkSupportAtSource()
111 public void setCoupledSinkSupportAtSink(boolean enabled) { in setCoupledSinkSupportAtSink() argument
112 if (enabled ) { in setCoupledSinkSupportAtSink()
124 public void setSessionAvailable(boolean enabled) { in setSessionAvailable() argument
125 if (enabled) { in setSessionAvailable()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DButtonItem.java40 private boolean enabled = true; field in ButtonItem
54 enabled = a.getBoolean(R.styleable.SuwButtonItem_android_enabled, true); in ButtonItem()
89 public void setEnabled(boolean enabled) { in setEnabled() argument
90 this.enabled = enabled; in setEnabled()
100 return enabled; in isEnabled()
135 button.setEnabled(enabled); in createButton()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java145 assertFalse(info2.activityInfo.enabled); in testResolveDisabledActivity()
158 assertTrue(info.activityInfo.enabled); in testResolveEnabledActivity()
178 assertFalse(info.activityInfo.enabled); in testQueryDisabledActivity()
193 assertTrue(info.activityInfo.enabled); in testQueryEnabledActivity()
213 assertFalse(activityInfo.enabled); in testGetDisabledActivityInfo()
225 assertTrue(activityInfo.enabled); in testGetEnabledActivityInfo()
244 assertFalse(info2.activityInfo.enabled); in testEnableActivity()
272 assertTrue(info3.activityInfo.enabled); in testDisableActivity()
292 assertFalse(info2.serviceInfo.enabled); in testResolveDisabledService()
305 assertTrue(info.serviceInfo.enabled); in testResolveEnabledService()
[all …]
/frameworks/base/location/java/android/location/
DSettingInjectorService.java165 boolean enabled = false; in onHandleIntent()
168 enabled = onGetEnabled(); in onHandleIntent()
173 sendStatus(intent, summary, enabled); in onHandleIntent()
181 private void sendStatus(Intent intent, String summary, boolean enabled) { in sendStatus() argument
191 bundle.putBoolean(ENABLED_KEY, enabled); in sendStatus()
196 + ", enabled=" + enabled + ", sending message: " + message); in sendStatus()
/frameworks/base/core/java/android/content/pm/
DComponentInfo.java65 public boolean enabled = true; field in ComponentInfo
95 enabled = orig.enabled; in ComponentInfo()
129 return enabled && applicationInfo.enabled; in isEnabled()
179 pw.println(prefix + "enabled=" + enabled + " exported=" + exported in dumpFront()
213 dest.writeInt(enabled ? 1 : 0); in writeToParcel()
227 enabled = (source.readInt() != 0); in ComponentInfo()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java512 public static void setEnhanced4gLteModeSetting(Context context, boolean enabled) { in setEnhanced4gLteModeSetting() argument
516 mgr.setEnhanced4gLteModeSetting(enabled); in setEnhanced4gLteModeSetting()
528 public void setEnhanced4gLteModeSetting(boolean enabled) { in setEnhanced4gLteModeSetting() argument
529 if (enabled && !isVolteProvisionedOnDevice()) { in setEnhanced4gLteModeSetting()
537 enabled = getBooleanCarrierConfig( in setEnhanced4gLteModeSetting()
545 if (prevSetting != (enabled ? in setEnhanced4gLteModeSetting()
551 booleanToPropertyString(enabled)); in setEnhanced4gLteModeSetting()
558 setAdvanced4GMode(enabled); in setEnhanced4gLteModeSetting()
811 public static void setVtSetting(Context context, boolean enabled) { in setVtSetting() argument
815 mgr.setVtSetting(enabled); in setVtSetting()
[all …]
/frameworks/av/media/codec2/core/include/
DC2Enum.h101 #define _DEFINE_C2_ENUM_VALUE_AUTO_HELPER(enabled, name, type, prefix, ...) \ argument
102 __DEFINE_C2_ENUM_VALUE_AUTO_HELPER(enabled, name, type, prefix, ##__VA_ARGS__)
103 #define __DEFINE_C2_ENUM_VALUE_AUTO_HELPER(enabled, name, type, prefix, ...) \ argument
104 ___DEFINE_C2_ENUM_VALUE_AUTO_HELPER##enabled(name, type, prefix, ##__VA_ARGS__)
117 #define _DEFINE_C2_ENUM_VALUE_CUSTOM_HELPER(enabled, name, names) \ argument
118 __DEFINE_C2_ENUM_VALUE_CUSTOM_HELPER(enabled, name, names)
119 #define __DEFINE_C2_ENUM_VALUE_CUSTOM_HELPER(enabled, name, names) \ argument
120 ___DEFINE_C2_ENUM_VALUE_CUSTOM_HELPER##enabled(name, names)
/frameworks/base/services/net/java/android/net/ip/
DInterfaceController.java85 private boolean setEnableIPv6(boolean enabled) { in setEnableIPv6() argument
87 mNetd.interfaceSetEnableIPv6(mIfName, enabled); in setEnableIPv6()
89 logError("%s IPv6 failed: %s", (enabled ? "enabling" : "disabling"), e); in setEnableIPv6()
113 public boolean setIPv6PrivacyExtensions(boolean enabled) { in setIPv6PrivacyExtensions() argument
115 mNetd.interfaceSetIPv6PrivacyExtensions(mIfName, enabled); in setIPv6PrivacyExtensions()
118 (enabled ? "enabling" : "disabling"), e); in setIPv6PrivacyExtensions()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java130 private static native void setVrModeNative(boolean enabled); in setVrModeNative() argument
367 final boolean enabled; field in VrManagerService.VrState
376 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument
378 this.enabled = enabled; in VrState()
388 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument
390 this.enabled = enabled; in VrState()
408 sb.append((enabled) ? "ENABLED" : "DISABLED"); in toLogString()
410 if (enabled) { in toLogString()
594 public void setPersistentVrModeEnabled(boolean enabled) {
596 VrManagerService.this.setPersistentVrModeEnabled(enabled);
[all …]
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java89 public boolean enabled; field in MediaRouterClientState.RouteInfo
101 enabled = true; in RouteInfo()
115 enabled = other.enabled; in RouteInfo()
131 enabled = in.readInt() != 0; in RouteInfo()
153 dest.writeInt(enabled ? 1 : 0); in writeToParcel()
170 + ", enabled=" + enabled in toString()
/frameworks/base/core/java/android/os/
DPowerSaveState.java76 public Builder setBatterySaverEnabled(boolean enabled) { in setBatterySaverEnabled() argument
77 mBatterySaverEnabled = enabled; in setBatterySaverEnabled()
81 public Builder setGlobalBatterySaverEnabled(boolean enabled) { in setGlobalBatterySaverEnabled() argument
82 mGlobalBatterySaverEnabled = enabled; in setGlobalBatterySaverEnabled()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DEffectDescriptor.cpp105 status_t EffectDescriptorCollection::setEffectEnabled(int id, bool enabled) in setEffectEnabled() argument
113 return setEffectEnabled(valueAt(index), enabled); in setEffectEnabled()
126 bool enabled) in setEffectEnabled() argument
128 if (enabled == effectDesc->mEnabled) { in setEffectEnabled()
130 enabled?"true":"false", enabled?"enabled":"disabled"); in setEffectEnabled()
134 if (enabled) { in setEffectEnabled()
151 effectDesc->mEnabled = enabled; in setEffectEnabled()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPinBasedInputView.java66 protected void setPasswordEntryEnabled(boolean enabled) { in setPasswordEntryEnabled() argument
67 mPasswordEntry.setEnabled(enabled); in setPasswordEntryEnabled()
68 mOkButton.setEnabled(enabled); in setPasswordEntryEnabled()
69 if (enabled && !mPasswordEntry.hasFocus()) { in setPasswordEntryEnabled()
75 protected void setPasswordEntryInputEnabled(boolean enabled) { in setPasswordEntryInputEnabled() argument
76 mPasswordEntry.setEnabled(enabled); in setPasswordEntryInputEnabled()
77 mOkButton.setEnabled(enabled); in setPasswordEntryInputEnabled()
78 if (enabled && !mPasswordEntry.hasFocus()) { in setPasswordEntryInputEnabled()

12345678910>>...39