Commit Graph

58521 Commits

Author SHA1 Message Date
Alex Johnston
403c330135 Update work profile app lock to latest spec
* Updated text and description for PIN, password and pattern
* Added enterprise logo to work profile lock

Bug: 141290838
Test: Manual testing
      atest com.android.systemui.biometrics.AuthBiometricViewTest
      atest com.android.systemui.biometrics.AuthContainerViewTest

Change-Id: Iac6c9ca15e7446cbd7cce9fc1a1ac4e1c867bf31
2020-01-30 14:49:39 +00:00
Sunny Shao
74ded43527 Add whitelist in ResetAppsHelper
- Add "com.android.systemui" and "com.android.vending" into the whitelist.
- Add "com.android.providers.downloads" and "android" into the whitelist.
- Do not data clear in the whitelist.

Fixes: 147124412
Test: manual test
Change-Id: Ie2f527309f9159babe79636a69ff13fe3ceb64d9
Merged-In: Ie2f527309f9159babe79636a69ff13fe3ceb64d9
(cherry picked from commit b54d2f90f2)
2020-01-30 22:19:05 +08:00
Neil Fuller
45834d96a8 Merge "Tidy up libcore.timezone APIs" 2020-01-30 11:25:35 +00:00
Benedict Wong
bcd6b8cbca Add Platform VPNs to VPN list
This change allows the Settings VPN pages to pull the apps providing a
new Platform VPN.

Bug: 144246835
Test: Compiles, manual testing
Change-Id: Ibb7e79ccde754724c9fc00c88da98e975f325ba7
2020-01-30 01:46:19 -08:00
Bill Yi
26662f181e Import translations. DO NOT MERGE
Change-Id: I7d8f232967302ae88068db81bfffb407a03fdd54
Auto-generated-cl: translation import
2020-01-29 23:49:56 -08:00
govenliu
634044dc0b [Wi-Fi] [a11y] In Wi-Fi data usage page, Talkback should also announce the Progress bar percentage instead of "Progress bar" only.
Add conent description for talkback to announce, if the progress bar is 50%, then before modification is "Progress bar", and after modification is "50% Progress bar".

Bug: 146811265
Test: Add following unit test case to test if content description is correct or not:
      createPref_progressBarShouldSetPercentageContentDescription().

Change-Id: I71483df8e12f08c4c8c96ab3964666bf97872a83
2020-01-30 07:18:18 +00:00
Arc Wang
4ee5d1819b Merge "Remove WifiEntry.METERED_CHOICE_UNKNOWN" 2020-01-30 06:32:07 +00:00
TreeHugger Robot
f8df99a8d6 Merge "Fix volume panel crashing" 2020-01-30 04:03:47 +00:00
Quang Luong
94f10ec0b5 Remove WifiEntry.METERED_CHOICE_UNKNOWN
METERED_CHOICE_UNKNOWN should represent the default value of the metered
choice, but this can be represented by METERED_CHOICE_AUTO already.

Bug: 70983952
Test: build
Change-Id: I3bea9217e197ff88eba606be9235b1db65158425
2020-01-29 16:45:06 -08:00
Raff Tsai
fcd9f1a870 Fix volume panel crashing
slider position is smaller than min value causes the exception.
Fixed by limit the position within min and max value.

Fixes: 148270968
Test: manual
Change-Id: I3d162f6d2f1035b81b1b2eb915b488084e7ea36e
2020-01-30 08:24:47 +08:00
David Su
8ab62a8750 Migrate WifiManager.isDualModeSupported() to isStaApConcurrencySupported()
isDualModeSupported is being removed, replace it
with isStaApConcurrencySupported.

Bug: 144925765
Test: compiles
Change-Id: Ia3a0417a154ea401579a039113e96ba4578ffd80
2020-01-29 14:46:33 -08:00
Bill Yi
cc3531906a Import translations. DO NOT MERGE
Change-Id: Ic4b6852ea330e15526fe32c4ad5de96cdbb8d7a3
Auto-generated-cl: translation import
2020-01-29 12:59:30 -08:00
TreeHugger Robot
8ad24a25ad Merge "Add character limit for app_link_open_always_summary string" 2020-01-29 20:28:29 +00:00
TreeHugger Robot
1767201534 Merge "Use MasterSwitchPref vs subclass" 2020-01-29 19:20:48 +00:00
TreeHugger Robot
ecb62abbc5 Merge "Add setting to hide silent notifs in status bar" 2020-01-29 18:35:16 +00:00
Kenny Guy
1a289bdeba Update battery manager toggle to support on / off summary.
Screenshots attached to the bug.

