• Home
  • History
  • Annotate
  • only in /packages/apps/Settings/tests/robotests/src/com/android/settings/location/
History log of /packages/apps/Settings/tests/robotests/src/com/android/settings/location/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e31e60ce94e5af2c08427173a256ee6be09ba790 18-May-2018 Matthew Fritze <mfritze@google.com> Add Location Slice

Location is an intent-only Slice.

Test: Robotests
Change-Id: Ie9ed05be2224f2c4b393ed201d5f313f80183edc
Merged-In: I07e27683b46fe4ded8215009a983bb909555fb59
Fixes: 67997314
ocationSliceBuilderTest.java
3bf4b9365e1cc97be1087523e312c0a28100a372 01-Feb-2018 yuemingw <yuemingw@google.com> Block location accuracy when DISALLOW_CONFIG_LOCATION is set.

Bug: 72633181
Test: make ROBOTEST_FILTER=InjectedSettingTest -j40 RunSettingsRoboTests
Test: make ROBOTEST_FILTER=LocationServicePreferenceControllerTest -j40 RunSettingsRoboTests

Change-Id: I91e4dbff8bcce637424646f5435e72f9bb707631
njectedSettingTest.java
ocationServicePreferenceControllerTest.java
22a39c2b93bc66db71238274a7683d329232d124 26-Feb-2018 James Lemieux <jplemieux@google.com> Use external/robolectric-shadows/run_robotests.mk

This allows Settings to test against the latest framework changes.

Also replaced TestConfig with traditional robolectric.properties.

Bug: 73173204
Bug: 73892008
Test: make -j56 RunSettingsRoboTests
Change-Id: I3135b4fa5f095ba79b282a76f45dd9baa2584bc7
ppLocationPermissionPreferenceControllerTest.java
luetoothScanningPreferenceControllerTest.java
ocationEnablerTest.java
ocationFooterPreferenceControllerTest.java
ocationForWorkPreferenceControllerTest.java
ocationPreferenceControllerTest.java
ocationScanningPreferenceControllerTest.java
ocationServicePreferenceControllerTest.java
ocationSettingsTest.java
ocationSwitchBarControllerTest.java
ecentLocationRequestPreferenceControllerTest.java
ecentLocationRequestSeeAllPreferenceControllerTest.java
canningSettingsTest.java
ifiScanningPreferenceControllerTest.java
e4d7c0d2f7e52d50c34861a3959e2a4138dc0b94 03-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix switch bar in location settings"
601054ce6a6a2ed8a0f423c465275e5e20630aa8 02-Mar-2018 Maggie <yiranwang@google.com> Fix switch bar in location settings

When user rotates the device in location settings, the swtich bar with
"Use Location" is gone. This change fixes the problem.

Also, remove override getInitialExpandedChildCount() in
LocationSettings. We will use nested PreferenceCategory instead once the
support is ready.

Bug: 73872033
Bug: 70843646
Test: Manual
Change-Id: I343b549398ef2b3d64ca7962b5f2a4ef0441c7f5
ocationSettingsTest.java
ocationSwitchBarControllerTest.java
81fa5ace468ffb56d88a47586e49dc218dfdc3e2 02-Mar-2018 Maggie <yiranwang@google.com> Fix non-unique keys for location settings

Bug: 74104689
Test: Robo
Change-Id: I54ead73b69a6c62897d6b99e14fa5b6627163052
ecentLocationRequestPreferenceControllerTest.java
51fc2889f806300366a84189f0720f77a945a04c 27-Jan-2018 Maggie <yiranwang@google.com> Under "recent location requests", add "See all"

Under Settings -> Security & Location -> Location, add "See all" button
under recent location requests

On location settings page, display at most 3 recent location requests.
If there are more than 3, show a "see all" button.
When user clicks "See all", take them to a new fragment with all recent
location requests.

Test: Robo
Test: Manual
Bug: 70350519
Change-Id: Id1f9a8da1593814a8f30f8e6ec8ac75fb10f6672
ecentLocationRequestPreferenceControllerTest.java
ecentLocationRequestSeeAllPreferenceControllerTest.java
be45f9c865877fa429a8e83589994d983e3a1f65 17-Feb-2018 Fan Zhang <zhfan@google.com> Migrate more settings to SubSettingsLauncher

Bug: 73250851
Test: robotests
Change-Id: I4100bef20e2ed477e4e31c9b7816f1b03f3f2809
ecentLocationRequestPreferenceControllerTest.java
615563db0c6d5ebdb83b8be5b40acbdfab5a2e43 16-Feb-2018 Fan Zhang <zhfan@google.com> Migrate more subsetting launching to SubSettingLauncher

