/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
D | bluetooth_manager.rs | 59 pub(crate) fn callback_hci_enabled_change(&mut self, hci: VirtualHciIndex, enabled: bool) { in callback_hci_enabled_change() 60 if enabled { in callback_hci_enabled_change() 67 callback.on_hci_enabled_changed(hci.to_i32(), enabled); in callback_hci_enabled_change() 158 fn set_floss_enabled(&mut self, enabled: bool) { in set_floss_enabled() 159 warn!("Set Floss Enabeld={}", enabled); in set_floss_enabled() 160 let prev = self.proxy.set_floss_enabled(enabled); in set_floss_enabled() 161 config_util::write_floss_enabled(enabled); in set_floss_enabled() 163 if prev != enabled && enabled { in set_floss_enabled() 173 } else if prev != enabled { in set_floss_enabled() 194 enabled: state_to_enabled(a.state), in get_available_adapters() [all …]
|
D | config_util.rs | 45 pub fn write_floss_enabled(enabled: bool) -> bool { in write_floss_enabled() 48 match enabled { in write_floss_enabled() 98 pub fn modify_hci_n_enabled(hci: VirtualHciIndex, enabled: bool) -> bool { in modify_hci_n_enabled() 102 match read_config().ok().and_then(|config| modify_hci_n_enabled_internal(config, hci, enabled)) in modify_hci_n_enabled() 112 enabled: bool, in modify_hci_n_enabled_internal() 118 section.as_object_mut()?.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal() 123 entry_map.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal() 212 pub fn write_floss_ll_privacy_enabled(enabled: bool) -> std::io::Result<()> { in write_floss_ll_privacy_enabled() 219 if enabled { "true\n" } else { "false\n" } in write_floss_ll_privacy_enabled() 239 pub fn write_floss_address_privacy_enabled(enabled: bool) -> std::io::Result<()> { in write_floss_address_privacy_enabled() [all …]
|
/packages/modules/CrashRecovery/apex/ |
D | Android.bp | 27 "enabled" 33 // This fragment will be enabled using release_crashrecovery_module flag 34 enabled: false, 37 enabled: true, 73 "enabled" 79 // This fragment will be enabled using release_crashrecovery_module flag 80 enabled: false, 83 enabled: true, 111 "enabled" 116 // This apex will be enabled using release_crashrecovery_module flag [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | ThemeOverlayManagerTest.java | 96 final boolean enabled = true; in testApplyOverlays_shouldSetEnabled() 101 mThemeOverlayManager.applyOverlays(mContext, enabled, mCallback); in testApplyOverlays_shouldSetEnabled() 104 verify(mOverlayManager, times(1)).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldSetEnabled() local 122 final boolean enabled = true; in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() 127 mThemeOverlayManager.applyOverlays(mContext, enabled, mCallback); in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() 129 verify(mOverlayManager, never()).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() local 135 final boolean enabled = true; in testDefaultDisabled_applyOverlays_shouldEnabled() 138 mUserHandle).get(0).isEnabled()).isEqualTo(!enabled); in testDefaultDisabled_applyOverlays_shouldEnabled() 143 mThemeOverlayManager.applyOverlays(mContext, enabled, mCallback); in testDefaultDisabled_applyOverlays_shouldEnabled() 146 verify(mOverlayManager, times(1)).setEnabled(getOverlayPackageId(), enabled, in testDefaultDisabled_applyOverlays_shouldEnabled() local [all …]
|
/packages/services/Car/car_product/properties/ |
D | bluetooth.prop | 34 # The Bluetooth profiles that cars expect to have enabled. All other profiles 36 bluetooth.profile.a2dp.sink.enabled=true 37 bluetooth.profile.avrcp.controller.enabled=true 38 bluetooth.profile.a2dp.source.enabled=true 39 bluetooth.profile.avrcp.target.enabled=true 40 bluetooth.profile.gatt.enabled=true 41 bluetooth.profile.hfp.hf.enabled=true 42 bluetooth.profile.map.client.enabled=true 43 bluetooth.profile.pan.nap.enabled=true 44 bluetooth.profile.pan.panu.enabled=true [all …]
|
/packages/modules/Profiling/apex/ |
D | Android.bp | 38 "enabled", 43 // This apex will be enabled with release_package_profiling_module flag 44 enabled: false, 47 enabled: true, 71 "enabled", 76 // This fragment will be enabled with release_package_profiling_module flag 77 enabled: false, 80 enabled: true, 97 "enabled", 102 // This fragment will be enabled with release_package_profiling_module flag [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestMenuItem.java | 40 boolean enabled; field in TestMenuItem 50 mockMenuItem.enabled = true; in create() 68 public MenuItem setEnabled(boolean enabled) { in setEnabled() argument 69 this.enabled = enabled; in setEnabled() 86 return this.enabled; in isEnabled() 101 assertTrue(this.enabled); in assertEnabledAndVisible() 106 assertFalse(this.enabled); in assertDisabledAndInvisible()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | EnableVerboseVendorLoggingPreferenceControllerTest.java | 89 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingEnableByHidl_enableVendorLoggingShouldBeOn() 90 assertTrue(enabled); in onPreferenceChange_settingEnableByHidl_enableVendorLoggingShouldBeOn() 101 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingEnableByAidl_enableVendorLoggingShouldBeOn() 102 assertTrue(enabled); in onPreferenceChange_settingEnableByAidl_enableVendorLoggingShouldBeOn() 113 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingDisableByHidl_enableVendorLoggingShouldBeOff() 114 assertFalse(enabled); in onPreferenceChange_settingDisableByHidl_enableVendorLoggingShouldBeOff() 125 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingDisableByAidl_enableVendorLoggingShouldBeOff() 126 assertFalse(enabled); in onPreferenceChange_settingDisableByAidl_enableVendorLoggingShouldBeOff() 184 final boolean enabled = mController.getVerboseLoggingEnabled(); in onDeveloperOptionDisabled_byHidl_shouldDisablePreference() 185 assertFalse(enabled); in onDeveloperOptionDisabled_byHidl_shouldDisablePreference() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/wear/ |
D | WearRequestRoleScreen.kt | 101 enabled: Boolean, in WearRequestRoleContent() 120 enabled = enabled && it.enabled, in WearRequestRoleContent() 137 enabled = enabled && pref.enabled, in WearRequestRoleContent() 152 enabled = enabled, in WearRequestRoleContent() 170 enabled = helper.shouldSetAsDefaultEnabled(enabled), in WearRequestRoleContent() 178 enabled = enabled, in WearRequestRoleContent()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | Item.java | 29 public void setEnabled(boolean enabled) { in setEnabled() argument 30 if (mEnabled != enabled) { in setEnabled() 31 mEnabled = enabled; in setEnabled() 33 setEnabledInternal(mItemView, enabled); in setEnabled() 86 private void setEnabledInternal(View view, boolean enabled) { in setEnabledInternal() argument 87 view.setEnabled(enabled); in setEnabledInternal() 92 setEnabledInternal(parent.getChildAt(i), enabled); in setEnabledInternal() local
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | ModePicker.java | 137 private void enableModeSelection(boolean enabled) { in enableModeSelection() argument 139 mSelectionEnabled = enabled; in enableModeSelection() 141 mModeSelectionFrame.startAnimation(enabled ? mFadeIn : mFadeOut); in enableModeSelection() 142 if (enabled) { in enableModeSelection() 202 public void setEnabled(boolean enabled) { in setEnabled() argument 203 super.setEnabled(enabled); in setEnabled() 206 if (mCurrentModeFrame != null) mCurrentModeFrame.setEnabled(enabled); in setEnabled() 207 mModeSelectionFrame.setEnabled(enabled); in setEnabled() 211 mModeSelectionIcon[i].setEnabled(enabled); in setEnabled() 212 if (mCurrentModeFrame != null) mCurrentModeIcon[i].setEnabled(enabled); in setEnabled() [all …]
|
/packages/modules/Bluetooth/floss/pandora/floss/ |
D | manager_client.py | 36 def on_hci_enabled_changed(self, hci, enabled): argument 86 def OnHciEnabledChanged(self, hci, enabled): argument 89 observer.on_hci_enabled_changed(hci, enabled) 146 def on_hci_enabled_changed(self, hci, enabled): argument 148 self.adapters[hci] = enabled 181 def set_floss_enabled(self, enabled): argument 182 self.proxy().SetFlossEnabled(enabled) 199 for (hci, enabled) in all_adapters: 200 self.adapters[hci] = enabled
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/ |
D | Button.kt | 50 enabled: Boolean = true in Button() 60 enabled = enabled in Button() 78 enabled: Boolean = true in Button() 88 enabled = enabled in Button() 101 enabled: Boolean = true in Button() 106 enabled = enabled, in Button()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | PrivacyChipViewController.java | 106 public void onFlagAllChanged(boolean enabled) { 107 onAllIndicatorsToggled(enabled); 111 public void onFlagMicCameraChanged(boolean enabled) { 112 onMicCameraToggled(enabled); 115 private void onMicCameraToggled(boolean enabled) { 116 if (mMicCameraIndicatorsEnabled != enabled) { 117 mMicCameraIndicatorsEnabled = enabled; 121 private void onAllIndicatorsToggled(boolean enabled) { 122 if (mAllIndicatorsEnabled != enabled) { 123 mAllIndicatorsEnabled = enabled;
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 241 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 246 mAppEntry.info.enabled in onClick() 379 boolean enabled = true; in updateUninstallButton() 381 enabled = handleDisableable(); in updateUninstallButton() 387 enabled = false; in updateUninstallButton() 393 enabled = false; in updateUninstallButton() 401 enabled = false; in updateUninstallButton() 407 enabled = false; in updateUninstallButton() 414 enabled = false; in updateUninstallButton() 419 enabled = false; in updateUninstallButton() [all …]
|
/packages/services/Car/service/src/com/android/car/power/ |
D | PowerComponentHandler.java | 285 private boolean setComponentEnabledLocked(int component, boolean enabled) { in setComponentEnabledLocked() argument 290 if (oldState == enabled && componentIndex >= 0) { in setComponentEnabledLocked() 294 mComponentStates.put(component, enabled); in setComponentEnabledLocked() 303 if (!enabled && mediator.isEnabled()) { in setComponentEnabledLocked() 307 if (enabled && mComponentsOffByPolicy.get(component, /* valueIfKeyNotFound= */ false)) { in setComponentEnabledLocked() 319 mediator.setEnabled(enabled); in setComponentEnabledLocked() 414 public void setEnabled(boolean enabled) {} in setEnabled() argument 436 public void setEnabled(boolean enabled) { in setEnabled() argument 437 mSystemInterface.setAllDisplayState(enabled); in setEnabled() 438 Slogf.d(TAG, "Display power component is %s", enabled ? "on" : "off"); in setEnabled() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pWfdInfo.java | 261 public void setEnabled(boolean enabled) { in setEnabled() argument 262 mEnabled = enabled; in setEnabled() 341 public void setSessionAvailable(boolean enabled) { in setSessionAvailable() argument 342 if (enabled) { in setSessionAvailable() 362 public void setContentProtectionSupported(boolean enabled) { in setContentProtectionSupported() argument 363 if (enabled) { in setContentProtectionSupported() 384 public void setCoupledSinkSupportAtSource(boolean enabled) { in setCoupledSinkSupportAtSource() argument 385 if (enabled) { in setCoupledSinkSupportAtSource() 406 public void setCoupledSinkSupportAtSink(boolean enabled) { in setCoupledSinkSupportAtSink() argument 407 if (enabled) { in setCoupledSinkSupportAtSink()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlBar.java | 114 public void setEnabled(boolean enabled) { in setEnabled() argument 115 super.setEnabled(enabled); in setEnabled() 117 mSecondLevelIcon.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); in setEnabled() 120 enableZoom(enabled); in setEnabled() 122 mSecondLevelIcon.setEnabled(enabled); in setEnabled() 125 public void enableZoom(boolean enabled) { in enableZoom() argument 126 if (mZoomControl != null) mZoomControl.setEnabled(enabled); in enableZoom()
|
D | TwoStateImageView.java | 41 public void setEnabled(boolean enabled) { in setEnabled() argument 42 super.setEnabled(enabled); in setEnabled() 44 if (enabled) { in setEnabled() 52 public void enableFilter(boolean enabled) { in enableFilter() argument 53 mFilterEnabled = enabled; in enableFilter()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieItem.java | 42 private boolean enabled; field in PieItem 56 enabled = true; in PieItem() 91 public void setEnabled(boolean enabled) { in setEnabled() argument 92 this.enabled = enabled; in setEnabled() 93 if (this.enabled) { in setEnabled() 101 return enabled; in isEnabled()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/ |
D | ThemeOverlayManager.java | 59 public void applyOverlays(Context context, boolean enabled, Consumer<Boolean> callback) { in applyOverlays() argument 62 setEnabled(enabled, callback); in applyOverlays() 99 private void setEnabled(boolean enabled, Consumer<Boolean> callback) { in setEnabled() argument 103 return setEnabledOverlayPackages(getOverlayInfo(), enabled); in setEnabled() 116 private boolean setEnabledOverlayPackages(List<OverlayInfo> infos, boolean enabled) { in setEnabledOverlayPackages() argument 120 if (info.isEnabled() != enabled) { in setEnabledOverlayPackages() 121 mOverlayManager.setEnabled(info.getPackageName(), enabled, mUserHandle); in setEnabledOverlayPackages() local
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/ |
D | PeopleOptionsItemView.java | 90 final boolean enabled = mData.getEnabled(); in bind() 91 if (enabled != isEnabled()) { in bind() 92 mTitle.setEnabled(enabled); in bind() 93 mSubtitle.setEnabled(enabled); in bind() 94 mSwitch.setEnabled(enabled); in bind() 95 setAlpha(enabled ? 1.0f : 0.5f); in bind() 96 setEnabled(enabled); in bind()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | AppPermissionSummaryTest.kt | 92 val (summary, enabled) = summaryRepository.flow.first() in <lambda>() constant 97 assertThat(enabled).isFalse() in <lambda>() 104 val (summary, enabled) = summaryRepository.flow.first() in <lambda>() constant 109 assertThat(enabled).isTrue() in <lambda>() 119 val (summary, enabled) = summaryRepository.flow.first() in <lambda>() constant 122 assertThat(enabled).isTrue() in <lambda>() 133 val (summary, enabled) = summaryRepository.flow.first() in <lambda>() constant 136 assertThat(enabled).isTrue() in <lambda>()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ProfileTabsControllerTest.java | 34 enabled -> mFakeProfileTabs.enabled = enabled); 86 Boolean enabled = null; field in ProfileTabsControllerTest.FakeProfileTabs 89 if (enabled == null) { in isEnabled() 92 return enabled; in isEnabled()
|
/packages/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/ |
D | SatelliteControl.java | 136 final AtomicReference<Boolean> enabled = new AtomicReference<>(); in requestIsEnabledApp() local 142 enabled.set(result); in requestIsEnabledApp() 144 if (enabled.get()) { in requestIsEnabledApp() 148 + enabled.get()); in requestIsEnabledApp() 164 final AtomicReference<Boolean> enabled = new AtomicReference<>(); in requestIsDemoModeEnabledApp() local 170 enabled.set(result); in requestIsDemoModeEnabledApp() 172 if (enabled.get()) { in requestIsDemoModeEnabledApp() 176 + enabled.get()); in requestIsDemoModeEnabledApp() 192 final AtomicReference<Boolean> enabled = new AtomicReference<>(); in requestIsSupportedApp() local 198 enabled.set(result); in requestIsSupportedApp() [all …]
|