/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | BarChartPreferenceTest.java | 55 private BarChartPreference mPreference; field in BarChartPreferenceTest 63 mPreference = new BarChartPreference(mContext, null /* attrs */); in setUp() 88 mPreference.initializeBarChart(barChartInfo); in initializeBarChart_titleSet_shouldSetTitleInChartView() 89 mPreference.onBindViewHolder(mHolder); in initializeBarChart_titleSet_shouldSetTitleInChartView() 102 mPreference.initializeBarChart(barChartInfo); in initializeBarChart_noBarViewSet_shouldShowTitleAndEmptyView() 104 mPreference.onBindViewHolder(mHolder); in initializeBarChart_noBarViewSet_shouldShowTitleAndEmptyView() 124 mPreference.initializeBarChart(barChartInfo); in initializeBarChart_detailsSet_shouldShowBarChartDetailsView() 125 mPreference.onBindViewHolder(mHolder); in initializeBarChart_detailsSet_shouldShowBarChartDetailsView() 142 mPreference.initializeBarChart(barChartInfo); in initializeBarChart_detailsNotSet_shouldHideBarChartDetailsView() 143 mPreference.onBindViewHolder(mHolder); in initializeBarChart_detailsNotSet_shouldHideBarChartDetailsView() [all …]
|
D | LayoutPreferenceTest.java | 39 private LayoutPreference mPreference; field in LayoutPreferenceTest 45 mPreference = new LayoutPreference(mContext, R.layout.settings_entity_header); in setUp() 54 mPreference.setOnPreferenceClickListener(listener); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent() 55 mPreference.onBindViewHolder(mHolder); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent() 59 verify(listener).onPreferenceClick(mPreference); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent() 66 mPreference.setSelectable(false); in setNonSelectable_viewShouldNotBeSelectable() 67 mPreference.onBindViewHolder(mHolder); in setNonSelectable_viewShouldNotBeSelectable() 75 mPreference.findViewById(android.R.id.button1).setEnabled(false); in disableSomeView_shouldMaintainStateAfterBind() 76 mPreference.findViewById(android.R.id.button2).setEnabled(true); in disableSomeView_shouldMaintainStateAfterBind() 78 mPreference.onBindViewHolder(mHolder); in disableSomeView_shouldMaintainStateAfterBind() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
D | EnableAdbPreferenceControllerTest.java | 54 private SwitchPreference mPreference; field in EnableAdbPreferenceControllerTest 65 mPreference = new SwitchPreference(mContext); in setUp() 66 mPreference.setKey(mController.getPreferenceKey()); in setUp() 67 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp() 76 assertThat(mPreference.isVisible()).isFalse(); in displayPreference_isNotAdmin_shouldRemovePreference() 85 assertThat(mPreference.isVisible()).isTrue(); in displayPreference_isAdmin_shouldNotRemovePreference() 92 mPreference.setChecked(true); in resetPreference_shouldUncheck() 96 assertThat(mPreference.isChecked()).isFalse(); in resetPreference_shouldUncheck() 104 mPreference.setChecked(true); in handlePreferenceTreeClick_shouldUpdateSettings() 107 mController.handlePreferenceTreeClick(mPreference); in handlePreferenceTreeClick_shouldUpdateSettings() [all …]
|
D | DeveloperOptionsPreferenceControllerTest.java | 39 private Preference mPreference; field in DeveloperOptionsPreferenceControllerTest 49 doReturn(mPreference).when(mPreferenceScreen).findPreference(TEST_KEY); in setUp() 57 verify(mPreference).setEnabled(true); in onDeveloperOptionsEnabled_shouldEnablePreference() 64 verify(mPreference).setEnabled(false); in onDeveloperOptionsDisabled_shouldDisablePreference()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/ |
D | AbstractPreferenceControllerTest.java | 44 private Preference mPreference; field in AbstractPreferenceControllerTest 51 mPreference = new Preference(mContext); in setUp() 52 mPreference.setKey(KEY_PREF); in setUp() 53 when(mScreen.findPreference(KEY_PREF)).thenReturn(mPreference); in setUp() 63 assertThat(mPreference.isVisible()).isTrue(); in displayPref_ifAvailable() 72 assertThat(mPreference.isVisible()).isTrue(); in displayPref_noKey_shouldDoNothing() 79 assertThat(mPreference.isVisible()).isTrue(); in setVisible_prefIsVisible_shouldSetToVisible() 86 assertThat(mPreference.isVisible()).isFalse(); in setVisible_prefNotVisible_shouldSetToInvisible() 95 assertThat(mPreference.isVisible()).isFalse(); in doNotDisplayPref_ifNotAvailable() 100 mTestPrefController.updateState(mPreference); in updateState_hasSummary_shouldSetSummary() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | TwoTargetPreferenceTest.java | 49 private TwoTargetPreference mPreference; field in TwoTargetPreferenceTest 56 mPreference = spy(new TwoTargetPreference(mContext)); in setUp() 66 assertThat(mPreference.shouldHideSecondTarget()).isTrue(); in bind_noSecondTarget_shouldNotDrawDivider() 68 mPreference.onBindViewHolder(mViewHolder); in bind_noSecondTarget_shouldNotDrawDivider() 76 doReturn(false).when(mPreference).shouldHideSecondTarget(); in bind_hasSecondTarget_shouldNotDrawDivider() 78 mPreference.onBindViewHolder(mViewHolder); in bind_hasSecondTarget_shouldNotDrawDivider() 86 mPreference.setIconSize(ICON_SIZE_SMALL); in bind_smallIcon_shouldUseSmallIconSize() 88 mPreference.onBindViewHolder(mViewHolder); in bind_smallIcon_shouldUseSmallIconSize() 102 mPreference.setIconSize(ICON_SIZE_MEDIUM); in bind_mediumIcon_shouldUseMediumIconSize() 104 mPreference.onBindViewHolder(mViewHolder); in bind_mediumIcon_shouldUseMediumIconSize() [all …]
|
D | CustomEditTextPreferenceTest.java | 43 private TestPreference mPreference; field in CustomEditTextPreferenceTest 48 mPreference = new TestPreference(RuntimeEnvironment.application); in setUp() 58 mPreference.onBindDialogView(mView); in bindDialogView_shouldRequestFocus() 65 ReflectionHelpers.setField(mPreference, "mFragment", in getEditText_noDialog_shouldNotCrash() 68 mPreference.getEditText(); in getEditText_noDialog_shouldNotCrash()
|
D | CustomEditTextPreferenceComaptTest.java | 43 private TestPreference mPreference; field in CustomEditTextPreferenceComaptTest 48 mPreference = new TestPreference(RuntimeEnvironment.application); in setUp() 58 mPreference.onBindDialogView(mView); in bindDialogView_shouldRequestFocus() 65 ReflectionHelpers.setField(mPreference, "mFragment", in getEditText_noDialog_shouldNotCrash() 68 mPreference.getEditText(); in getEditText_noDialog_shouldNotCrash()
|
D | RestrictedPreferenceHelperTest.java | 45 private Preference mPreference; field in RestrictedPreferenceHelperTest 54 mHelper = new RestrictedPreferenceHelper(mContext, mPreference, null); in setUp()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
D | SerialNumberPreferenceControllerTest.java | 43 private Preference mPreference; field in SerialNumberPreferenceControllerTest 50 mPreference = new Preference(mContext); in setUp() 51 mPreference.setKey(AbstractSerialNumberPreferenceController.KEY_SERIAL_NUMBER); in setUp() 52 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp() 75 assertThat(mPreference.isVisible()).isFalse(); in testDisplay_noSerial_shouldHidePreference() 85 assertThat(mPreference.isVisible()).isTrue(); in testDisplay_hasSerial_shouldSetSummary() 86 assertThat(mPreference.getSummary()).isEqualTo(serial); in testDisplay_hasSerial_shouldSetSummary()
|
D | UptimePreferenceControllerTest.java | 50 private Preference mPreference; field in UptimePreferenceControllerTest 55 doReturn(mPreference).when(mScreen) in setUp() 67 verify(mPreference).setSummary( in testDisplayPreference() 78 verify(mPreference, times(1)).setSummary(any(CharSequence.class)); in testUptimeTick() 82 verify(mPreference, times(2)).setSummary(any(CharSequence.class)); in testUptimeTick() 86 verify(mPreference, times(3)).setSummary(any(CharSequence.class)); in testUptimeTick() 90 verify(mPreference, times(4)).setSummary(any(CharSequence.class)); in testUptimeTick()
|
D | WifiMacAddressPreferenceControllerTest.java | 62 private Preference mPreference; field in WifiMacAddressPreferenceControllerTest 71 mPreference = new Preference(mContext); in setUp() 73 doReturn(mPreference).when(mScreen) in setUp() 98 assertThat(mPreference.getSummary()) in updateConnectivity_null_setMacUnavailable() 107 assertThat(mPreference.getSummary()).isEqualTo(TEST_MAC_ADDRESS); in updateConnectivity_validMac_setValidMac()
|
D | IpAddressPreferenceControllerTest.java | 51 private Preference mPreference; field in IpAddressPreferenceControllerTest 56 doReturn(mPreference).when(mScreen) in setUp()
|
D | BluetoothAddressPreferenceControllerTest.java | 50 private Preference mPreference; field in BluetoothAddressPreferenceControllerTest 55 doReturn(mPreference).when(mScreen) in setUp()
|
D | ImsStatusPreferenceControllerTest.java | 51 private Preference mPreference; field in ImsStatusPreferenceControllerTest 56 doReturn(mPreference).when(mScreen) in setUp()
|
/frameworks/base/core/tests/coretests/src/android/preference/ |
D | PreferenceIconSpaceTest.java | 43 private TestPreference mPreference; field in PreferenceIconSpaceTest 60 mPreference = new TestPreference(InstrumentationRegistry.getTargetContext()); in setUp() 65 mPreference.setIconSpaceReserved(true); in bindView_iconSpaceReserved_shouldReserveIconSpace() 66 mPreference.bindView(mViewGroup); in bindView_iconSpaceReserved_shouldReserveIconSpace() 74 mPreference.setIconSpaceReserved(false); in bindView_iconSpaceNotReserved_shouldNotReserveIconSpace() 75 mPreference.bindView(mViewGroup); in bindView_iconSpaceNotReserved_shouldNotReserveIconSpace() 83 mPreference.setIcon(new ColorDrawable(Color.BLACK)); in bindView_hasIcon_shouldDisplayIcon() 84 mPreference.bindView(mViewGroup); in bindView_hasIcon_shouldDisplayIcon()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/ |
D | AbstractEnableAdbPreferenceController.java | 47 protected SwitchPreference mPreference; field in AbstractEnableAdbPreferenceController 57 mPreference = (SwitchPreference) screen.findPreference(KEY_ENABLE_ADB); in displayPreference() 84 mPreference.setEnabled(enabled); in enablePreference() 89 if (mPreference.isChecked()) { in resetPreference() 90 mPreference.setChecked(false); in resetPreference() 91 handlePreferenceTreeClick(mPreference); in resetPreference()
|
D | DeveloperOptionsPreferenceController.java | 34 protected Preference mPreference; field in DeveloperOptionsPreferenceController 53 mPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 78 mPreference.setEnabled(true); in onDeveloperOptionsSwitchEnabled() 85 mPreference.setEnabled(false); in onDeveloperOptionsSwitchDisabled()
|
/frameworks/ml/nn/runtime/ |
D | CompilationBuilder.cpp | 66 int n = mModel->partitionTheWork(mDevices, mPreference, mPriority, deadline, &mPlan); in finish() 99 return mPlan.finish(mPreference, mPriority, deadline); in finish() 113 mPreference = preference; in setPreference() 207 mPlan.makeBursts(mPreference); in createBurst()
|
D | CompilationBuilder.h | 79 int32_t mPreference = ANEURALNETWORKS_PREFER_FAST_SINGLE_ANSWER; variable
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedPreferenceHelper.java | 38 private final Preference mPreference; field in RestrictedPreferenceHelper 48 mPreference = preference; in RestrictedPreferenceHelper() 156 mPreference.setEnabled(!disabled); in setDisabledByAdmin()
|