Commit Graph

59130 Commits

Author SHA1 Message Date
Jason Chiu
c0543e833f Guard NPE in getAvailabilityStatus of InstantAppDomainsPreferenceController
Fixes: 149373695
Test: build, manual
Change-Id: I7501ef393e226bb38c72a1ee465bf9c72586716b
2020-02-21 17:06:03 +08:00
Automerger Merge Worker
3c1b99c1dc [automerger skipped] Merge "Update OWNERS file" am: e4ad103957 am: 0e48a26373 am: 0e17e3f891 -s ours
am skip reason: Change-Id Ifa7045000ce578a611bb065cd821a87a54edd49c with SHA-1 5920f62784 is in history

Change-Id: I8b8701deacb8424499a40f0e67699d7e679bf6f7
2020-02-21 07:37:29 +00:00
Automerger Merge Worker
0e17e3f891 Merge "Update OWNERS file" am: e4ad103957 am: 0e48a26373
Change-Id: Ib0ff08318795e637e738ed0bfbbad24592f5677b
2020-02-21 07:16:12 +00:00
Automerger Merge Worker
0e48a26373 Merge "Update OWNERS file" am: e4ad103957
Change-Id: Ie9bab07be49cff753100a4abc17f239e7a926b71
2020-02-21 07:03:45 +00:00
Treehugger Robot
e4ad103957 Merge "Update OWNERS file" 2020-02-21 06:54:10 +00:00
Rambo Wang
2717067230 Merge "Polish developer option enable verbose vendor logging" 2020-02-21 06:36:56 +00:00
George Chang
75d2a7f065 Update OWNERS file
Test: None
Merged-In: Ifa7045000ce578a611bb065cd821a87a54edd49c
Change-Id: Id8fcd93340d7869d7f5f933c720dbb3d277a368a
2020-02-21 06:07:48 +00:00
Rambo Wang
c13ba9d27f Polish developer option enable verbose vendor logging
Robotests cases in EnableVerboseVendorLoggingPreferenceControllerTest
show all pass but actually they are all bypassed due to the fact that
the test class can not grant sepolicy permission as what Settings
app does.

This version introduces mock DumpstateDevice HAL to really
perform the Robotests cases.

This CL also clear up code format issues.

Bug: 149886908
Test: make && make RunSettingsRoboTests
Change-Id: I64025ebea60e18d17338604519a6cae98ca7928b
2020-02-20 18:46:49 -08:00
Julia Reynolds
235f07f95e Merge "Fix some crashes in notification history" 2020-02-21 02:37:41 +00:00
Julia Reynolds
0678b84adf Fix some crashes in notification history
- Can't remove from a fixed size list
- Not everyone likes USER_ALL

Test: manual
Fixes: 149937911
Fixes: 149841327
Change-Id: Ia732522f65138fbcefed5d7c4f2c1e88455a8d1f
2020-02-20 16:31:08 -05:00
TreeHugger Robot
9b2fc43a30 Merge "Add prerelease driver to graphics driver preference dashboard." 2020-02-20 19:02:57 +00:00
Yi Jiang
45733d12bc Merge "Hides screen attention when attention service is not avaliable." 2020-02-20 18:59:08 +00:00
Peiyong Lin
b94e6b9e4e Add prerelease driver to graphics driver preference dashboard.
To facilitate better development, add prerelease driver choice to graphics
driver preferences dashboard. This patch also makes sure that when game driver
or developer driver is not shipped, the choice doesn't show up.

Minor: Add tests.

Bug: b/148626177
Test: make RunSettingsRoboTests ROBOTEST_FILTER=GraphicsDriver
Change-Id: Iad398cd663300086d3f4802ffab34531e11dfb17
2020-02-20 09:28:40 -08:00
TreeHugger Robot
5522099ef0 Merge "Fix NPE when there's no forgot password button." 2020-02-20 14:51:34 +00:00
Pavel Grafov
c4d9980a5d Fix NPE when there's no forgot password button.
Test: manual
Bug: 149887743
Change-Id: If2238aec2e618f617b7459b819303c03f009941a
2020-02-20 12:42:12 +00:00
TreeHugger Robot
394323bc51 Merge "Wifi slice improvement" 2020-02-20 12:40:06 +00:00
TreeHugger Robot
806d2fc554 Merge "Implement new dismissal behaviour of contextual card" 2020-02-20 12:05:36 +00:00
Yi-Ling Chuang
deea015b65 Implement new dismissal behaviour of contextual card
Currently, if a contextual card gets dismissed, it will be gone forever.
After this change, all cards being dismissed can be shown again after a
certain amount of time(e.g one day). In order to calculate the amount of
time, CARD_DISMISSED column is replaced with DISMISSED_TIMESTAMP. Once a
card gets dismissed, a timestamp will be recorded for a corresponding
card.

