Home
last modified time | relevance | path

Searched refs:mPref (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionPreferenceTest.java57 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/widget/
DDisabledCheckBoxPreferenceTest.java47 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/
DImportantNoticeUtilsTests.java53 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/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorage.java71 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/
DUrisSupplierTest.java57 private SharedPreferences mPref; field in UrisSupplierTest
66 mPref = InstrumentationRegistry.getInstrumentation().getTargetContext() in setUp()
68 mStorage = new ClipStorage(folder.getRoot(), mPref); in setUp()
DClipStorageTest.java60 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/
DZenRulePreference.java46 final Preference mPref; field in ZenRulePreference
73 mPref = this; in ZenRulePreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenRulePreference.java46 final Preference mPref; field in ZenRulePreference
73 mPref = this; in ZenRulePreference()