Commit Graph

468813 Commits

Author SHA1 Message Date
Shafik Nassar
4ebbdb6b22 Merge "Revert "Request MANAGE_EXTERNAL_STORAGE permission"" am: e21d0ea642 am: 4ec80cc67d
Change-Id: I01f123c30677d6208e08d700e8e98c7bb8e4df16
2020-02-14 14:00:33 +00:00
Wale Ogunwale
711539126f Merge "Revert "Always get window insets from server"" 2020-02-14 13:55:40 +00:00
Wale Ogunwale
288e1bd045 Revert "Always get window insets from server"
This reverts commit 3e857ec536.

Reason for revert: Breaks wm-presubmit

Change-Id: I03fbbb01c8cabd0ebb9193adf640b9f07ce19826
2020-02-14 13:54:34 +00:00
TreeHugger Robot
b8144ae516 Merge "Do not fail early when one of the verification fails so that we don't delete the apk file while the other verification is still accessing it." 2020-02-14 13:53:16 +00:00
Isabelle Taylor
288fdeb4cd Merge "Revert "Remove framework code that has moved to frameworks/libs/net"" am: 5c4b6301d5
Change-Id: I5e0b4e50352428ca5886a808b5667daffb4f2e4c
2020-02-14 13:51:45 +00:00
Shafik Nassar
4ec80cc67d Merge "Revert "Request MANAGE_EXTERNAL_STORAGE permission"" am: e21d0ea642
Change-Id: I044ef75eace6125620c1781e1eec1d80b247a66b
2020-02-14 13:51:21 +00:00
Santiago Seifert
590e248491 Add KEY_CAPTION_SERVICE_NUMBER to MediaFormat
Bug: 132153067
Bug: 134057371
Test: Not applicable.
Change-Id: I20eb77ad60f9e5e6cefd591ad168795ce0755b3f
2020-02-14 13:49:07 +00:00
Bernardo Rufino
0f64b3cf0a Remove FLAG_SHOW_FOR_ALL_USERS to avoid crash in a11y
Text toasts now return null for getWindowParams() because they are
rendered by sys UI. Removing the flag for now to avoid crash. Working on
a long-term solution for this in the first bug linked.

Bug: 149408635
Bug: 149401510
Test: 1. Settings > Accessibility > Volume key shortcut > Use Volume key
         shortcut
      2. Press vol up and down together and observe no crash

Change-Id: Ie924666e457982986eb282d4cba7ba0beda6faca
2020-02-14 13:45:20 +00:00
Isabelle Taylor
5c4b6301d5 Merge "Revert "Remove framework code that has moved to frameworks/libs/net"" 2020-02-14 13:42:37 +00:00
Tiger Huang
aa3b19d2dd Check to show IME after committing finish drawing windows
This CL also sets the IME window to the provider before updating the
target, so that we don't get null control or null control target.

Fix: 149457480
Fix: 149462652
Test: Reboot device and click on an EditText
Test: atest NavigationBarColorTest
Change-Id: Iae0c4cf976e2c6816887420d5980ea39d17e4934
2020-02-14 21:41:20 +08:00
Shafik Nassar
e21d0ea642 Merge "Revert "Request MANAGE_EXTERNAL_STORAGE permission"" 2020-02-14 13:35:34 +00:00
TreeHugger Robot
98d19712c9 Merge "UX changes for the cross profile settings header." 2020-02-14 13:34:38 +00:00
Scott Warner
fb3973a917 RingtoneManager: Don't crash if the ringtone doesn't have a numerical ID
When changing the notification sound for some apps with app-provided sounds,
the notification URI doesn't have a numerical ID.
For example, Outlook's email notification URI has the id 'new_email'

Test: m, outlook doesn't crash anymore, test google calendar
Change-Id: Ibf0c6f2f13e1c76ce02784165b97b92e8f7e432c
2020-02-14 14:33:02 +01:00
Isabelle Taylor
a996b06b6f Revert "Remove framework code that has moved to frameworks/libs/net"
Revert "Use createRandomUnicastAddress from MacAddressUtils"