Bug: 73250851
Test: robotests
Change-Id: Ic0bf23f6ac6f717bdd3d477fdb84af68badae8e6
ecentLocationRequestPreferenceControllerTest.java
5d8d0bc9e499da827950d50f6b8ee91ff9c08643 06-Feb-2018 Maggie Wang <yiranwang@google.com> Merge "Add a footer to Location Settings page"
ca80da20b11d10f5ca32fe3c602b51d673267f13 30-Jan-2018 Maggie <yiranwang@google.com> Add a footer to Location Settings page

At the bottom of Settings -> Security & Location -> Location, inject
footers with text provided by system apps. GmsCore uses this footer to
present legal consent info for Google Location Services.

Bug: 70350519
Test: Robo
Test: Manual
Change-Id: I201afdb30baa7b81b591d161fce5be55569b6320
ocationFooterPreferenceControllerTest.java
a1416d2849e866e6a9a53c13af82608ca876454f 01-Feb-2018 yuemingw <yuemingw@google.com> Rename DISALLOW_CONFIG_LOCATION_MODE to DISALLOW_CONFIG_LOCATION.

Bug: 72732481
Test: CtsVerifier test already in
Change-Id: I12a0593eba270727808588efc4c42c4e066c9446
ocationEnablerTest.java
ce55d7c6a140f620fcf23e0ca678b66cf4d07ba5 16-Jan-2018 Doris Ling <dling@google.com> Remove app info page v1 related codes.

- change to use AppInfoDashboardFragment completely
- remove InstalledAppDetails and the corresponding tests

Change-Id: I8cbdf71cadc8b5743929abbafe91185e5e39b6b2
Fixes: 69384089
Test: make RunSettingsRoboTests
ecentLocationRequestPreferenceControllerTest.java
e6032be8516fc0edfc5824093706349c6945e090 24-Jan-2018 Lifu Tang <lifu@google.com> Store location changer into Settings.Secure

Bug: 68779883
Test: Manual
Change-Id: I6ec69d6c9f418a169b8bee71969716e8a44a14a5
ocationEnablerTest.java
5a86cd6545323f836210cfaf488153553c96710d 24-Jan-2018 Maggie <yiranwang@google.com> Remove location mode menu from location settings

Location modes were introduced in KitKat. It has made location settings over complicated. In P we are removing location modes to provide simple, meaningful and transparent controls for users.

Bug: 63818349
Bug: 70350519
Test: Robo
Test: Manual
Change-Id: Ic8a168b8eeb3cd2c8b1536c378c92a5f377d3bba
ocationModeBatterySavingPreferenceControllerTest.java
ocationModeHighAccuracyPreferenceControllerTest.java
ocationModePreferenceControllerTest.java
ocationModeRadioButtonPreferenceControllerTest.java
ocationModeSensorsOnlyPreferenceControllerTest.java
ocationModeTest.java
ocationPreferenceControllerTest.java
85e2f61b2d349125e4bd5d7677cfa09ba09983ca 05-Jan-2018 Maggie <yiranwang@google.com> Remove location_modes_previous references

1. Remove reference to LOCATION_MODE_PREVIOUS.

2. Add setLocationEnabled method in LocationEnabler. When turning location
ON/OFF from Settings app or Quick Settings, use
LocationEnabler.setLocationEnabled() instead of setLocationMode().

3. Change unit tests accordingly.

Bug: 70990911
Test: Robolectric
Test: Manual
Change-Id: Ic02ef3cd02f9aa7d2ef18697b19b507575aaf5c2
ocationEnablerTest.java
ocationSwitchBarControllerTest.java
754ca518422a2a633fc4d49436db7b15b4be0e84 03-Jan-2018 yuemingw <yuemingw@google.com> Disable UI in Settings app when DISALLOW_CONFIG_LOCATION_MODE is set.

Bug: 67674888
Test: m -j RunSettingsRoboTest

Change-Id: I13a4fa4a3122bfd9b84f935c0aa83c019490eac9
ocationEnablerTest.java
e31f582bafe11430bfe1821bfacd1cfd775a725c 12-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce boolean flag to show/hide Location Scanning preference."
e8377718e057ef245d1c2114933ea2a6b4d891b5 12-Jan-2018 Ben Lin <linben@google.com> Introduce boolean flag to show/hide Location Scanning preference.

This introduce one new flag:
config_show_location_scanning

Which when set to false, will hide "Scanning" in Location preference.

