Commit Graph

50734 Commits

Author SHA1 Message Date
Fan Zhang
5db43105e8 Move a few classes around for easier ownership control
Bug: 128547723
Test: rebuild
Change-Id: I8f0dcf30fee44eaae60e10510620fb518cded68f
2019-03-15 15:32:33 -07:00
Jack Yu
8533937220 Renamed NetworkRegistrationState to NetworkRegistrationInfo
API review changes. The class covers more information other than
registration state.

Test: Build
Bug: 127657991
Change-Id: I362bcd3e4bec91817081ddea2f822062b12c4207
2019-03-15 15:03:27 -07:00
TreeHugger Robot
8c3fb57ea3 Merge "Fix channel configurability check" 2019-03-15 21:57:23 +00:00
TreeHugger Robot
4c42163093 Merge "Update design of channel pages." 2019-03-15 21:47:51 +00:00
TreeHugger Robot
6f822c1049 Merge "Fix for affordances to add a mobile subscription" 2019-03-15 21:47:32 +00:00
TreeHugger Robot
a63fd33c0b Merge "Tie ContextualWifiSlice to UI instead of garbage collector" 2019-03-15 21:41:29 +00:00
TreeHugger Robot
08ee7b5aa4 Merge "Only show zen rule gear if intent is valid" 2019-03-15 21:39:42 +00:00
TreeHugger Robot
20886072af Merge changes I85ca2b69,Ibd7a47cb,I79522aab
* changes:
  Update strings for scanning settings
  Display empty message if no recent location access
  Add comment to help translator with plural forms
2019-03-15 21:36:41 +00:00
Jack Yu
8bdef807ac Merge "Moved transport to IntDef" 2019-03-15 21:16:41 +00:00
Fan Zhang
2635ae4ccb Merge "Update switchbar color for accessibilty" 2019-03-15 19:47:19 +00:00
jackqdyulei
8308274058 Add circle background outline to unthethered icon
Fixes: 124247230
Test: manual
Change-Id: I70f8158685134e2115f2a7baded983ebac6c8f1b
2019-03-15 12:40:58 -07:00
Fan Zhang
f47cb9a008 Update switchbar color for accessibilty
Fixes: 127878068
Test: visual
Change-Id: Ice36a11c4fe126a80db6e5a504e8867e81344173
2019-03-15 12:40:18 -07:00
Lifu Tang
754ce92037 Update strings for scanning settings
Bug: 128323721
Test: build, flash, and test manually
Change-Id: I85ca2b69e61bdc839b9df1010c74d945990d5549
2019-03-15 12:32:32 -07:00
Lifu Tang
ecea9e96d9 Display empty message if no recent location access
Bug: 120873123
Test: build, flash, and test manually
Change-Id: Ibd7a47cb814fe16ecb1c017865ab28862e17ddcc
2019-03-15 11:43:00 -07:00
Julia Reynolds
99644e2098 Choose a pref key less likely to conflict
Test: manual
Fixes: 127498706
Change-Id: I254cef727df137abac5810f19e63449a7f582876
2019-03-15 18:17:35 +00:00
Antony Sargent
10353cd8b6 Fix for affordances to add a mobile subscription
This changes the behavior for when we show an affordance to add a mobile
subscription via the eSIM manager (if eSIM is supported).  On the
Network & internet page, the behavior we now want for the "Mobile
network" pref has several possibilities as detailed below.

No existing subscriptions:
- Summary is "Add a network"
- Tapping on pref leads to the add subscription flow

One existing subscription:
- Summary is the name of the subscription (usually the carrier name)
- Tapping left-hand side of the pref leads to mobile network details
- A "+" button is shown on right of pref, and tapping "+" leads to the
  add subscription flow

2 or more existing subscriptions:
- Summary is "<count> SIMs"
- Tapping left-hand side of the pref leads to a new page with the list
  of subscriptions
- A "+" button is shown on right of pref, and tapping "+" leads to the
  add subscription flow

The existing code controlling the "Mobile network" pref (in
MobileNetworkSummaryController.java) already had behavior similar to
this, but needed to be updated to no longer rely on whether we're in
DSDS mode.

Also, the page with the list of subscriptions that you can go to in the
"2 or more existing subscriptions" case mentioned above has an "Add
more" link at the bottom which leads to the same eSIM manager flow, but
it was always showing this link even if the device doesn't support
eSIM. This CL also fixes that problem.