Revert "Add net-utils-framework-net to telephony-common"

Revert submission 1191997-net-utils-framework-net

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_qt-qpr1-dev-plus-aosp&target=aosp_taimen-userdebug&lkgb=6208131&lkbb=6208273&fkbb=6208273, bug b/149551544
Reverted Changes:
Ib1c807d64:Use createRandomUnicastAddress from MacAddressUtil...
I9e0f297e0:Add net-utils-framework-net to telephony-common
Ieb8927f9a:Remove framework code that has moved to frameworks...

Change-Id: I2824f781babd9f7e0bb9df524dadf6b8397dcaa1
2020-02-14 13:09:16 +00:00
Eran Messeri
65d94931f3 Allow control over account management of parent profile
Let the owner of a managed profile on an organization-owned device set
accounts for which management is disabled in the primary profile, via
the parent profile's DevicePolicyManager instance.

Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testCanRestrictAccountManagementOnParentProfile
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Bug: 148438071
Change-Id: I45eaf5e8e403e0c23dad2df106fefd1a1f3c6f4b
2020-02-14 12:44:41 +00:00
Abhijeet Kaur
0f7b206acd Whitelist PlatformCompat permissions for MediaProvider
Bug: 132649864
Test: builds
Change-Id: If3d37a00f607e3cbe16a943c89bfbf3e7c100b5d
2020-02-14 12:27:52 +00:00
Eran Messeri
8f0f3b4bc2 An allow-list for personal system apps on org-owned devices
Add an allow-list for the system apps that should be enabled by default
when a device is provisioned in the "org-owned managed profile" mode.

Bug: 148011919
Test: that it compiles
Change-Id: I7374c58454f015fbbe628b74f1cd5d1902e79517
2020-02-14 12:25:04 +00:00
TreeHugger Robot
755bbc6a7a Merge "Use proper fonts for the empty state screens." 2020-02-14 12:10:21 +00:00
TreeHugger Robot
bc12e084cd Merge "[ANativeWindow] Rename allocateBuffers to tryAllocateBuffers" 2020-02-14 12:04:48 +00:00
Alex Johnston
f45a4b7da9 Merge "Invert setFactoryResetProtectionDisabled" 2020-02-14 11:44:07 +00:00
Shafik Nassar
5a885658c9 Merge "Add intent to clear app cache" 2020-02-14 11:10:18 +00:00
Aaron Huang
1965d49e73 Merge "Remove framework code that has moved to frameworks/libs/net" am: 79b6ad735b am: 37413a4b82
Change-Id: Ic03b259e256f935c2c625f294bea497b82b6317e
2020-02-14 10:20:07 +00:00
Bill Yi
15cbc72657 Import translations. DO NOT MERGE
Change-Id: I413a7f3091e3cea6dce3237a1833c2955234370d
Auto-generated-cl: translation import
2020-02-14 02:12:58 -08:00
Kyunglyul Hyun
f5318efa64 Merge "RouteDiscoveyPreference: Update javadoc" 2020-02-14 10:12:27 +00:00
Aaron Huang
37413a4b82 Merge "Remove framework code that has moved to frameworks/libs/net" am: 79b6ad735b
Change-Id: I20b8398f1fe410819f18a0afcd8646c75c594fb8
2020-02-14 09:53:36 +00:00
Bill Yi
2354314a37 Import translations. DO NOT MERGE
Change-Id: Iabfab64104366072e6398e361212761340c5cdeb
Auto-generated-cl: translation import
2020-02-14 01:50:28 -08:00
James Wei
77dc3e9ff2 USB: [API feedback] Add bitmask @IntDef annonation to setCurrentFunctions
Bug: 148285097
Test: Manual test: USB function switch: MTP, PTP, RNDIS, MIDI
Test: atest UsbTests
Test: atest UsbManagerTests
Change-Id: I27f8097b0a8174f7c1d14b856442e8962b56a906
2020-02-14 17:44:43 +08:00
Aaron Huang
79b6ad735b Merge "Remove framework code that has moved to frameworks/libs/net" 2020-02-14 09:42:49 +00:00
Abhijeet Kaur
6688e62e93 Refactor bugreport files creation and getfd methods
Handle Exceptions around file creation/open fd more gracefully inside
BugreportInfo class. This is communicated to the caller of BugreportInfo
by returning null for getFd() methods.

