Commit Graph

58853 Commits

Author SHA1 Message Date
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
Ben Murdoch
0149363a39 Show "Add users from lock screen" dependent on secure lock screen.
SysUI only enforces this setting while a secure lock screen is set,
so it doesn't make sense to show it configurable while an insecure
lock screen is set.

Bug: 148015798
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.users.AddUserWhenLockedPreferenceControllerTest"
Change-Id: I186b2339e9575e20b55e2e5c1dab3de624848fc5
2020-01-24 12:34:15 +00: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
David Su
dadef49214 Rename WifiManager.enableVerboseLogging/getVerboseLoggingLevel
- Rename enableVerboseLogging -> setVerboseLoggingEnabled
- Rename getVerboseLoggingLevel -> isVerboseLoggingEnabled
- Converted getter/setter to take/return boolean

Bug: 144925765
Test: compiles
Change-Id: I6406a91b4692871cf558a63f8510f1734ae48f93
2020-01-23 13:57:33 -08:00
Quang Luong
f21a9b0b11 Merge "Remove WifiEntry transitional security types" 2020-01-23 19:49:43 +00:00
Kweku Adams
24fffd106d Add RESTRICTED bucket to Developer Options.
Add the RESTRICTED to the Standby Apps section in Developer Options so
that developers can easily test the behavior of their app in the bucket.

Bug: 145551233
Test: flash and use UI to put app into RESTRICTED bucket
Change-Id: I786f55a08c1fc53ace2031a635396a0529b2b772
2020-01-23 10:24:01 -08:00
Adrian Roos
150a7f0ac1 Merge "Update name of used API" 2020-01-23 16:29:44 +00:00
PO HUNG CHEN
74d73cc0ea Merge "Typo in dynamic developer settings DSU loader" 2020-01-23 15:32:48 +00:00
Howard Chen
e09b42dfbd Typo in dynamic developer settings DSU loader
Bug: 148162879
Test: Compile
Change-Id: I51747e401345dd2317b56313b889d68256cdce8d
2020-01-23 22:21:30 +08:00
Ben Murdoch
7129dd98d8 Merge "Refactor Add new user / restricted profile UX flow." 2020-01-23 14:16:44 +00:00
Ben Murdoch
34462c0cb0 Refactor Add new user / restricted profile UX flow.
Incorporate the choose user name / avatar into the
user creation flow so that we don't end up with many
"New User"s.

Bug: 147653252
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.users.EditUserInfoControllerTest"
Change-Id: Ie19230791d8b50c8ab04df89909606179364ebab
2020-01-23 11:11:02 +00:00
Zhen Zhang
0c2e4d3c94 Merge "Add config value to switch between Tether Settings UIs." 2020-01-23 07:07:09 +00:00
Automerger Merge Worker
b9df8248fa Merge "Add IKEv2/IPsec VPN options" am: b189ffb318 am: 9d5397ab42
Change-Id: Ia26abaa384163d241dbc59e69e6f705f95663752
2020-01-23 06:18:15 +00:00
Benedict Wong
9d5397ab42 Merge "Add IKEv2/IPsec VPN options"
am: b189ffb318

Change-Id: I865a04f4453fc0304ddc3daf9be47ebf2e8a1c3c
2020-01-22 22:09:59 -08:00
Benedict Wong
b189ffb318 Merge "Add IKEv2/IPsec VPN options" 2020-01-23 05:11:47 +00:00
Bonian Chen
fae3cf3c49 Merge "[Settings] Support default value for APN protocol" 2020-01-23 03:43:14 +00:00
TreeHugger Robot
a06c915949 Merge "Fix recent location apps problem without profile" 2020-01-23 02:26:34 +00:00
TreeHugger Robot
ed4dd70f53 Merge "[Wi-Fi] Replace WifiEntryShell#getSecurityString with WifiEntry#getSecurityString" 2020-01-23 01:41:19 +00:00
Jorim Jaggi
fd802bca2d Update name of used API
Test: Builds
Change-Id: I470d98b0fff94128ff03322d138930b3bb19342e
Exempt-From-Owner-Approval: Trivial rename
2020-01-22 23:44:34 +00:00
Lifu Tang
f52d7fe4db Fix recent location apps problem without profile
Bug: 147298096
Test: Build and test on device manually.
Change-Id: I14aaf23636d6a0e778154fe589131e66c313bfdd
2020-01-22 15:16:32 -08:00
TreeHugger Robot
f160cbed83 Merge "Fix incorrect sub text on Bug report handler settings launched by a work profile app." 2020-01-22 19:40:01 +00:00
Bonian Chen
5fcb8ee011 [Settings] Support default value for APN protocol
Add default value on APN (roaming) protocol based on configuration when user leave it empty during editing APN.

Bug: 142440775
Test: manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ApnEditorTest
Change-Id: I3f1ca0ef17ceaaf2a94b21b6034cd74e56081b61
2020-01-23 03:38:29 +08:00
Sooraj Sasindran
740d67320a access system resources with android.R package
Bug: 143289541
Test: make
Change-Id: Idc10955639bce7b8e579c50af78056389d44d492
2020-01-22 10:26:43 -08:00
Paul Chang
b3b1a5c40a Fix incorrect sub text on Bug report handler settings launched by a work profile app.
Bug: 147257237
Test: Flash device and check the sub text
Change-Id: I2ea728c82502d3c91fa7262f353da6f98911adce
2020-01-23 01:59:55 +08:00
TreeHugger Robot
a65636ad64 Merge "Import translations. DO NOT MERGE" 2020-01-22 17:41:00 +00:00