Bug: 127870567
Test: make RunSettingsRoboTests
Change-Id: Ie8cca47ac81f8992fa6ecf1940bdfed411fd333b
2019-03-15 10:27:21 -07:00
Julia Reynolds
9c6f1aa74b Fix channel configurability check
Test: atest
Fixes: 128669244
Change-Id: Ib4bc666262426ea1fb8fc034a361c93bdd5afb36
2019-03-15 17:19:02 +00:00
Lei Yu
7960cf6023 Merge "Turn on remote volume slider" 2019-03-15 17:06:33 +00:00
TreeHugger Robot
3b7571ab75 Merge "Remove parameter from uri when get slice" 2019-03-15 16:19:14 +00:00
TreeHugger Robot
df22ef206b Merge "Update api usage for rename" 2019-03-15 16:15:40 +00:00
Julia Reynolds
4253be9191 Update design of channel pages.
Test: atest
Bug: 127796543
Change-Id: I4fabeafe2602c341554959303e67bc69c8817a8f
2019-03-15 10:21:24 -04:00
Beverly
575a856709 Move WakeGestureScreenGestureSettings
Test: robosettings tests
Bug: 127955764
Change-Id: I058a960d6e51afd6e92b9a035993f6bfd91025b8
2019-03-15 09:34:05 -04:00
clownshen
7fe8f92846 Display more information on network detail page
For connected network, show all information at detail page. For
disconnected network, show signal strength, Mac address, etc.

Bug: 124707751
Test: atest
Test: manual test
Change-Id: I401621abf9bba5dc7900b47a811d595adc906c13
2019-03-15 19:40:26 +08:00
hughchen
9e78737483 Remove parameter from uri when get slice
Slice may added parameter in their uri.
When get slice through uri, removed parameter from uri to get correct slice.

Bug: 128651940
Test: make -j42 RunSettingsRoboTests
Change-Id: Id3cb7b91026384ce4e22c157a2908a5e18bc7993
2019-03-15 15:14:16 +08:00
Hyundo Moon
da73f26923 Remove ControllerLink
Bug: 128591619
Test: atest com.android.settings.notification.RemoteVolumePreferenceControllerTest
      atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
      atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
      atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
      atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest;
Change-Id: I4a975f8a24aaa4e5beb54515f3319f9597b76eb5
2019-03-15 15:07:09 +09:00
Kevin Chyn
7d7b09abeb Merge "Update icon" 2019-03-15 04:43:27 +00:00
Kevin Chyn
b697847430 Merge "Update toggle logic" 2019-03-15 04:22:58 +00:00
TreeHugger Robot
63820288ae Merge "Add links to app location permission page" 2019-03-15 03:52:46 +00:00
Jack Yu
763f7710fe Moved transport to IntDef
Moved out from the sub class per API review feedback.

Test: Build
Bug: 128607082

Change-Id: I4c476b61b472a9ce706ffe9e52da47e26b0b6dcf
2019-03-14 20:18:42 -07:00
Amit Mahajan
defd0155a1 Merge "Move SMS raw db deletion to phone process." am: 479ec92c27 am: f784db5cae
am: 1285b12980

Change-Id: I349002ff9a72b08056a8af47361de4914afb2b3d
2019-03-14 18:55:13 -07:00
Amit Mahajan
1285b12980 Merge "Move SMS raw db deletion to phone process." am: 479ec92c27
am: f784db5cae

Change-Id: Ib90080a6fad7ad8914390df8e4aa92749669f1a9
2019-03-14 18:49:59 -07:00
Amit Mahajan
f784db5cae Merge "Move SMS raw db deletion to phone process."
am: 479ec92c27

Change-Id: I38689f5f833825eae230706b536c4ad1ded847bd
2019-03-14 18:45:50 -07:00
Kevin Chyn
f1536636a0 Update icon
Bug: 111548033
Test: Builds
Change-Id: I68fd1f0b24a46b762baa1acb1087313ddaaf815b
2019-03-14 18:25:40 -07:00
Kevin Chyn
11679da53d Update toggle logic
Bug: 111548033

Test: Builds
Change-Id: I591297940b48cffe61ca0279ff835ccacd2a625f
2019-03-14 18:25:40 -07:00
Treehugger Robot
479ec92c27 Merge "Move SMS raw db deletion to phone process." 2019-03-15 01:25:28 +00:00
TreeHugger Robot
57a0c87e5b Merge "Make Panel accept TitleItem for first row" 2019-03-15 01:20:19 +00:00
Lifu Tang
1328b1f30d Add links to app location permission page
Bug: 121271387
Test: build, flash, and test manually
Change-Id: I188b7113c2421c66b03e8330f141f514991450fe
2019-03-14 16:12:20 -07:00
Hunter Knepshield
e8e86e631a [Strings + layout] Minor changes for eSIM erase.
1. String changes (uniform on both screens now)
2. Minor non-functional layout changes (margin is uniform now)

