History log of /packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0f01c849cd6b546f216f9fac837693fc4a9c5138 29-Mar-2017 Doris Ling <dling@google.com> Only register conditions receiver when needed.

1. Update the dnd receiver to listen when dashboard summary running.
- remove the dnd receiver from Android manifest, and create it inside
the dnd condition.
- add lifecycle implementation to condition manager, so that the dnd
condition can know when to register and unregister the receiver.
- remove getReceiverClass() from dnd condition so that its receiver will
not be disabled by the default condition handling when condition is
silenced.

2. Remove all other conditions receiver from Android manifest.
- the broadcast receivers for HotspotCondition, AirplaneModeCondition,
CellularDataCondition from the manifest and create them inside the
condition classes.
- update Condition.onSilenceChanged() to register/unregister the
receivers instead of enable/disable the receiver class.

Change-Id: Iea6288382680df2b02884d1934b8db85daae404c
Fix: 35968517
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
c6ca314c0b872f75926807ca7d6eb24ebe7cb684 15-Feb-2017 Fan Zhang <zhfan@google.com> Log source with visibility change

- Add a method in VisibilityLoggerMixin to log visible event using
LogMaker, which allows logging additional FIELD_CONTEXT field.
- In Utils.startFragment, add current page's metricsCategory as an extra
to next page.
- In next page's onResume(), extract the previous page's metricsCategory
and send it to VisibilityLoggerMixin.visible()
- Update all caller with additional paramters

Change-Id: I8e1f2597fa465b7d3aa16fa1d21c052a3219694a
Fix: 35359289
Test: RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
265d3c2a0c36251bf8a9f571d7239b6dd404d942 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
9d251279ca1ce905e332945e19fd0d3fc09103b1 18-Jul-2016 Christopher Wiley <wiley@google.com> Do not use TetherUtil.setWifiTethering

This functionality is replaced by ConnectivityManager.startTethering()
and ConnectivityManager.stopTethering().

Bug: 30147602
Test: Can toggle tethering on/off via all of settings, quick settings,
and quick quick settings.
Change-Id: I4d190185c473237982b988f898e76d4997dc401c
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
3f6208170df1e8635a5d45947a2703c895da6970 11-Apr-2016 Zoltan Szatmary-Ban <szatmz@google.com> Apply policy transparency to HotspotCondition and WiFi settings...

...when there is an active hotspot and user restriction for disallowing
tether config is in effect. This is to avoid getting security exceptions
from WifiManager when engaging with HotspotCondition or Wifi enable switch.

Bug:27936528
Change-Id: Ib3324e853277c177966b55668758d349ffe6ecf5
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
f20c718f192d680bc4941e544c218c5a204c35f9 30-Mar-2016 Jason Monk <jmonk@google.com> Add metrics for settings conditionals

Bug: 27851236
Change-Id: I400716457d3f628419410a02c2a457d41d19a067
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
3a14416d55ad64147362f57410ee4ea98a0476b4 29-Jan-2016 Jeremy Klein <jlklein@google.com> Remove TetherUtil functions which are no longer needed.

Change-Id: I8559a2aaffa44e165d4e5e9070a85f23ed02b58b
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
70ecea22076c53599932f2146bc25ddf3b49c6a6 15-Dec-2015 Jason Monk <jmonk@google.com> Add cellular data off conditional

Change-Id: I34980f3fc09bf5dd47eb296c5b1c5fccc87b5c90
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java
db4ed191deefeda79af5644634415597c1c70217 11-Dec-2015 Jason Monk <jmonk@google.com> Add conditionals to Settings

Also add Airplane Mode and Hotspot conditionals (more to come soon)

Change-Id: I11f206db59f7c715f416fb5852b8f0fcb857a247
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/HotspotCondition.java