Some OEMs may control Bluetooth/Wi-Fi scanning themselves, so they may
want to hide the page from users.

Bug: 62418710
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=LocationScanningPreferenceControllerTest

Change-Id: I19f0020a2c94f70b3b7956529f57af098ccc79fd
ocationScanningPreferenceControllerTest.java
4e08869e1a1f99162bb1e5387455816fdbc27366 11-Jan-2018 Fan Zhang <zhfan@google.com> Make a strong reference to LifecycleOwner in tests

Change-Id: Id3b26ded6c903b67b9880dbfe1a0656a564c8947
Fixes: 71867776
Test: rerun tests
ocationEnablerTest.java
ocationForWorkPreferenceControllerTest.java
ocationModeBatterySavingPreferenceControllerTest.java
ocationModeHighAccuracyPreferenceControllerTest.java
ocationModePreferenceControllerTest.java
ocationModeRadioButtonPreferenceControllerTest.java
ocationModeSensorsOnlyPreferenceControllerTest.java
ocationPreferenceControllerTest.java
ocationServicePreferenceControllerTest.java
ocationSwitchBarControllerTest.java
ecentLocationRequestPreferenceControllerTest.java
3e9ab54f76f53c3ee163f5d4d6639354496f11a1 08-Dec-2017 Maggie <yiranwang@google.com> Display "Recent Location Requests" in order

A list of apps with recent location requests is displayed under Settings -> Security & Location -> Location. The apps were sorted in alphabetical order. This CL changes the behavior and displays the apps in original order from RecentLocationApps.getAppList().

Bug: 70350519
Test: Robolectric
Test: manual
Change-Id: I0fc1ce307b9519f3f324db220b6e2b32ed71cc2f
ecentLocationRequestPreferenceControllerTest.java
91ffc73152713d5b702407add22dbaa87bf4b27d 14-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Hide Location Mode from search results if it's not available."
d11d08658ff07d594ff50d038dc1e5865327ae08 06-Dec-2017 Ben Lin <linben@google.com> Hide Location Mode from search results if it's not available.

Test: make RunSettingsRoboTests ROBOTEST_FILTER=LocationModeTest all
passes.
Bug: 70283459
Change-Id: Id99d4a8f694b6f223ee8ead9701569840e333a9e
ocationModeTest.java
a0006d93bdeb24137cb29f44cfb2de020bd64f6e 08-Dec-2017 Doris Ling <dling@google.com> Move AppInfoDashboardFragment into appinfo package.

- update all references to AppInfoDashboardFragment
- removed PackageUtil inner class and change the corresponding function
to be a simple method.

Bug: 69384089
Test: make RunSettingsRoboTests
Change-Id: Ief067e25a303ef16db20b2ca1d8840cb06eff5f9
ecentLocationRequestPreferenceControllerTest.java
1949600132d05da7e3785412b7fd8fc336c8205b 30-Nov-2017 Maggie <yiranwang@google.com> Send MODE_CHANGING broadcast before location mode change.

When location mode is about to change in Settings app, send
MODE_CHANGING broadcast.

Fixes: 28057031
Test: manual
Test: robotests
Change-Id: I430941915daedf13e7b5d22dc8a6e37729d95b75
ocationEnablerTest.java
ocationModeRadioButtonPreferenceControllerTest.java
cbfb099a4002f751ff9b367f1742565b40c5d519 05-Dec-2017 jeffreyhuang <jeffreyhuang@google.com> Rename SDK_VERSION_O to SDK_VERSION

Test: make RunSettingsRoboTests -j40
Change-Id: I6715062d8addadda441e32809db1af55f15e3a90
ppLocationPermissionPreferenceControllerTest.java
luetoothScanningPreferenceControllerTest.java
ocationEnablerTest.java
ocationForWorkPreferenceControllerTest.java
ocationModeBatterySavingPreferenceControllerTest.java
ocationModeHighAccuracyPreferenceControllerTest.java
ocationModePreferenceControllerTest.java
ocationModeRadioButtonPreferenceControllerTest.java
ocationModeSensorsOnlyPreferenceControllerTest.java
ocationPreferenceControllerTest.java
ocationServicePreferenceControllerTest.java
ocationSwitchBarControllerTest.java
ecentLocationRequestPreferenceControllerTest.java
canningSettingsTest.java
ifiScanningPreferenceControllerTest.java
607cd20a1606842f7807f90a9f9bb753a13ce0ba 02-Dec-2017 Ben Lin <linben@google.com> Add XML attribute to toggle on/off LocationModePreferenceController.

