Home
last modified time | relevance | path

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

12345678910>>...34

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DThemeOverlayManagerTest.java96 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/service/src/com/android/car/power/
DPowerComponentHandler.java230 private boolean setComponentEnabledLocked(int component, boolean enabled) { in setComponentEnabledLocked() argument
232 if (oldState == enabled) { in setComponentEnabledLocked()
236 mComponentStates.put(component, enabled); in setComponentEnabledLocked()
246 if (!enabled && mediator.isEnabled()) { in setComponentEnabledLocked()
250 if (enabled && mComponentsOffByPolicy.get(component, /* valueIfKeyNotFound= */ false)) { in setComponentEnabledLocked()
262 mediator.setEnabled(enabled); in setComponentEnabledLocked()
339 public void setEnabled(boolean enabled) {} in setEnabled() argument
361 public void setEnabled(boolean enabled) { in setEnabled() argument
362 mSystemInterface.setDisplayState(enabled); in setEnabled()
363 Slogf.d(TAG, "Display power component is %s", enabled ? "on" : "off"); in setEnabled()
[all …]
/packages/apps/Car/Notification/
DAndroid.bp32 enabled: false,
36 enabled: false,
54 enabled: false,
76 enabled: false,
80 enabled: false,
98 enabled: false,
115 enabled: false,
119 enabled: false,
137 enabled: false,
161 enabled: false,
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DModePicker.java137 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/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java242 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick()
254 mAppEntry.info.enabled in onClick()
393 boolean enabled = true; in updateUninstallButton()
395 enabled = handleDisableable(); in updateUninstallButton()
401 enabled = false; in updateUninstallButton()
407 enabled = false; in updateUninstallButton()
415 enabled = false; in updateUninstallButton()
421 enabled = false; in updateUninstallButton()
428 enabled = false; in updateUninstallButton()
433 enabled = false; in updateUninstallButton()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestMenuItem.java40 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/TV/src/com/android/tv/ui/sidepanel/
DItem.java29 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/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java682 protected void setBatterySaverMode(boolean enabled) throws Exception { in setBatterySaverMode() argument
686 Log.i(TAG, "Setting Battery Saver Mode to " + enabled); in setBatterySaverMode()
687 if (enabled) { in setBatterySaverMode()
696 protected void setDozeMode(boolean enabled) throws Exception { in setDozeMode() argument
701 Log.i(TAG, "Setting Doze Mode to " + enabled); in setDozeMode()
702 if (enabled) { in setDozeMode()
711 assertDozeMode(enabled); in setDozeMode()
714 protected void assertDozeMode(boolean enabled) throws Exception { in assertDozeMode() argument
715 assertDelayedShellCommand("dumpsys deviceidle get deep", enabled ? "IDLE" : "ACTIVE"); in assertDozeMode()
718 protected void setAppIdle(boolean enabled) throws Exception { in setAppIdle() argument
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pWfdInfo.java261 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/Car/SystemUI/src/com/android/systemui/car/systembar/
DPrivacyChipViewController.java140 public void onFlagAllChanged(boolean enabled) {
141 onAllIndicatorsToggled(enabled);
145 public void onFlagMicCameraChanged(boolean enabled) {
146 onMicCameraToggled(enabled);
149 private void onMicCameraToggled(boolean enabled) {
150 if (mMicCameraIndicatorsEnabled != enabled) {
151 mMicCameraIndicatorsEnabled = enabled;
155 private void onAllIndicatorsToggled(boolean enabled) {
156 if (mAllIndicatorsEnabled != enabled) {
157 mAllIndicatorsEnabled = enabled;
/packages/apps/Car/Settings/
DAndroid.bp54 enabled: false,
60 enabled: false,
69 enabled: false,
115 enabled: false,
121 enabled: false,
128 enabled: false,
172 enabled: false,
176 enabled: false,
185 enabled: false,
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DCommandInterceptor.java104 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/apps/Car/Dialer/
DAndroid.bp70 enabled: false,
76 enabled: false,
81 enabled: false,
122 enabled: false,
128 enabled: false,
133 enabled: false,
181 enabled: false,
187 enabled: false,
192 enabled: false,
/packages/apps/Camera2/src/com/android/camera/app/
DFilmstripBottomPanel.java105 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/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlBar.java114 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/theme/
DThemeOverlayManager.java59 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/
DPieItem.java42 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/
DPeopleOptionsItemView.java90 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/modules/Wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java244 boolean enabled = getNextArgRequiredTrueOrFalse("enabled", "disabled"); in onCommand()
245 mWifiGlobals.setIpReachabilityDisconnectEnabled(enabled); in onCommand()
277 boolean enabled = getNextArgRequiredTrueOrFalse("enabled", "disabled"); in onCommand()
278 if (!mWifiLockManager.forceHiPerfMode(enabled)) { in onCommand()
284 boolean enabled = getNextArgRequiredTrueOrFalse("enabled", "disabled"); in onCommand()
285 if (!mWifiLockManager.forceLowLatencyMode(enabled)) { in onCommand()
388 boolean enabled = getNextArgRequiredTrueOrFalse("enabled", "disabled"); in onCommand()
389 if (enabled) { in onCommand()
494 boolean enabled = getNextArgRequiredTrueOrFalse("enabled", "disabled"); in onCommand()
495 if (enabled) { in onCommand()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActionBar.java75 public boolean enabled; field in GalleryActionBar.ActionItem
81 public ActionItem(int action, boolean applied, boolean enabled, int title, in ActionItem() argument
83 this(action, applied, enabled, title, title, clusterBy); in ActionItem()
86 public ActionItem(int action, boolean applied, boolean enabled, int spinnerTitle, in ActionItem() argument
89 this.enabled = enabled; in ActionItem()
200 if (item.enabled && item.visible) { in createDialogData()
213 public void setClusterItemEnabled(int id, boolean enabled) { in setClusterItemEnabled() argument
216 item.enabled = enabled; in setClusterItemEnabled()
313 private void setHomeButtonEnabled(boolean enabled) { in setHomeButtonEnabled() argument
314 if (mActionBar != null) mActionBar.setHomeButtonEnabled(enabled); in setHomeButtonEnabled()
/packages/apps/TV/tests/unit/src/com/android/tv/
DTimeShiftManagerTest.java82 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/apps/DocumentsUI/tests/unit/com/android/documentsui/
DProfileTabsControllerTest.java34 enabled -> mFakeProfileTabs.enabled = enabled);
86 Boolean enabled = null; field in ProfileTabsControllerTest.FakeProfileTabs
89 if (enabled == null) { in isEnabled()
92 return enabled; in isEnabled()
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsButton.java142 public void setEnabled(boolean enabled) { in setEnabled() argument
143 super.setEnabled(enabled); in setEnabled()
144 mButton.setEnabled(enabled); in setEnabled()
145 mButton.setFocusable(enabled); in setEnabled()
146 mIcon.setEnabled(enabled); in setEnabled()
147 mIcon.setAlpha(enabled ? ALPHA_ENABLED : ALPHA_DISABLED); in setEnabled()
148 mLabel.setEnabled(enabled); in setEnabled()
/packages/apps/Settings/src/com/android/settings/widget/
DPrimaryCheckBoxPreference.java92 public void setEnabled(boolean enabled) { in setEnabled() argument
93 super.setEnabled(enabled); in setEnabled()
94 setCheckBoxEnabled(enabled); in setEnabled()
116 public void setCheckBoxEnabled(boolean enabled) { in setCheckBoxEnabled() argument
117 mEnableCheckBox = enabled; in setCheckBoxEnabled()
119 mCheckBox.setEnabled(enabled); in setCheckBoxEnabled()
/packages/services/Car/cpp/watchdog/server/tests/
DProcStatTest.cpp88 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST()
156 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST()
179 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST()
202 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST()
225 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST()
250 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST()
256 ASSERT_TRUE(procStat.enabled()) << kProcStatPath << " file is inaccessible"; in TEST()

12345678910>>...34