Test: builds

Change-Id: Ie241dce0810645e04b2492dc8b1bcbc3e9f8f664
2020-02-14 09:34:31 +00:00
TreeHugger Robot
87ef8d4948 Merge "MediaRouter2: s/transferrable/transferable/g" 2020-02-14 09:32:16 +00:00
Bill Yi
d7cb2dd4c7 Import translations. DO NOT MERGE
Change-Id: I75d703f684d3f16328d856034db197457c6b0cd0
Auto-generated-cl: translation import
2020-02-14 01:28:06 -08:00
Bill Yi
f7eab03e1b Import translations. DO NOT MERGE
Change-Id: I679f05c4ce66c689cd2bd3bf6ea3d4df2535e8b2
Auto-generated-cl: translation import
2020-02-14 01:05:11 -08:00
Jackal Guo
ef364c5a55 Use boundsOnScreen to offset the translate
ScreenRect is position in current window. However, it results in the
incorrect bounds if the window isn't from (0, 0). We need to update
it with bounds on screen instead.

Bug: 149539748
Test: a11y CTS & unit tests
Change-Id: I3cb07656a2c87e5f4fd1cba78463b1135c959bd4
2020-02-14 17:03:43 +08:00
junyulai
05a04c24ad [SP17] Wait for stats providers to report stats update
From current design, the traffic accounted by stats providers
will be updated asynchronously when force polling. When upper
layer make two subsequently queries. They will get stale
stats upon the first query, and may get newest/stale stats
base on the result of race.

Thus, wait for a bit of time to allow asynchronous stats update
complete to reduce the chance of race. In pratice, it would
be finished in ~2ms when testing.

Test: systrace.py network
Test: atest FrameworksNetTests
Bug: 147460444
Change-Id: I22a00fc4049cddf77fd578e25769ae1979f2cc6d
2020-02-14 17:03:35 +08:00
junyulai
7d058ec6b0 [SP16] Address comments on aosp/1172143
Test: atest FrameworksNetTests
Test: atest NetworkPolicyManagerServiceTest
Test: m doc-comment-check-docs
Bug: 130855321
Change-Id: Iccaab09f5b9668ec4a7249737c64a69cecb08d15
2020-02-14 16:53:40 +08:00
PETER LIANG
c0570cf0a8 Merge "Change the attribute format of htmlDescription." 2020-02-14 08:47:47 +00:00
Chiachang Wang
a5d8fe8637 Update state in NetworkInfo when network resumes
State override is only handled when state is changed from
CONNECTED to SUSPENDED but not reverse path. Handle both ways
for SUSPENDED state.

Bug: 148678431
Test: FrameworkNetTests
Change-Id: I9333f865d61bbf008fdb8ca162ad17dfdffd1d67
2020-02-14 16:41:33 +08:00
Paul Hu
5e7e9b09aa Merge "Add ACTION_TETHER_SETTINGS" am: 77e6024c01 am: 06c0f60a2b
Change-Id: If79e80dba8b6c8dd69e8221603426b71b22527f7
2020-02-14 08:36:52 +00:00
junyulai
9cd0ea1767 [SP15] Remove unused getVtDataUsage in TelephonyMananger
Test: atest FrameworkTelephonyTests
Bug: 143923500
Change-Id: I31b7041dc2591b354200da5637496f071fc4aa9f
2020-02-14 16:31:41 +08:00
Paul Hu
06c0f60a2b Merge "Add ACTION_TETHER_SETTINGS" am: 77e6024c01
Change-Id: Ibde5dfa7be0bd3e2db664b49f3a65eb618da933d
2020-02-14 08:19:04 +00:00
Benedict Wong
df50bb850e Ensure all VPN runners clean up state when exiting
This CL tweaks the cleanup flow to ensure that VPN runners exit
properly and clean up state. Previously, if a VPN exited before an
interface was created and the Interface Observer started watching the
virtual interface, some state (eg mConfig) might not get cleaned up.

