Searched refs:mUsiPreference (Results 1 – 2 of 2) sorted by relevance
66 Preference mUsiPreference; field in StylusDeviceUpdater162 if (mUsiPreference == null) { in addOrUpdateUsiPreference()163 mUsiPreference = new Preference(mContext); in addOrUpdateUsiPreference()164 mDevicePreferenceCallback.onDeviceAdded(mUsiPreference); in addOrUpdateUsiPreference()166 mUsiPreference.setKey(PREF_KEY); in addOrUpdateUsiPreference()167 mUsiPreference.setTitle(R.string.stylus_connected_devices_title); in addOrUpdateUsiPreference()168 mUsiPreference.setIcon(R.drawable.ic_stylus); in addOrUpdateUsiPreference()169 mUsiPreference.setOnPreferenceClickListener((Preference p) -> { in addOrUpdateUsiPreference()177 if (mUsiPreference != null) { in removeUsiPreference()178 mDevicePreferenceCallback.onDeviceRemoved(mUsiPreference); in removeUsiPreference()[all …]
155 mStylusDeviceUpdater.mUsiPreference.performClick(); in click_usiPreference_launchUsiDetailsPage()157 assertThat(mStylusDeviceUpdater.mUsiPreference.getTitle().toString()).isEqualTo( in click_usiPreference_launchUsiDetailsPage()171 assertThat(mStylusDeviceUpdater.mUsiPreference).isNotNull(); in forceUpdate_addsUsiPreference_validUsiDevice()181 assertThat(mStylusDeviceUpdater.mUsiPreference).isNull(); in forceUpdate_doesNotAddPreference_invalidUsiDevice()194 assertThat(mStylusDeviceUpdater.mUsiPreference).isNull(); in forceUpdate_removesUsiPreference_existingPreference_invalidUsiDevice()204 assertThat(mStylusDeviceUpdater.mUsiPreference).isNull(); in forceUpdate_doesNotAddUsiPreference_bluetoothStylusConnected()216 assertThat(mStylusDeviceUpdater.mUsiPreference).isNotNull(); in forceUpdate_addsUsiPreference_bluetoothStylusDisconnected()228 assertThat(mStylusDeviceUpdater.mUsiPreference).isNull(); in forceUpdate_removesUsiPreference_existingPreference_bluetoothStylusConnected()