Home
last modified time | relevance | path

Searched refs:mFragment (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragmentTest.java61 private TestFragment mFragment; field in DeviceListPreferenceFragmentTest
68 mFragment = spy(new TestFragment()); in setUp()
69 doReturn(mContext).when(mFragment).getContext(); in setUp()
70 doReturn(mResource).when(mFragment).getResources(); in setUp()
71 mFragment.mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp()
78 doReturn(FOOTAGE_MAC_STRING).when(mFragment) in setUpdateMyDevicePreference_setTitleCorrectly()
81 mFragment.updateFooterPreference(mMyDevicePreference); in setUpdateMyDevicePreference_setTitleCorrectly()
88 mFragment.enableScanning(); in testEnableDisableScanning_testStateAfterEanbleDisable()
89 verify(mFragment).startScanning(); in testEnableDisableScanning_testStateAfterEanbleDisable()
90 assertThat(mFragment.mScanEnabled).isTrue(); in testEnableDisableScanning_testStateAfterEanbleDisable()
[all …]
DBluetoothPairingDetailTest.java69 private BluetoothPairingDetail mFragment; field in BluetoothPairingDetailTest
82 mFragment = spy(new BluetoothPairingDetail()); in setUp()
83 doReturn(mContext).when(mFragment).getContext(); in setUp()
84 doReturn(mResource).when(mFragment).getResources(); in setUp()
92 mFragment.mBluetoothAdapter = mBluetoothAdapter; in setUp()
93 mFragment.mLocalManager = mLocalManager; in setUp()
94 mFragment.mDeviceListGroup = mPreferenceGroup; in setUp()
95 mFragment.mAlwaysDiscoverable = new AlwaysDiscoverable(mContext); in setUp()
100 doReturn(mAvailableDevicesCategory).when(mFragment) in initPreferencesFromPreferenceScreen_findPreferences()
102 doReturn(mFooterPreference).when(mFragment) in initPreferencesFromPreferenceScreen_findPreferences()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DAppDataUsageTest.java92 private AppDataUsage mFragment; field in AppDataUsageTest
106 mFragment = spy(new AppDataUsage()); in onCreate_appUid_shouldGetAppLabelFromAppInfo()
109 doReturn(activity).when(mFragment).getActivity(); in onCreate_appUid_shouldGetAppLabelFromAppInfo()
110 doReturn(RuntimeEnvironment.application).when(mFragment).getContext(); in onCreate_appUid_shouldGetAppLabelFromAppInfo()
111 ReflectionHelpers.setField(mFragment, "mDashboardFeatureProvider", in onCreate_appUid_shouldGetAppLabelFromAppInfo()
126 mFragment.setArguments(args); in onCreate_appUid_shouldGetAppLabelFromAppInfo()
128 mFragment.onCreate(Bundle.EMPTY); in onCreate_appUid_shouldGetAppLabelFromAppInfo()
130 assertThat(mFragment.mLabel).isEqualTo(label); in onCreate_appUid_shouldGetAppLabelFromAppInfo()
135 mFragment = spy(new AppDataUsage()); in onCreate_notAppUid_shouldGetAppLabelFromUidDetailProvider()
136 ReflectionHelpers.setField(mFragment, "mDashboardFeatureProvider", in onCreate_notAppUid_shouldGetAppLabelFromUidDetailProvider()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DStorageDashboardFragmentTest.java53 private StorageDashboardFragment mFragment; field in StorageDashboardFragmentTest
58 mFragment = new StorageDashboardFragment(); in setUp()
63 assertThat(mFragment.getCategoryKey()).isEqualTo(CategoryKey.CATEGORY_STORAGE); in testCategory_isConnectedDevice()
70 mFragment.initializeOptionsMenu(activity); in test_initializeOptionsMenuInvalidatesExistingMenu()
83 mFragment.setCachedStorageValuesHelper(helper); in test_cacheProviderProvidesValuesIfBothCached()
84 mFragment.initializeCachedValues(); in test_cacheProviderProvidesValuesIfBothCached()
86 assertThat(mFragment.getPrivateStorageInfo()).isEqualTo(info); in test_cacheProviderProvidesValuesIfBothCached()
87 assertThat(mFragment.getAppsStorageResult()).isEqualTo(result); in test_cacheProviderProvidesValuesIfBothCached()
96 mFragment.setCachedStorageValuesHelper(helper); in test_cacheProviderDoesntProvideValuesIfAppsMissing()
97 mFragment.initializeCachedValues(); in test_cacheProviderDoesntProvideValuesIfAppsMissing()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DManageApplicationsTest.java96 private ManageApplications mFragment; field in ManageApplicationsTest
109 mFragment = spy(new ManageApplications()); in setUp()
110 when(mFragment.getContext()).thenReturn(mContext); in setUp()
111 when(mFragment.getActivity()).thenReturn(mActivity); in setUp()
120 ReflectionHelpers.setField(mFragment, "mListType", LIST_TYPE_MAIN); in updateMenu_mainListType_showAppReset()
121 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_mainListType_showAppReset()
123 mFragment.updateOptionsMenu(); in updateMenu_mainListType_showAppReset()
130 ReflectionHelpers.setField(mFragment, "mListType", ManageApplications.LIST_TYPE_HIGH_POWER); in updateMenu_batteryListType_hideAppReset()
131 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_batteryListType_hideAppReset()
133 mFragment.updateOptionsMenu(); in updateMenu_batteryListType_hideAppReset()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java138 private TestFragment mFragment; field in PowerUsageSummaryTest
153 mFragment = spy(new TestFragment(mRealContext)); in setUp()
154 mFragment.initFeatureProvider(); in setUp()
157 doNothing().when(mFragment).restartBatteryStatsLoader(anyInt()); in setUp()
158 doReturn(mock(LoaderManager.class)).when(mFragment).getLoaderManager(); in setUp()
161 when(mFragment.getActivity()).thenReturn(mSettingsActivity); in setUp()
179 mFragment.setBatteryLayoutPreference(mBatteryLayoutPref); in setUp()
189 mFragment.mStatsHelper = mBatteryHelper; in setUp()
191 mFragment.mScreenUsagePref = mScreenUsagePref; in setUp()
192 mFragment.mLastFullChargePref = mLastFullChargePref; in setUp()
[all …]
DAdvancedPowerUsageDetailTest.java135 private AdvancedPowerUsageDetail mFragment; field in AdvancedPowerUsageDetailTest
145 mFragment = spy(new AdvancedPowerUsageDetail()); in setUp()
146 doReturn(mContext).when(mFragment).getContext(); in setUp()
147 doReturn(mActivity).when(mFragment).getActivity(); in setUp()
148 doReturn(SUMMARY).when(mFragment).getString(anyInt()); in setUp()
150 when(mFragment.getArguments()).thenReturn(mBundle); in setUp()
151 doReturn(mLoaderManager).when(mFragment).getLoaderManager(); in setUp()
185 mFragment.mHeaderPreference = mHeaderPreference; in setUp()
186 mFragment.mState = mState; in setUp()
187 mFragment.mBatteryUtils = new BatteryUtils(RuntimeEnvironment.application); in setUp()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsForSubTest.java82 private TestFragment mFragment; field in WifiCallingSettingsForSubTest
109 mFragment = spy(new TestFragment()); in setUp()
110 doReturn(mActivity).when(mFragment).getActivity(); in setUp()
111 doReturn(mContext).when(mFragment).getContext(); in setUp()
113 doReturn(mContext.getResources()).when(mFragment).getResources(); in setUp()
114 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in setUp()
117 when(mFragment.getArguments()).thenReturn(bundle); in setUp()
118 doNothing().when(mFragment).addPreferencesFromResource(anyInt()); in setUp()
119 doReturn(mock(ListWithEntrySummaryPreference.class)).when(mFragment).findPreference(any()); in setUp()
120 doReturn(mButtonWfcMode).when(mFragment).findPreference(BUTTON_WFC_MODE); in setUp()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java90 private AppInfoDashboardFragment mFragment; field in AppInfoDashboardFragmentTest
97 mFragment = spy(new AppInfoDashboardFragment()); in setUp()
98 doReturn(mActivity).when(mFragment).getActivity(); in setUp()
99 doReturn(mShadowContext).when(mFragment).getContext(); in setUp()
103 ReflectionHelpers.setField(mFragment, "mUserManager", mUserManager); in setUp()
118 ReflectionHelpers.setField(mFragment, "mDpm", mDevicePolicyManager); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
125 ReflectionHelpers.setField(mFragment, "mPackageInfo", packageInfo); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
127 assertThat(mFragment.shouldShowUninstallForAll(appEntry)).isTrue(); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
134 ReflectionHelpers.setField(mFragment, "mDpm", mDevicePolicyManager); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
141 ReflectionHelpers.setField(mFragment, "mPackageInfo", packageInfo); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
[all …]
DExternalSourcesDetailsTest.java74 private ExternalSourcesDetails mFragment; field in ExternalSourcesDetailsTest
80 mFragment = new ExternalSourcesDetails(); in setUp()
81 ReflectionHelpers.setField(mFragment, "mUserManager", mUserManager); in setUp()
82 ReflectionHelpers.setField(mFragment, "mActivityManager", mActivityManager); in setUp()
83 ReflectionHelpers.setField(mFragment, "mAppOpsManager", mAppOpsManager); in setUp()
84 ReflectionHelpers.setField(mFragment, "mSwitchPref", mSwitchPref); in setUp()
90 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in setCanInstallApps_false_shouldKillNonCoreUid()
95 mFragment.setCanInstallApps(false); in setCanInstallApps_false_shouldKillNonCoreUid()
102 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in setCanInstallApps_false_shouldNotKillCoreUid()
107 mFragment.setCanInstallApps(false); in setCanInstallApps_false_shouldNotKillCoreUid()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DAppStorageSettingsDetailsFragmentTest.java78 private AppStorageSettingsDetailsFragment mFragment; field in AppStorageSettingsDetailsFragmentTest
97 mFragment = new AppStorageSettingsDetailsFragment(); in setUp()
100 mFragment.setArguments(bundle); in setUp()
101 mFragmentController = FragmentController.of(mFragment); in setUp()
132 mFragment.onActivityCreated(null); in onActivityCreated_defaultStatus_shouldShowCacheButtons()
134 assertThat(findClearCacheButton(mFragment.requireActivity())).isNotNull(); in onActivityCreated_defaultStatus_shouldShowCacheButtons()
135 assertThat(findClearCacheButton(mFragment.requireActivity()).getTitle()).isEqualTo( in onActivityCreated_defaultStatus_shouldShowCacheButtons()
138 assertThat(findClearStorageButton(mFragment.requireActivity())).isNotNull(); in onActivityCreated_defaultStatus_shouldShowCacheButtons()
139 assertThat(findClearStorageButton(mFragment.requireActivity()).getTitle()).isEqualTo( in onActivityCreated_defaultStatus_shouldShowCacheButtons()
145 mFragment.onActivityCreated(null); in onActivityCreated_defaultStatus_shouldShowClearStorageButtons()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java94 private UserSettings mFragment; field in UserSettingsTest
105 mFragment = spy(new UserSettings()); in setUp()
106 ReflectionHelpers.setField(mFragment, "mAddUserWhenLockedPreferenceController", in setUp()
108 ReflectionHelpers.setField(mFragment, "mMultiUserFooterPreferenceController", in setUp()
110 ReflectionHelpers.setField(mFragment, "mUserManager", mUserManager); in setUp()
111 ReflectionHelpers.setField(mFragment, "mUserCaps", mUserCapabilities); in setUp()
112 ReflectionHelpers.setField(mFragment, "mDefaultIconDrawable", mDefaultIconDrawable); in setUp()
113 ReflectionHelpers.setField(mFragment, "mAddingUser", false); in setUp()
114 mFragment.mMePreference = mMePreference; in setUp()
117 doReturn(mActivity).when(mFragment).getActivity(); in setUp()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DSettingsFragmentTest.java56 private SettingsFragment mFragment; field in SettingsFragmentTest
62 mFragment = mFragmentController.get(); in setUp()
68 assertThat(mFragment.use(FakePreferenceController.class, in use_returnsController()
75 FakePreferenceController controller = mFragment.use(FakePreferenceController.class, in onAttach_registersLifecycleObservers()
85 FakePreferenceController controller = mFragment.use(FakePreferenceController.class, in onUxRestrictionsChanged_propagatesToControllers()
89 mFragment.onUxRestrictionsChanged(uxRestrictions); in onUxRestrictionsChanged_propagatesToControllers()
98 () -> mFragment.onDisplayPreferenceDialog(new Preference(mContext))); in onDisplayPreferenceDialog_unknownPreferenceType_throwsIllegalArgumentException()
105 mFragment.launchFragment(otherFragment); in launchFragment_otherFragment_opensFragment()
107 mFragment.getFragmentManager().findFragmentById(R.id.fragment_container)).isEqualTo( in launchFragment_otherFragment_opensFragment()
116 () -> mFragment.launchFragment(dialogFragment)); in launchFragment_dialogFragment_throwsError()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimListDialogFragmentTest.java54 mFragment = spy(SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in onCreateDialog_noSubscriptions_dismissed()
56 doReturn(null).when(mFragment).getCurrentSubscriptions(); in onCreateDialog_noSubscriptions_dismissed()
58 verify(mFragment).dismiss(); in onCreateDialog_noSubscriptions_dismissed()
65 mFragment = spy(SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
67 doReturn(Arrays.asList(mSim1, mSim2)).when(mFragment).getCurrentSubscriptions(); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
69 doNothing().when(mFragment).setAdapter(any()); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
71 assertThat(mFragment.mSubscriptions).hasSize(2); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
73 final SimDialogActivity activity = (SimDialogActivity) spy(mFragment.getActivity()); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
74 doReturn(activity).when(mFragment).getActivity(); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
77 mFragment.onClick(alertDialog, 1); in onCreateDialog_twoSubscriptionsNoAskEveryTime_twoSubsForDisplay()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DColorModePreferenceFragmentTest.java58 private ColorModePreferenceFragment mFragment; field in ColorModePreferenceFragmentTest
67 mFragment = spy(new ColorModePreferenceFragment()); in setup()
68 ReflectionHelpers.setField(mFragment, "mColorDisplayManager", mManager); in setup()
78 assertThat(mFragment.getMetricsCategory()) in verifyMetricsConstant()
84 when(mFragment.getContext()).thenReturn(RuntimeEnvironment.application); in getCandidates_all()
92 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in getCandidates_all()
107 when(mFragment.getContext()).thenReturn(RuntimeEnvironment.application); in getCandidates_none()
110 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in getCandidates_none()
117 when(mFragment.getContext()).thenReturn(RuntimeEnvironment.application); in getCandidates_withAutomatic()
123 List<? extends CandidateInfo> candidates = mFragment.getCandidates(); in getCandidates_withAutomatic()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragmentTest.java50 private UsbDefaultFragment mFragment; field in UsbDefaultFragmentTest
55 mFragment = new UsbDefaultFragment(); in setUp()
56 mFragment.mUsbBackend = mUsbBackend; in setUp()
57 mFragment.mConnectivityManager = mConnectivityManager; in setUp()
63 assertThat(mFragment.getDefaultKey()) in getDefaultKey_isNone_shouldReturnNone()
70 assertThat(mFragment.getDefaultKey()) in getDefaultKey_isMtp_shouldReturnMtp()
77 assertThat(mFragment.getDefaultKey()) in getDefaultKey_isPtp_shouldReturnPtp()
84 assertThat(mFragment.getDefaultKey()) in getDefaultKey_isRndis_shouldReturnRndis()
91 assertThat(mFragment.getDefaultKey()) in getDefaultKey_isMidi_shouldReturnMidi()
97 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in setDefaultKey_isNone_shouldSetNone()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DRadioButtonPickerFragmentTest.java60 private TestFragment mFragment; field in RadioButtonPickerFragmentTest
66 mFragment = spy(new TestFragment()); in setUp()
69 doReturn(mActivity).when(mFragment).getContext(); in setUp()
70 doReturn(mScreen).when(mFragment).getPreferenceScreen(); in setUp()
75 mFragment.onAttach((Context) mActivity); in onAttach_userIsInitialized()
87 mFragment.mayCheckOnlyRadioButton(); in displaySingleOption_shouldSelectRadioButton()
98 mFragment.onRadioButtonClicked(pref); in clickPreference_shouldConfirm()
100 assertThat(mFragment.setDefaultKeyCalled).isTrue(); in clickPreference_shouldConfirm()
105 mFragment.mAppendStaticPreferences = false; in staticPreferencesPrepended_addedFirst()
106 mFragment.updateCandidates(); in staticPreferencesPrepended_addedFirst()
[all …]
DHighlightablePreferenceGroupAdapterTest.java63 private SettingsPreferenceFragment mFragment; field in HighlightablePreferenceGroupAdapterTest
108 HighlightablePreferenceGroupAdapter.adjustInitialExpandedChildCount(mFragment); in adjustInitialExpandedChildCount_invalidInput_shouldNotadjust()
110 when(mFragment.getArguments()).thenReturn(args); in adjustInitialExpandedChildCount_invalidInput_shouldNotadjust()
111 HighlightablePreferenceGroupAdapter.adjustInitialExpandedChildCount(mFragment); in adjustInitialExpandedChildCount_invalidInput_shouldNotadjust()
113 when(mFragment.getArguments()).thenReturn(null); in adjustInitialExpandedChildCount_invalidInput_shouldNotadjust()
114 when(mFragment.getPreferenceScreen()).thenReturn(screen); in adjustInitialExpandedChildCount_invalidInput_shouldNotadjust()
115 HighlightablePreferenceGroupAdapter.adjustInitialExpandedChildCount(mFragment); in adjustInitialExpandedChildCount_invalidInput_shouldNotadjust()
122 when(mFragment.getArguments()).thenReturn(args); in adjustInitialExpandedChildCount_hasHightlightKey_shouldExpandAllChildren()
125 when(mFragment.getPreferenceScreen()).thenReturn(screen); in adjustInitialExpandedChildCount_hasHightlightKey_shouldExpandAllChildren()
126 HighlightablePreferenceGroupAdapter.adjustInitialExpandedChildCount(mFragment); in adjustInitialExpandedChildCount_hasHightlightKey_shouldExpandAllChildren()
[all …]
DEntityHeaderControllerTest.java69 private Fragment mFragment; field in EntityHeaderControllerTest
82 when(mFragment.getContext()).thenReturn(mShadowContext); in setUp()
90 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView()
98 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
108 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView()
123 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData()
148 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_hasEditClickListener_shouldShowButton()
175 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_noEditClickListener_shouldNotShowButton()
191 when(mFragment.getActivity()).thenReturn(activity); in bindButton_noAppInfo_shouldNotAttachClickListener()
193 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_noAppInfo_shouldNotAttachClickListener()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsPreferenceFragmentTest.java63 private TestFragment mFragment; field in SettingsPreferenceFragmentTest
71 mFragment = spy(new TestFragment()); in setUp()
72 doReturn(mActivity).when(mFragment).getActivity(); in setUp()
73 when(mFragment.getContext()).thenReturn(mContext); in setUp()
76 ReflectionHelpers.setField(mFragment, "mEmptyView", mEmptyView); in setUp()
95 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_nested_shouldRemove()
110 assertThat(mFragment.removePreference(mScreen, key)).isTrue(); in removePreference_flat_shouldRemove()
125 assertThat(mFragment.removePreference(mScreen, "not" + key)).isFalse(); in removePreference_doNotExist_shouldNotRemove()
133 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in testUpdateEmptyView_containerInvisible_emptyViewVisible()
135 mFragment.updateEmptyView(); in testUpdateEmptyView_containerInvisible_emptyViewVisible()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseContentFragment.java83 private final LiteFragment mFragment; field in BaseContentFragment
94 mFragment = fragment; in BaseContentFragment()
98 Bundle state = (savedInstanceState != null) ? savedInstanceState : mFragment.getArguments(); in onCreate()
176 if (mFragment.getView() == null) return null; in getIcon()
177 return (ImageView) mFragment.getView().findViewById(R.id.icon); in getIcon()
181 if (mFragment.getView() == null) return null; in getTitle()
182 return (TextView) mFragment.getView().findViewById(R.id.title); in getTitle()
198 return (RelativeLayout) mFragment.getView(); in getRoot()
202 if (mFragment.getView() == null) return null; in getBreadCrumb()
203 return (TextView) mFragment.getView().findViewById(R.id.breadcrumb); in getBreadCrumb()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockGenericTest.java71 private ChooseLockGenericFragment mFragment; field in ChooseLockGenericTest
77 mFragment = new ChooseLockGenericFragment(); in setUp()
97 mFragment.onActivityResult( in onActivityResult_nullIntentData_shouldNotCrash()
110 mFragment.updatePreferencesOrFinish(false /* isRecreatingActivity */); in updatePreferencesOrFinish_passwordTypeSetPin_shouldStartChooseLockPassword()
123 mFragment.updatePreferencesOrFinish(false /* isRecreatingActivity */); in updatePreferencesOrFinish_passwordTypeSetPinNotFbe_shouldNotStartChooseLock()
138 mFragment.updatePreferencesOrFinish(false /* isRecreatingActivity */); in updatePreferencesOrFinish_footerPreferenceAddedHighComplexityText()
139 FooterPreference footer = mFragment.findPreference(FooterPreference.KEY_FOOTER); in updatePreferencesOrFinish_footerPreferenceAddedHighComplexityText()
154 mFragment.updatePreferencesOrFinish(false /* isRecreatingActivity */); in updatePreferencesOrFinish_footerPreferenceAddedMediumComplexityText()
155 FooterPreference footer = mFragment.findPreference(FooterPreference.KEY_FOOTER); in updatePreferencesOrFinish_footerPreferenceAddedMediumComplexityText()
170 mFragment.updatePreferencesOrFinish(false /* isRecreatingActivity */); in updatePreferencesOrFinish_footerPreferenceAddedLowComplexityText()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountDetailDashboardFragmentTest.java73 private AccountDetailDashboardFragment mFragment; field in AccountDetailDashboardFragmentTest
88 mFragment = spy(new AccountDetailDashboardFragment()); in setUp()
89 mFragment.setArguments(args); in setUp()
90 mFragment.mAccountType = "com.abc"; in setUp()
91 mFragment.mAccount = new Account("name1@abc.com", "com.abc"); in setUp()
92 when(mFragment.getContext()).thenReturn(mContext); in setUp()
112 assertThat(mFragment.displayTile(tile)).isTrue(); in refreshDashboardTiles_HasAccountType_shouldDisplay()
120 assertThat(mFragment.displayTile(tile)).isFalse(); in refreshDashboardTiles_NoAccountType_shouldNotDisplay()
129 assertThat(mFragment.displayTile(tile)).isFalse(); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay()
149 mFragment.displayTile(tile); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java101 private ApplicationDetailsFragment mFragment; field in ApplicationDetailsFragmentTest
123 mFragment = ApplicationDetailsFragment.getInstance(PACKAGE_NAME); in setUp()
142 mActivity.launchFragment(mFragment); in onStart_packageNotExplicitlyStopped_enablesForceStopButton()
152 mActivity.launchFragment(mFragment); in onStart_packageHasActiveAdmins_disablesForceStopButton()
164 mActivity.launchFragment(mFragment); in onStart_appsControlUserRestriction_disablesForceStopButton()
179 mActivity.launchFragment(mFragment); in onStart_packageExplicitlyStopped_queriesPackageRestart()
196 mActivity.launchFragment(mFragment); in onStart_packageExplicitlyStopped_success_enablesForceStopButton()
220 mActivity.launchFragment(mFragment); in onStart_packageExplicitlyStopped_failure_disablesForceStopButton()
245 mActivity.launchFragment(mFragment); in onStart_bundledApp_showsDisableButton()
259 mActivity.launchFragment(mFragment); in onStart_bundledApp_notEnabled_showsEnableButton()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothSettingsFragmentTest.java67 private BluetoothSettingsFragment mFragment; field in BluetoothSettingsFragmentTest
77 mFragment = new BluetoothSettingsFragment(); in setUp()
78 mFragmentController = FragmentController.of(mFragment); in setUp()
92 mFragment.requireActivity()); in onStart_setsBluetoothManagerForegroundActivity()
101 assertThat(findSwitch(mFragment.requireActivity()).isChecked()).isTrue(); in onStart_initializesSwitchState()
116 findSwitch(mFragment.requireActivity()).performClick(); in switchCheckedOn_enablesAdapter()
128 findSwitch(mFragment.requireActivity()).performClick(); in switchCheckedOff_disablesAdapter()
139 assertThat(findSwitch(mFragment.requireActivity()).isChecked()).isTrue(); in stateChanged_turningOn_setsSwitchChecked()
148 assertThat(findSwitch(mFragment.requireActivity()).isEnabled()).isFalse(); in stateChanged_turningOn_setsSwitchDisabled()
157 assertThat(findSwitch(mFragment.requireActivity()).isChecked()).isTrue(); in stateChanged_on_setsSwitchChecked()
[all …]

12345678910>>...15