/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/bin/btmanagerd/ |
D | bluetooth_manager.rs | 45 pub(crate) fn callback_hci_enabled_change(&mut self, hci_device: i32, enabled: bool) { in callback_hci_enabled_change() 49 *dev = enabled; in callback_hci_enabled_change() 52 self.cached_devices.insert(hci_device, enabled); in callback_hci_enabled_change() 57 callback.on_hci_enabled_changed(hci_device, enabled); in callback_hci_enabled_change() 66 let enabled = self.manager_context.floss_enabled.load(Ordering::Relaxed); in get_floss_enabled_internal() localVariable 67 enabled in get_floss_enabled_internal() 126 fn set_floss_enabled(&mut self, enabled: bool) { in set_floss_enabled() 127 let prev = self.manager_context.floss_enabled.swap(enabled, Ordering::Relaxed); in set_floss_enabled() 128 config_util::write_floss_enabled(enabled); in set_floss_enabled() 129 if prev != enabled && enabled { in set_floss_enabled() [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 | 10 # The Bluetooth profiles that cars expect to have enabled. All other profiles 12 bluetooth.profile.a2dp.sink.enabled=true 13 bluetooth.profile.avrcp.controller.enabled=true 14 bluetooth.profile.gatt.enabled=true 15 bluetooth.profile.hfp.hf.enabled=true 16 bluetooth.profile.map.client.enabled=true 17 bluetooth.profile.pan.nap.enabled=true 18 bluetooth.profile.pan.panu.enabled=true 19 bluetooth.profile.pbap.client.enabled=true
|
/packages/services/Car/service/src/com/android/car/power/ |
D | PowerComponentHandler.java | 225 private boolean setComponentEnabledLocked(int component, boolean enabled) { in setComponentEnabledLocked() argument 227 if (oldState == enabled) { in setComponentEnabledLocked() 231 mComponentStates.put(component, enabled); in setComponentEnabledLocked() 240 if (!enabled && mediator.isEnabled()) { in setComponentEnabledLocked() 244 if (enabled && mComponentsOffByPolicy.get(component, /* valueIfKeyNotFound= */ false)) { in setComponentEnabledLocked() 256 mediator.setEnabled(enabled); in setComponentEnabledLocked() 334 public void setEnabled(boolean enabled) {} in setEnabled() argument 356 public void setEnabled(boolean enabled) { in setEnabled() argument 357 mSystemInterface.setDisplayState(enabled); in setEnabled() 358 Slogf.d(TAG, "Display power component is %s", enabled ? "on" : "off"); in setEnabled() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | EnableVerboseVendorLoggingPreferenceControllerTest.java | 83 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingEnableByHidl_enableVendorLoggingShouldBeOn() 84 assertTrue(enabled); in onPreferenceChange_settingEnableByHidl_enableVendorLoggingShouldBeOn() 95 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingEnableByAidl_enableVendorLoggingShouldBeOn() 96 assertTrue(enabled); in onPreferenceChange_settingEnableByAidl_enableVendorLoggingShouldBeOn() 107 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingDisableByHidl_enableVendorLoggingShouldBeOff() 108 assertFalse(enabled); in onPreferenceChange_settingDisableByHidl_enableVendorLoggingShouldBeOff() 119 final boolean enabled = mController.getVerboseLoggingEnabled(); in onPreferenceChange_settingDisableByAidl_enableVendorLoggingShouldBeOff() 120 assertFalse(enabled); in onPreferenceChange_settingDisableByAidl_enableVendorLoggingShouldBeOff() 174 final boolean enabled = mController.getVerboseLoggingEnabled(); in onDeveloperOptionDisabled_byHidl_shouldDisablePreference() 175 assertFalse(enabled); in onDeveloperOptionDisabled_byHidl_shouldDisablePreference() [all …]
|
/packages/apps/Car/Notification/ |
D | Android.bp | 32 enabled: false, 36 enabled: false, 55 enabled: false, 79 enabled: false, 83 enabled: false, 100 enabled: false, 117 enabled: false, 121 enabled: false, 138 enabled: false, 162 enabled: false, [all …]
|
/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/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/modules/Bluetooth/system/osi/src/ |
D | allocation_tracker.cc | 45 static bool enabled = false; variable 55 if (enabled) return; in allocation_tracker_init() 62 enabled = true; in allocation_tracker_init() 68 if (!enabled) return; in allocation_tracker_uninit() 71 enabled = false; in allocation_tracker_uninit() 76 if (!enabled) return; in allocation_tracker_reset() 83 if (!enabled) return 0; in allocation_tracker_expect_no_allocations() 105 if (!enabled || !ptr) return ptr; in allocation_tracker_notify_alloc() 140 if (!enabled || !ptr) return ptr; in allocation_tracker_notify_free() 174 return (!enabled) ? size : size + (2 * canary_size); in allocation_tracker_resize_for_canary()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | PrivacyChipViewController.java | 87 public void onFlagAllChanged(boolean enabled) { 88 onAllIndicatorsToggled(enabled); 92 public void onFlagMicCameraChanged(boolean enabled) { 93 onMicCameraToggled(enabled); 96 private void onMicCameraToggled(boolean enabled) { 97 if (mMicCameraIndicatorsEnabled != enabled) { 98 mMicCameraIndicatorsEnabled = enabled; 102 private void onAllIndicatorsToggled(boolean enabled) { 103 if (mAllIndicatorsEnabled != enabled) { 104 mAllIndicatorsEnabled = enabled;
|
/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/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 243 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 255 mAppEntry.info.enabled in onClick() 397 boolean enabled = true; in updateUninstallButton() 399 enabled = handleDisableable(); in updateUninstallButton() 405 enabled = false; in updateUninstallButton() 411 enabled = false; in updateUninstallButton() 419 enabled = false; in updateUninstallButton() 425 enabled = false; in updateUninstallButton() 432 enabled = false; in updateUninstallButton() 437 enabled = false; in updateUninstallButton() [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/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputRotaryServiceTest.java | 173 String enabled = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() local 177 assertThat(enabled).isNull(); in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 193 enabled = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 197 assertThat(enabled).isEqualTo("1"); in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 210 String enabled = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_withoutRotaryService_whenRotaryServiceIsEmpty() local 214 assertThat(enabled).isNull(); in accessibilitySettingsUpdated_withoutRotaryService_whenRotaryServiceIsEmpty() 220 enabled = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_withoutRotaryService_whenRotaryServiceIsEmpty() 224 assertThat(enabled).isEqualTo("1"); in accessibilitySettingsUpdated_withoutRotaryService_whenRotaryServiceIsEmpty() 247 String enabled = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_accessibilityServicesAlreadyEnabled() local 251 assertThat(enabled).isNull(); in accessibilitySettingsUpdated_accessibilityServicesAlreadyEnabled() [all …]
|
/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()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | CommandInterceptor.java | 104 boolean enabled = asBool(tokens[1]); in gestureScale() 105 mFeatures.forceFeature(R.bool.feature_gesture_scale, enabled); in gestureScale() 106 Log.i(TAG, "Set gesture scale enabled to: " + enabled); in gestureScale() 117 boolean enabled = asBool(tokens[1]); in jobProgressDialog() 118 mFeatures.forceFeature(R.bool.feature_job_progress_dialog, enabled); in jobProgressDialog() 119 Log.i(TAG, "Set job progress dialog enabled to: " + enabled); in jobProgressDialog() 132 boolean enabled = asBool(tokens[1]); in docDetails() 133 DebugFlags.setDocumentDetailsEnabled(enabled); in docDetails() 134 Log.i(TAG, "Set doc details enabled to: " + enabled); in docDetails()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiSettingsStore.java | 136 synchronized boolean handleWifiScoringEnabled(boolean enabled) { in handleWifiScoringEnabled() argument 137 persistWifiScoringEnabledState(enabled); in handleWifiScoringEnabled() 144 public synchronized void handleWifiPasspointEnabled(boolean enabled) { in handleWifiPasspointEnabled() argument 145 persistWifiPasspointEnabledState(enabled); in handleWifiPasspointEnabled() 175 private void persistWifiScoringEnabledState(boolean enabled) { in persistWifiScoringEnabledState() argument 177 WifiSettingsConfigStore.WIFI_SCORING_ENABLED, enabled); in persistWifiScoringEnabledState() 180 private void persistWifiPasspointEnabledState(boolean enabled) { in persistWifiPasspointEnabledState() argument 182 WifiSettingsConfigStore.WIFI_PASSPOINT_ENABLED, enabled); in persistWifiPasspointEnabledState()
|
/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/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/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/Camera2/src/com/android/camera/app/ |
D | FilmstripBottomPanel.java | 105 public void setEditEnabled(boolean enabled) { in setEditEnabled() argument 106 mEditButton.setEnabled(enabled); in setEditEnabled() 116 public void setViewEnabled(boolean enabled) { in setViewEnabled() argument 117 mViewButton.setEnabled(enabled); in setViewEnabled() 121 public void setTinyPlanetEnabled(boolean enabled) { in setTinyPlanetEnabled() argument 122 mTinyPlanetEnabled = enabled; in setTinyPlanetEnabled() 131 public void setDeleteEnabled(boolean enabled) { in setDeleteEnabled() argument 132 mDeleteButton.setEnabled(enabled); in setDeleteEnabled() 141 public void setShareEnabled(boolean enabled) { in setShareEnabled() argument 142 mShareButton.setEnabled(enabled); in setShareEnabled()
|
/packages/apps/TV/tests/unit/src/com/android/tv/ |
D | TimeShiftManagerTest.java | 82 private void enableAllActions(boolean enabled) { in enableAllActions() argument 83 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_PLAY, enabled); in enableAllActions() 84 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_PAUSE, enabled); in enableAllActions() 85 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_REWIND, enabled); in enableAllActions() 86 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_FAST_FORWARD, enabled); in enableAllActions() 87 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_JUMP_TO_PREVIOUS, enabled); in enableAllActions() 88 mTimeShiftManager.enableAction(TIME_SHIFT_ACTION_ID_JUMP_TO_NEXT, enabled); in enableAllActions()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 706 protected void setBatterySaverMode(boolean enabled) throws Exception { in setBatterySaverMode() argument 710 Log.i(TAG, "Setting Battery Saver Mode to " + enabled); in setBatterySaverMode() 711 if (enabled) { in setBatterySaverMode() 720 protected void setDozeMode(boolean enabled) throws Exception { in setDozeMode() argument 725 Log.i(TAG, "Setting Doze Mode to " + enabled); in setDozeMode() 726 if (enabled) { in setDozeMode() 735 assertDozeMode(enabled); in setDozeMode() 738 protected void assertDozeMode(boolean enabled) throws Exception { in assertDozeMode() argument 739 assertDelayedShellCommand("dumpsys deviceidle get deep", enabled ? "IDLE" : "ACTIVE"); in assertDozeMode() 742 protected void setAppIdle(boolean enabled) throws Exception { in setAppIdle() argument [all …]
|
/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/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | main.rs | 37 pub(crate) enabled: bool, field 94 enabled: false, in new() 112 fn set_adapter_enabled(&mut self, hci_interface: i32, enabled: bool) { in set_adapter_enabled() 113 print_info!("hci{} enabled = {}", hci_interface, enabled); in set_adapter_enabled() 115 self.adapters.entry(hci_interface).and_modify(|v| *v = enabled).or_insert(enabled); in set_adapter_enabled() 119 let prev_enabled = self.enabled; in set_adapter_enabled() 121 if hci_interface == default_adapter && prev_enabled != enabled { in set_adapter_enabled() 122 self.enabled = enabled; in set_adapter_enabled() 124 if enabled { in set_adapter_enabled()
|