/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | ConversationPriorityPreferenceControllerTest.java | 141 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_disabledByAdmin() local 142 mController.updateState(pref); in testUpdateState_disabledByAdmin() 144 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 155 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_notConfigurable() local 156 mController.updateState(pref); in testUpdateState_notConfigurable() 158 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable() 170 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_systemButConfigurable() local 171 mController.updateState(pref); in testUpdateState_systemButConfigurable() 173 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable() 185 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_defaultApp() local [all …]
|
D | SoundPreferenceControllerTest.java | 163 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testDisplayPreference_savesPreference() local 164 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testDisplayPreference_savesPreference() 168 verify(pref, times(1)).onActivityResult(anyInt(), anyInt(), any()); in testDisplayPreference_savesPreference() 179 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_disabledByAdmin() local 180 mController.updateState(pref); in testUpdateState_disabledByAdmin() 182 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 193 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_notBlockable() local 194 mController.updateState(pref); in testUpdateState_notBlockable() 196 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable() 209 NotificationSoundPreference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_configurable() local [all …]
|
D | BubblePreferenceControllerTest.java | 279 Preference pref = new RestrictedSwitchPreference(mContext); in updateState_disabledByAdmin() local 280 mController.updateState(pref); in updateState_disabledByAdmin() 282 assertFalse(pref.isEnabled()); in updateState_disabledByAdmin() 294 BubblePreference pref = new BubblePreference(mContext); in updateState_app_disabledByAdmin() local 295 mAppPageController.updateState(pref); in updateState_app_disabledByAdmin() 297 assertFalse(pref.isEnabled()); in updateState_app_disabledByAdmin() 309 Preference pref = new RestrictedSwitchPreference(mContext); in updateState_channel_channelNotBlockable() local 310 mController.updateState(pref); in updateState_channel_channelNotBlockable() 312 assertTrue(pref.isEnabled()); in updateState_channel_channelNotBlockable() 324 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in updateState_channel() local [all …]
|
D | AllowSoundPreferenceControllerTest.java | 162 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local 163 mController.updateState(pref); in testUpdateState_disabledByAdmin() 165 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 176 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notBlockable_oem() local 177 mController.updateState(pref); in testUpdateState_notBlockable_oem() 179 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable_oem() 189 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_configurable() local 190 mController.updateState(pref); in testUpdateState_configurable() 192 assertTrue(pref.isEnabled()); in testUpdateState_configurable() 202 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checkedForHighImportanceChannel() local [all …]
|
D | BadgePreferenceControllerTest.java | 214 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local 215 mController.updateState(pref); in testUpdateState_disabledByAdmin() 217 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 228 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channelNotBlockable() local 229 mController.updateState(pref); in testUpdateState_channelNotBlockable() 231 assertTrue(pref.isEnabled()); in testUpdateState_channelNotBlockable() 241 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channel() local 242 mController.updateState(pref); in testUpdateState_channel() 244 assertTrue(pref.isChecked()); in testUpdateState_channel() 248 mController.updateState(pref); in testUpdateState_channel() [all …]
|
D | DndPreferenceControllerTest.java | 132 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local 133 mController.updateState(pref); in testUpdateState_disabledByAdmin() 135 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 145 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local 146 mController.updateState(pref); in testUpdateState_notBlockable() 148 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable() 158 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local 159 mController.updateState(pref); in testUpdateState_configurable() 161 assertTrue(pref.isEnabled()); in testUpdateState_configurable() 171 RestrictedSwitchPreference pref = in testUpdateState_bypassDnd() local [all …]
|
D | ImportancePreferenceControllerTest.java | 178 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_disabledByAdmin() local 179 mController.updateState(pref); in testUpdateState_disabledByAdmin() 181 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 192 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_notConfigurable() local 193 mController.updateState(pref); in testUpdateState_notConfigurable() 195 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable() 207 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_systemButConfigurable() local 208 mController.updateState(pref); in testUpdateState_systemButConfigurable() 210 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable() 222 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_defaultApp() local [all …]
|
D | VibrationPreferenceControllerTest.java | 158 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local 159 mController.updateState(pref); in testUpdateState_disabledByAdmin() 161 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 171 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local 172 mController.updateState(pref); in testUpdateState_notBlockable() 174 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable() 184 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local 185 mController.updateState(pref); in testUpdateState_configurable() 187 assertTrue(pref.isEnabled()); in testUpdateState_configurable() 197 RestrictedSwitchPreference pref = in testUpdateState_vibrateOn() local [all …]
|
D | MinImportancePreferenceControllerTest.java | 161 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local 162 mController.updateState(pref); in testUpdateState_disabledByAdmin() 164 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 175 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local 176 mController.updateState(pref); in testUpdateState_notConfigurable() 178 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable() 190 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local 191 mController.updateState(pref); in testUpdateState_systemButConfigurable() 193 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable() 205 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local [all …]
|
D | HighImportancePreferenceControllerTest.java | 161 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local 162 mController.updateState(pref); in testUpdateState_disabledByAdmin() 164 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 175 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local 176 mController.updateState(pref); in testUpdateState_notConfigurable() 178 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable() 190 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local 191 mController.updateState(pref); in testUpdateState_systemButConfigurable() 193 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable() 205 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local [all …]
|
D | VisibilityPreferenceControllerTest.java | 184 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableSecure() local 185 mController.updateState(pref); in testUpdateState_disabledByAdmin_disableSecure() 187 verify(pref, times(2)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableSecure() 206 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableUnredacted() local 207 mController.updateState(pref); in testUpdateState_disabledByAdmin_disableUnredacted() 209 verify(pref, times(1)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableUnredacted() 221 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGlobally() local 222 mController.updateState(pref); in testUpdateState_noLockScreenNotificationsGlobally() 226 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGlobally() 246 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGloballyInProfile() local [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | TypeFilterPreferenceControllerTest.java | 133 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_noMetaData() local 135 mController.updateState(pref); in updateState_enabled_noMetaData() 136 assertThat(pref.isEnabled()).isTrue(); in updateState_enabled_noMetaData() 145 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_notTheDisableFilter() local 147 mController.updateState(pref); in updateState_enabled_metaData_notTheDisableFilter() 148 assertThat(pref.isEnabled()).isTrue(); in updateState_enabled_metaData_notTheDisableFilter() 158 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_disableFilter_notThisField() local 160 mController.updateState(pref); in updateState_enabled_metaData_disableFilter_notThisField() 161 assertThat(pref.isEnabled()).isTrue(); in updateState_enabled_metaData_disableFilter_notThisField() 172 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_disableFilter_thisField_stateIsChecked() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStorageSettingsTest.java | 138 final ActionButtonsPreference pref = mock(ActionButtonsPreference.class); in createMock() local 139 when(pref.setButton1Text(anyInt())).thenReturn(pref); in createMock() 140 when(pref.setButton1Icon(anyInt())).thenReturn(pref); in createMock() 141 when(pref.setButton1Enabled(anyBoolean())).thenReturn(pref); in createMock() 142 when(pref.setButton1Visible(anyBoolean())).thenReturn(pref); in createMock() 143 when(pref.setButton1OnClickListener(any(View.OnClickListener.class))).thenReturn(pref); in createMock() 145 when(pref.setButton2Text(anyInt())).thenReturn(pref); in createMock() 146 when(pref.setButton2Icon(anyInt())).thenReturn(pref); in createMock() 147 when(pref.setButton2Enabled(anyBoolean())).thenReturn(pref); in createMock() 148 when(pref.setButton2Visible(anyBoolean())).thenReturn(pref); in createMock() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsButtonsControllerTest.java | 189 final ActionButtonsPreference pref = mock(ActionButtonsPreference.class); in createMock() local 190 when(pref.setButton1Text(anyInt())).thenReturn(pref); in createMock() 191 when(pref.setButton1Icon(anyInt())).thenReturn(pref); in createMock() 192 when(pref.setButton1Enabled(anyBoolean())).thenReturn(pref); in createMock() 193 when(pref.setButton1Visible(anyBoolean())).thenReturn(pref); in createMock() 194 when(pref.setButton1OnClickListener(any(View.OnClickListener.class))).thenReturn(pref); in createMock() 196 when(pref.setButton2Text(anyInt())).thenReturn(pref); in createMock() 197 when(pref.setButton2Icon(anyInt())).thenReturn(pref); in createMock() 198 when(pref.setButton2Enabled(anyBoolean())).thenReturn(pref); in createMock() 199 when(pref.setButton2Visible(anyBoolean())).thenReturn(pref); in createMock() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/ |
D | AppPermissionsFragmentWear.java | 181 final SwitchPreference pref = createSwitchPreferenceForPermission(group, perm); in initializePermissionGroupList() local 182 showOrAddToNonSystemPreferences(pref, nonSystemPreferences, isPlatform); in initializePermissionGroupList() 185 final SwitchPreference pref = createSwitchPreferenceForGroup(group); in initializePermissionGroupList() local 186 showOrAddToNonSystemPreferences(pref, nonSystemPreferences, isPlatform); in initializePermissionGroupList() 196 private void showOrAddToNonSystemPreferences(SwitchPreference pref, in showOrAddToNonSystemPreferences() argument 201 getPreferenceScreen().addPreference(pref); in showOrAddToNonSystemPreferences() 203 nonSystemPreferences.add(pref); in showOrAddToNonSystemPreferences() 209 final SwitchPreference pref = new PermissionSwitchPreference(getActivity()); in createSwitchPreferenceForPermission() local 210 pref.setKey(perm.name); in createSwitchPreferenceForPermission() 211 pref.setTitle(perm.loadLabel(mPackageManager)); in createSwitchPreferenceForPermission() [all …]
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipEditor.java | 329 EditTextPreference pref = (EditTextPreference) key.preference; in isEditTextEmpty() local 330 return TextUtils.isEmpty(pref.getText()) in isEditTextEmpty() 331 || pref.getSummary().equals(getString(key.defaultSummary)); in isEditTextEmpty() 340 EditTextPreference pref = (EditTextPreference) p; in validateAndSetResult() local 348 pref.setText(getDefaultDisplayName()); in validateAndSetResult() 355 pref.setText(getString(R.string.default_port)); in validateAndSetResult() 359 firstEmptyFieldTitle = pref.getTitle(); in validateAndSetResult() 445 public boolean onPreferenceChange(Preference pref, Object newValue) { in onPreferenceChange() argument 450 if (pref instanceof CheckBoxPreference) { in onPreferenceChange() 456 pref.setSummary(getPreferenceKey(pref).defaultSummary); in onPreferenceChange() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsPowerRoleControllerTest.java | 107 SwitchPreference pref = getPreference(); in displayRefresh_sink_shouldUncheck() local 108 assertThat(pref.isChecked()).isFalse(); in displayRefresh_sink_shouldUncheck() 119 SwitchPreference pref = getPreference(); in displayRefresh_source_shouldCheck() local 120 assertThat(pref.isChecked()).isTrue(); in displayRefresh_source_shouldCheck() 153 SwitchPreference pref = getPreference(); in onClick_sink_shouldSetSource() local 154 pref.performClick(); in onClick_sink_shouldSetSource() 157 assertThat(pref.getSummary()) in onClick_sink_shouldSetSource() 166 SwitchPreference pref = getPreference(); in onClickTwice_sink_shouldSetSourceOnce() local 167 pref.performClick(); in onClickTwice_sink_shouldSetSourceOnce() 169 assertThat(pref.getSummary()) in onClickTwice_sink_shouldSetSourceOnce() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceControllerTest.java | 217 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_providerLabelShouldBeSet() local 218 assertThat(pref.getTitle()).isEqualTo("label"); in refreshUi_providerLabelShouldBeSet() 232 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked() local 233 assertThat(pref.isChecked()).isFalse(); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked() 247 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked() local 248 assertThat(pref.isChecked()).isTrue(); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked() 262 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked() local 263 assertThat(pref.isChecked()).isTrue(); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked() 276 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncDisabled_summaryShouldBeSet() local 277 assertThat(pref.getSummary()).isEqualTo(mContext.getString(R.string.sync_disabled)); in refreshUi_syncDisabled_summaryShouldBeSet() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
D | AllAppPermissionsFragment.java | 173 PreferenceGroup pref = findOrCreate(group != null ? group : perm, pm, prefs); in updateUi() local 174 pref.addPreference(getPreference(perm, group)); in updateUi() 218 PreferenceGroup pref = (PreferenceGroup) findPreference(group.name); in findOrCreate() local 219 if (pref == null) { in findOrCreate() 220 pref = new PreferenceCategory(getActivity()); in findOrCreate() 221 pref.setKey(group.name); in findOrCreate() 222 pref.setLayoutResource(R.layout.preference_category_material); in findOrCreate() 223 pref.setTitle(group.loadLabel(pm)); in findOrCreate() 224 prefs.add(pref); in findOrCreate() 225 getPreferenceScreen().addPreference(pref); in findOrCreate() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | RecentConversationsPreferenceController.java | 76 LayoutPreference pref = new LayoutPreference( in getClearAll() local 78 pref.setOrder(1); in getClearAll() 79 Button button = pref.findViewById(R.id.conversation_settings_clear_recents); in getClearAll() 100 return pref; in getClearAll() 105 PreferenceCategory pref = (PreferenceCategory) preference; in updateState() local 114 populateList(mConversations, pref); in updateState() 149 RecentConversationPreference pref = in populateConversations() local 151 containerGroup.addPreference(pref); in populateConversations() 152 if (pref.hasClearListener()) { in populateConversations() 164 RecentConversationPreference pref = new RecentConversationPreference(mContext); in createConversationPref() local [all …]
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | DashboardFeatureProviderImpl.java | 126 boolean forceRoundedIcon, int sourceMetricsCategory, Preference pref, Tile tile, in bindPreferenceToTileAndGetObservers() argument 128 if (pref == null) { in bindPreferenceToTileAndGetObservers() 132 pref.setKey(key); in bindPreferenceToTileAndGetObservers() 134 pref.setKey(getDashboardKeyForTile(tile)); in bindPreferenceToTileAndGetObservers() 137 DynamicDataObserver observer = bindTitleAndGetObserver(pref, tile); in bindPreferenceToTileAndGetObservers() 141 observer = bindSummaryAndGetObserver(pref, tile); in bindPreferenceToTileAndGetObservers() 145 observer = bindSwitchAndGetObserver(pref, tile); in bindPreferenceToTileAndGetObservers() 149 bindIcon(pref, tile, forceRoundedIcon); in bindPreferenceToTileAndGetObservers() 160 pref.setFragment(clsName); in bindPreferenceToTileAndGetObservers() 168 pref.setOnPreferenceClickListener(preference -> { in bindPreferenceToTileAndGetObservers() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | CdmaCallForwardOptions.java | 155 CallForwardEditPreference pref = mPreferences.get(mInitIndex); in onResume() local 156 pref.init(this, mPhone, mReplaceInvalidCFNumbers, mCallForwardByUssd); in onResume() 157 pref.startCallForwardOptionsQuery(); in onResume() 162 for (CallForwardEditPreference pref : mPreferences) { in onResume() 163 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume() 164 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume() 165 pref.setEnabled(bundle.getBoolean(KEY_ENABLE)); in onResume() 169 pref.init(this, mPhone, mReplaceInvalidCFNumbers, mCallForwardByUssd); in onResume() 170 pref.restoreCallForwardInfo(cf); in onResume() 182 for (CallForwardEditPreference pref : mPreferences) { in onSaveInstanceState() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | BaseSettingsFragment.java | 47 Preference pref) { in onPreferenceStartFragment() argument 48 if (pref.getFragment() != null) { in onPreferenceStartFragment() 49 if (pref instanceof SlicePreference) { in onPreferenceStartFragment() 50 SlicePreference slicePref = (SlicePreference) pref; in onPreferenceStartFragment() 54 Bundle b = pref.getExtras(); in onPreferenceStartFragment() 60 Fragment.instantiate(getActivity(), pref.getFragment(), pref.getExtras()); in onPreferenceStartFragment() 86 PreferenceScreen pref) { in onPreferenceStartScreen() argument 100 Preference pref) { in onPreferenceDisplayDialog() argument 102 if (pref instanceof LeanbackPickerDialogPreference) { in onPreferenceDisplayDialog() 104 pref; in onPreferenceDisplayDialog() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeAllBypassingAppsPreferenceController.java | 130 Preference pref = mPreferenceCategory.findPreference(key); in updateAppList() local 131 if (pref == null) { in updateAppList() 132 pref = new AppPreference(mPrefContext); in updateAppList() 133 pref.setKey(key); in updateAppList() 134 pref.setOnPreferenceClickListener(preference -> { in updateAppList() 149 pref.setTitle(BidiFormatter.getInstance().unicodeWrap(app.label)); in updateAppList() 150 pref.setIcon(app.icon); in updateAppList() 152 pref.setSummary(R.string.zen_mode_bypassing_apps_summary_some); in updateAppList() 154 pref.setSummary(R.string.zen_mode_bypassing_apps_summary_all); in updateAppList() 157 appsBypassingDnd.add(pref); in updateAppList() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 364 for (Preference pref : updates) { in setShownPreferences() 365 vpnGroup.addPreference(pref); in setShownPreferences() 372 LegacyVpnPreference pref = (LegacyVpnPreference) preference; in onPreferenceClick() local 373 VpnProfile profile = pref.getProfile(); in onPreferenceClick() 386 AppPreference pref = (AppPreference) preference; in onPreferenceClick() local 387 boolean connected = (pref.getState() == AppPreference.STATE_CONNECTED); in onPreferenceClick() 391 UserHandle user = UserHandle.of(pref.getUserId()); in onPreferenceClick() 395 Intent appIntent = pm.getLaunchIntentForPackage(pref.getPackageName()); in onPreferenceClick() 401 Log.w(LOG_TAG, "VPN provider does not exist: " + pref.getPackageName(), nnfe); in onPreferenceClick() 406 PackageInfo pkgInfo = pref.getPackageInfo(); in onPreferenceClick() [all …]
|