Home
last modified time | relevance | path

Searched refs:mLayoutPreference (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java90 private LayoutPreference mLayoutPreference; field in AdvancedBluetoothDetailsHeaderControllerTest
100 mLayoutPreference = new LayoutPreference(mContext, in setUp()
102 mController.mLayoutPreference = mLayoutPreference; in setUp()
133 assertThat(mLayoutPreference.findViewById(R.id.layout_left).getVisibility()).isEqualTo( in refresh_connectedWatch_behaveAsExpected()
135 assertThat(mLayoutPreference.findViewById(R.id.layout_right).getVisibility()).isEqualTo( in refresh_connectedWatch_behaveAsExpected()
137 assertThat(mLayoutPreference.findViewById(R.id.layout_middle).getVisibility()).isEqualTo( in refresh_connectedWatch_behaveAsExpected()
158 assertThat(mLayoutPreference.findViewById(R.id.layout_left).getVisibility()).isEqualTo( in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
160 assertThat(mLayoutPreference.findViewById(R.id.layout_right).getVisibility()).isEqualTo( in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
162 assertThat(mLayoutPreference.findViewById(R.id.layout_middle).getVisibility()).isEqualTo( in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
164 assertThat(mLayoutPreference.findViewById(R.id.layout_middle) in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DStylusUsiHeaderControllerTest.java53 private LayoutPreference mLayoutPreference; field in StylusUsiHeaderControllerTest
80 mLayoutPreference = new LayoutPreference(mContext, in setUp()
82 mLayoutPreference.setKey(mController.getPreferenceKey()); in setUp()
85 mScreen.addPreference(mLayoutPreference); in setUp()
110 assertThat(((TextView) mLayoutPreference.findViewById( in displayPreference_showsCorrectTitle()
119 assertThat(mLayoutPreference.findViewById( in displayPreference_hasBattery_showsCorrectBatterySummary()
121 assertThat(((TextView) mLayoutPreference.findViewById( in displayPreference_hasBattery_showsCorrectBatterySummary()
132 assertThat(mLayoutPreference.findViewById( in displayPreference_noBattery_showsEmptySummary()
142 assertThat(mLayoutPreference.findViewById( in displayPreference_invalidCapacity_showsEmptySummary()
154 assertThat(((TextView) mLayoutPreference.findViewById( in onBatteryStateChanged_updatesSummary()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothFindBroadcastsHeaderController.java48 LayoutPreference mLayoutPreference; field in BluetoothFindBroadcastsHeaderController
66 mLayoutPreference = screen.findPreference(KEY_BROADCAST_HEADER); in init()
74 if (mLayoutPreference == null || mCachedDevice == null) { in refresh()
78 mTitle = mLayoutPreference.findViewById(R.id.entity_header_title); in refresh()
80 mSummary = mLayoutPreference.findViewById(R.id.entity_header_summary); in refresh()
83 mBtnFindBroadcast = mLayoutPreference.findViewById(R.id.button_find_broadcast); in refresh()
85 mBtnBroadcastLayout = mLayoutPreference.findViewById(R.id.button_broadcast_layout); in refresh()
86 mBtnLeaveBroadcast = mLayoutPreference.findViewById(R.id.button_leave_broadcast); in refresh()
88 mBtnScanQrCode = mLayoutPreference.findViewById(R.id.button_scan_qr_code); in refresh()
DLeAudioBluetoothDetailsHeaderController.java90 LayoutPreference mLayoutPreference; field in LeAudioBluetoothDetailsHeaderController
121 mLayoutPreference = screen.findPreference(getPreferenceKey()); in displayPreference()
122 mLayoutPreference.setVisible(isAvailable()); in displayPreference()
163 if (mLayoutPreference == null || mCachedDevice == null) { in refresh()
166 final ImageView imageView = mLayoutPreference.findViewById(R.id.entity_header_icon); in refresh()
174 final TextView title = mLayoutPreference.findViewById(R.id.entity_header_title); in refresh()
178 final TextView summary = mLayoutPreference.findViewById(R.id.entity_header_summary); in refresh()
240 final TextView summary = mLayoutPreference.findViewById(R.id.entity_header_summary); in updateBatteryLayout()
262 final TextView summary = mLayoutPreference.findViewById(R.id.entity_header_summary); in updateBatteryLayout()
277 final View batteryView = mLayoutPreference.findViewById(resId); in updateBatteryLayout()
DAdvancedBluetoothDetailsHeaderController.java99 LayoutPreference mLayoutPreference; field in AdvancedBluetoothDetailsHeaderController
142 mLayoutPreference = screen.findPreference(getPreferenceKey()); in displayPreference()
143 mLayoutPreference.setVisible(isAvailable()); in displayPreference()
244 if (mLayoutPreference != null && mCachedDevice != null) { in refresh()
267 mLayoutPreference.findViewById(R.id.entity_header_title); in refresh()
270 mLayoutPreference.findViewById(R.id.entity_header_summary); in refresh()
280 mLayoutPreference.findViewById(R.id.layout_left), in refresh()
289 mLayoutPreference.findViewById(R.id.layout_middle), in refresh()
298 mLayoutPreference.findViewById(R.id.layout_right), in refresh()
308 mLayoutPreference in refresh()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DRecentLocationAccessPreferenceControllerTest.java61 private PreferenceCategory mLayoutPreference; field in RecentLocationAccessPreferenceControllerTest
84 when(mScreen.findPreference(key)).thenReturn(mLayoutPreference); in setUp()
85 when(mLayoutPreference.getKey()).thenReturn(key); in setUp()
86 when(mLayoutPreference.getContext()).thenReturn(mContext); in setUp()
106 mController.updateState(mLayoutPreference); in updateState_whenAppListIsEmpty_shouldDisplayTitleTextAndDetailsText()
126 mController.updateState(mLayoutPreference); in updateState_showSystemAccess()
127 verify(mLayoutPreference).addPreference(Mockito.any()); in updateState_showSystemAccess()
131 verify(mLayoutPreference, Mockito.times(1)).addPreference(Mockito.any()); in updateState_showSystemAccess()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DToggleAutoclickCustomSeekbarControllerTest.java68 private LayoutPreference mLayoutPreference; field in ToggleAutoclickCustomSeekbarControllerTest
86 doReturn(mLayoutPreference).when(mScreen).findPreference(KEY_CUSTOM_SEEKBAR); in setUp()
87 doReturn(mSeekBar).when(mLayoutPreference).findViewById(R.id.autoclick_delay); in setUp()
88 doReturn(mDelayLabel).when(mLayoutPreference).findViewById(R.id.current_label); in setUp()
89 doReturn(mShorter).when(mLayoutPreference).findViewById(R.id.shorter); in setUp()
90 doReturn(mLonger).when(mLayoutPreference).findViewById(R.id.longer); in setUp()
DCaptioningPreviewPreferenceControllerTest.java58 private LayoutPreference mLayoutPreference; field in CaptioningPreviewPreferenceControllerTest
66 mLayoutPreference = new LayoutPreference(mContext, view); in setUp()
67 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mLayoutPreference); in setUp()
/packages/apps/Settings/src/com/android/settings/display/
DContrastSelectorPreferenceController.java70 final LayoutPreference mLayoutPreference = in displayPreference() local
75 mLayoutPreference.findViewById(R.id.contrast_button_default)), in displayPreference()
77 mLayoutPreference.findViewById(R.id.contrast_button_medium)), in displayPreference()
79 mLayoutPreference.findViewById(R.id.contrast_button_high)) in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DContrastSelectorPreferenceControllerTest.java62 private LayoutPreference mLayoutPreference; field in ContrastSelectorPreferenceControllerTest
74 when(mScreen.findPreference(PREFERENCE_KEY)).thenReturn(mLayoutPreference); in setUp()
75 when(mLayoutPreference.findViewById(anyInt())).thenReturn(mLinearLayout); in setUp()