Bug: 146438499
Test: Visual - on blueline aosp build / boot / check settings pages
Test: Visual - on blueline eng build / boot / check settings pages
Change-Id: I44b1c74baf4bafa549519d4f20fa470389cd5e0b
2020-01-29 18:28:34 +00:00
Zimuzo Ezeozue
610a2c3fe4 Merge "Request MANAGE_EXTERNAL_STORAGE permission" 2020-01-29 17:56:10 +00:00
Sooraj Sasindran
ef77c1d67f Merge "access system resources with android.R package" 2020-01-29 17:34:53 +00:00
Julia Reynolds
82433b0239 Use MasterSwitchPref vs subclass
MasterSwitchPrefence changed in an incompatible way, but also
added functionality so we no longer need to subclass it.

Test: atest
Fixes: 146503141
Change-Id: I2441c8c265370c138ced13741aa5afd5c2088917
2020-01-29 17:11:45 +00:00
Automerger Merge Worker
79025506e8 [automerger skipped] Merge "[DO NOT MERGE] Update CellIdentityGsm Constructor" am: 0c2cd2a94d am: 1edf46fc74 am: 9aa72472a5 -s ours
am skip reason: subject contains skip directive

Change-Id: If114f9dde65c92b8bff36b27688ace2f91d2ac3a
2020-01-29 16:59:28 +00:00
Automerger Merge Worker
9aa72472a5 Merge "[DO NOT MERGE] Update CellIdentityGsm Constructor" am: 0c2cd2a94d am: 1edf46fc74
Change-Id: I8e4241bce34b6a2099c116cbe76d6e84896d6331
2020-01-29 16:37:28 +00:00
Julia Reynolds
86c0007e1d Add setting to hide silent notifs in status bar
Test: atest
Bug: 148444551
Change-Id: If7171ed36984b76552f3f795f0b4652dce5daad3
2020-01-29 11:25:18 -05:00
Sarah Chin
1edf46fc74 Merge "[DO NOT MERGE] Update CellIdentityGsm Constructor"
am: 0c2cd2a94d

Change-Id: Ibce639f419d021ba6abe507381644eb3fd8249ef
2020-01-29 08:14:34 -08:00
Bonian Chen
c820dc191c [Settings] Replace ImsDirectQuery
This is a code refactor to replace
1. Legacy ImsQuery into ImsExecutorQuery
2. ImsDirectQuery into ImsQuery
3. SystemTty into Tty

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gLteSliceHelperTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=VideoCallingPreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingPreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSettingsForSubTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSliceHelperTest
Change-Id: I239021c60fff47de307ac7e21641bee56e205861
2020-01-30 00:11:55 +08:00
Sarah Chin
0c2cd2a94d Merge "[DO NOT MERGE] Update CellIdentityGsm Constructor" 2020-01-29 15:56:09 +00:00
Alex Johnston
8b15d86c5a Merge "Update string displayed on work pin/password challenge" 2020-01-29 14:10:40 +00:00
Sunny Shao
14e2be7851 Add character limit for app_link_open_always_summary string
Fixes: 148422248
Test: compilation

Change-Id: If8d10e3394025baa559ae11881ee7775e171d6f2
2020-01-29 20:59:57 +08:00
Winson Chung
37a67a483e Merge "Updating developer winscope tile to start sysui tracing" 2020-01-29 05:04:49 +00:00
Zhen Zhang
0141e6f943 Add a feature flag for the new tether settings UI
The flag is mirrored from FeatureFlagUtils in framework/base
Bug: 148182953
Bug: 148220934
Test: Build successfully.
Change-Id: Ifada88cb585b3f618b7e2f59f1ceff007ae8eacd
2020-01-28 15:15:42 -08:00
Alex Johnston
28c6b577ad Update string displayed on work pin/password challenge
* The incorrect string was being displayed when the user
  was asked to enter their pin/password.
* Updated the string to include **work** instead of
  **device** when entering a work pin/password.

Bug: 148211118
Test: Manual testing
Change-Id: I2239a5011dec62fd63574bbf75495548ddd0d907
2020-01-28 17:49:33 +00:00
Neil Fuller
7b54a31132 Tidy up libcore.timezone APIs
Tidy up the libcore.timezone APIs to make them as close as possible to
android.timezone. In future, these classes should be repackages to be
the actual android.timezone classes, so the APIs need to be in sync.

Bug: 148086409
Test: treehugger
Change-Id: I8d0521467bb3c3c8741ce98f50cde0ee8c1bec1a
2020-01-28 15:08:31 +00:00
Chalard Jean
bbd637d391 Use IEC units in app info data usage.
Settings > Apps & notifications > select some app that has done
some internet traffic.
Observe "Mobile data & Wi-Fi" summary data and take note of the
numbers. Then tap on it and observe that the numbers on the
details page don't match the one in the summary. This is because
the details use IEC units while the summary uses SI units.

This fix changes the summary to use IEC units too, removing
the discrepancy.

Bug: 137917003
Test: manually cause some traffic, see that the numbers are now
      consistent between the app info and usage details page