In this change, some methods are moved from CardDatabaseHelper to
ContextualCardFeatureProvider. So OEMs could replace the providers with
their own ones to get cards and have different dismissal behaviours.

Bug: 143055685
Test: rototests
Change-Id: I00ace98991cabcbfcae4fc47a44e9448683d680c
2020-02-20 18:45:14 +08:00
TreeHugger Robot
3c96925aef Merge "Disable Settings toggle if admin has set always-on VPN" 2020-02-20 10:09:35 +00:00
Jason Chiu
dd1fbd68d0 Wifi slice improvement
- always show toggle

Bug: 149666241
Test: robotest
Change-Id: I602d26abf2dfa631a939ee79e9adc63bed44ade0
2020-02-20 17:38:01 +08:00
Daniel Bright
2bd7a14551 Merge "Secret code fix - uses public symbol for secret" 2020-02-20 07:14:01 +00:00
Daniel Bright
27c6358127 Secret code fix - uses public symbol for secret
There were two CLs that conflicted causing
the functionality to break again.  This CL switches
back to TestingSettingsBroadcastReceiver back to using
the secret code on TelephonyManager.

This is Ok because ag/10331474 moves AndroidManifest
to same flag.

Test: Brought up "Testing" activity using secret code
Test: Hit breakpoint in TestingSettingsBroadcastReceiver
      within if block.
Bug: 149524255

Change-Id: I681d88d7f2f0f923850d33219a1ee56eedf87cad
2020-02-19 20:59:54 -08:00
Lee Chou
df38d242be Merge "Added check for preference click" 2020-02-20 04:47:10 +00:00
Rambo Wang
baf12eeb6d Merge "Add Developer option to enable vendor logging in Settings app" 2020-02-20 01:57:27 +00:00
Jiashen Wang
6980bebe47 Merge "Change MobileNetworkUtils to use EuiccManager.isSupportedCountry" 2020-02-19 23:59:14 +00:00
PETER LIANG
52ff691add Merge "Revise the modifier and naming of public APIs for allow rich content." 2020-02-19 23:51:48 +00:00
Automerger Merge Worker
888d17770a Merge "Update Settings UI for IKEv2/IPsec VPNs" am: 9579a76913 am: 033a021251 am: cad8efb2fa
Change-Id: I93d8d976705e382bf2ab0db3545ab847c1291450
2020-02-19 23:08:21 +00:00
Yi Jiang
7f4a4ce85d Hides screen attention when attention service is not avaliable.
If a wrong attention package is pushed to users devices, the screen
attention won't work. In this case, we should also hide the settings
as well.

Test: atest AdaptiveSleepPreferenceControllerTest
Bug: 148099790
Change-Id: Ieb4fd1008856024c23624f0eab3dfbfc3fc4ee3b
2020-02-19 11:57:28 -08:00
Pavel Grafov
ea74ce990e Merge ""Forgot my password" to start profile in locked state." 2020-02-19 19:09:20 +00:00
Bonian Chen
0c9f4e2ab4 Merge "[Settings] Code refactor" 2020-02-19 18:09:17 +00:00
Victor Hsieh
4573c0e0fa Merge "Revert "Support installation of the new app source certificate"" 2020-02-19 17:43:12 +00:00
Bonian Chen
a7fd2030f7 Merge "[Settings] Add FLAG_GRANT_READ_URI_PERMISSION to ApnEditor" 2020-02-19 16:44:01 +00:00
Roshan Pius
efbfccbf4c Merge changes from topics "ap_shutdown_timeout_flag", "scan_always_available_API"
* changes:
  Settings: Use new API for setting wifi scan always on
  Settings: Use new API for tethering auto shutdown
2020-02-19 16:28:43 +00:00
TreeHugger Robot
7caa494295 Merge "[Wi-Fi] Support WiFi detail page for OpenRoaming feature in AOSP setting." 2020-02-19 16:26:53 +00:00
TreeHugger Robot
3be1ba6e14 Merge "Launch desired Tether Settings fragment based on feature flag" 2020-02-19 14:45:06 +00:00
govenliu
824796d3b2 [Wi-Fi] Support WiFi detail page for OpenRoaming feature in AOSP setting.
Issue: Openroaming should have a specific detail page.
Solution: Apply the mock design to only reserve two preference items:
          1.Auto-connect
          2.Scription details

Bug: 146669261
Test: Add unit test case to test the new controller: WifiSubscriptionDetailPreferenceController2
Change-Id: Iba96500062f412f4cdcd1c8248544657770ab231
2020-02-19 22:22:47 +08:00
Jason Hsu
9ab1bd2587 Merge changes from topic "open_shortcut"
* changes:
  Accessibility shortcut primary action - implement launched type fragment.
  Accessibility shortcut primary action - setup entry for launched type fragment.