Test: make RunSettingsRoboTests
ROBOTEST_FILTER=LocationModePreferenceControllerTest all pass.
Bug: 62378711

Change-Id: I0d054171b80b5677dba2a7a02fb076660ed5cc0d
ocationModePreferenceControllerTest.java
30fdcdf72a56a9c76335f93b52098a464fc5891e 30-Nov-2017 jeffreyhuang <jeffreyhuang@google.com> Move LocationPreferenceControllerTest to sdk 26

Test: make RunSettingsRoboTests -j40
Change-Id: I3644868df2a501d819a3dd029523dd06aa9c7c2e
ocationPreferenceControllerTest.java
529e207986671d63b780f2555f4795c74a2697d0 18-Nov-2017 Doris Ling <dling@google.com> Create version 2 of InstalledAppDetails

- this is the first step for converting InstalledAppDetails into
DashboardFragment
- add a feature flag to determine whether to show the new installed app
detail page.
- decouple the fragment from AppInfoBase: extends from
SettingsPreferenceFragment directly and copy all codes from
AppInfoBase.

Bug: 69384089
Test: make RunSettingsRoboTests
Change-Id: If1ab5b216620eaba1d6bde20e65e7a602931fd94
ecentLocationRequestPreferenceControllerTest.java
94a7c7d21c7dea18400642463ff4fc7d75ad1923 10-Nov-2017 Tony Mantler <nicoya@google.com> Convert SettingsLib Lifecycle to Flatfoot

Bug: 69257739
Test: m -j RunSettingsRoboTests
Change-Id: I27e7850c39afb9c09297007e8cc352f410665653
ocationEnablerTest.java
ocationForWorkPreferenceControllerTest.java
ocationModeBatterySavingPreferenceControllerTest.java
ocationModeHighAccuracyPreferenceControllerTest.java
ocationModePreferenceControllerTest.java
ocationModeRadioButtonPreferenceControllerTest.java
ocationModeSensorsOnlyPreferenceControllerTest.java
ocationPreferenceControllerTest.java
ocationServicePreferenceControllerTest.java
ocationSwitchBarControllerTest.java
ecentLocationRequestPreferenceControllerTest.java
9ed29a2e57bb6e0ad1626afdfb0517ba643ccc9f 03-Nov-2017 Doris Ling <dling@google.com> Convert location settings to DashboardFragment.

- change LocationMode, LocationSettings, and ScanningSettings to be
DashboardFragment.
- remove LocationSettingsBase and moved base logics into base
controller.
- add controllers for the preferences under the 3 location settings
pages.

Fixes: 68719207
Test: make RunSettingsRoboTests
Change-Id: Icedf691c2a9f7989faebee39ea9da672209b7957
ppLocationPermissionPreferenceControllerTest.java
luetoothScanningPreferenceControllerTest.java
ocationEnablerTest.java
ocationForWorkPreferenceControllerTest.java
ocationModeBatterySavingPreferenceControllerTest.java
ocationModeHighAccuracyPreferenceControllerTest.java
ocationModePreferenceControllerTest.java
ocationModeRadioButtonPreferenceControllerTest.java
ocationModeSensorsOnlyPreferenceControllerTest.java
ocationServicePreferenceControllerTest.java
ocationSwitchBarControllerTest.java
ecentLocationRequestPreferenceControllerTest.java
canningSettingsTest.java
ifiScanningPreferenceControllerTest.java
a72620b67b34f808da09c34f973a7afb86f26981 08-Nov-2017 Fan Zhang <zhfan@google.com> Use setVisible instead of removePreference everywhere.

Change-Id: I2e8084b23d3cb2c0a31a38c01716fc76236734ea
Fixes: 68956750
Test: robotests
ppLocationPermissionPreferenceControllerTest.java
25f29bf126b71b94ac180b2c6664b22682886a12 24-Oct-2017 Fan Zhang <zhfan@google.com> Only allow Settings app launch search result page

Bug: 68199963
Test: robotest
Change-Id: I0018e9c60b0dd46fc2420a563a93b706bf252dc4
ocationPreferenceControllerTest.java
89b8e5c1032ec48792111434f04cbde4b38f3707 24-Oct-2017 Fan Zhang <zhfan@google.com> Deprecate resId field in SearchIndexableResources

Change-Id: Ie69a68beae51e35c7bc861cd124d8195c1ed39dd
Bug: 37741509
Test: robotests
canningSettingsTest.java
e18902ec6764e138cd4bb5a452a9c25736764252 21-Sep-2017 Maurice Lam <yukl@google.com> Update Robolectric to 3.4.2