Also as a result of this change, the LegacyVpn no longer implicitly
relies on the NetworkManagementEventObserver's watching for interface
removed to cleanup mConfig, mStatusIntent, mNetworkCapabilities, and the
VPN runner itself, but rather clears the state immediately.

Bug: 144246767
Test: FrameworksNetTests passing
Change-Id: Ide9daebca9a3fba025e7da5e3fe1d20d7bfdca02
2020-02-14 00:09:48 -08:00
Benedict Wong
5d50ce8181 Enforce restricted user, getConnectionOwnerUid checks
This CL adds checks to ensure restricted users cannot change or
start/stop platform VPNs. In addition, this also adds checks to the
ConnectivityManager#getConnectionOwnerUid() to ensure that only
VpnService based VPNs can identify connections

Bug: 148040659
Test: FrameworksNetTests run
Change-Id: Id47ada5766036bfc84f3ba47f66f2d2683af916d
2020-02-14 00:09:47 -08:00
Paul Hu
77e6024c01 Merge "Add ACTION_TETHER_SETTINGS" 2020-02-14 08:05:33 +00:00
nelsonli
6b7b32d1b7 [vts-core] add vts_permission_validate_test to vts-core
VtsValidatePermission is just the GTest of
vts_permission_validate_test.

Bug: 142397658
Test: $atestvts_permission_validate_test
Change-Id: Iff12e5196dc40cea9d30bfb1db2fbe0aa6e55034
2020-02-14 15:47:44 +08:00
Danning Chen
443b3e9993 Merge "Add a JobScheduler service to prune the People Service data on a daily basis" 2020-02-14 07:41:59 +00:00
junyulai
5bbd6262b1 [SP12] Remove the usage of getVtDataUsage
Currently NetworkStatsService holding a lock when invoking
getVtDataUsage, which causes a lot of deadlock problems since
Phone will also have binder calls to system_server.

Thus, this change uses a new set of API to break such situation,
that allows VT to report stats asynchronously.

Test: atest FrameworksNetTests FrameworksTelephonyTests
Bug: 130855321
Fix: 143923500

Change-Id: Ifdb8599c3bade09208b4730710fc99da1afad71d
2020-02-14 15:37:16 +08:00
Zoey Chen
5819e2c0ad Merge "[Settings] Expose @hide APIs as @SystemApi" am: 3091498e78 am: 8811b44dd1
Change-Id: I1fc3ce179ae0921d258624b968e5fd532386530c
2020-02-14 07:11:47 +00:00
Zoey Chen
8811b44dd1 Merge "[Settings] Expose @hide APIs as @SystemApi" am: 3091498e78
Change-Id: Ia1fabd4b306f9af5fd0d9f37d7c2f051fc055da6
2020-02-14 07:01:50 +00:00
Yuichiro Hanada
ed54866ba6 Fix TextView.shouldAdvanceFocusOnTab().
EditorInfo.TYPE_TEXT_FLAG_{IME_,}MULTI_LINE are outside of
EditorInfo.TYPE_MASK_VARIATION.
It causes shouldAdvanceFocusOnTab return true always.

Bug: 37066224
Test: manual - Tab key on multiline text input inserts a tab character.
Test: atest TextViewTest#testKeyNavigation
Change-Id: I913cda40206d1c39e6844ff1be38e069488df4f4
2020-02-14 16:00:13 +09:00
Zoey Chen
3091498e78 Merge "[Settings] Expose @hide APIs as @SystemApi" 2020-02-14 06:49:45 +00:00