2020-02-19 13:58:25 +00:00
Pavel Grafov
04f783c759 "Forgot my password" to start profile in locked state.
Currently if a work profile with a separate lock is turned off
(a.k.a. in quiet mode), and the user has forgotten the password,
profile owner app cannot use DPM.resetPasswordWithToken because
the profile user is not running.

In BYOD case the user can remove and re-provision the profile but
in the new COPE mode (a.k.a. on an organization owned device with
work profile) it is not possible to remove the profile. So full
factory reset is required.

This CL allows the user to start the profile in locked state
(a.k.a direct boot mode) so that the admin can reset the password.

This CL adds "Forgot my password" button to work profile credential prompt
if all of the following conditions are true:
 * Work profile is turned off
 * Profile owner app is capable of running in direct boot mode.
 * Profile owner app has an active password reset token.
 * The device is an FBE device (otherwise profile will be unlocked).

Clicking this button starts the profile in locked state and shows an
activity to the user that instruct them to go to their IT admin.

Bug: 143516540
Test: manual
Change-Id: I832f7121b43e39161c5afa816f44ce89584b66e2
2020-02-19 13:48:34 +00:00
Peter_Liang
4f01e9aa46 Revise the modifier and naming of public APIs for allow rich content.
Change "int getAnimatedImageRes()" to "Drawable loadAnimatedImage(PackageManager packageManager)"

Bug: 142532186
Test: manual test
Change-Id: I9d56e53fd8c4050fda0c5c82c7265330246e4119
2020-02-19 21:43:00 +08:00
TreeHugger Robot
95209ebef9 Merge "Settigns app changes to enable Notification listeners on Android Go." 2020-02-19 13:36:23 +00:00
TreeHugger Robot
575e0ca05e Merge "Import translations. DO NOT MERGE" 2020-02-19 13:04:59 +00:00
TreeHugger Robot
5f73b0cbcd Merge "Add stop casting button for output switch" 2020-02-19 12:25:05 +00:00
Julia Reynolds
cb9f444849 Merge changes from topics "jr-all-convo", "jr-default-vic"
* changes:
  Add a default behavior setting for VICs
  Add screen for all conversations
2020-02-19 12:24:57 +00:00
Lucas Lin
8e83a617be Merge changes I80b93689,Ie767a9b8
* changes:
  Add capport info to WiFi details(WifiDetailPreferenceController2)
  Add capport info to WiFi details
2020-02-19 11:20:22 +00:00
Lee Chou
22a1e5b2eb Added check for preference click
handlePreferenceTreeClick gets triggered even for other preferences, so
this check is added to handle the correct click

Bug: 138861284
Test: mp settingsg
Change-Id: I178814b4b194d24f38ad0bb74694a2c51d16c89a
2020-02-19 18:37:29 +08:00
lucaslin
4ef8ec0e4c Add capport info to WiFi details(WifiDetailPreferenceController2)
Session expiration time and venue webpage can be obtained through the
captive portal API.

Test: make RunSettingsRoboTests \
      ROBOTEST_FILTER=WifiDetailPreferenceController2Test
      (Since WifiDetailPreferenceController2Test is ignore now,
      there is no test will be run in
      WifiDetailPreferenceController2Test)
Bug: 139269711
Change-Id: I80b93689539c6ba5edafa3d0029376deca7ac1f7
2020-02-19 17:31:41 +08:00
lucaslin
9f7f0b5baf Add capport info to WiFi details
Session expiration time and venue webpage can be obtained through the
captive portal API.

Test: make RunSettingsRoboTests \
      ROBOTEST_FILTER=WifiDetailPreferenceControllerTest
Bug: 139269711
Change-Id: Ie767a9b8eb17de2c1b70928a8f3cdf4cf2a1dbd1
2020-02-19 17:31:25 +08:00
Menghan Li
b66123861e Merge "Fix “Select to Speak & TalkBack ” Functionalities broken from Vision Settings." 2020-02-19 09:09:03 +00:00
Automerger Merge Worker
cad8efb2fa Merge "Update Settings UI for IKEv2/IPsec VPNs" am: 9579a76913 am: 033a021251
Change-Id: I62bce794bffab8425a4991484986481fd308933b
2020-02-19 08:07:38 +00:00
Automerger Merge Worker
033a021251 Merge "Update Settings UI for IKEv2/IPsec VPNs" am: 9579a76913
Change-Id: I6578907688551efef77caca68a2e7cafa818a30b
2020-02-19 07:51:14 +00:00