Reset everything: https://screenshot.googleplex.com/OZsvOt36CZf
Reset networks: https://screenshot.googleplex.com/in0vdOAeF7u

Change-Id: I92d068c3731f6915c8d393d94ac8c25a3c8ed773
Fix: 119120504
Test: on device
2019-03-14 15:14:35 -07:00
Brad Ebinger
8bff9c3501 Do not show Provisioning items for IMS if it is not enabled.
Do not show IMS related items if FEATURE_TELEPHONY_IMS
is not defined for this device.

Bug: 118823723
Test: manual
Merged-In: I9624535fe766cd79eadb30502c1a0574650a02ef
Change-Id: I9624535fe766cd79eadb30502c1a0574650a02ef
2019-03-14 15:00:42 -07:00
jackqdyulei
69db774bda Turn on remote volume slider
Since now media API support multiple clients.

Fixes: 126199571
Test: Manual
Change-Id: I8d01ca3a0d46eb8a4450002ddf9911a7fda7dd5b
2019-03-14 14:59:22 -07:00
manabu, shimoda
9fae73915c Base implementation of WFC disclaimer UI
Test: manual - Check that no error occurred when changing the wifi
calling settings to turn on.
Test: auto - Passed WifiCallingSettingsForSubTest,
WifiCallingDisclaimerFragmentTest and DisclaimerItemListAdapterTest.
Bug: 67872298

Change-Id: I789f530d3e16baa6e56feaa4269f6696976f747e
2019-03-14 14:58:20 -07:00
TreeHugger Robot
60d64cecd4 Merge "Use CustomSliceRegistry directly when possible." 2019-03-14 21:48:23 +00:00
Fan Zhang
4cb2727989 Tie ContextualWifiSlice to UI instead of garbage collector
- Introduce a static long in SliceFeatureProvider that updates once
  every "session". A session is when user is in an UI (screen rotation,
  going to subpage, etc does not break the continuation of session).

- Use session token in ContextualWifiSlice to determine when to refresh,
  instead of relying on WeakHashMap from CustomSliceManager.
  WeakHashMap can be cleaned up at any time by gc so it doesn't match
  what we want on the UI.

- Also as a side fix, merged CustomSliceManager into
  SliceFeatureProvider.

Fixes: 123937830
Test: robo
Change-Id: I199bceceb208b99a32f3f08e624787b5a03e73a9
2019-03-14 14:45:59 -07:00
Brad Ebinger
0ba4ca099b Merge "Do not show Provisioning items for IMS if it is not enabled." 2019-03-14 21:23:55 +00:00
Lifu Tang
15d5047209 Add comment to help translator with plural forms
Test: build and flash
Change-Id: I79522aab32db60fd244991191a2e3bac03fb3ee0
2019-03-14 13:21:25 -07:00
Fan Zhang
ad29500d1d Use CustomSliceRegistry directly when possible.
This is one step closer to (un)make CustomSliceManager an singleton.

Bug: 123937830
Test: manual
Change-Id: I844d0fb798c73e2af1945ecb667ba73fac9edf72
2019-03-14 13:15:01 -07:00
Oscar Shu
f6d9989a91 Merge "Change feature flag to correct flag" 2019-03-14 20:12:41 +00:00
TreeHugger Robot
0e08cfa095 Merge "Reduce scope for some methods in SliceFeatureProvider" 2019-03-14 19:15:49 +00:00
jackqdyulei
369ad5a9cf Make Panel accept TitleItem for first row
Fixes: 128611750
Test: Manual
Change-Id: If1604f293d9fa7d538750a07cdbb729f5cc099dc
2019-03-14 10:58:35 -07:00
Hai Shalom
2366605900 [Wi-Fi] Do not delete certs when forgetting network
Deleting EAP Wi-Fi configuration deletes shared credentials used by other
configs. To resolve this issue the following changes were implemented:
1. When manually adding Wi-Fi certs from storage, Wi-Fi will not attempt
to delete them when network is removed.
2. When apps use WifiEnterpriseConfig#setClientKeyEntry to add certs,
they will be deleted if the network is removed.
3. Allow the user to delete Wi-Fi certs the same way that allows the
user to add them. Make the "Remove" option available, and implement key
store removal in settings.

Bug: 30248175
Test: atest WifiEnterpriseConfigTest
Test: Load certs, remove certs from credentials menu
Test: Load cert, create 2 EAP networks that use it, forget one network
Change-Id: I2015207d51188821da3397e1947e5eb6aefbf6e1
2019-03-14 10:45:55 -07:00