OSDN Git Service

Show the status of private DNS.
authorChalard Jean <jchalard@google.com>
Thu, 19 Apr 2018 09:23:49 +0000 (18:23 +0900)
committerChalard Jean <jchalard@google.com>
Thu, 3 May 2018 05:04:47 +0000 (05:04 +0000)
commitf249555f97cf3a5cd128774bd4338d83e455e772
tree181f78d30293dd67c1bea5dfa9ed1b3fcabaa04a
parent4c89530ff2a97473470f474995930dad84934654
Show the status of private DNS.

This works as follows :
Off → "Off"
Opportunistic, inactive → "Automatic"
Opportunistic, active → "On"
  (stealing a string from notifications for this)
Strict, not resolved and/or not validated → "Couldn't connect"
Strict, resolved and validated → Set up hostname

Bug: 73641539
Test: manual, and updated tests pass
Change-Id: Id1132467288d51aa9cb81a04db65dee438ddfad9
src/com/android/settings/network/PrivateDnsPreferenceController.java
tests/robotests/src/com/android/settings/network/PrivateDnsPreferenceControllerTest.java