Commit Graph

14 Commits

Author SHA1 Message Date
Philip P. Moltmann
4e615e6986 Factor some RestrictedLockUtils out of SettingLib
Also make the new lib only use system-apis.

This allows mainline module to use the new
RestrictedLockUtilsSettingLib.

Unfortunately the whole RestrictedLockUtils would have caused to much
new system-api. Hence it was split into RestrictedLockUtils and
RestrictedLockUtilsInternal. This caused a lot of trivial code changes.

Bug: 110953302
Test: Built
Change-Id: I693b3bf56f3be71f0790776e3aad5694717786ef
2018-08-30 11:59:29 -07:00
Fan Zhang
f7802eacfd Sort imports
Having consistent import order will reduce chance of merge
conflict between internal and external master

Test: rebuild
Change-Id: I9acb311ec05f72f0a37f08b0d26785841fe91de5
2018-08-28 15:16:58 -07:00
Chilun
805ec798dc Add index for Hotspot settings page into search
Move repeated code into utility class.
Add robotests for public API.

Bug: 74777873
Test: make -j RunSettingsLibRoboTests
Change-Id: I00d29799add28566fb20bf18d2e44d828952e8ad
2018-05-09 14:05:14 +08:00
Aurimas Liutikas
fd52c1433c Migrated SystemUI & SettingsLib to androidx
Test: make SystemUI SettingsLib
Bug:76692459
Change-Id: I248fdf4042a0a97bc6349091da21c936c2d37c95
2018-04-20 12:48:23 -07:00
Fan Zhang
9c8d2fbb85 Fix NPE when opening tether preference.
Change-Id: I387d340859cef1adb190e9c763d78c167f0b298b
Fix: 38105700
Test: make RunSettingsLibRoboTests
2017-05-08 17:27:45 +00:00
Christopher Wiley
26bd4efcaa TetherUtil: Use ConnectivityManager for tethering
In the past, enabling the SoftAP would cause tethering to happen because
of some unfortunate side effects.  This is no longer the case, and
using WifiManager for this purpose is not a good idea.

Bug: 30147602
Test: Can toggle tethering on/off via all of settings, quick settings,
      and quick quick settings.

Change-Id: Iebbfc6c48b3e8e3fa52d235594ded3502f5801a3
2016-07-18 11:12:00 -07:00
Jeremy Klein
aaa20ad134 Remove several TetherUtil functions which are no longer needed.
Slowly chipping away at TetherUtil to clean up this code.
This CL also adds an admin check to
ConnectivityService.isTetheringSupported to get parity with the
TetherUtil function before removing it.

Change-Id: Ibe7c5c9fb420d57e5458f77dad30e8a1e751a3e2
2016-02-04 19:06:59 -08:00
Jeremy Klein
36c7aa0325 Expose a simple tethering API which includes provision checks.
This CL exposes startTethering and stopTethering functions which also
encapsulate all provisioning check logic. Right now, only silent checks
are implemented, but UI checks will come in a follow-up CL. GTS tests
and Settings changes are under the same topic ID.

BUG: 26247383
Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
2016-01-25 16:37:09 -08:00
Chris Manton
85f7f790df am e8c98b77: am f40365f1: am ae0b7ca9: am c9180528: Merge "Add capability to ignore carrier entitlement checks" into mnc-dr-dev
* commit 'e8c98b77854d39606960b0b6f5b5332c61e9a3d9':
  Add capability to ignore carrier entitlement checks
2015-09-14 17:54:26 +00:00
Chris Manton
1ba0fa04de Add capability to ignore carrier entitlement checks
Boolean to check to ignore carrier entitlement check.
API to follow later.

Carrier configuration manager has an option
to override tethering entitlement checks.
Ignore entitlement checks if overridden by
the carrier configuration flag.

bug:23712807

Change-Id: I6c9b3b9994279e592db304debef54809338fe9cf
2015-09-11 14:33:22 -07:00
Mitchell Wills
658b8c258c am a578ac88: am 9fde6f2c: am edf93764: am b460cc88: Merge "Remove wifi enabled checking from settings TetherUtil" into mnc-dr-dev
* commit 'a578ac888622a6b46bbaac78b04adebec9b9979b':
  Remove wifi enabled checking from settings TetherUtil
2015-08-20 18:58:56 +00:00
Mitchell Wills
8ba94ba2ab Remove wifi enabled checking from settings TetherUtil
TetherUtil no longer needs to reenable wifi when leaving SAP mode as
it is now done by WifiController. WifiController will also disable
wifi if needed when enabling SAP.

Bug: 22729316
Change-Id: I2ffe50e6468519ca964b27ba70a7e3019fd96eb1
2015-08-17 18:47:08 +00:00
Xiaohui Chen
2b45f8a6ce Clean up USER_OWNER references in settingslib.
Bug: 19913735
Change-Id: I0ccaed63c8fbc3bcbbd8d5cf8047e33c6e2edb5c
2015-08-05 16:31:19 +00:00
Jason Monk
95f03c4170 Some Tethering code to SettingsLib and use in QS
Change-Id: I640c84d4e42d2f1955db8cd6e473b6acac64dd39
2015-02-12 10:33:31 -05:00