Change-Id: I4be5830d4e98a1c4739001c812e59d82415bf24a
2020-01-28 20:22:45 +09:00
Sooraj Sasindran
a30bdaaaf8 access system resources with android.R package
Bug: 143289541
Test: make
Merged-In: Idc10955639bce7b8e579c50af78056389d44d492
Change-Id: Idc10955639bce7b8e579c50af78056389d44d492
2020-01-27 22:17:28 -08:00
David Su
613371047b Merge "Rename WifiManager.enableVerboseLogging/getVerboseLoggingLevel" 2020-01-27 18:40:08 +00:00
Automerger Merge Worker
f123108d6b [automerger skipped] Merge "[Settings] DataUsage crash when no SIM inserted" am: 5c8b22657c am: 798b5816d1 am: b201a11991 -s ours
am skip reason: Change-Id I4e893fc7de4a3292b3949860ebb59fbe52ac1a8f with SHA-1 5cf0e1ba47 is in history

Change-Id: I534edee34d5b716852c0ac4ac3b8a5d8d50f90af
2020-01-27 06:33:36 +00:00
Automerger Merge Worker
b201a11991 Merge "[Settings] DataUsage crash when no SIM inserted" am: 5c8b22657c am: 798b5816d1
Change-Id: I1184f29ae4c4d25584c382c4604bab547c45de00
2020-01-27 06:18:29 +00:00
Bonian Chen
798b5816d1 Merge "[Settings] DataUsage crash when no SIM inserted"
am: 5c8b22657c

Change-Id: Iab61f527b75c22eab597eea7ffead91babd72de3
2020-01-26 22:05:07 -08:00
Bonian Chen
5c8b22657c Merge "[Settings] DataUsage crash when no SIM inserted" 2020-01-27 05:21:35 +00:00
Bonian Chen
bdf7346de0 Merge "[Settings] DataUsage crash when no SIM inserted" 2020-01-27 03:46:37 +00:00
Muhammad Qureshi
0454b2798b Migrate to SettingsStatsLog from StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by *StatsLog.java
that is autogenerated for each module.
This CL adds autogenerated SettingsStatsLog and replaces usages
of StatsLog with SettingsStatsLog.

Bug: 145952197
Test: m
Change-Id: I3ffdb51394017e3e48b65734d67595abd69dd70d
2020-01-26 18:51:52 -08:00
Bonian Chen
f550fc2181 [Settings] DataUsage crash when no SIM inserted
Check for null pointer when looking up subcription id.

Bug: 148175728
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=DataUsageUtilsTest
Change-Id: Icc1314d262f1af686134dcf6a0b187adfc3eb4df
Merged-In: I4e893fc7de4a3292b3949860ebb59fbe52ac1a8f
2020-01-25 09:37:00 +00:00
Zim
3d437ebb4b Request MANAGE_EXTERNAL_STORAGE permission
With the deprecation of WRITE_MEDIA_STORAGE in R. Apps should migrate
to requesting MANAGE_EXTERNAL_STORAGE permission

Test: m
Bug: 144914977
Change-Id: Iab8b44d52d2eb85185baa8a029432aa70d38a93b
2020-01-24 22:29:02 +00:00
Winson Chiu
f9a1252378 Merge "Catch Security and IllegalStateExceptions when enabling overlays" 2020-01-24 19:40:06 +00:00
Fan Zhang
ea99b6ebbd Clean up owner list
Test: manual
Change-Id: I988dc97e3b8c7e10bfe834c740c0adc3ec0aa2f9
2020-01-24 09:44:43 -08:00
Tsung-Mao Fang
fa00e245cd Ignore test cases for ListWithEntrySummaryPreferenceTest
We ignore the failing test cases temporarily.
And we will fix it soon.

Bug: 148200531
Test: Run robotest
Change-Id: Ie42e85be19d3ac1658065bd730a6d9ec7bb06a21
2020-01-24 22:07:01 +08:00
TreeHugger Robot
13fa76e16d Merge "Add RESTRICTED bucket to Developer Options." 2020-01-24 12:27:37 +00:00
Automerger Merge Worker
336e7f1856 Merge "Add IKEv2/IPsec VPN options" am: b189ffb318 am: 9d5397ab42 am: b9df8248fa
Change-Id: I50104a17fd5b7d07cb50b9d6fcc002d7cfd96b6c
2020-01-24 07:59:53 +00:00
Sooraj Sasindran
64f11ee82a Merge "access system resources with android.R package" 2020-01-24 05:36:15 +00:00
Bonian Chen
5cf0e1ba47 [Settings] DataUsage crash when no SIM inserted
Check for null pointer when looking up subcription id.

Bug: 148175728
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=DataUsageUtils
Change-Id: I4e893fc7de4a3292b3949860ebb59fbe52ac1a8f
2020-01-24 11:08:50 +08:00
David Su
6c6e77ed32 Rename removeDoubleQuotes to sanitizeSsid
Bug: 145745815
Test: compiles
Change-Id: Ic2fbb78b30d2c64d584cd94a79b2ed7e5e234440
2020-01-23 18:57:49 -08:00