Bug: 66693279
Test: m RunSettingsRoboTests
m RunSettingsRoboTests-jacoco
Change-Id: I9df619c3d68f0af2ee2ae944a15998275129f7c2
ocationPreferenceControllerTest.java
ea72afa3306cf054b923d882604dc1900e865fcd 07-Jul-2017 Matthew Fritze <mfritze@google.com> Add location as a Inline list payload

The inline payload is added to security settings because
security settings indexes the setting with the key
"location" which corresponds with the correct
PreferenceController, LocationPreferenceController.

However, we suppress the Location search result, so to
avoid confusion later, we don't include the ResultPayload
in the search indexing.

Merge from: ag/2511709/

Bug: 62022517
Test: make RunSettingsRoboTests
Change-Id: Ic5515d38064498ae908f4cefedfeb3c2a2af449c
ocationPreferenceControllerTest.java
9f1e911759dc6fedaac9fa65afb79f6a93022bf4 09-Jun-2017 Andrew Sapperstein <asapperstein@google.com> Refactor test runner to use static list of resource paths

Previously everything lived in an inner class method of
SettingsRobolectricTestRunner. That method has now been turned into
a static method so that it can be called by other runners.

Bug: 62460102
Test: robotests
Change-Id: I6612b1f26404587301c534c8ba60e39d59d6c840
ppLocationPermissionPreferenceControllerTest.java
ocationPreferenceControllerTest.java
046400c2c407429da47e6b2230ba8bbd21c43e9b 24-May-2017 Maurice Lam <yukl@google.com> Migrate settings robolectric tests to mockito 2

- Migrated ArgumentMatcher subclasses to lambdas
- Replaced any() with nullable() where tests were failing

Test: cd tests/robotests && mma
Bug: 38456058
Change-Id: Ice8c39b435c45b87f82dbbd9860e68f235314cf8
ocationPreferenceControllerTest.java
777ed2535a7fd6f618a0d12f381af99252283574 10-May-2017 Juan Lang <juanlang@google.com> Depend on SettingsLib's version of lifecycle and FooterMixin.

The implementations have been imported into SettingsLib. Setting's copy
can now be removed, which this change also does.

Test: Manually check battery status, which uses FooterMixin, looks OK.
make RunSettingsLibRobotTests && make RunSettingsRoboTests
&& make RunSettingsGoogleRoboTests
Change-Id: I6539605fdad80d156ff5ff249e68df4a1c412067
ocationPreferenceControllerTest.java
2e52b42e3b1ea0762ca3cac9d809a5f720d87175 06-May-2017 Alex Salo <asalo@google.com> Location setting now updates summary timely.

Subscribed the LocationPreferenceController to listen to the location
providers changed action. This allows timely summary update. Previous
approach, directly calling the updateSummary method onResume failed in
the scenario when user changed the location settings via the
QuickSettings.

Test: Added robolectric tests, and manually verified the intended
behavior on a device.
Bug: 37956060
Change-Id: I2f81713d59da3384f3c98b327d377d529d440a88
ocationPreferenceControllerTest.java
4e1477b60e8bacc7b81e88af735deb51f2d7bb1f 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update Security & screen lock preference"
81610543a9d26cf52a4b8aad0bbdde4aa010e197 16-Feb-2017 Doris Ling <dling@google.com> Update Security & screen lock preference

- change password category title to Privacy and move Location into it.
- remove Advanced security preference category
- remove SIM card preference category and move the SIM card lock
preferece down.
- move Encryption and Credential settings to a separate screen.

Bug: 34976707
Test: make RunSettingsRoboTests
Change-Id: Iebaba4a8aad135fa88f163de0b60b488fd9510d0
ocationPreferenceControllerTest.java
8a7504eb12a0376a7fce53359fad97e2e75e807f 17-Feb-2017 Doris Ling <dling@google.com> Modify test cases according to change in remove preference behavior.

Bug: 35365702
Test: make RunSettingsRoboTests
Change-Id: I541f4bd946116c766a90da955c11933a5499fa93
ppLocationPermissionPreferenceControllerTest.java
b9cf917f403e7ee31f81d3b8dfd54c50123fa2c5 19-Jan-2017 songchenxi <songchenxi@google.com> Location Setting change for O

This is a change that adds a link from location settings to location
permissions

Test: Manual

Bug: 34400189
Change-Id: If873fbb6e53c1fd86a3cfe38e06465cdec56bef8
ppLocationPermissionPreferenceControllerTest.java