/packages/apps/Settings/src/com/android/settings/notification/modes/ |
D | ZenModeFragmentBase.java | 43 private ZenMode mZenMode; field in ZenModeFragmentBase 63 if (mZenMode != null) { in onAttach() 69 ((AbstractZenModePreferenceController) controller).setZenMode(mZenMode); in onAttach() 84 mZenMode = mBackend.getMode(id); in reloadMode() 85 if (mZenMode == null) { in reloadMode() 97 if (mZenMode == null) { in updateZenModeState() 102 String id = mZenMode.getId(); in updateZenModeState() 112 if (getPreferenceControllers() == null || mZenMode == null) { in updateControllers() 134 zenController.updateZenMode(preference, mZenMode); in updateControllers() 159 return mZenMode; in getMode() [all …]
|
D | AbstractZenModePreferenceController.java | 45 private ZenMode mZenMode; field in AbstractZenModePreferenceController 68 if (mZenMode != null) { in isAvailable() 69 return Flags.modesUi() && isAvailable(mZenMode); in isAvailable() 83 mZenMode = zenMode; in setZenMode() 88 mZenMode = zenMode; in updateZenMode() 95 if (mZenMode != null) { in updateState() 96 updateState(preference, mZenMode); in updateState() 104 if (mZenMode != null) { in getSummary() 105 return getSummary(mZenMode); in getSummary() 126 ZenMode mode = mZenMode; in saveMode()
|
D | ZenModesListItemPreference.java | 28 ZenMode mZenMode; field in ZenModesListItemPreference 39 ZenSubSettingLauncher.forMode(mContext, mZenMode.getId()).launch(); in onClick() 43 mZenMode = zenMode; in setZenMode() 44 setTitle(mZenMode.getRule().getName()); in setZenMode() 45 setSummary(mZenMode.getRule().getTriggerDescription()); in setZenMode() 49 mZenMode.getIcon(mContext, IconLoader.getInstance()), in setZenMode()
|
D | ZenModeAppsLinkPreferenceController.java | 51 private ZenMode mZenMode; field in ZenModeAppsLinkPreferenceController 73 mZenMode = zenMode; in updateState() 95 mPreference.setSummary(mSummaryHelper.getAppsSummary(mZenMode, appNames)); in updateAppsBypassingDndSummaryText()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeSettingsBase.java | 44 protected int mZenMode; field in ZenModeSettingsBase 99 final int zenMode = Settings.Global.getInt(getContentResolver(), Global.ZEN_MODE, mZenMode); in updateZenMode() 100 if (zenMode == mZenMode) return; in updateZenMode() 101 mZenMode = zenMode; in updateZenMode() 102 if (DEBUG) Log.d(TAG, "updateZenMode mZenMode=" + mZenMode + " " + fireChanged); in updateZenMode()
|
D | ZenModeBackend.java | 63 protected int mZenMode; field in ZenModeBackend 93 mZenMode = Settings.Global.getInt(mContext.getContentResolver(), in updateZenMode() 94 Settings.Global.ZEN_MODE, mZenMode); in updateZenMode() 111 mZenMode = getZenMode(); in setZenMode() 124 mZenMode = getZenMode(); in setZenModeForDuration() 128 mZenMode = Settings.Global.getInt(mContext.getContentResolver(), in getZenMode() 129 Settings.Global.ZEN_MODE, mZenMode); in getZenMode() 130 return mZenMode; in getZenMode()
|
D | AbstractZenModePreferenceController.java | 119 mBackend.mZenMode); in getZenMode()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowNotificationManager.java | 32 private int mZenMode; field in ShadowNotificationManager 38 mZenMode = mode; in setZenMode() 43 return mZenMode; in getZenMode()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/ |
D | ZenModesListPreferenceControllerTest.java | 113 assertThat(itemPreferences.stream().map(pref -> pref.mZenMode).toList()) in updateState_addsPreferences() 118 assertThat(((ZenModesListItemPreference) (mPreference.getPreference(i))).mZenMode) in updateState_addsPreferences() 141 assertThat(newPreferences.stream().map(pref -> pref.mZenMode).toList()) in updateState_secondTime_updatesPreferences()
|