/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | MultiActionPreferenceTest.java | 52 private MultiActionPreference mPref; field in MultiActionPreferenceTest 78 mPref = new MultiActionPreference(mContext); in onBindViewHolder_actionItemsNullByDefault() 79 mPref.onBindViewHolder(mHolder); in onBindViewHolder_actionItemsNullByDefault() 81 assertThat(mPref.getActionItem(MultiActionPreference.ActionItem.ACTION_ITEM1)) in onBindViewHolder_actionItemsNullByDefault() 83 assertThat(mPref.getActionItem(MultiActionPreference.ActionItem.ACTION_ITEM2)) in onBindViewHolder_actionItemsNullByDefault() 85 assertThat(mPref.getActionItem(MultiActionPreference.ActionItem.ACTION_ITEM3)) in onBindViewHolder_actionItemsNullByDefault() 104 mPref = new MultiActionPreference(mContext); in onBindViewHolder_toggleButtons_attributesVisible() 105 mPref.onBindViewHolder(mHolder); in onBindViewHolder_toggleButtons_attributesVisible() 107 assertThat(mPref.getActionItem(MultiActionPreference.ActionItem.ACTION_ITEM1) in onBindViewHolder_toggleButtons_attributesVisible() 109 assertThat(mPref.getActionItem(MultiActionPreference.ActionItem.ACTION_ITEM2) in onBindViewHolder_toggleButtons_attributesVisible() [all …]
|
D | ActionButtonsPreferenceTest.java | 58 private ActionButtonsPreference mPref; field in ActionButtonsPreferenceTest 66 mPref = new ActionButtonsPreference(mContext); in setUp() 80 mPref.getButton(ActionButtons.BUTTON1).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault() 81 mPref.getButton(ActionButtons.BUTTON2).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault() 82 mPref.getButton(ActionButtons.BUTTON3).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault() 83 mPref.getButton(ActionButtons.BUTTON4).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault() 85 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setTitle_shouldShowButtonByDefault() 99 mPref.getButton(ActionButtons.BUTTON1).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault() 100 mPref.getButton(ActionButtons.BUTTON2).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault() 101 mPref.getButton(ActionButtons.BUTTON3).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault() [all …]
|
D | ColoredTwoActionSwitchPreferenceTest.java | 43 private ColoredTwoActionSwitchPreference mPref; field in ColoredTwoActionSwitchPreferenceTest 51 mPref = new ColoredTwoActionSwitchPreference(mContext); in setUp() 56 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetActionText_shouldNotBeVisible() 64 mPref.setActionText(ACTION_TEXT); in onBindViewHolder_setActionText_shouldBeVisible() 66 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setActionText_shouldBeVisible() 76 mPref.setSecondaryActionChecked(true); in setSecondaryActionChecked_setToTrue_switchSetToTrue() 78 mPref.onBindViewHolder(mHolder); in setSecondaryActionChecked_setToTrue_switchSetToTrue() 86 mPref.setIsWarning(true); in setIsWarning_setToTrue_yellowActionText() 87 mPref.setActionText(ACTION_TEXT); in setIsWarning_setToTrue_yellowActionText() 89 mPref.onBindViewHolder(mHolder); in setIsWarning_setToTrue_yellowActionText() [all …]
|
D | EntityHeaderPreferenceTest.java | 41 private EntityHeaderPreference mPref; field in EntityHeaderPreferenceTest 48 mPref = new EntityHeaderPreference(mContext); in setUp() 53 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetIcon_shouldNotBeVisible() 61 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetTitle_shouldNotBeVisible() 69 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetSummary_shouldNotBeVisible() 77 mPref.setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowIcon() 79 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setIcon_shouldShowIcon() 89 mPref.setTitle(mContext.getText(R.string.settings_label)); in onBindViewHolder_setLabel_shouldShowSameText() 91 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setLabel_shouldShowSameText() 101 mPref.setSummary(mContext.getText(R.string.settings_label)); in onBindViewHolder_setSummary_shouldShowSameText() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiEntryPreferenceTest.java | 92 WifiEntryPreference mPref; field in WifiEntryPreferenceTest 123 mPref = spy(new WifiEntryPreference(mContext, mMockWifiEntry, mMockIconInjector)); in setUp() 150 mPref.setWifiEntry(mMockWifiEntry); in setWifiEntry_connectedStateChanged_setIconAndSummary() 152 verify(mPref).setIcon(any()); in setWifiEntry_connectedStateChanged_setIconAndSummary() 153 verify(mPref).setSummary(anyString()); in setWifiEntry_connectedStateChanged_setIconAndSummary() 157 reset(mPref); in setWifiEntry_connectedStateChanged_setIconAndSummary() 159 mPref.setWifiEntry(mMockWifiEntry); in setWifiEntry_connectedStateChanged_setIconAndSummary() 162 verify(mPref).setIcon(any()); in setWifiEntry_connectedStateChanged_setIconAndSummary() 163 verify(mPref).setSummary(anyString()); in setWifiEntry_connectedStateChanged_setIconAndSummary() 171 mPref.refresh(); in titleChanged_refresh_shouldUpdateTitle() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/ |
D | SuggestionPreferenceTest.java | 57 private SuggestionPreference mPref; field in SuggestionPreferenceTest 68 mPref = new SuggestionPreference(context, mSuggestion, mCallback); in setUp() 73 assertThat(mPref.getSuggestion()).isEqualTo(mSuggestion); in getSuggestion_returnsSuggestion() 86 mPref.updateSuggestion(updatedSuggestion); in updateSuggestion_updatesPreference() 88 assertThat(mPref.getSuggestion()).isEqualTo(updatedSuggestion); in updateSuggestion_updatesPreference() 89 assertThat(mPref.getIcon()).isEqualTo(iconDrawable); in updateSuggestion_updatesPreference() 90 assertThat(mPref.getTitle()).isEqualTo(title); in updateSuggestion_updatesPreference() 91 assertThat(mPref.getSummary()).isEqualTo(summary); in updateSuggestion_updatesPreference() 99 () -> mPref.updateSuggestion(updatedSuggestion)); in updateSuggestion_idMismatch_throwsIllegalArgumentException() 104 assertThat(mPref.getKey()).isEqualTo( in getKey_includesSuggestionId() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeVisEffectsCustomPreferenceControllerTest.java | 62 private SelectorWithWidgetPreference mPref; field in ZenModeVisEffectsCustomPreferenceControllerTest 84 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPref); in setup() 103 mController.updateState(mPref); in updateState_notChecked_noVisEffects() 105 verify(mPref).setChecked(false); in updateState_notChecked_noVisEffects() 120 mController.updateState(mPref); in updateState_notChecked_allVisEffects() 122 verify(mPref).setChecked(false); in updateState_notChecked_allVisEffects() 128 mController.updateState(mPref); in updateState_checked() 130 verify(mPref).setChecked(true); in updateState_checked() 136 mController.updateState(mPref); in updateState_listeners() 138 verify(mPref).setExtraWidgetOnClickListener(any()); in updateState_listeners() [all …]
|
D | ZenModeVisEffectsAllPreferenceControllerTest.java | 64 private SelectorWithWidgetPreference mPref; field in ZenModeVisEffectsAllPreferenceControllerTest 87 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPref); in setup() 99 mController.updateState(mPref); in updateState_notChecked() 101 verify(mPref).setChecked(false); in updateState_notChecked() 116 mController.updateState(mPref); in updateState_checked() 118 verify(mPref).setChecked(true); in updateState_checked() 133 mController.onRadioButtonClicked(mPref); in onPreferenceChanged_checkedTrue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | DisabledCheckBoxPreferenceTest.java | 47 private DisabledCheckBoxPreference mPref; field in DisabledCheckBoxPreferenceTest 55 mPref = new DisabledCheckBoxPreference(mContext); in setUp() 63 mPref.onBindViewHolder(mHolder); in inflatePreference() 76 mPref.setOnPreferenceClickListener(onClick); in checkboxOnClick_checkboxDisabled() 79 mPref.enableCheckbox(false); in checkboxOnClick_checkboxDisabled() 80 mPref.performClick(mRootView); in checkboxOnClick_checkboxDisabled() 89 mPref.setOnPreferenceClickListener(onClick); in checkboxOnClick_checkboxEnabled() 92 mPref.enableCheckbox(true); in checkboxOnClick_checkboxEnabled() 93 mPref.performClick(mRootView); in checkboxOnClick_checkboxEnabled()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | ImportantNoticeUtilsTests.java | 53 private final SharedPreferences mPref; field in ImportantNoticeUtilsTests.ImportantNoticePreferences 58 mPref = ImportantNoticeUtils.getImportantNoticePreferences(context); in ImportantNoticePreferences() 62 if (mPref.contains(key)) { in getInt() 63 return mPref.getInt(key, 0); in getInt() 69 if (mPref.contains(key)) { in getLong() 70 return mPref.getLong(key, 0); in getLong() 79 mPref.edit().putInt(key, value).apply(); in putInt() 87 mPref.edit().putLong(key, value).apply(); in putLong() 92 mPref.edit().remove(key).apply(); in removePreference()
|
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/ |
D | ProvisioningActivity.java | 75 private SharedPreferences mPref; field in ProvisioningActivity 132 mPref = getSharedPreferences(RCS_CONFIG, MODE_PRIVATE); in onCreate() 247 mPref.edit().putString(RCS_PROFILE, mRcsProfile) in initRcsProfile() 257 mRcsProfile = mPref.getString(RCS_PROFILE, UP_10); in initRcsProfile() 258 mRcsVersion = mPref.getString(RCS_VERSION, V_6); in initRcsProfile()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | ClipStorage.java | 71 private final SharedPreferences mPref; field in ClipStorage 82 mPref = pref; in ClipStorage() 84 mNextSlot = mPref.getInt(NEXT_AVAIL_SLOT, 0); in ClipStorage() 127 mPref.edit().putInt(NEXT_AVAIL_SLOT, mNextSlot).commit(); in claimStorageSlot()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/ |
D | UrisSupplierTest.java | 57 private SharedPreferences mPref; field in UrisSupplierTest 66 mPref = InstrumentationRegistry.getInstrumentation().getTargetContext() in setUp() 68 mStorage = new ClipStorage(folder.getRoot(), mPref); in setUp()
|
D | ClipStorageTest.java | 60 private SharedPreferences mPref; field in ClipStorageTest 68 mPref = InstrumentationRegistry.getInstrumentation().getTargetContext() in setUp() 71 mStorage = new ClipStorage(clipDir, mPref); in setUp()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenRulePreference.java | 50 final Preference mPref; field in ZenRulePreference 78 mPref = this; in ZenRulePreference()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/ |
D | TwoPanelSettingsFragment.java | 528 private final Preference mPref; field in TwoPanelSettingsFragment.PostShowPreviewRunnable 535 this.mPref = pref; in PostShowPreviewRunnable() 542 if (mPref == mFocusedPreference) { in run() 547 handleFragmentTransactionWhenFocused(mPref, mForceFresh, mPanelIndex); in run()
|