/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarSettingsTest.java | 42 private final HashMap<String, String> mSettings = new HashMap<>(); field in CarSettingsTest 61 mSettings.put(CarSettings.Global.DEFAULT_USER_RESTRICTIONS_SET, SCOPE_GLOBAL); in loadSettingNames() 62 mSettings.put(CarSettings.Global.SYSTEM_BAR_VISIBILITY_OVERRIDE, SCOPE_GLOBAL); in loadSettingNames() 63 mSettings.put(CarSettings.Global.DISABLE_INSTRUMENTATION_SERVICE, SCOPE_GLOBAL); in loadSettingNames() 64 mSettings.put(CarSettings.Global.ENABLE_USER_SWITCH_DEVELOPER_MESSAGE, SCOPE_GLOBAL); in loadSettingNames() 65 mSettings.put(CarSettings.Global.LAST_ACTIVE_USER_ID, SCOPE_GLOBAL); in loadSettingNames() 66 mSettings.put(CarSettings.Global.LAST_ACTIVE_PERSISTENT_USER_ID, SCOPE_GLOBAL); in loadSettingNames() 67 mSettings.put(CarSettings.Secure.KEY_AUDIO_FOCUS_NAVIGATION_REJECTED_DURING_CALL, in loadSettingNames() 69 mSettings.put(CarSettings.Secure.KEY_AUDIO_PERSIST_VOLUME_GROUP_MUTE_STATES, SCOPE_SECURE); in loadSettingNames() 70 mSettings.put(CarSettings.Secure.KEY_ENABLE_INITIAL_NOTICE_SCREEN_TO_USER, SCOPE_SECURE); in loadSettingNames() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | ScreenTimeoutSettingsTest.java | 68 private ScreenTimeoutSettings mSettings; field in ScreenTimeoutSettingsTest 99 mSettings = spy(new ScreenTimeoutSettings()); in setup() 100 mSettings.mContext = mContext; in setup() 121 doReturn(mResources).when(mSettings).getResources(); in setup() 122 doReturn(mContext).when(mSettings).getContext(); in setup() 123 doReturn(mPreferenceScreen).when(mSettings).getPreferenceScreen(); in setup() 125 mSettings.mAdaptiveSleepController = mAdaptiveSleepPreferenceController; in setup() 126 mSettings.mAdaptiveSleepPermissionController = mPermissionPreferenceController; in setup() 127 mSettings.mAdaptiveSleepCameraStatePreferenceController = in setup() 129 mSettings.mAdaptiveSleepBatterySaverPreferenceController = in setup() [all …]
|
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/apps/Settings/tests/robotests/src/com/android/settings/wifi/savedaccesspoints2/ |
D | SavedAccessPointsWifiSettings2Test.java | 58 private TestFragment mSettings; field in SavedAccessPointsWifiSettings2Test 66 mSettings = spy(new TestFragment()); in setUp() 69 doReturn(mSubscribedApController).when(mSettings) in setUp() 71 doReturn(mSavedApController).when(mSettings) in setUp() 77 assertThat(mSettings.getMetricsCategory()).isEqualTo(MetricsEvent.WIFI_SAVED_ACCESS_POINTS); in verifyConstants() 78 assertThat(mSettings.getPreferenceScreenResId()) in verifyConstants() 84 assertThat(mSettings.getLogTag()).isEqualTo(SavedAccessPointsWifiSettings2.TAG); in getTag_shouldReturnRightTag() 89 mSettings.onAttach(mContext); in onAttach_shouldCallSavedControllerSetHost() 96 mSettings.onAttach(mContext); in onAttach_shouldCallSubscriptionControllerSetHost() 103 mSettings = new TestFragment(); in onCreate_shouldNewSavedNetworkTracker() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | OpenSupportedLinksTest.java | 66 private TestFragment mSettings; field in OpenSupportedLinksTest 74 mSettings = spy(new TestFragment(mContext, mPackageManager)); in setUp() 86 mSettings.addLinksToFooter(mFooter); in addLinksToFooter_noHandledDomains_returnDefaultFooterTitle() 97 mSettings.addLinksToFooter(mFooter); in addLinksToFooter_oneHandledDomains_returnDomainsFooterTitle() 106 mSettings.initRadioPreferencesGroup(); in initRadioPreferencesGroup_statusAlways_allowOpenChecked() 108 assertThat(mSettings.mAllowOpening.isChecked()).isTrue(); in initRadioPreferencesGroup_statusAlways_allowOpenChecked() 109 assertThat(mSettings.mAskEveryTime.isChecked()).isFalse(); in initRadioPreferencesGroup_statusAlways_allowOpenChecked() 110 assertThat(mSettings.mNotAllowed.isChecked()).isFalse(); in initRadioPreferencesGroup_statusAlways_allowOpenChecked() 117 mSettings.initRadioPreferencesGroup(); in initRadioPreferencesGroup_statusAsk_askEveryTimeChecked() 119 assertThat(mSettings.mAllowOpening.isChecked()).isFalse(); in initRadioPreferencesGroup_statusAsk_askEveryTimeChecked() [all …]
|
D | AppStorageSettingsTest.java | 55 private AppStorageSettings mSettings; field in AppStorageSettingsTest 66 mSettings = spy(new AppStorageSettings()); in setUp() 67 mSettings.mPm = mPackageManager; in setUp() 68 mSettings.mPackageName = "Package"; in setUp() 69 mSettings.mSizeController = mSizesController; in setUp() 71 mSettings.mButtonsPref = mButtonsPref; in setUp() 90 mockMainlineModule(mSettings.mPackageName, false /* isMainlineModule */); in updateUiWithSize_noAppStats_shouldDisableClearButtons() 91 mSettings.updateUiWithSize(null); in updateUiWithSize_noAppStats_shouldDisableClearButtons() 104 doNothing().when(mSettings).handleClearCacheClick(); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() 105 doNothing().when(mSettings).handleClearDataClick(); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() [all …]
|
/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/legacy_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/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/ui/main/ |
D | MainFragment.java | 49 private Settings mSettings; field in MainFragment 161 if (mSettings.getOrg() != 0 || mSettings.getSpId() != 0 in onCreateView() 162 || mSettings.getTlsCs() != 0) { in onCreateView() 163 builder.setOrg(mSettings.getOrg()) in onCreateView() 164 .setProtocol(mSettings.getSpId()) in onCreateView() 165 .setTlsCipherSuite(mSettings.getTlsCs()); in onCreateView() 175 + mSettings.getAppType() + ", NAF:" + mSettings.getNafUrl() in onCreateView() 177 + mSettings.isForceBootstrap() + "]"); in onCreateView() 180 mSettings.getAppType(), Uri.parse(mSettings.getNafUrl()), in onCreateView() 181 spId, mSettings.isForceBootstrap(), in onCreateView() [all …]
|
D | TestConfigFragment.java | 44 private Settings mSettings; field in TestConfigFragment 64 mSettings = Settings.getSettings(getActivity()); in onCreate() 86 mSettings.updateTestConfig(getActivity(), in onCreateView() 114 mAppType.setText(Integer.toString(mSettings.getAppType())); in setDefault() 115 String naf = mSettings.getNafUrl(); in setDefault() 120 mOrg.setText(Integer.toString(mSettings.getOrg())); in setDefault() 121 mSpId.setText(Integer.toString(mSettings.getSpId())); in setDefault() 122 mTlsCs.setText(Integer.toString(mSettings.getTlsCs())); in setDefault() 123 mForce.setChecked(mSettings.isForceBootstrap()); in setDefault()
|
D | ServiceConfigFragment.java | 43 private Settings mSettings; field in ServiceConfigFragment 61 mSettings = Settings.getSettings(getActivity()); in onCreate() 81 mSettings.updateServiceConfig(getActivity(), mAuthResult.isChecked(), in onCreateView() 104 mAuthResult.setChecked(mSettings.getAuthResult()); in setDefault() 105 String key = mSettings.getGbaKey(); in setDefault() 110 String id = mSettings.getBTid(); in setDefault() 115 mFailReason.setText(Integer.toString(mSettings.getFailReason())); in setDefault()
|
/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 107 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings(); field in ScanTestUtil.NativeScanSettingsBuilder 109 mSettings.scanType = WifiScanner.SCAN_TYPE_LOW_LATENCY; in NativeScanSettingsBuilder() 110 mSettings.buckets = new WifiNative.BucketSettings[0]; in NativeScanSettingsBuilder() 111 mSettings.num_buckets = 0; in NativeScanSettingsBuilder() 112 mSettings.report_threshold_percent = 100; in NativeScanSettingsBuilder() 116 mSettings.scanType = type; in withType() 120 mSettings.base_period_ms = basePeriod; in withBasePeriod() 124 mSettings.max_ap_per_scan = maxAp; in withMaxApPerScan() 128 mSettings.report_threshold_num_scans = maxScans; in withMaxScansToCache() 132 mSettings.report_threshold_percent = percent; in withMaxPercentToCache() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiSettingsConfigStore.java | 112 private final Map<String, Object> mSettings = new HashMap<>(); field in WifiSettingsConfigStore 157 if (!mSettings.containsKey(key.key)) return; in invokeListeners() 158 Object newValue = mSettings.get(key.key); in invokeListeners() 199 if (!mSettings.isEmpty()) return; // already migrated. in migrateFromSettingsIfNeeded() 208 mSettings.put(WIFI_P2P_DEVICE_NAME.key, in migrateFromSettingsIfNeeded() 210 mSettings.put(WIFI_P2P_PENDING_FACTORY_RESET.key, in migrateFromSettingsIfNeeded() 212 mSettings.put(WIFI_SCAN_ALWAYS_AVAILABLE.key, in migrateFromSettingsIfNeeded() 214 mSettings.put(WIFI_SCAN_THROTTLE_ENABLED.key, in migrateFromSettingsIfNeeded() 216 mSettings.put(WIFI_VERBOSE_LOGGING_ENABLED.key, in migrateFromSettingsIfNeeded() 229 mSettings.put(key.key, value); in put() [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/apps/Settings/tests/robotests/src/com/android/settings/homepage/ |
D | TopLevelSettingsTest.java | 47 private TopLevelSettings mSettings; field in TopLevelSettingsTest 52 mSettings = spy(new TopLevelSettings()); in setUp() 53 when(mSettings.getContext()).thenReturn(mContext); in setUp() 58 mSettings.onAttach(mContext); in setUp() 63 assertThat(mSettings.shouldForceRoundedIcon()).isTrue(); in shouldForceRoundedIcon_true() 75 doReturn(screen).when(mSettings).getPreferenceScreen(); in onCreatePreferences_shouldTintPreferenceIcon() 76 doReturn(0).when(mSettings).getPreferenceScreenResId(); in onCreatePreferences_shouldTintPreferenceIcon() 78 mSettings.onCreatePreferences(new Bundle(), "rootKey"); in onCreatePreferences_shouldTintPreferenceIcon()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | SystemNavigationGestureSettingsTest.java | 65 private SystemNavigationGestureSettings mSettings; field in SystemNavigationGestureSettingsTest 79 mSettings = new SystemNavigationGestureSettings(); in setUp() 93 assertThat(indexRes.get(0).xmlResId).isEqualTo(mSettings.getPreferenceScreenResId()); in testSearchIndexProvider_shouldIndexResource() 100 assertEquals(KEY_SYSTEM_NAV_GESTURAL, mSettings.getCurrentSystemNavigationMode(mContext)); in testGetCurrentSystemNavigationMode() 104 assertEquals(KEY_SYSTEM_NAV_3BUTTONS, mSettings.getCurrentSystemNavigationMode(mContext)); in testGetCurrentSystemNavigationMode() 108 assertEquals(KEY_SYSTEM_NAV_2BUTTONS, mSettings.getCurrentSystemNavigationMode(mContext)); in testGetCurrentSystemNavigationMode() 113 mSettings.setCurrentSystemNavigationMode(mOverlayManager, KEY_SYSTEM_NAV_GESTURAL); in testSetCurrentSystemNavigationMode() 117 mSettings.setCurrentSystemNavigationMode(mOverlayManager, KEY_SYSTEM_NAV_2BUTTONS); in testSetCurrentSystemNavigationMode() 121 mSettings.setCurrentSystemNavigationMode(mOverlayManager, KEY_SYSTEM_NAV_3BUTTONS); in testSetCurrentSystemNavigationMode()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterprisePrivacySettingsTest.java | 59 private EnterprisePrivacySettings mSettings; field in EnterprisePrivacySettingsTest 67 mSettings = new EnterprisePrivacySettings(); in setUp() 68 mSettings.mPrivacySettingsPreference = mPrivacySettingsPreference; in setUp() 83 assertThat(mSettings.getMetricsCategory()) in verifyConstants() 85 assertThat(mSettings.getLogTag()).isEqualTo("EnterprisePrivacySettings"); in verifyConstants() 86 assertThat(mSettings.getCategoryKey()).isEqualTo(CategoryKey.CATEGORY_ENTERPRISE_PRIVACY); in verifyConstants() 87 assertThat(mSettings.getPreferenceScreenResId()) in verifyConstants() 118 mSettings.createPreferenceControllers(mContext); in getPreferenceControllers()
|
/packages/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/ |
D | TestGbaService.java | 31 private Settings mSettings; field in TestGbaService 36 mSettings = Settings.getSettings(getApplicationContext()); in onCreate() 42 boolean isSuccess = mSettings.getAuthResult(); in onAuthenticationRequest() 43 int reason = mSettings.getFailReason(); in onAuthenticationRequest() 44 String key = mSettings.getGbaKey(); in onAuthenticationRequest() 45 String btid = mSettings.getBTid(); in onAuthenticationRequest()
|
/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/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()
|
/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/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()
|