/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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | FlashlightController.java | 76 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() 143 private void dispatchModeChanged(boolean enabled) { in dispatchModeChanged() argument 144 dispatchListeners(DISPATCH_CHANGED, enabled); in dispatchModeChanged() 199 public void onTorchModeChanged(String cameraId, boolean enabled) { 202 setTorchMode(enabled); 218 private void setTorchMode(boolean enabled) { 221 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()
|
D | AccessibilityController.java | 75 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | CellularTile.java | 111 : !cb.enabled || cb.airplaneModeEnabled ? R.drawable.ic_qs_signal_disabled in handleUpdateState() 117 state.overlayIconId = cb.enabled && (cb.dataTypeIconId > 0) ? cb.dataTypeIconId : 0; in handleUpdateState() 119 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState() 120 state.activityOut = cb.enabled && cb.activityOut; in handleUpdateState() 122 state.label = cb.enabled in handleUpdateState() 126 final String signalContentDesc = cb.enabled && (cb.mobileSignalIconId > 0) in handleUpdateState() 133 String enabledDesc = cb.enabled ? r.getString(R.string.accessibility_cell_data_on) in handleUpdateState() 174 boolean enabled; field in CellularTile.CallbackInfo 191 public void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon, in setWifiIndicators() argument 193 mInfo.wifiEnabled = enabled; in setWifiIndicators() [all …]
|
D | WifiTile.java | 136 boolean wifiConnected = cb.enabled && (cb.wifiSignalIconId > 0) && (cb.enabledDesc != null); in handleUpdateState() 138 boolean enabledChanging = state.value != cb.enabled; in handleUpdateState() 140 mDetailAdapter.setItemsVisible(cb.enabled); in handleUpdateState() 141 fireToggleStateChanged(cb.enabled); in handleUpdateState() 143 state.value = cb.enabled; in handleUpdateState() 145 state.activityIn = cb.enabled && cb.activityIn; in handleUpdateState() 146 state.activityOut = cb.enabled && cb.activityOut; in handleUpdateState() 226 boolean enabled; field in WifiTile.CallbackInfo 237 .append("enabled=").append(enabled) in toString() 252 public void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon, in setWifiIndicators() argument [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | ScaleGestureDetectorCompat.java | 28 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/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/base/core/java/com/android/internal/os/ |
D | SamplingProfilerIntegration.java | 47 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/services/core/java/com/android/server/vr/ |
D | VrManagerService.java | 105 private static native void setVrModeNative(boolean enabled); in setVrModeNative() argument 160 final boolean enabled; field in VrManagerService.VrState 167 VrState(boolean enabled, ComponentName targetPackageName, int userId, in VrState() argument 169 this.enabled = enabled; in VrState() 177 VrState(boolean enabled, ComponentName targetPackageName, int userId, in VrState() argument 179 this.enabled = enabled; in VrState() 344 ArraySet<ComponentName> enabled = mComponentObserver.getEnabled(userId); 345 if (enabled == null || enabled.size() == 0) { 348 for (ComponentName n : enabled) { 371 public void setVrMode(boolean enabled, ComponentName packageName, int userId, in setVrMode() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | SetArcTransmissionStateAction.java | 45 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/android/content/pm/ |
D | PackageUserState.java | 46 public int enabled; field in PackageUserState 58 enabled = COMPONENT_ENABLED_STATE_DEFAULT; in PackageUserState() 71 enabled = o.enabled; in PackageUserState() 123 switch (this.enabled) { in isEnabled() 132 if (!componentInfo.applicationInfo.enabled) { in isEnabled() 148 return componentInfo.enabled; in isEnabled()
|
D | ComponentInfo.java | 58 public boolean enabled = true; field in ComponentInfo 87 enabled = orig.enabled; in ComponentInfo() 120 return enabled && applicationInfo.enabled; in isEnabled() 166 pw.println(prefix + "enabled=" + enabled + " exported=" + exported in dumpFront() 199 dest.writeInt(enabled ? 1 : 0); in writeToParcel() 212 enabled = (source.readInt() != 0); in ComponentInfo()
|
/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/opt/net/ims/src/java/com/android/ims/ |
D | ImsManager.java | 210 int enabled = android.provider.Settings.Global.getInt( in isEnhanced4gLteModeSettingEnabledByUser() local 213 return (enabled == 1) ? true : false; in isEnhanced4gLteModeSettingEnabledByUser() 219 public static void setEnhanced4gLteModeSetting(Context context, boolean enabled) { in setEnhanced4gLteModeSetting() argument 220 int value = enabled ? 1 : 0; in setEnhanced4gLteModeSetting() 230 imsManager.setAdvanced4GMode(enabled); in setEnhanced4gLteModeSetting() 318 int enabled = android.provider.Settings.Global.getInt(context.getContentResolver(), in isVtEnabledByUser() local 321 return (enabled == 1) ? true : false; in isVtEnabledByUser() 327 public static void setVtSetting(Context context, boolean enabled) { in setVtSetting() argument 328 int value = enabled ? 1 : 0; in setVtSetting() 339 enabled ? ImsConfig.FeatureValueConstants.ON in setVtSetting() [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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataProfile.java | 53 public final boolean enabled; field in DataProfile 58 int waitTime, boolean enabled) { in DataProfile() argument 70 this.enabled = enabled; in DataProfile() 99 pc.writeInt(dps[i].enabled ? 1 : 0); in toParcel() 108 + "/" + maxConns + "/" + waitTime + "/" + enabled; in toString()
|
/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 | 99 public boolean enabled; field in MediaRouterClientState.RouteInfo 111 enabled = true; in RouteInfo() 125 enabled = other.enabled; in RouteInfo() 141 enabled = in.readInt() != 0; in RouteInfo() 163 dest.writeInt(enabled ? 1 : 0); in writeToParcel() 180 + ", enabled=" + enabled in toString()
|
/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()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DocumentHolder.java | 104 public void setEnabled(boolean enabled) { in setEnabled() argument 105 setEnabledRecursive(itemView, enabled); in setEnabled() 157 static void setEnabledRecursive(View itemView, boolean enabled) { in setEnabledRecursive() argument 159 if (itemView.isEnabled() == enabled) return; in setEnabledRecursive() 160 itemView.setEnabled(enabled); in setEnabledRecursive() 165 setEnabledRecursive(vg.getChildAt(i), enabled); in setEnabledRecursive() local
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationTestUtil.java | 47 boolean shared, boolean enabled, String fqdn, String providerFriendlyName) { in generateWifiConfig() argument 53 config.status = enabled ? WifiConfiguration.Status.ENABLED in generateWifiConfig() 76 boolean shared, boolean enabled, String fqdn, String providerFriendlyName, in generateWifiConfig() argument 78 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig()
|