/frameworks/base/core/java/android/app/ |
D | AutomaticZenRule.java | 32 private boolean enabled = false; field in AutomaticZenRule 52 int interruptionFilter, boolean enabled) { in AutomaticZenRule() argument 57 this.enabled = enabled; in AutomaticZenRule() 65 int interruptionFilter, boolean enabled, long creationTime) { in AutomaticZenRule() argument 66 this(name, owner, conditionId, interruptionFilter, enabled); in AutomaticZenRule() 71 enabled = source.readInt() == 1; in AutomaticZenRule() 113 return enabled; in isEnabled() 148 public void setEnabled(boolean enabled) { in setEnabled() argument 149 this.enabled = enabled; in setEnabled() 159 dest.writeInt(enabled ? 1 : 0); in writeToParcel() [all …]
|
D | VrManager.java | 29 public void onVrStateChanged(boolean enabled) { 30 mHandler.post(() -> mCallback.onVrStateChanged(enabled)); 37 public void onPersistentVrStateChanged(boolean enabled) { 38 mHandler.post(() -> mCallback.onPersistentVrStateChanged(enabled)); 159 public void setPersistentVrModeEnabled(boolean enabled) { in setPersistentVrModeEnabled() argument 161 mService.setPersistentVrModeEnabled(enabled); in setPersistentVrModeEnabled()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataEnabledSettings.java | 73 public synchronized void setInternalDataEnabled(boolean enabled) { in setInternalDataEnabled() argument 75 mInternalDataEnabled = enabled; in setInternalDataEnabled() 84 public synchronized void setUserDataEnabled(boolean enabled) { in setUserDataEnabled() argument 86 mUserDataEnabled = enabled; in setUserDataEnabled() 95 public synchronized void setPolicyDataEnabled(boolean enabled) { in setPolicyDataEnabled() argument 97 mPolicyDataEnabled = enabled; in setPolicyDataEnabled() 106 public synchronized void setCarrierDataEnabled(boolean enabled) { in setCarrierDataEnabled() argument 108 mCarrierDataEnabled = enabled; in setCarrierDataEnabled() 122 private void notifyDataEnabledChanged(boolean enabled, int reason) { in notifyDataEnabledChanged() argument 123 mDataEnabledChangedRegistrants.notifyResult(new Pair<>(enabled, reason)); in notifyDataEnabledChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | FlashlightControllerImpl.java | 84 public void setFlashlight(boolean enabled) { in setFlashlight() argument 88 if (mFlashlightEnabled != enabled) { in setFlashlight() 89 mFlashlightEnabled = enabled; in setFlashlight() 91 mCameraManager.setTorchMode(mCameraId, enabled); in setFlashlight() 157 private void dispatchModeChanged(boolean enabled) { in dispatchModeChanged() argument 158 dispatchListeners(DISPATCH_CHANGED, enabled); in dispatchModeChanged() 213 public void onTorchModeChanged(String cameraId, boolean enabled) { 216 setTorchMode(enabled); 232 private void setTorchMode(boolean enabled) { 235 changed = mFlashlightEnabled != enabled; [all …]
|
D | SignalController.java | 126 } else if (mCurrentState.enabled) { in getQsCurrentIconId() 139 } else if (mCurrentState.enabled) { in getCurrentIconId() 257 boolean enabled; field in SignalController.State 270 enabled = state.enabled; in copyFrom() 293 .append("enabled=").append(enabled).append(',') in toString() 310 && other.enabled == enabled in equals()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pWfdInfo.java | 70 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/tests/coretests/src/android/content/pm/ |
D | ComponentTest.java | 144 assertFalse(info2.activityInfo.enabled); in testResolveDisabledActivity() 157 assertTrue(info.activityInfo.enabled); in testResolveEnabledActivity() 177 assertFalse(info.activityInfo.enabled); in testQueryDisabledActivity() 192 assertTrue(info.activityInfo.enabled); in testQueryEnabledActivity() 212 assertFalse(activityInfo.enabled); in testGetDisabledActivityInfo() 224 assertTrue(activityInfo.enabled); in testGetEnabledActivityInfo() 243 assertFalse(info2.activityInfo.enabled); in testEnableActivity() 271 assertTrue(info3.activityInfo.enabled); in testDisableActivity() 291 assertFalse(info2.serviceInfo.enabled); in testResolveDisabledService() 304 assertTrue(info.serviceInfo.enabled); in testResolveEnabledService() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | DemoModeFragment.java | 114 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), in updateDemoModeEnabled() 116 mEnabledSwitch.setChecked(enabled); in updateDemoModeEnabled() 117 mOnSwitch.setEnabled(enabled); in updateDemoModeEnabled() 121 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), in updateDemoModeOn() 123 mOnSwitch.setChecked(enabled); in updateDemoModeOn() 128 boolean enabled = newValue == Boolean.TRUE; in onPreferenceChange() 130 if (!enabled) { in onPreferenceChange() 135 MetricsLogger.action(getContext(), MetricsEvent.TUNER_DEMO_MODE_ENABLED, enabled); in onPreferenceChange() local 136 setGlobal(DemoMode.DEMO_MODE_ALLOWED, enabled ? 1 : 0); in onPreferenceChange() 138 MetricsLogger.action(getContext(), MetricsEvent.TUNER_DEMO_MODE_ON, enabled); in onPreferenceChange() local [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsManager.java | 282 int enabled = android.provider.Settings.Global.getInt( in isEnhanced4gLteModeSettingEnabledByUser() local 286 return (enabled == 1) ? true : false; in isEnhanced4gLteModeSettingEnabledByUser() 299 int enabled = android.provider.Settings.Global.getInt( in isEnhanced4gLteModeSettingEnabledByUserForSlot() local 303 return (enabled == 1); in isEnhanced4gLteModeSettingEnabledByUserForSlot() 312 public static void setEnhanced4gLteModeSetting(Context context, boolean enabled) { in setEnhanced4gLteModeSetting() argument 313 int value = enabled ? 1 : 0; in setEnhanced4gLteModeSetting() 323 imsManager.setAdvanced4GMode(enabled); in setEnhanced4gLteModeSetting() 337 public void setEnhanced4gLteModeSettingForSlot(boolean enabled) { in setEnhanced4gLteModeSettingForSlot() argument 340 CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL) ? (enabled ? 1: 0) : 1; in setEnhanced4gLteModeSettingForSlot() 357 setAdvanced4GMode(enabled); in setEnhanced4gLteModeSettingForSlot() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | SetArcTransmissionStateAction.java | 46 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/location/java/android/location/ |
D | SettingInjectorService.java | 154 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/base/core/java/android/content/pm/ |
D | ComponentInfo.java | 64 public boolean enabled = true; field in ComponentInfo 94 enabled = orig.enabled; in ComponentInfo() 127 return enabled && applicationInfo.enabled; in isEnabled() 176 pw.println(prefix + "enabled=" + enabled + " exported=" + exported in dumpFront() 210 dest.writeInt(enabled ? 1 : 0); in writeToParcel() 224 enabled = (source.readInt() != 0); in ComponentInfo()
|
D | PackageUserState.java | 49 public int enabled; field in PackageUserState 65 enabled = COMPONENT_ENABLED_STATE_DEFAULT; in PackageUserState() 80 enabled = o.enabled; in PackageUserState() 144 switch (this.enabled) { in isEnabled() 153 if (!componentInfo.applicationInfo.enabled) { in isEnabled() 169 return componentInfo.enabled; in isEnabled() 202 if (enabled != oldState.enabled) { in equals()
|
/frameworks/support/compat/java/android/support/v4/view/ |
D | ScaleGestureDetectorCompat.java | 39 public static void setQuickScaleEnabled(Object scaleGestureDetector, boolean enabled) { in setQuickScaleEnabled() argument 41 (ScaleGestureDetector) scaleGestureDetector, enabled); in setQuickScaleEnabled() local 52 ScaleGestureDetector scaleGestureDetector, boolean enabled) { in setQuickScaleEnabled() argument 54 scaleGestureDetector.setQuickScaleEnabled(enabled); in setQuickScaleEnabled()
|
/frameworks/support/compat/java/android/support/v4/view/accessibility/ |
D | AccessibilityManagerCompat.java | 100 public void onAccessibilityStateChanged(boolean enabled) { in onAccessibilityStateChanged() argument 101 mListener.onAccessibilityStateChanged(enabled); in onAccessibilityStateChanged() 223 public void onTouchExplorationStateChanged(boolean enabled) { in onTouchExplorationStateChanged() argument 224 mListener.onTouchExplorationStateChanged(enabled); in onTouchExplorationStateChanged() 255 void onAccessibilityStateChanged(boolean enabled); in onAccessibilityStateChanged() argument 270 void onTouchExplorationStateChanged(boolean enabled); in onTouchExplorationStateChanged() argument
|
/frameworks/base/services/core/java/com/android/server/vr/ |
D | VrManagerService.java | 127 private static native void setVrModeNative(boolean enabled); in setVrModeNative() argument 338 final boolean enabled; field in VrManagerService.VrState 347 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument 349 this.enabled = enabled; in VrState() 359 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument 361 this.enabled = enabled; in VrState() 379 sb.append((enabled) ? "ENABLED" : "DISABLED"); in toLogString() 381 if (enabled) { in toLogString() 565 public void setPersistentVrModeEnabled(boolean enabled) { 567 VrManagerService.this.setPersistentVrModeEnabled(enabled); [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | EffectDescriptor.cpp | 111 status_t EffectDescriptorCollection::setEffectEnabled(int id, bool enabled) in setEffectEnabled() argument 119 return setEffectEnabled(valueAt(index), enabled); in setEffectEnabled() 124 bool enabled) in setEffectEnabled() argument 126 if (enabled == effectDesc->mEnabled) { in setEffectEnabled() 128 enabled?"true":"false", enabled?"enabled":"disabled"); in setEffectEnabled() 132 if (enabled) { in setEffectEnabled() 149 effectDesc->mEnabled = enabled; in setEffectEnabled()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | ConnOnActivityStartTest.java | 253 private void setBatterySaverMode(boolean enabled) throws Exception { in setBatterySaverMode() argument 254 if (enabled) { in setBatterySaverMode() 262 assertEquals(enabled ? "1" : "0", result); in setBatterySaverMode() 265 private void setDataSaverMode(boolean enabled) throws Exception { in setDataSaverMode() argument 266 executeCommand("cmd netpolicy set restrict-background " + enabled); in setDataSaverMode() 268 final String expectedSuffix = enabled ? "enabled" : "disabled"; in setDataSaverMode() 273 private void setDozeMode(boolean enabled) throws Exception { in setDozeMode() argument 274 if (enabled) { in setDozeMode() 283 assertDelayedCommandResult("dumpsys deviceidle get deep", enabled ? "IDLE" : "ACTIVE", in setDozeMode() 287 private void setAppIdle(boolean enabled) throws Exception { in setAppIdle() argument [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 110 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/media/java/android/media/ |
D | MediaRouterClientState.java | 89 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/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | WifiTile.java | 148 boolean wifiConnected = cb.enabled && (cb.wifiSignalIconId > 0) && (cb.enabledDesc != null); in handleUpdateState() 150 boolean enabledChanging = state.value != cb.enabled; in handleUpdateState() 152 mDetailAdapter.setItemsVisible(cb.enabled); in handleUpdateState() 153 fireToggleStateChanged(cb.enabled); in handleUpdateState() 162 state.value = cb.enabled; in handleUpdateState() 163 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState() 164 state.activityOut = cb.enabled && cb.activityOut; in handleUpdateState() 233 boolean enabled; field in WifiTile.CallbackInfo 245 .append("enabled=").append(enabled) in toString() 261 public void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon, in setWifiIndicators() argument [all …]
|
D | CellularTile.java | 166 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState() 167 state.activityOut = cb.enabled && cb.activityOut; in handleUpdateState() 173 final String signalContentDesc = cb.enabled && (cb.mobileSignalIconId > 0) in handleUpdateState() 220 boolean enabled; field in CellularTile.CallbackInfo 238 public void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon, in setWifiIndicators() argument 240 mInfo.wifiEnabled = enabled; in setWifiIndicators() 252 mInfo.enabled = qsIcon.visible; in setMobileDataIndicators() 273 mInfo.enabled = true; in setNoSims() 288 public void setMobileDataEnabled(boolean enabled) { in setMobileDataEnabled() argument 289 mDetailAdapter.setMobileDataEnabled(enabled); in setMobileDataEnabled() [all …]
|
/frameworks/base/core/java/android/os/ |
D | PowerSaveState.java | 76 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/wilhelm/tests/examples/ |
D | slesTestBassBoostPath.cpp | 214 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()
|
D | slesTestVirtualizerPath.cpp | 216 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()
|