/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | SystemNavigationGestureSettingsTest.java | 71 private SystemNavigationGestureSettings mSettings; field in SystemNavigationGestureSettingsTest 85 mSettings = new SystemNavigationGestureSettings(); in setUp() 99 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource() 106 assertEquals(KEY_SYSTEM_NAV_GESTURAL, mSettings.getCurrentSystemNavigationMode(mContext)); in testGetCurrentSystemNavigationMode() 110 assertEquals(KEY_SYSTEM_NAV_3BUTTONS, mSettings.getCurrentSystemNavigationMode(mContext)); in testGetCurrentSystemNavigationMode() 114 assertEquals(KEY_SYSTEM_NAV_2BUTTONS, mSettings.getCurrentSystemNavigationMode(mContext)); in testGetCurrentSystemNavigationMode() 119 mSettings.setBackSensitivity(mContext, mOverlayManager, 0); in testSetCurrentSystemNavigationMode() 120 mSettings.setCurrentSystemNavigationMode(mContext, mOverlayManager, in testSetCurrentSystemNavigationMode() 125 mSettings.setBackSensitivity(mContext, mOverlayManager, 1); in testSetCurrentSystemNavigationMode() 126 mSettings.setCurrentSystemNavigationMode(mContext, mOverlayManager, in testSetCurrentSystemNavigationMode() [all …]
|
D | AssistGestureSettingsTest.java | 43 private AssistGestureSettings mSettings; field in AssistGestureSettingsTest 49 mSettings = new AssistGestureSettings(); in setUp() 54 assertThat(mSettings.getPreferenceScreenResId()) in testGetPreferenceScreenResId() 65 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | DevelopmentSwitchBarControllerTest.java | 54 private DevelopmentSettingsDashboardFragment mSettings; field in DevelopmentSwitchBarControllerTest 67 when(mSettings.getContext()).thenReturn(context); in setUp() 78 new DevelopmentSwitchBarController(mSettings, mSwitchBar, in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener() 84 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener() 87 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener() 93 new DevelopmentSwitchBarController(mSettings, mSwitchBar, in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener() 99 assertThat(listeners).contains(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener() 102 assertThat(listeners).doesNotContain(mSettings); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener() 107 when(mSettings.getContext()).thenReturn(RuntimeEnvironment.application); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener() 109 new DevelopmentSwitchBarController(mSettings, mSwitchBar, in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
D | PreferenceListTest.java | 51 @Mock VpnSettings mSettings; field in PreferenceListTest 69 }).when(mSettings).findOrCreatePreference(any(VpnProfile.class), anyBoolean()); in setUp() 77 }).when(mSettings).findOrCreatePreference(any(AppVpnInfo.class)); in setUp() 79 doNothing().when(mSettings).setShownPreferences(any()); in setUp() 80 doReturn(true).when(mSettings).canAddPreferences(); in setUp() 85 final VpnSettings.UpdatePreferences updater = new VpnSettings.UpdatePreferences(mSettings); in testNothingShownByDefault() 88 verify(mSettings, never()).findOrCreatePreference(any(VpnProfile.class), anyBoolean()); in testNothingShownByDefault() 97 final VpnSettings.UpdatePreferences updater = new VpnSettings.UpdatePreferences(mSettings); in testDisconnectedLegacyVpnShown() 104 verify(mSettings, times(1)).findOrCreatePreference(any(VpnProfile.class), eq(true)); in testDisconnectedLegacyVpnShown() 114 final VpnSettings.UpdatePreferences updater = new VpnSettings.UpdatePreferences(mSettings); in testConnectedLegacyVpnShownIfDeleted() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStorageSettingsTest.java | 51 private AppStorageSettings mSettings; field in AppStorageSettingsTest 60 mSettings = spy(new AppStorageSettings()); in setUp() 61 mSettings.mSizeController = mSizesController; in setUp() 63 mSettings.mButtonsPref = mButtonsPref; in setUp() 81 mSettings.updateUiWithSize(null); in updateUiWithSize_noAppStats_shouldDisableClearButtons() 93 doNothing().when(mSettings).handleClearCacheClick(); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() 94 doNothing().when(mSettings).handleClearDataClick(); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() 96 mSettings.updateUiWithSize(stats); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() 100 verify(mSettings).handleClearDataClick(); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() 101 verify(mSettings, never()).handleClearCacheClick(); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | LatinIME.java | 147 final Settings mSettings; field in LatinIME 261 latinIme.mSettings.getCurrent(), msg.arg1 /* inputStyle */); in handleMessage() 278 latinIme.mSettings.getCurrent(), false /* forStartInput */, in handleMessage() 283 latinIme.mSettings.getCurrent(), true /* forStartInput */, in handleMessage() 295 latinIme.mSettings.getCurrent(), in handleMessage() 300 final SettingsValues settingsValues = latinIme.mSettings.getCurrent(); in handleMessage() 338 if (!latinIme.mSettings.getCurrent().isSuggestionsEnabledPerUserSettings()) { in postResumeSuggestionsInternal() 589 mSettings = Settings.getInstance(); in LatinIME() 644 StatsUtils.onCreate(mSettings.getCurrent(), mRichImm); in onCreate() 654 mSettings.loadSettings(this, locale, inputAttributes); in loadSettings() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethodcommon/ |
D | InputMethodSettingsActivity.java | 29 private final InputMethodSettingsImpl mSettings = new InputMethodSettingsImpl(); field in InputMethodSettingsActivity 35 mSettings.init(this, getPreferenceScreen()); in onCreate() 43 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle() 51 mSettings.setInputMethodSettingsCategoryTitle(title); in setInputMethodSettingsCategoryTitle() 59 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle() 67 mSettings.setSubtypeEnablerTitle(title); in setSubtypeEnablerTitle() 75 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon() 83 mSettings.setSubtypeEnablerIcon(drawable); in setSubtypeEnablerIcon() 92 mSettings.updateSubtypeEnabler(); in onResume()
|
D | InputMethodSettingsFragment.java | 30 private final InputMethodSettingsImpl mSettings = new InputMethodSettingsImpl(); field in InputMethodSettingsFragment 36 mSettings.init(context, getPreferenceScreen()); in onCreate() 44 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle() 52 mSettings.setInputMethodSettingsCategoryTitle(title); in setInputMethodSettingsCategoryTitle() 60 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle() 68 mSettings.setSubtypeEnablerTitle(title); in setSubtypeEnablerTitle() 76 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon() 84 mSettings.setSubtypeEnablerIcon(drawable); in setSubtypeEnablerIcon() 93 mSettings.updateSubtypeEnabler(); in onResume()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/aboutphone/ |
D | MyDeviceInfoFragmentTest.java | 71 private MyDeviceInfoFragment mSettings; field in MyDeviceInfoFragmentTest 78 mSettings = spy(new MyDeviceInfoFragment()); in setUp() 80 when(mSettings.getActivity()).thenReturn(mActivity); in setUp() 81 when(mSettings.getContext()).thenReturn(mContext); in setUp() 84 doNothing().when(mSettings).onCreatePreferences(any(), any()); in setUp() 86 doReturn(mScreen).when(mSettings).getPreferenceScreen(); in setUp() 87 when(mSettings.getPreferenceScreen()).thenReturn(mScreen); in setUp() 96 mSettings.setArguments(args); in onCreate_fromSearch_shouldNotOverrideInitialExpandedCount() 98 mSettings.onCreate(null /* icicle */); in onCreate_fromSearch_shouldNotOverrideInitialExpandedCount() 107 ReflectionHelpers.setField(mSettings, "mBuildNumberPreferenceController", controller); in onActivityResult_shouldCallBuildNumberPreferenceController() [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | AlbumDataAdapter.java | 42 private final AlbumSettings mSettings; field in AlbumDataAdapter 51 mSettings = AlbumSettings.getAlbumSettings(settings); in AlbumDataAdapter() 60 mSettings.pruneObsoleteSettings(mValidAlbumIds); in AlbumDataAdapter() 65 return mSettings.isAlbumEnabled(data.id); in isSelected() 69 return mSettings.areAllEnabled(mValidAlbumIds); in areAllSelected() 74 mSettings.enableAllAlbums(mValidAlbumIds); in selectAll() 76 mSettings.disableAllAlbums(); in selectAll() 178 mSettings.setAlbumEnabled(data.id, isChecked); in onClick()
|
D | AlbumSettings.java | 33 private final SharedPreferences mSettings; field in AlbumSettings 110 mSettings = settings; in AlbumSettings() 116 Set<String> enabledAlbums = mSettings.getStringSet(ALBUM_SET, null); in readEnabledAlbumsLocked() 124 SharedPreferences.Editor editor = mSettings.edit(); in writeEnabledAlbumsLocked()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/savedaccesspoints/ |
D | SavedAccessPointsWifiSettingsTest.java | 41 private TestFragment mSettings; field in SavedAccessPointsWifiSettingsTest 46 mSettings = spy(new TestFragment()); in setUp() 48 doReturn(mSubscribedApController).when(mSettings) in setUp() 50 doReturn(mSavedApController).when(mSettings) in setUp() 56 assertThat(mSettings.getMetricsCategory()).isEqualTo(MetricsEvent.WIFI_SAVED_ACCESS_POINTS); in verifyConstants() 57 assertThat(mSettings.getPreferenceScreenResId()) in verifyConstants()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/ |
D | ScreenLockSettingsTest.java | 42 private ScreenLockSettings mSettings; field in ScreenLockSettingsTest 46 mSettings = new ScreenLockSettings(); in setUp() 51 assertThat(mSettings.getMetricsCategory()) in verifyConstants() 53 assertThat(mSettings.getPreferenceScreenResId()).isEqualTo(R.xml.screen_lock_settings); in verifyConstants() 59 ReflectionHelpers.getField(mSettings, "mPreferenceControllers"); in onOwnerInfoUpdated_shouldUpdateOwnerInfoController() 65 mSettings.onOwnerInfoUpdated(); in onOwnerInfoUpdated_shouldUpdateOwnerInfoController()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterprisePrivacySettingsTest.java | 49 private EnterprisePrivacySettings mSettings; field in EnterprisePrivacySettingsTest 55 mSettings = new EnterprisePrivacySettings(); in setUp() 60 assertThat(mSettings.getMetricsCategory()) in verifyConstants() 62 assertThat(mSettings.getLogTag()).isEqualTo("EnterprisePrivacySettings"); in verifyConstants() 63 assertThat(mSettings.getCategoryKey()).isEqualTo(CategoryKey.CATEGORY_ENTERPRISE_PRIVACY); in verifyConstants() 64 assertThat(mSettings.getPreferenceScreenResId()) in verifyConstants() 89 mSettings.createPreferenceControllers(RuntimeEnvironment.application); in getPreferenceControllers()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilitySettingsTest.java | 57 private AccessibilitySettings mSettings; field in AccessibilitySettingsTest 65 mSettings = spy(new AccessibilitySettings()); in setup() 66 doReturn(mContext).when(mSettings).getContext(); in setup() 83 doReturn(vibrationPreferenceScreen).when(mSettings).findPreference( in testUpdateVibrationSummary_shouldUpdateSummary() 96 mSettings.updateVibrationSummary(vibrationPreferenceScreen); in testUpdateVibrationSummary_shouldUpdateSummary() 169 doReturn(preference).when(mSettings).findPreference(preferenceKey); in verifyAccessibilityTimeoutSummary() 171 mSettings.updateAccessibilityTimeoutSummary(mContentResolver, preference); in verifyAccessibilityTimeoutSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/ |
D | ManageAssistTest.java | 32 private ManageAssist mSettings; field in ManageAssistTest 36 mSettings = new ManageAssist(); in setUp() 41 assertThat(mSettings.getMetricsCategory()) in testGetMetricsCategory() 47 assertThat(mSettings.getCategoryKey()).isNull(); in testGetCategoryKey() 52 assertThat(mSettings.getPreferenceScreenResId()).isEqualTo(R.xml.manage_assist); in testGetPreferenceScreenResId()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | PlayerApplicationSettings.java | 60 private SparseArray<Integer> mSettings = new SparseArray<>(); field in PlayerApplicationSettings 97 newObj.mSettings.put(attrId, in makeSettings() 107 mSettings = updates.mSettings; in setSupport() 121 if (null == mSettings.get(settingType)) return -1; in getSetting() 122 return mSettings.get(settingType); in getSetting()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | ScreenZoomSettingsTest.java | 36 private ScreenZoomSettings mSettings; field in ScreenZoomSettingsTest 42 mSettings = spy(new ScreenZoomSettings()); in setUp() 43 doReturn(mContext).when(mSettings).getContext(); in setUp() 48 assertThat(mSettings.getPreviewSampleResIds()).hasLength(3); in getPreviewSampleResIds_default_return3Previews() 54 assertThat(mSettings.getPreviewSampleResIds()).hasLength(1); in getPreviewSampleResIds_extraPreviewDisabled_return1Preview()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | DevelopmentSwitchBarController.java | 33 private final DevelopmentSettingsDashboardFragment mSettings; field in DevelopmentSwitchBarController 39 mSettings = settings; in DevelopmentSwitchBarController() 51 .isDevelopmentSettingsEnabled(mSettings.getContext()); in onStart() 53 mSwitchBar.addOnSwitchChangeListener(mSettings); in onStart() 58 mSwitchBar.removeOnSwitchChangeListener(mSettings); in onStop()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DevelopmentSwitchBarController.java | 33 private final DevelopmentSettingsDashboardFragment mSettings; field in DevelopmentSwitchBarController 39 mSettings = settings; in DevelopmentSwitchBarController() 51 .isDevelopmentSettingsEnabled(mSettings.getContext()); in onStart() 53 mSwitchBar.addOnSwitchChangeListener(mSettings); in onStart() 58 mSwitchBar.removeOnSwitchChangeListener(mSettings); in onStop()
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | SmartActionsHelperTest.java | 99 private AssistantSettings mSettings; field in SmartActionsHelperTest 112 mSettings = AssistantSettings.createForTesting( in setup() 114 mSettings.mGenerateActions = true; in setup() 115 mSettings.mGenerateReplies = true; in setup() 116 mSmartActionsHelper = new SmartActionsHelper(mContext, mSettings); in setup() 156 mSettings.mGenerateActions = false; in testSuggest_settingsOff() 157 mSettings.mGenerateReplies = false; in testSuggest_settingsOff() 169 mSettings.mGenerateReplies = true; in testSuggest_settings_repliesOnActionsOff() 170 mSettings.mGenerateActions = false; in testSuggest_settings_repliesOnActionsOff() 186 mSettings.mGenerateReplies = false; in testSuggest_settings_repliesOffActionsOn() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/ |
D | TopLevelSettingsTest.java | 35 private TopLevelSettings mSettings; field in TopLevelSettingsTest 40 mSettings = spy(new TopLevelSettings()); in setUp() 41 when(mSettings.getContext()).thenReturn(mContext); in setUp() 46 assertThat(mSettings.shouldForceRoundedIcon()).isTrue(); in shouldForceRoundedIcon_true()
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
D | SettingsDialog.java | 57 private ArrayList<Setting> mSettings; field in SettingsDialog 86 mSettings = getSettings(); in onCreate() 97 mAdapter = new DialogAdapter(mSettings, pivotX, pivotY, new SettingClickedListener() { in onCreate() 110 mSettings.get(PRESET_SETTING_INDEX).setValue( in onCreate() 170 mFocusedSetting = mSettings.get(position); in onChildSelected() 230 mSettings.get(PRESET_SETTING_INDEX).setValue( in setFocusedSettingToValue() 270 mSettings.get(i + INTEGER_SETTING_START_INDEX).setValue( in stringSettingHandleKeyCode()
|
/packages/apps/Car/Media/src/com/android/car/media/widgets/ |
D | AppBarView.java | 35 private MenuItem mSettings; field in AppBarView 138 mSettings = new MenuItem.Builder(context) in init() 152 setMenuItems(Arrays.asList(mSearch, mEqualizer, mSettings, mAppSelector)); in init() 186 mSettings.setVisible(hasSettings); in setHasSettings() 191 mSettings.setUxRestrictions(isDistractionOptimized in setSettingsDistractionOptimized()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/ |
D | HidDeviceTest.java | 85 private BluetoothHidDeviceAppSdpSettings mSettings; field in HidDeviceTest 134 mSettings = new BluetoothHidDeviceAppSdpSettings("Unit test", "test", "Android", in setUp() 288 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testRegistration() 323 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testSendReport() 360 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testReplyReport() 395 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testReportError() 425 mHidDeviceService.registerApp(mSettings, null, null, null); in testOutgoingConnectDisconnectSuccess() 497 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testCallbacks()
|